@airalogy/aimd-recorder 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +16 -0
  2. package/README.zh-CN.md +16 -0
  3. package/dist/{AimdDnaSequenceField-BHV1_c2o.js → AimdDnaSequenceField-CKfd3-_9.js} +1 -1
  4. package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-phvUVTHV.js → AimdEditor.vue_vue_type_style_index_0_lang-C1XlvrNT.js} +8311 -7173
  5. package/dist/{AimdEntityRefField-COzwbHwr.js → AimdEntityRefField-CX67car3.js} +1 -1
  6. package/dist/{AimdEntityRefField.vue_vue_type_script_setup_true_lang-BIvUuZFV.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-JISqbfKY.js} +1 -1
  7. package/dist/{AimdMarkdownField-t8hqazDv.js → AimdMarkdownField-BuRsjOB5.js} +9 -9
  8. package/dist/{AimdMarkdownNoteField-BGjkSXEY.js → AimdMarkdownNoteField-NRA9ut3_.js} +6 -6
  9. package/dist/{AimdResourceRefField-BBaRSLcL.js → AimdResourceRefField-B71MVFFK.js} +2 -2
  10. package/dist/aimd-recorder.css +1 -1
  11. package/dist/{arc-CsBMJYPv.js → arc-2NNDEUZL.js} +1 -1
  12. package/dist/{architectureDiagram-3BPJPVTR-BeKUSqHO.js → architectureDiagram-3BPJPVTR-BGU_a_9z.js} +2 -2
  13. package/dist/{blockDiagram-GPEHLZMM-CJeAC_1p.js → blockDiagram-GPEHLZMM-ChLqLSJn.js} +4 -4
  14. package/dist/{c4Diagram-AAUBKEIU-LoQMp4kW.js → c4Diagram-AAUBKEIU-BXt823OA.js} +2 -2
  15. package/dist/{channel-BoLQO6Dk.js → channel-D1EuKFn5.js} +1 -1
  16. package/dist/{chunk-2J33WTMH-D1vw38h5.js → chunk-2J33WTMH-XJPmqQtr.js} +1 -1
  17. package/dist/{chunk-4BX2VUAB-BFSVnsyi.js → chunk-4BX2VUAB-CbV5jCeG.js} +1 -1
  18. package/dist/{chunk-55IACEB6-D13UaCP1.js → chunk-55IACEB6-C8gv1Mc0.js} +1 -1
  19. package/dist/{chunk-727SXJPM-BCcz4POX.js → chunk-727SXJPM-Bs2EpCWN.js} +5 -5
  20. package/dist/{chunk-AQP2D5EJ-DTOfpg2m.js → chunk-AQP2D5EJ-CngahRo6.js} +3 -3
  21. package/dist/{chunk-FMBD7UC4-XGRN-sFg.js → chunk-FMBD7UC4-DPBfEP1E.js} +1 -1
  22. package/dist/{chunk-ND2GUHAM-DSgp1I9F.js → chunk-ND2GUHAM-BlEzeiST.js} +1 -1
  23. package/dist/{chunk-QZHKN3VN-DQl3-kKo.js → chunk-QZHKN3VN-DGOFj8Bc.js} +1 -1
  24. package/dist/{classDiagram-v2-Q7XG4LA2-CI-4bhme.js → classDiagram-4FO5ZUOK-BUQqoFF9.js} +2 -2
  25. package/dist/{classDiagram-4FO5ZUOK-CI-4bhme.js → classDiagram-v2-Q7XG4LA2-BUQqoFF9.js} +2 -2
  26. package/dist/components.js +3885 -3650
  27. package/dist/composables.js +55 -53
  28. package/dist/{cose-bilkent-S5V4N54A-CU1K-fx3.js → cose-bilkent-S5V4N54A-Qxs9suxa.js} +1 -1
  29. package/dist/{dagre-BM42HDAG-HIHsvvPF.js → dagre-BM42HDAG-CqV8IXIy.js} +3 -3
  30. package/dist/{diagram-2AECGRRQ-XlYRVMia.js → diagram-2AECGRRQ-D0mYOaE1.js} +2 -2
  31. package/dist/{diagram-5GNKFQAL-BeA9dVE2.js → diagram-5GNKFQAL-Dvjcs9SL.js} +3 -3
  32. package/dist/{diagram-KO2AKTUF-D501LuyG.js → diagram-KO2AKTUF-rSovr72L.js} +2 -2
  33. package/dist/{diagram-LMA3HP47-ClkmdOf_.js → diagram-LMA3HP47-CirCeq88.js} +2 -2
  34. package/dist/{diagram-OG6HWLK6-30O5epks.js → diagram-OG6HWLK6-rk46c1hT.js} +3 -3
  35. package/dist/{erDiagram-TEJ5UH35-Dk5azNFu.js → erDiagram-TEJ5UH35--_m5yDSV.js} +4 -4
  36. package/dist/{flowDiagram-I6XJVG4X-C4K9bB2d.js → flowDiagram-I6XJVG4X-DU-TlDfY.js} +6 -6
  37. package/dist/{ganttDiagram-6RSMTGT7-sFuSkRH3.js → ganttDiagram-6RSMTGT7-CrMwQSQi.js} +2 -2
  38. package/dist/{gitGraphDiagram-PVQCEYII-CC4Kf_0S.js → gitGraphDiagram-PVQCEYII-Q-bwtX2H.js} +3 -3
  39. package/dist/{graph-BBr12s4M.js → graph-CvyYQarK.js} +58 -58
  40. package/dist/index.js +124 -121
  41. package/dist/{infoDiagram-5YYISTIA-PObcwLKW.js → infoDiagram-5YYISTIA-BejjAcMI.js} +1 -1
  42. package/dist/{ishikawaDiagram-YF4QCWOH-B93dpm60.js → ishikawaDiagram-YF4QCWOH-CbRBA5Ak.js} +1 -1
  43. package/dist/{journeyDiagram-JHISSGLW-Z0_jIQ5z.js → journeyDiagram-JHISSGLW-D_6-qOB8.js} +4 -4
  44. package/dist/{kanban-definition-UN3LZRKU-BicW7pfZ.js → kanban-definition-UN3LZRKU-DyGjEqu5.js} +2 -2
  45. package/dist/{layout-jm5q2dTB.js → layout-Z5g42JDg.js} +93 -93
  46. package/dist/{linear-Bv4EbUf4.js → linear-DSunMwcT.js} +1 -1
  47. package/dist/{mermaid.core-BN0BM26i.js → mermaid.core-B-O2uDZ3.js} +34 -34
  48. package/dist/{mindmap-definition-RKZ34NQL-Ba85mo62.js → mindmap-definition-RKZ34NQL-CC_NhwV9.js} +3 -3
  49. package/dist/{pieDiagram-4H26LBE5-CfU3ahlI.js → pieDiagram-4H26LBE5-CHlBAazu.js} +3 -3
  50. package/dist/{quadrantDiagram-W4KKPZXB-BPTjR1PA.js → quadrantDiagram-W4KKPZXB-BM6pMzVZ.js} +2 -2
  51. package/dist/record.js +23 -23
  52. package/dist/{requirementDiagram-4Y6WPE33-DVfyUAUL.js → requirementDiagram-4Y6WPE33-CNkZDYpb.js} +3 -3
  53. package/dist/{sankeyDiagram-5OEKKPKP-B_9c0VJt.js → sankeyDiagram-5OEKKPKP-Cq6DjItn.js} +1 -1
  54. package/dist/{sequenceDiagram-3UESZ5HK-BFSDCMig.js → sequenceDiagram-3UESZ5HK-BIzn9dmF.js} +3 -3
  55. package/dist/{stateDiagram-AJRCARHV-DNCya3UT.js → stateDiagram-AJRCARHV-DbSpH-v9.js} +4 -4
  56. package/dist/{stateDiagram-v2-BHNVJYJU-BlmsFnk2.js → stateDiagram-v2-BHNVJYJU-Cnv8BTgy.js} +2 -2
  57. package/dist/{timeline-definition-PNZ67QCA-B297WQKg.js → timeline-definition-PNZ67QCA-Bhs5_-8Z.js} +2 -2
  58. package/dist/useCodeBlockRendering-IjoDTQ64.js +35 -0
  59. package/dist/{useFieldRendering-DQN_MbSg.js → useFieldRendering-r1bAnHjk.js} +253 -254
  60. package/dist/useVarHelpers-xrbf4f60.js +7008 -0
  61. package/dist/{validation-Dn_j1py1.js → validation-ZmPcMCY0.js} +991 -989
  62. package/dist/{vennDiagram-CIIHVFJN-gDmDgx6K.js → vennDiagram-CIIHVFJN-DJSLUotN.js} +1 -1
  63. package/dist/{wardleyDiagram-YWT4CUSO-ek5B-FUl.js → wardleyDiagram-YWT4CUSO-Bk66hVLg.js} +2 -2
  64. package/dist/{xychartDiagram-2RQKCTM6-DRtlxacH.js → xychartDiagram-2RQKCTM6-Bss5MLVp.js} +2 -2
  65. package/package.json +4 -4
  66. package/src/__tests__/check-field-render.test.ts +65 -0
  67. package/src/__tests__/compact-field-types.test.ts +181 -0
  68. package/src/__tests__/compact-fields.test.ts +31 -0
  69. package/src/__tests__/multi-select-field.test.ts +54 -0
  70. package/src/__tests__/quoted-check-wysiwyg.test.ts +56 -0
  71. package/src/__tests__/recorder-field-authoring.test.ts +92 -0
  72. package/src/__tests__/recorder-wysiwyg-field-host.test.ts +115 -1
  73. package/src/__tests__/step-field.test.ts +54 -1
  74. package/src/components/AimdMultiSelectField.vue +56 -0
  75. package/src/components/AimdRecorder.vue +21 -4
  76. package/src/components/AimdRecorderEditor.vue +4 -0
  77. package/src/components/AimdRecorderWysiwygFieldHost.vue +8 -0
  78. package/src/components/AimdRecorderWysiwygSurface.vue +220 -8
  79. package/src/components/AimdStepCheckField.vue +36 -7
  80. package/src/components/AimdVarField.vue +48 -4
  81. package/src/components/AimdVarTableField.vue +3 -0
  82. package/src/components/index.ts +2 -0
  83. package/src/components/recorderMilkdownPlugin.ts +36 -6
  84. package/src/composables/__tests__/useVarHelpers.test.ts +15 -0
  85. package/src/composables/__tests__/workbenchFieldEditing.test.ts +10 -0
  86. package/src/composables/index.ts +3 -0
  87. package/src/composables/useFieldPresentation.ts +7 -0
  88. package/src/composables/useFieldRendering.ts +1 -0
  89. package/src/composables/useVarHelpers.ts +20 -101
  90. package/src/composables/workbenchFieldEditing.ts +5 -7
  91. package/src/index.ts +1 -0
  92. package/src/record/validation.ts +6 -0
  93. package/src/styles/recorder-compact.css +45 -0
  94. package/src/styles/recorder-surface.css +14 -5
  95. package/src/styles/recorder.css +4 -0
  96. package/src/type-utils.ts +5 -1
  97. package/src/types.ts +1 -1
  98. package/dist/useCodeBlockRendering-D2viVPtA.js +0 -3158
  99. package/dist/useVarHelpers-D00Za8e6.js +0 -3524
@@ -1,4 +1,4 @@
1
- import { b7 as Dt, b4 as ba, bd as wa, bh as Sa } from "./useVarHelpers-D00Za8e6.js";
1
+ import { ba as Dt, bf as ba, b7 as wa, z as Sa, bl as Pa } from "./useVarHelpers-xrbf4f60.js";
2
2
  import { g as Bn } from "./_commonjsHelpers-ByX85dGu.js";
3
3
  var Ve = { exports: {} }, Qt = {}, ge = {}, we = {}, Xt = {}, xt = {}, er = {}, pr;
4
4
  function zt() {
@@ -47,14 +47,14 @@ function zt() {
47
47
  }
48
48
  }
49
49
  e._Code = a, e.nil = new a("");
50
- function l(v, ...u) {
50
+ function f(v, ...u) {
51
51
  const $ = [v[0]];
52
52
  let w = 0;
53
53
  for (; w < u.length; )
54
54
  i($, u[w]), $.push(v[++w]);
55
55
  return new a($);
56
56
  }
57
- e._ = l;
57
+ e._ = f;
58
58
  const r = new a("+");
59
59
  function o(v, ...u) {
60
60
  const $ = [b(v[0])];
@@ -72,7 +72,7 @@ function zt() {
72
72
  let u = 1;
73
73
  for (; u < v.length - 1; ) {
74
74
  if (v[u] === r) {
75
- const $ = f(v[u - 1], v[u + 1]);
75
+ const $ = l(v[u - 1], v[u + 1]);
76
76
  if ($ !== void 0) {
77
77
  v.splice(u - 1, 3, $);
78
78
  continue;
@@ -82,7 +82,7 @@ function zt() {
82
82
  u++;
83
83
  }
84
84
  }
85
- function f(v, u) {
85
+ function l(v, u) {
86
86
  if (u === '""')
87
87
  return v;
88
88
  if (v === '""')
@@ -108,7 +108,7 @@ function zt() {
108
108
  }
109
109
  e.safeStringify = b;
110
110
  function S(v) {
111
- return typeof v == "string" && e.IDENTIFIER.test(v) ? new a(`.${v}`) : l`[${v}]`;
111
+ return typeof v == "string" && e.IDENTIFIER.test(v) ? new a(`.${v}`) : f`[${v}]`;
112
112
  }
113
113
  e.getProperty = S;
114
114
  function E(v) {
@@ -129,8 +129,8 @@ function vr() {
129
129
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
130
130
  const t = /* @__PURE__ */ zt();
131
131
  class n extends Error {
132
- constructor(f) {
133
- super(`CodeGen: "code" for ${f} not defined`), this.value = f.value;
132
+ constructor(l) {
133
+ super(`CodeGen: "code" for ${l} not defined`), this.value = l.value;
134
134
  }
135
135
  }
136
136
  var a;
@@ -141,53 +141,53 @@ function vr() {
141
141
  let: new t.Name("let"),
142
142
  var: new t.Name("var")
143
143
  };
144
- class l {
145
- constructor({ prefixes: f, parent: m } = {}) {
146
- this._names = {}, this._prefixes = f, this._parent = m;
144
+ class f {
145
+ constructor({ prefixes: l, parent: m } = {}) {
146
+ this._names = {}, this._prefixes = l, this._parent = m;
147
147
  }
148
- toName(f) {
149
- return f instanceof t.Name ? f : this.name(f);
148
+ toName(l) {
149
+ return l instanceof t.Name ? l : this.name(l);
150
150
  }
151
- name(f) {
152
- return new t.Name(this._newName(f));
151
+ name(l) {
152
+ return new t.Name(this._newName(l));
153
153
  }
154
- _newName(f) {
155
- const m = this._names[f] || this._nameGroup(f);
156
- return `${f}${m.index++}`;
154
+ _newName(l) {
155
+ const m = this._names[l] || this._nameGroup(l);
156
+ return `${l}${m.index++}`;
157
157
  }
158
- _nameGroup(f) {
158
+ _nameGroup(l) {
159
159
  var m, g;
160
- if (!((g = (m = this._parent) === null || m === void 0 ? void 0 : m._prefixes) === null || g === void 0) && g.has(f) || this._prefixes && !this._prefixes.has(f))
161
- throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);
162
- return this._names[f] = { prefix: f, index: 0 };
160
+ if (!((g = (m = this._parent) === null || m === void 0 ? void 0 : m._prefixes) === null || g === void 0) && g.has(l) || this._prefixes && !this._prefixes.has(l))
161
+ throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);
162
+ return this._names[l] = { prefix: l, index: 0 };
163
163
  }
164
164
  }
165
- e.Scope = l;
165
+ e.Scope = f;
166
166
  class r extends t.Name {
167
- constructor(f, m) {
168
- super(m), this.prefix = f;
167
+ constructor(l, m) {
168
+ super(m), this.prefix = l;
169
169
  }
170
- setValue(f, { property: m, itemIndex: g }) {
171
- this.value = f, this.scopePath = (0, t._)`.${new t.Name(m)}[${g}]`;
170
+ setValue(l, { property: m, itemIndex: g }) {
171
+ this.value = l, this.scopePath = (0, t._)`.${new t.Name(m)}[${g}]`;
172
172
  }
173
173
  }
174
174
  e.ValueScopeName = r;
175
175
  const o = (0, t._)`\n`;
176
- class i extends l {
177
- constructor(f) {
178
- super(f), this._values = {}, this._scope = f.scope, this.opts = { ...f, _n: f.lines ? o : t.nil };
176
+ class i extends f {
177
+ constructor(l) {
178
+ super(l), this._values = {}, this._scope = l.scope, this.opts = { ...l, _n: l.lines ? o : t.nil };
179
179
  }
180
180
  get() {
181
181
  return this._scope;
182
182
  }
183
- name(f) {
184
- return new r(f, this._newName(f));
183
+ name(l) {
184
+ return new r(l, this._newName(l));
185
185
  }
186
- value(f, m) {
186
+ value(l, m) {
187
187
  var g;
188
188
  if (m.ref === void 0)
189
189
  throw new Error("CodeGen: ref must be passed in value");
190
- const _ = this.toName(f), { prefix: b } = _, S = (g = m.key) !== null && g !== void 0 ? g : m.ref;
190
+ const _ = this.toName(l), { prefix: b } = _, S = (g = m.key) !== null && g !== void 0 ? g : m.ref;
191
191
  let E = this._values[b];
192
192
  if (E) {
193
193
  const u = E.get(S);
@@ -199,29 +199,29 @@ function vr() {
199
199
  const y = this._scope[b] || (this._scope[b] = []), v = y.length;
200
200
  return y[v] = m.ref, _.setValue(m, { property: b, itemIndex: v }), _;
201
201
  }
202
- getValue(f, m) {
203
- const g = this._values[f];
202
+ getValue(l, m) {
203
+ const g = this._values[l];
204
204
  if (g)
205
205
  return g.get(m);
206
206
  }
207
- scopeRefs(f, m = this._values) {
207
+ scopeRefs(l, m = this._values) {
208
208
  return this._reduceValues(m, (g) => {
209
209
  if (g.scopePath === void 0)
210
210
  throw new Error(`CodeGen: name "${g}" has no value`);
211
- return (0, t._)`${f}${g.scopePath}`;
211
+ return (0, t._)`${l}${g.scopePath}`;
212
212
  });
213
213
  }
214
- scopeCode(f = this._values, m, g) {
215
- return this._reduceValues(f, (_) => {
214
+ scopeCode(l = this._values, m, g) {
215
+ return this._reduceValues(l, (_) => {
216
216
  if (_.value === void 0)
217
217
  throw new Error(`CodeGen: name "${_}" has no value`);
218
218
  return _.value.code;
219
219
  }, m, g);
220
220
  }
221
- _reduceValues(f, m, g = {}, _) {
221
+ _reduceValues(l, m, g = {}, _) {
222
222
  let b = t.nil;
223
- for (const S in f) {
224
- const E = f[S];
223
+ for (const S in l) {
224
+ const E = l[S];
225
225
  if (!E)
226
226
  continue;
227
227
  const y = g[S] = g[S] || /* @__PURE__ */ new Map();
@@ -269,15 +269,15 @@ function G() {
269
269
  } }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
270
270
  return a.Name;
271
271
  } });
272
- var l = /* @__PURE__ */ vr();
272
+ var f = /* @__PURE__ */ vr();
273
273
  Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
274
- return l.Scope;
274
+ return f.Scope;
275
275
  } }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
276
- return l.ValueScope;
276
+ return f.ValueScope;
277
277
  } }), Object.defineProperty(e, "ValueScopeName", { enumerable: !0, get: function() {
278
- return l.ValueScopeName;
278
+ return f.ValueScopeName;
279
279
  } }), Object.defineProperty(e, "varKinds", { enumerable: !0, get: function() {
280
- return l.varKinds;
280
+ return f.varKinds;
281
281
  } }), e.operators = {
282
282
  GT: new t._Code(">"),
283
283
  GTE: new t._Code(">="),
@@ -338,7 +338,7 @@ function G() {
338
338
  return `${this.lhs} ${this.op}= ${this.rhs};` + h;
339
339
  }
340
340
  }
341
- class f extends r {
341
+ class l extends r {
342
342
  constructor(h) {
343
343
  super(), this.label = h, this.names = {};
344
344
  }
@@ -408,7 +408,7 @@ function G() {
408
408
  return C.length > 0 ? this : void 0;
409
409
  }
410
410
  get names() {
411
- return this.nodes.reduce((h, R) => q(h, R.names), {});
411
+ return this.nodes.reduce((h, R) => O(h, R.names), {});
412
412
  }
413
413
  }
414
414
  class S extends b {
@@ -451,7 +451,7 @@ function G() {
451
451
  }
452
452
  get names() {
453
453
  const h = super.names;
454
- return M(h, this.condition), this.else && q(h, this.else.names), h;
454
+ return M(h, this.condition), this.else && O(h, this.else.names), h;
455
455
  }
456
456
  }
457
457
  v.kind = "if";
@@ -470,7 +470,7 @@ function G() {
470
470
  return this.iteration = H(this.iteration, h, R), this;
471
471
  }
472
472
  get names() {
473
- return q(super.names, this.iteration.names);
473
+ return O(super.names, this.iteration.names);
474
474
  }
475
475
  }
476
476
  class w extends u {
@@ -498,7 +498,7 @@ function G() {
498
498
  return this.iterable = H(this.iterable, h, R), this;
499
499
  }
500
500
  get names() {
501
- return q(super.names, this.iterable.names);
501
+ return O(super.names, this.iterable.names);
502
502
  }
503
503
  }
504
504
  class c extends S {
@@ -531,7 +531,7 @@ function G() {
531
531
  }
532
532
  get names() {
533
533
  const h = super.names;
534
- return this.catch && q(h, this.catch.names), this.finally && q(h, this.finally.names), h;
534
+ return this.catch && O(h, this.catch.names), this.finally && O(h, this.finally.names), h;
535
535
  }
536
536
  }
537
537
  class P extends S {
@@ -549,7 +549,7 @@ function G() {
549
549
  }
550
550
  }
551
551
  N.kind = "finally";
552
- class T {
552
+ class A {
553
553
  constructor(h, R = {}) {
554
554
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...R, _n: R.lines ? `
555
555
  ` : "" }, this._extScope = h, this._scope = new n.Scope({ parent: h }), this._nodes = [new E()];
@@ -675,7 +675,7 @@ function G() {
675
675
  }
676
676
  // `label` statement
677
677
  label(h) {
678
- return this._leafNode(new f(h));
678
+ return this._leafNode(new l(h));
679
679
  }
680
680
  // `break` statement
681
681
  break(h) {
@@ -759,21 +759,21 @@ function G() {
759
759
  R[R.length - 1] = h;
760
760
  }
761
761
  }
762
- e.CodeGen = T;
763
- function q(A, h) {
762
+ e.CodeGen = A;
763
+ function O(T, h) {
764
764
  for (const R in h)
765
- A[R] = (A[R] || 0) + (h[R] || 0);
766
- return A;
765
+ T[R] = (T[R] || 0) + (h[R] || 0);
766
+ return T;
767
767
  }
768
- function M(A, h) {
769
- return h instanceof t._CodeOrName ? q(A, h.names) : A;
768
+ function M(T, h) {
769
+ return h instanceof t._CodeOrName ? O(T, h.names) : T;
770
770
  }
771
- function H(A, h, R) {
772
- if (A instanceof t.Name)
773
- return C(A);
774
- if (!K(A))
775
- return A;
776
- return new t._Code(A._items.reduce((L, Q) => (Q instanceof t.Name && (Q = C(Q)), Q instanceof t._Code ? L.push(...Q._items) : L.push(Q), L), []));
771
+ function H(T, h, R) {
772
+ if (T instanceof t.Name)
773
+ return C(T);
774
+ if (!K(T))
775
+ return T;
776
+ return new t._Code(T._items.reduce((L, Q) => (Q instanceof t.Name && (Q = C(Q)), Q instanceof t._Code ? L.push(...Q._items) : L.push(Q), L), []));
777
777
  function C(L) {
778
778
  const Q = R[L.str];
779
779
  return Q === void 0 || h[L.str] !== 1 ? L : (delete h[L.str], Q);
@@ -782,29 +782,29 @@ function G() {
782
782
  return L instanceof t._Code && L._items.some((Q) => Q instanceof t.Name && h[Q.str] === 1 && R[Q.str] !== void 0);
783
783
  }
784
784
  }
785
- function X(A, h) {
785
+ function X(T, h) {
786
786
  for (const R in h)
787
- A[R] = (A[R] || 0) - (h[R] || 0);
787
+ T[R] = (T[R] || 0) - (h[R] || 0);
788
788
  }
789
- function x(A) {
790
- return typeof A == "boolean" || typeof A == "number" || A === null ? !A : (0, t._)`!${z(A)}`;
789
+ function x(T) {
790
+ return typeof T == "boolean" || typeof T == "number" || T === null ? !T : (0, t._)`!${z(T)}`;
791
791
  }
792
792
  e.not = x;
793
- const ue = O(e.operators.AND);
794
- function B(...A) {
795
- return A.reduce(ue);
793
+ const ue = q(e.operators.AND);
794
+ function B(...T) {
795
+ return T.reduce(ue);
796
796
  }
797
797
  e.and = B;
798
- const le = O(e.operators.OR);
799
- function V(...A) {
800
- return A.reduce(le);
798
+ const me = q(e.operators.OR);
799
+ function V(...T) {
800
+ return T.reduce(me);
801
801
  }
802
802
  e.or = V;
803
- function O(A) {
804
- return (h, R) => h === t.nil ? R : R === t.nil ? h : (0, t._)`${z(h)} ${A} ${z(R)}`;
803
+ function q(T) {
804
+ return (h, R) => h === t.nil ? R : R === t.nil ? h : (0, t._)`${z(h)} ${T} ${z(R)}`;
805
805
  }
806
- function z(A) {
807
- return A instanceof t.Name ? A : (0, t._)`(${A})`;
806
+ function z(T) {
807
+ return T instanceof t.Name ? T : (0, t._)`(${T})`;
808
808
  }
809
809
  })(xt)), xt;
810
810
  }
@@ -821,10 +821,10 @@ function Z() {
821
821
  }
822
822
  J.toHash = n;
823
823
  function a(s, c) {
824
- return typeof c == "boolean" ? c : Object.keys(c).length === 0 ? !0 : (l(s, c), !r(c, s.self.RULES.all));
824
+ return typeof c == "boolean" ? c : Object.keys(c).length === 0 ? !0 : (f(s, c), !r(c, s.self.RULES.all));
825
825
  }
826
826
  J.alwaysValidSchema = a;
827
- function l(s, c = s.schema) {
827
+ function f(s, c = s.schema) {
828
828
  const { opts: p, self: k } = s;
829
829
  if (!p.strictSchema || typeof c == "boolean")
830
830
  return;
@@ -832,7 +832,7 @@ function Z() {
832
832
  for (const N in c)
833
833
  P[N] || w(s, `unknown keyword: "${N}"`);
834
834
  }
835
- J.checkUnknownRules = l;
835
+ J.checkUnknownRules = f;
836
836
  function r(s, c) {
837
837
  if (typeof s == "boolean")
838
838
  return !s;
@@ -865,10 +865,10 @@ function Z() {
865
865
  return g(decodeURIComponent(s));
866
866
  }
867
867
  J.unescapeFragment = d;
868
- function f(s) {
868
+ function l(s) {
869
869
  return encodeURIComponent(m(s));
870
870
  }
871
- J.escapeFragment = f;
871
+ J.escapeFragment = l;
872
872
  function m(s) {
873
873
  return typeof s == "number" ? `${s}` : s.replace(/~/g, "~0").replace(/\//g, "~1");
874
874
  }
@@ -886,9 +886,9 @@ function Z() {
886
886
  }
887
887
  J.eachItem = _;
888
888
  function b({ mergeNames: s, mergeToName: c, mergeValues: p, resultToName: k }) {
889
- return (P, N, T, q) => {
890
- const M = T === void 0 ? N : T instanceof e.Name ? (N instanceof e.Name ? s(P, N, T) : c(P, N, T), T) : N instanceof e.Name ? (c(P, T, N), N) : p(N, T);
891
- return q === e.Name && !(M instanceof e.Name) ? k(P, M) : M;
889
+ return (P, N, A, O) => {
890
+ const M = A === void 0 ? N : A instanceof e.Name ? (N instanceof e.Name ? s(P, N, A) : c(P, N, A), A) : N instanceof e.Name ? (c(P, A, N), N) : p(N, A);
891
+ return O === e.Name && !(M instanceof e.Name) ? k(P, M) : M;
892
892
  };
893
893
  }
894
894
  J.mergeEvaluated = {
@@ -994,14 +994,14 @@ function Lt() {
994
994
  }, e.keyword$DataError = {
995
995
  message: ({ keyword: y, schemaType: v }) => v ? (0, t.str)`"${y}" keyword must be ${v} ($data)` : (0, t.str)`"${y}" keyword is invalid ($data)`
996
996
  };
997
- function l(y, v = e.keywordError, u, $) {
997
+ function f(y, v = e.keywordError, u, $) {
998
998
  const { it: w } = y, { gen: s, compositeRule: c, allErrors: p } = w, k = g(y, v, u);
999
- $ ?? (c || p) ? d(s, k) : f(w, (0, t._)`[${k}]`);
999
+ $ ?? (c || p) ? d(s, k) : l(w, (0, t._)`[${k}]`);
1000
1000
  }
1001
- e.reportError = l;
1001
+ e.reportError = f;
1002
1002
  function r(y, v = e.keywordError, u) {
1003
1003
  const { it: $ } = y, { gen: w, compositeRule: s, allErrors: c } = $, p = g(y, v, u);
1004
- d(w, p), s || c || f($, a.default.vErrors);
1004
+ d(w, p), s || c || l($, a.default.vErrors);
1005
1005
  }
1006
1006
  e.reportExtraError = r;
1007
1007
  function o(y, v) {
@@ -1021,7 +1021,7 @@ function Lt() {
1021
1021
  const u = y.const("err", v);
1022
1022
  y.if((0, t._)`${a.default.vErrors} === null`, () => y.assign(a.default.vErrors, (0, t._)`[${u}]`), (0, t._)`${a.default.vErrors}.push(${u})`), y.code((0, t._)`${a.default.errors}++`);
1023
1023
  }
1024
- function f(y, v) {
1024
+ function l(y, v) {
1025
1025
  const { gen: u, validateName: $, schemaEnv: w } = y;
1026
1026
  w.$async ? u.throw((0, t._)`new ${y.ValidationError}(${v})`) : (u.assign((0, t._)`${$}.errors`, v), u.return(!1));
1027
1027
  }
@@ -1055,31 +1055,31 @@ function Lt() {
1055
1055
  return u && (w = (0, t.str)`${w}${(0, n.getErrorPath)(u, n.Type.Str)}`), [m.schemaPath, w];
1056
1056
  }
1057
1057
  function E(y, { params: v, message: u }, $) {
1058
- const { keyword: w, data: s, schemaValue: c, it: p } = y, { opts: k, propertyName: P, topSchemaRef: N, schemaPath: T } = p;
1059
- $.push([m.keyword, w], [m.params, typeof v == "function" ? v(y) : v || (0, t._)`{}`]), k.messages && $.push([m.message, typeof u == "function" ? u(y) : u]), k.verbose && $.push([m.schema, c], [m.parentSchema, (0, t._)`${N}${T}`], [a.default.data, s]), P && $.push([m.propertyName, P]);
1058
+ const { keyword: w, data: s, schemaValue: c, it: p } = y, { opts: k, propertyName: P, topSchemaRef: N, schemaPath: A } = p;
1059
+ $.push([m.keyword, w], [m.params, typeof v == "function" ? v(y) : v || (0, t._)`{}`]), k.messages && $.push([m.message, typeof u == "function" ? u(y) : u]), k.verbose && $.push([m.schema, c], [m.parentSchema, (0, t._)`${N}${A}`], [a.default.data, s]), P && $.push([m.propertyName, P]);
1060
1060
  }
1061
1061
  })(Xt)), Xt;
1062
1062
  }
1063
1063
  var wr;
1064
- function Pa() {
1064
+ function Ea() {
1065
1065
  if (wr) return we;
1066
1066
  wr = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.boolOrEmptySchema = we.topBoolOrEmptySchema = void 0;
1067
1067
  const e = /* @__PURE__ */ Lt(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ ye(), a = {
1068
1068
  message: "boolean schema is false"
1069
1069
  };
1070
- function l(i) {
1071
- const { gen: d, schema: f, validateName: m } = i;
1072
- f === !1 ? o(i, !1) : typeof f == "object" && f.$async === !0 ? d.return(n.default.data) : (d.assign((0, t._)`${m}.errors`, null), d.return(!0));
1070
+ function f(i) {
1071
+ const { gen: d, schema: l, validateName: m } = i;
1072
+ l === !1 ? o(i, !1) : typeof l == "object" && l.$async === !0 ? d.return(n.default.data) : (d.assign((0, t._)`${m}.errors`, null), d.return(!0));
1073
1073
  }
1074
- we.topBoolOrEmptySchema = l;
1074
+ we.topBoolOrEmptySchema = f;
1075
1075
  function r(i, d) {
1076
- const { gen: f, schema: m } = i;
1077
- m === !1 ? (f.var(d, !1), o(i)) : f.var(d, !0);
1076
+ const { gen: l, schema: m } = i;
1077
+ m === !1 ? (l.var(d, !1), o(i)) : l.var(d, !0);
1078
1078
  }
1079
1079
  we.boolOrEmptySchema = r;
1080
1080
  function o(i, d) {
1081
- const { gen: f, data: m } = i, g = {
1082
- gen: f,
1081
+ const { gen: l, data: m } = i, g = {
1082
+ gen: l,
1083
1083
  keyword: "false schema",
1084
1084
  data: m,
1085
1085
  schema: !1,
@@ -1097,20 +1097,20 @@ function Zn() {
1097
1097
  if (Sr) return Se;
1098
1098
  Sr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.getRules = Se.isJSONType = void 0;
1099
1099
  const e = ["string", "number", "integer", "boolean", "null", "object", "array"], t = new Set(e);
1100
- function n(l) {
1101
- return typeof l == "string" && t.has(l);
1100
+ function n(f) {
1101
+ return typeof f == "string" && t.has(f);
1102
1102
  }
1103
1103
  Se.isJSONType = n;
1104
1104
  function a() {
1105
- const l = {
1105
+ const f = {
1106
1106
  number: { type: "number", rules: [] },
1107
1107
  string: { type: "string", rules: [] },
1108
1108
  array: { type: "array", rules: [] },
1109
1109
  object: { type: "object", rules: [] }
1110
1110
  };
1111
1111
  return {
1112
- types: { ...l, integer: !0, boolean: !0, null: !0 },
1113
- rules: [{ rules: [] }, l.number, l.string, l.array, l.object],
1112
+ types: { ...f, integer: !0, boolean: !0, null: !0 },
1113
+ rules: [{ rules: [] }, f.number, f.string, f.array, f.object],
1114
1114
  post: { rules: [] },
1115
1115
  all: {},
1116
1116
  keywords: {}
@@ -1122,18 +1122,18 @@ var _e = {}, Pr;
1122
1122
  function Yn() {
1123
1123
  if (Pr) return _e;
1124
1124
  Pr = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.shouldUseRule = _e.shouldUseGroup = _e.schemaHasRulesForType = void 0;
1125
- function e({ schema: a, self: l }, r) {
1126
- const o = l.RULES.types[r];
1125
+ function e({ schema: a, self: f }, r) {
1126
+ const o = f.RULES.types[r];
1127
1127
  return o && o !== !0 && t(a, o);
1128
1128
  }
1129
1129
  _e.schemaHasRulesForType = e;
1130
- function t(a, l) {
1131
- return l.rules.some((r) => n(a, r));
1130
+ function t(a, f) {
1131
+ return f.rules.some((r) => n(a, r));
1132
1132
  }
1133
1133
  _e.shouldUseGroup = t;
1134
- function n(a, l) {
1134
+ function n(a, f) {
1135
1135
  var r;
1136
- return a[l.keyword] !== void 0 || ((r = l.definition.implements) === null || r === void 0 ? void 0 : r.some((o) => a[o] !== void 0));
1136
+ return a[f.keyword] !== void 0 || ((r = f.definition.implements) === null || r === void 0 ? void 0 : r.some((o) => a[o] !== void 0));
1137
1137
  }
1138
1138
  return _e.shouldUseRule = n, _e;
1139
1139
  }
@@ -1141,7 +1141,7 @@ var Er;
1141
1141
  function Vt() {
1142
1142
  if (Er) return ae;
1143
1143
  Er = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.reportTypeError = ae.checkDataTypes = ae.checkDataType = ae.coerceAndCheckDataType = ae.getJSONTypes = ae.getSchemaTypes = ae.DataType = void 0;
1144
- const e = /* @__PURE__ */ Zn(), t = /* @__PURE__ */ Yn(), n = /* @__PURE__ */ Lt(), a = /* @__PURE__ */ G(), l = /* @__PURE__ */ Z();
1144
+ const e = /* @__PURE__ */ Zn(), t = /* @__PURE__ */ Yn(), n = /* @__PURE__ */ Lt(), a = /* @__PURE__ */ G(), f = /* @__PURE__ */ Z();
1145
1145
  var r;
1146
1146
  (function(u) {
1147
1147
  u[u.Correct = 0] = "Correct", u[u.Wrong = 1] = "Wrong";
@@ -1177,20 +1177,20 @@ function Vt() {
1177
1177
  return k;
1178
1178
  }
1179
1179
  ae.coerceAndCheckDataType = d;
1180
- const f = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1180
+ const l = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1181
1181
  function m(u, $) {
1182
- return $ ? u.filter((w) => f.has(w) || $ === "array" && w === "array") : [];
1182
+ return $ ? u.filter((w) => l.has(w) || $ === "array" && w === "array") : [];
1183
1183
  }
1184
1184
  function g(u, $, w) {
1185
1185
  const { gen: s, data: c, opts: p } = u, k = s.let("dataType", (0, a._)`typeof ${c}`), P = s.let("coerced", (0, a._)`undefined`);
1186
1186
  p.coerceTypes === "array" && s.if((0, a._)`${k} == 'object' && Array.isArray(${c}) && ${c}.length == 1`, () => s.assign(c, (0, a._)`${c}[0]`).assign(k, (0, a._)`typeof ${c}`).if(S($, c, p.strictNumbers), () => s.assign(P, c))), s.if((0, a._)`${P} !== undefined`);
1187
- for (const T of w)
1188
- (f.has(T) || T === "array" && p.coerceTypes === "array") && N(T);
1187
+ for (const A of w)
1188
+ (l.has(A) || A === "array" && p.coerceTypes === "array") && N(A);
1189
1189
  s.else(), y(u), s.endIf(), s.if((0, a._)`${P} !== undefined`, () => {
1190
1190
  s.assign(c, P), _(u, P);
1191
1191
  });
1192
- function N(T) {
1193
- switch (T) {
1192
+ function N(A) {
1193
+ switch (A) {
1194
1194
  case "string":
1195
1195
  s.elseIf((0, a._)`${k} == "number" || ${k} == "boolean"`).assign(P, (0, a._)`"" + ${c}`).elseIf((0, a._)`${c} === null`).assign(P, (0, a._)`""`);
1196
1196
  return;
@@ -1248,7 +1248,7 @@ function Vt() {
1248
1248
  if (u.length === 1)
1249
1249
  return b(u[0], $, w, s);
1250
1250
  let c;
1251
- const p = (0, l.toHash)(u);
1251
+ const p = (0, f.toHash)(u);
1252
1252
  if (p.array && p.object) {
1253
1253
  const k = (0, a._)`typeof ${$} != "object"`;
1254
1254
  c = p.null ? k : (0, a._)`!${$} || ${k}`, delete p.null, delete p.array, delete p.object;
@@ -1270,7 +1270,7 @@ function Vt() {
1270
1270
  }
1271
1271
  ae.reportTypeError = y;
1272
1272
  function v(u) {
1273
- const { gen: $, data: w, schema: s } = u, c = (0, l.schemaRefOrVal)(u, s, "type");
1273
+ const { gen: $, data: w, schema: s } = u, c = (0, f.schemaRefOrVal)(u, s, "type");
1274
1274
  return {
1275
1275
  gen: $,
1276
1276
  keyword: "type",
@@ -1286,25 +1286,25 @@ function Vt() {
1286
1286
  return ae;
1287
1287
  }
1288
1288
  var qe = {}, Rr;
1289
- function Ea() {
1289
+ function Ra() {
1290
1290
  if (Rr) return qe;
1291
1291
  Rr = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.assignDefaults = void 0;
1292
1292
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z();
1293
- function n(l, r) {
1294
- const { properties: o, items: i } = l.schema;
1293
+ function n(f, r) {
1294
+ const { properties: o, items: i } = f.schema;
1295
1295
  if (r === "object" && o)
1296
1296
  for (const d in o)
1297
- a(l, d, o[d].default);
1298
- else r === "array" && Array.isArray(i) && i.forEach((d, f) => a(l, f, d.default));
1297
+ a(f, d, o[d].default);
1298
+ else r === "array" && Array.isArray(i) && i.forEach((d, l) => a(f, l, d.default));
1299
1299
  }
1300
1300
  qe.assignDefaults = n;
1301
- function a(l, r, o) {
1302
- const { gen: i, compositeRule: d, data: f, opts: m } = l;
1301
+ function a(f, r, o) {
1302
+ const { gen: i, compositeRule: d, data: l, opts: m } = f;
1303
1303
  if (o === void 0)
1304
1304
  return;
1305
- const g = (0, e._)`${f}${(0, e.getProperty)(r)}`;
1305
+ const g = (0, e._)`${l}${(0, e.getProperty)(r)}`;
1306
1306
  if (d) {
1307
- (0, t.checkStrictMode)(l, `default is ignored for: ${g}`);
1307
+ (0, t.checkStrictMode)(f, `default is ignored for: ${g}`);
1308
1308
  return;
1309
1309
  }
1310
1310
  let _ = (0, e._)`${g} === undefined`;
@@ -1312,18 +1312,18 @@ function Ea() {
1312
1312
  }
1313
1313
  return qe;
1314
1314
  }
1315
- var he = {}, ee = {}, kr;
1315
+ var pe = {}, ee = {}, kr;
1316
1316
  function ve() {
1317
1317
  if (kr) return ee;
1318
1318
  kr = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.validateUnion = ee.validateArray = ee.usePattern = ee.callValidateCode = ee.schemaProperties = ee.allSchemaProperties = ee.noPropertyInData = ee.propertyInData = ee.isOwnProperty = ee.hasPropFunc = ee.reportMissingProp = ee.checkMissingProp = ee.checkReportMissingProp = void 0;
1319
1319
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ ye(), a = /* @__PURE__ */ Z();
1320
- function l(u, $) {
1320
+ function f(u, $) {
1321
1321
  const { gen: w, data: s, it: c } = u;
1322
1322
  w.if(m(w, s, $, c.opts.ownProperties), () => {
1323
1323
  u.setParams({ missingProperty: (0, e._)`${$}` }, !0), u.error();
1324
1324
  });
1325
1325
  }
1326
- ee.checkReportMissingProp = l;
1326
+ ee.checkReportMissingProp = f;
1327
1327
  function r({ gen: u, data: $, it: { opts: w } }, s, c) {
1328
1328
  return (0, e.or)(...s.map((p) => (0, e.and)(m(u, $, p, w.ownProperties), (0, e._)`${c} = ${p}`)));
1329
1329
  }
@@ -1344,11 +1344,11 @@ function ve() {
1344
1344
  return (0, e._)`${i(u)}.call(${$}, ${w})`;
1345
1345
  }
1346
1346
  ee.isOwnProperty = d;
1347
- function f(u, $, w, s) {
1347
+ function l(u, $, w, s) {
1348
1348
  const c = (0, e._)`${$}${(0, e.getProperty)(w)} !== undefined`;
1349
1349
  return s ? (0, e._)`${c} && ${d(u, $, w)}` : c;
1350
1350
  }
1351
- ee.propertyInData = f;
1351
+ ee.propertyInData = l;
1352
1352
  function m(u, $, w, s) {
1353
1353
  const c = (0, e._)`${$}${(0, e.getProperty)(w)} === undefined`;
1354
1354
  return s ? (0, e.or)(c, (0, e.not)(d(u, $, w))) : c;
@@ -1362,15 +1362,15 @@ function ve() {
1362
1362
  return g($).filter((w) => !(0, t.alwaysValidSchema)(u, $[w]));
1363
1363
  }
1364
1364
  ee.schemaProperties = _;
1365
- function b({ schemaCode: u, data: $, it: { gen: w, topSchemaRef: s, schemaPath: c, errorPath: p }, it: k }, P, N, T) {
1366
- const q = T ? (0, e._)`${u}, ${$}, ${s}${c}` : $, M = [
1365
+ function b({ schemaCode: u, data: $, it: { gen: w, topSchemaRef: s, schemaPath: c, errorPath: p }, it: k }, P, N, A) {
1366
+ const O = A ? (0, e._)`${u}, ${$}, ${s}${c}` : $, M = [
1367
1367
  [n.default.instancePath, (0, e.strConcat)(n.default.instancePath, p)],
1368
1368
  [n.default.parentData, k.parentData],
1369
1369
  [n.default.parentDataProperty, k.parentDataProperty],
1370
1370
  [n.default.rootData, n.default.rootData]
1371
1371
  ];
1372
1372
  k.opts.dynamicRef && M.push([n.default.dynamicAnchors, n.default.dynamicAnchors]);
1373
- const H = (0, e._)`${q}, ${w.object(...M)}`;
1373
+ const H = (0, e._)`${O}, ${w.object(...M)}`;
1374
1374
  return N !== e.nil ? (0, e._)`${P}.call(${N}, ${H})` : (0, e._)`${P}(${H})`;
1375
1375
  }
1376
1376
  ee.callValidateCode = b;
@@ -1393,10 +1393,10 @@ function ve() {
1393
1393
  return $.var(p, !0), k(() => $.break()), p;
1394
1394
  function k(P) {
1395
1395
  const N = $.const("len", (0, e._)`${w}.length`);
1396
- $.forRange("i", 0, N, (T) => {
1396
+ $.forRange("i", 0, N, (A) => {
1397
1397
  u.subschema({
1398
1398
  keyword: s,
1399
- dataProp: T,
1399
+ dataProp: A,
1400
1400
  dataPropType: t.Type.Num
1401
1401
  }, p), $.if((0, e.not)(p), P);
1402
1402
  });
@@ -1410,24 +1410,24 @@ function ve() {
1410
1410
  if (w.some((N) => (0, t.alwaysValidSchema)(c, N)) && !c.opts.unevaluated)
1411
1411
  return;
1412
1412
  const k = $.let("valid", !1), P = $.name("_valid");
1413
- $.block(() => w.forEach((N, T) => {
1414
- const q = u.subschema({
1413
+ $.block(() => w.forEach((N, A) => {
1414
+ const O = u.subschema({
1415
1415
  keyword: s,
1416
- schemaProp: T,
1416
+ schemaProp: A,
1417
1417
  compositeRule: !0
1418
1418
  }, P);
1419
- $.assign(k, (0, e._)`${k} || ${P}`), u.mergeValidEvaluated(q, P) || $.if((0, e.not)(k));
1419
+ $.assign(k, (0, e._)`${k} || ${P}`), u.mergeValidEvaluated(O, P) || $.if((0, e.not)(k));
1420
1420
  })), u.result(k, () => u.reset(), () => u.error(!0));
1421
1421
  }
1422
1422
  return ee.validateUnion = v, ee;
1423
1423
  }
1424
1424
  var jr;
1425
- function Ra() {
1426
- if (jr) return he;
1427
- jr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.validateKeywordUsage = he.validSchemaType = he.funcKeywordCode = he.macroKeywordCode = void 0;
1425
+ function ka() {
1426
+ if (jr) return pe;
1427
+ jr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.validateKeywordUsage = pe.validSchemaType = pe.funcKeywordCode = pe.macroKeywordCode = void 0;
1428
1428
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ ye(), n = /* @__PURE__ */ ve(), a = /* @__PURE__ */ Lt();
1429
- function l(_, b) {
1430
- const { gen: S, keyword: E, schema: y, parentSchema: v, it: u } = _, $ = b.macro.call(u.self, y, v, u), w = f(S, E, $);
1429
+ function f(_, b) {
1430
+ const { gen: S, keyword: E, schema: y, parentSchema: v, it: u } = _, $ = b.macro.call(u.self, y, v, u), w = l(S, E, $);
1431
1431
  u.opts.validateSchema !== !1 && u.self.validateSchema($, !0);
1432
1432
  const s = S.name("valid");
1433
1433
  _.subschema({
@@ -1438,39 +1438,39 @@ function Ra() {
1438
1438
  compositeRule: !0
1439
1439
  }, s), _.pass(s, () => _.error(!0));
1440
1440
  }
1441
- he.macroKeywordCode = l;
1441
+ pe.macroKeywordCode = f;
1442
1442
  function r(_, b) {
1443
1443
  var S;
1444
1444
  const { gen: E, keyword: y, schema: v, parentSchema: u, $data: $, it: w } = _;
1445
1445
  d(w, b);
1446
- const s = !$ && b.compile ? b.compile.call(w.self, v, u, w) : b.validate, c = f(E, y, s), p = E.let("valid");
1446
+ const s = !$ && b.compile ? b.compile.call(w.self, v, u, w) : b.validate, c = l(E, y, s), p = E.let("valid");
1447
1447
  _.block$data(p, k), _.ok((S = b.valid) !== null && S !== void 0 ? S : p);
1448
1448
  function k() {
1449
1449
  if (b.errors === !1)
1450
- T(), b.modifying && o(_), q(() => _.error());
1450
+ A(), b.modifying && o(_), O(() => _.error());
1451
1451
  else {
1452
1452
  const M = b.async ? P() : N();
1453
- b.modifying && o(_), q(() => i(_, M));
1453
+ b.modifying && o(_), O(() => i(_, M));
1454
1454
  }
1455
1455
  }
1456
1456
  function P() {
1457
1457
  const M = E.let("ruleErrs", null);
1458
- return E.try(() => T((0, e._)`await `), (H) => E.assign(p, !1).if((0, e._)`${H} instanceof ${w.ValidationError}`, () => E.assign(M, (0, e._)`${H}.errors`), () => E.throw(H))), M;
1458
+ return E.try(() => A((0, e._)`await `), (H) => E.assign(p, !1).if((0, e._)`${H} instanceof ${w.ValidationError}`, () => E.assign(M, (0, e._)`${H}.errors`), () => E.throw(H))), M;
1459
1459
  }
1460
1460
  function N() {
1461
1461
  const M = (0, e._)`${c}.errors`;
1462
- return E.assign(M, null), T(e.nil), M;
1462
+ return E.assign(M, null), A(e.nil), M;
1463
1463
  }
1464
- function T(M = b.async ? (0, e._)`await ` : e.nil) {
1464
+ function A(M = b.async ? (0, e._)`await ` : e.nil) {
1465
1465
  const H = w.opts.passContext ? t.default.this : t.default.self, X = !("compile" in b && !$ || b.schema === !1);
1466
1466
  E.assign(p, (0, e._)`${M}${(0, n.callValidateCode)(_, c, H, X)}`, b.modifying);
1467
1467
  }
1468
- function q(M) {
1468
+ function O(M) {
1469
1469
  var H;
1470
1470
  E.if((0, e.not)((H = b.valid) !== null && H !== void 0 ? H : p), M);
1471
1471
  }
1472
1472
  }
1473
- he.funcKeywordCode = r;
1473
+ pe.funcKeywordCode = r;
1474
1474
  function o(_) {
1475
1475
  const { gen: b, data: S, it: E } = _;
1476
1476
  b.if(E.parentData, () => b.assign(S, (0, e._)`${E.parentData}[${E.parentDataProperty}]`));
@@ -1485,7 +1485,7 @@ function Ra() {
1485
1485
  if (b.async && !_.$async)
1486
1486
  throw new Error("async keyword in sync schema");
1487
1487
  }
1488
- function f(_, b, S) {
1488
+ function l(_, b, S) {
1489
1489
  if (S === void 0)
1490
1490
  throw new Error(`keyword "${b}" failed to compile`);
1491
1491
  return _.scopeValue("keyword", typeof S == "function" ? { ref: S } : { ref: S, code: (0, e.stringify)(S) });
@@ -1493,7 +1493,7 @@ function Ra() {
1493
1493
  function m(_, b, S = !1) {
1494
1494
  return !b.length || b.some((E) => E === "array" ? Array.isArray(_) : E === "object" ? _ && typeof _ == "object" && !Array.isArray(_) : typeof _ == E || S && typeof _ > "u");
1495
1495
  }
1496
- he.validSchemaType = m;
1496
+ pe.validSchemaType = m;
1497
1497
  function g({ schema: _, opts: b, self: S, errSchemaPath: E }, y, v) {
1498
1498
  if (Array.isArray(y.keyword) ? !y.keyword.includes(v) : y.keyword !== v)
1499
1499
  throw new Error("ajv implementation error");
@@ -1508,14 +1508,14 @@ function Ra() {
1508
1508
  throw new Error(w);
1509
1509
  }
1510
1510
  }
1511
- return he.validateKeywordUsage = g, he;
1511
+ return pe.validateKeywordUsage = g, pe;
1512
1512
  }
1513
1513
  var $e = {}, Nr;
1514
- function ka() {
1514
+ function ja() {
1515
1515
  if (Nr) return $e;
1516
1516
  Nr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.extendSubschemaMode = $e.extendSubschemaData = $e.getSubschema = void 0;
1517
1517
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z();
1518
- function n(r, { keyword: o, schemaProp: i, schema: d, schemaPath: f, errSchemaPath: m, topSchemaRef: g }) {
1518
+ function n(r, { keyword: o, schemaProp: i, schema: d, schemaPath: l, errSchemaPath: m, topSchemaRef: g }) {
1519
1519
  if (o !== void 0 && d !== void 0)
1520
1520
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1521
1521
  if (o !== void 0) {
@@ -1531,11 +1531,11 @@ function ka() {
1531
1531
  };
1532
1532
  }
1533
1533
  if (d !== void 0) {
1534
- if (f === void 0 || m === void 0 || g === void 0)
1534
+ if (l === void 0 || m === void 0 || g === void 0)
1535
1535
  throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');
1536
1536
  return {
1537
1537
  schema: d,
1538
- schemaPath: f,
1538
+ schemaPath: l,
1539
1539
  topSchemaRef: g,
1540
1540
  errSchemaPath: m
1541
1541
  };
@@ -1543,16 +1543,16 @@ function ka() {
1543
1543
  throw new Error('either "keyword" or "schema" must be passed');
1544
1544
  }
1545
1545
  $e.getSubschema = n;
1546
- function a(r, o, { dataProp: i, dataPropType: d, data: f, dataTypes: m, propertyName: g }) {
1547
- if (f !== void 0 && i !== void 0)
1546
+ function a(r, o, { dataProp: i, dataPropType: d, data: l, dataTypes: m, propertyName: g }) {
1547
+ if (l !== void 0 && i !== void 0)
1548
1548
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1549
1549
  const { gen: _ } = o;
1550
1550
  if (i !== void 0) {
1551
1551
  const { errorPath: S, dataPathArr: E, opts: y } = o, v = _.let("data", (0, e._)`${o.data}${(0, e.getProperty)(i)}`, !0);
1552
1552
  b(v), r.errorPath = (0, e.str)`${S}${(0, t.getErrorPath)(i, d, y.jsPropertySyntax)}`, r.parentDataProperty = (0, e._)`${i}`, r.dataPathArr = [...E, r.parentDataProperty];
1553
1553
  }
1554
- if (f !== void 0) {
1555
- const S = f instanceof e.Name ? f : _.let("data", f, !0);
1554
+ if (l !== void 0) {
1555
+ const S = l instanceof e.Name ? l : _.let("data", l, !0);
1556
1556
  b(S), g !== void 0 && (r.propertyName = g);
1557
1557
  }
1558
1558
  m && (r.dataTypes = m);
@@ -1561,10 +1561,10 @@ function ka() {
1561
1561
  }
1562
1562
  }
1563
1563
  $e.extendSubschemaData = a;
1564
- function l(r, { jtdDiscriminator: o, jtdMetadata: i, compositeRule: d, createErrors: f, allErrors: m }) {
1565
- d !== void 0 && (r.compositeRule = d), f !== void 0 && (r.createErrors = f), m !== void 0 && (r.allErrors = m), r.jtdDiscriminator = o, r.jtdMetadata = i;
1564
+ function f(r, { jtdDiscriminator: o, jtdMetadata: i, compositeRule: d, createErrors: l, allErrors: m }) {
1565
+ d !== void 0 && (r.compositeRule = d), l !== void 0 && (r.createErrors = l), m !== void 0 && (r.allErrors = m), r.jtdDiscriminator = o, r.jtdMetadata = i;
1566
1566
  }
1567
- return $e.extendSubschemaMode = l, $e;
1567
+ return $e.extendSubschemaMode = f, $e;
1568
1568
  }
1569
1569
  var se = {}, rr, Or;
1570
1570
  function Qn() {
@@ -1572,21 +1572,21 @@ function Qn() {
1572
1572
  if (t === n) return !0;
1573
1573
  if (t && n && typeof t == "object" && typeof n == "object") {
1574
1574
  if (t.constructor !== n.constructor) return !1;
1575
- var a, l, r;
1575
+ var a, f, r;
1576
1576
  if (Array.isArray(t)) {
1577
1577
  if (a = t.length, a != n.length) return !1;
1578
- for (l = a; l-- !== 0; )
1579
- if (!e(t[l], n[l])) return !1;
1578
+ for (f = a; f-- !== 0; )
1579
+ if (!e(t[f], n[f])) return !1;
1580
1580
  return !0;
1581
1581
  }
1582
1582
  if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
1583
1583
  if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
1584
1584
  if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
1585
1585
  if (r = Object.keys(t), a = r.length, a !== Object.keys(n).length) return !1;
1586
- for (l = a; l-- !== 0; )
1587
- if (!Object.prototype.hasOwnProperty.call(n, r[l])) return !1;
1588
- for (l = a; l-- !== 0; ) {
1589
- var o = r[l];
1586
+ for (f = a; f-- !== 0; )
1587
+ if (!Object.prototype.hasOwnProperty.call(n, r[f])) return !1;
1588
+ for (f = a; f-- !== 0; ) {
1589
+ var o = r[f];
1590
1590
  if (!e(t[o], n[o])) return !1;
1591
1591
  }
1592
1592
  return !0;
@@ -1595,15 +1595,15 @@ function Qn() {
1595
1595
  }), rr;
1596
1596
  }
1597
1597
  var nr = { exports: {} }, qr;
1598
- function ja() {
1598
+ function Na() {
1599
1599
  if (qr) return nr.exports;
1600
1600
  qr = 1;
1601
- var e = nr.exports = function(a, l, r) {
1602
- typeof l == "function" && (r = l, l = {}), r = l.cb || r;
1601
+ var e = nr.exports = function(a, f, r) {
1602
+ typeof f == "function" && (r = f, f = {}), r = f.cb || r;
1603
1603
  var o = typeof r == "function" ? r : r.pre || function() {
1604
1604
  }, i = r.post || function() {
1605
1605
  };
1606
- t(l, o, i, a, "", a);
1606
+ t(f, o, i, a, "", a);
1607
1607
  };
1608
1608
  e.keywords = {
1609
1609
  additionalItems: !0,
@@ -1646,22 +1646,22 @@ function ja() {
1646
1646
  maxProperties: !0,
1647
1647
  minProperties: !0
1648
1648
  };
1649
- function t(a, l, r, o, i, d, f, m, g, _) {
1649
+ function t(a, f, r, o, i, d, l, m, g, _) {
1650
1650
  if (o && typeof o == "object" && !Array.isArray(o)) {
1651
- l(o, i, d, f, m, g, _);
1651
+ f(o, i, d, l, m, g, _);
1652
1652
  for (var b in o) {
1653
1653
  var S = o[b];
1654
1654
  if (Array.isArray(S)) {
1655
1655
  if (b in e.arrayKeywords)
1656
1656
  for (var E = 0; E < S.length; E++)
1657
- t(a, l, r, S[E], i + "/" + b + "/" + E, d, i, b, o, E);
1657
+ t(a, f, r, S[E], i + "/" + b + "/" + E, d, i, b, o, E);
1658
1658
  } else if (b in e.propsKeywords) {
1659
1659
  if (S && typeof S == "object")
1660
1660
  for (var y in S)
1661
- t(a, l, r, S[y], i + "/" + b + "/" + n(y), d, i, b, o, y);
1662
- } else (b in e.keywords || a.allKeys && !(b in e.skipKeywords)) && t(a, l, r, S, i + "/" + b, d, i, b, o);
1661
+ t(a, f, r, S[y], i + "/" + b + "/" + n(y), d, i, b, o, y);
1662
+ } else (b in e.keywords || a.allKeys && !(b in e.skipKeywords)) && t(a, f, r, S, i + "/" + b, d, i, b, o);
1663
1663
  }
1664
- r(o, i, d, f, m, g, _);
1664
+ r(o, i, d, l, m, g, _);
1665
1665
  }
1666
1666
  }
1667
1667
  function n(a) {
@@ -1673,7 +1673,7 @@ var Ir;
1673
1673
  function Ht() {
1674
1674
  if (Ir) return se;
1675
1675
  Ir = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.getSchemaRefs = se.resolveUrl = se.normalizeId = se._getFullPath = se.getFullPath = se.inlineRef = void 0;
1676
- const e = /* @__PURE__ */ Z(), t = Qn(), n = ja(), a = /* @__PURE__ */ new Set([
1676
+ const e = /* @__PURE__ */ Z(), t = Qn(), n = Na(), a = /* @__PURE__ */ new Set([
1677
1677
  "type",
1678
1678
  "format",
1679
1679
  "pattern",
@@ -1691,10 +1691,10 @@ function Ht() {
1691
1691
  "enum",
1692
1692
  "const"
1693
1693
  ]);
1694
- function l(E, y = !0) {
1694
+ function f(E, y = !0) {
1695
1695
  return typeof E == "boolean" ? !0 : y === !0 ? !o(E) : y ? i(E) <= y : !1;
1696
1696
  }
1697
- se.inlineRef = l;
1697
+ se.inlineRef = f;
1698
1698
  const r = /* @__PURE__ */ new Set([
1699
1699
  "$ref",
1700
1700
  "$recursiveRef",
@@ -1725,13 +1725,13 @@ function Ht() {
1725
1725
  function d(E, y = "", v) {
1726
1726
  v !== !1 && (y = g(y));
1727
1727
  const u = E.parse(y);
1728
- return f(E, u);
1728
+ return l(E, u);
1729
1729
  }
1730
1730
  se.getFullPath = d;
1731
- function f(E, y) {
1731
+ function l(E, y) {
1732
1732
  return E.serialize(y).split("#")[0] + "#";
1733
1733
  }
1734
- se._getFullPath = f;
1734
+ se._getFullPath = l;
1735
1735
  const m = /#\/?$/;
1736
1736
  function g(E) {
1737
1737
  return E ? E.replace(m, "") : "";
@@ -1746,15 +1746,15 @@ function Ht() {
1746
1746
  if (typeof E == "boolean")
1747
1747
  return {};
1748
1748
  const { schemaId: v, uriResolver: u } = this.opts, $ = g(E[v] || y), w = { "": $ }, s = d(u, $, !1), c = {}, p = /* @__PURE__ */ new Set();
1749
- return n(E, { allKeys: !0 }, (N, T, q, M) => {
1749
+ return n(E, { allKeys: !0 }, (N, A, O, M) => {
1750
1750
  if (M === void 0)
1751
1751
  return;
1752
- const H = s + T;
1752
+ const H = s + A;
1753
1753
  let X = w[M];
1754
- typeof N[v] == "string" && (X = x.call(this, N[v])), ue.call(this, N.$anchor), ue.call(this, N.$dynamicAnchor), w[T] = X;
1754
+ typeof N[v] == "string" && (X = x.call(this, N[v])), ue.call(this, N.$anchor), ue.call(this, N.$dynamicAnchor), w[A] = X;
1755
1755
  function x(B) {
1756
- const le = this.opts.uriResolver.resolve;
1757
- if (B = g(X ? le(X, B) : B), p.has(B))
1756
+ const me = this.opts.uriResolver.resolve;
1757
+ if (B = g(X ? me(X, B) : B), p.has(B))
1758
1758
  throw P(B);
1759
1759
  p.add(B);
1760
1760
  let V = this.refs[B];
@@ -1768,9 +1768,9 @@ function Ht() {
1768
1768
  }
1769
1769
  }
1770
1770
  }), c;
1771
- function k(N, T, q) {
1772
- if (T !== void 0 && !t(N, T))
1773
- throw P(q);
1771
+ function k(N, A, O) {
1772
+ if (A !== void 0 && !t(N, A))
1773
+ throw P(O);
1774
1774
  }
1775
1775
  function P(N) {
1776
1776
  return new Error(`reference "${N}" resolves to more than one schema`);
@@ -1782,7 +1782,7 @@ var Tr;
1782
1782
  function De() {
1783
1783
  if (Tr) return ge;
1784
1784
  Tr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.getData = ge.KeywordCxt = ge.validateFunctionCode = void 0;
1785
- const e = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Vt(), n = /* @__PURE__ */ Yn(), a = /* @__PURE__ */ Vt(), l = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Ra(), o = /* @__PURE__ */ ka(), i = /* @__PURE__ */ G(), d = /* @__PURE__ */ ye(), f = /* @__PURE__ */ Ht(), m = /* @__PURE__ */ Z(), g = /* @__PURE__ */ Lt();
1785
+ const e = /* @__PURE__ */ Ea(), t = /* @__PURE__ */ Vt(), n = /* @__PURE__ */ Yn(), a = /* @__PURE__ */ Vt(), f = /* @__PURE__ */ Ra(), r = /* @__PURE__ */ ka(), o = /* @__PURE__ */ ja(), i = /* @__PURE__ */ G(), d = /* @__PURE__ */ ye(), l = /* @__PURE__ */ Ht(), m = /* @__PURE__ */ Z(), g = /* @__PURE__ */ Lt();
1786
1786
  function _(j) {
1787
1787
  if (s(j) && (p(j), w(j))) {
1788
1788
  y(j);
@@ -1840,7 +1840,7 @@ function De() {
1840
1840
  }
1841
1841
  function c(j, I) {
1842
1842
  const { schema: D, gen: F, opts: U } = j;
1843
- U.$comment && D.$comment && M(j), T(j), q(j);
1843
+ U.$comment && D.$comment && M(j), A(j), O(j);
1844
1844
  const W = F.const("_errs", d.default.errors);
1845
1845
  k(j, W), F.var(I, (0, i._)`${W} === ${d.default.errors}`);
1846
1846
  }
@@ -1861,11 +1861,11 @@ function De() {
1861
1861
  const { schema: I, opts: D } = j;
1862
1862
  I.default !== void 0 && D.useDefaults && D.strictSchema && (0, m.checkStrictMode)(j, "default is ignored in the schema root");
1863
1863
  }
1864
- function T(j) {
1864
+ function A(j) {
1865
1865
  const I = j.schema[j.opts.schemaId];
1866
- I && (j.baseId = (0, f.resolveUrl)(j.opts.uriResolver, j.baseId, I));
1866
+ I && (j.baseId = (0, l.resolveUrl)(j.opts.uriResolver, j.baseId, I));
1867
1867
  }
1868
- function q(j) {
1868
+ function O(j) {
1869
1869
  if (j.schema.$async && !j.schemaEnv.$async)
1870
1870
  throw new Error("async schema in sync schema");
1871
1871
  }
@@ -1874,8 +1874,8 @@ function De() {
1874
1874
  if (U.$comment === !0)
1875
1875
  j.code((0, i._)`${d.default.self}.logger.log(${W})`);
1876
1876
  else if (typeof U.$comment == "function") {
1877
- const re = (0, i.str)`${F}/$comment`, me = j.scopeValue("root", { ref: I.root });
1878
- j.code((0, i._)`${d.default.self}.opts.$comment(${W}, ${re}, ${me}.schema)`);
1877
+ const re = (0, i.str)`${F}/$comment`, he = j.scopeValue("root", { ref: I.root });
1878
+ j.code((0, i._)`${d.default.self}.opts.$comment(${W}, ${re}, ${he}.schema)`);
1879
1879
  }
1880
1880
  }
1881
1881
  function H(j) {
@@ -1886,7 +1886,7 @@ function De() {
1886
1886
  D instanceof i.Name && j.assign((0, i._)`${I}.props`, D), F instanceof i.Name && j.assign((0, i._)`${I}.items`, F);
1887
1887
  }
1888
1888
  function x(j, I, D, F) {
1889
- const { gen: U, schema: W, data: re, allErrors: me, opts: oe, self: ie } = j, { RULES: ne } = ie;
1889
+ const { gen: U, schema: W, data: re, allErrors: he, opts: oe, self: ie } = j, { RULES: ne } = ie;
1890
1890
  if (W.$ref && (oe.ignoreKeywordsWithRef || !(0, m.schemaHasRulesButRef)(W, ne))) {
1891
1891
  U.block(() => K(j, "$ref", ne.all.$ref.definition));
1892
1892
  return;
@@ -1897,34 +1897,34 @@ function De() {
1897
1897
  Ee(ne.post);
1898
1898
  });
1899
1899
  function Ee(de) {
1900
- (0, n.shouldUseGroup)(W, de) && (de.type ? (U.if((0, a.checkDataType)(de.type, re, oe.strictNumbers)), ue(j, de), I.length === 1 && I[0] === de.type && D && (U.else(), (0, a.reportTypeError)(j)), U.endIf()) : ue(j, de), me || U.if((0, i._)`${d.default.errors} === ${F || 0}`));
1900
+ (0, n.shouldUseGroup)(W, de) && (de.type ? (U.if((0, a.checkDataType)(de.type, re, oe.strictNumbers)), ue(j, de), I.length === 1 && I[0] === de.type && D && (U.else(), (0, a.reportTypeError)(j)), U.endIf()) : ue(j, de), he || U.if((0, i._)`${d.default.errors} === ${F || 0}`));
1901
1901
  }
1902
1902
  }
1903
1903
  function ue(j, I) {
1904
1904
  const { gen: D, schema: F, opts: { useDefaults: U } } = j;
1905
- U && (0, l.assignDefaults)(j, I.type), D.block(() => {
1905
+ U && (0, f.assignDefaults)(j, I.type), D.block(() => {
1906
1906
  for (const W of I.rules)
1907
1907
  (0, n.shouldUseRule)(F, W) && K(j, W.keyword, W.definition, I.type);
1908
1908
  });
1909
1909
  }
1910
1910
  function B(j, I) {
1911
- j.schemaEnv.meta || !j.opts.strictTypes || (le(j, I), j.opts.allowUnionTypes || V(j, I), O(j, j.dataTypes));
1911
+ j.schemaEnv.meta || !j.opts.strictTypes || (me(j, I), j.opts.allowUnionTypes || V(j, I), q(j, j.dataTypes));
1912
1912
  }
1913
- function le(j, I) {
1913
+ function me(j, I) {
1914
1914
  if (I.length) {
1915
1915
  if (!j.dataTypes.length) {
1916
1916
  j.dataTypes = I;
1917
1917
  return;
1918
1918
  }
1919
1919
  I.forEach((D) => {
1920
- A(j.dataTypes, D) || R(j, `type "${D}" not allowed by context "${j.dataTypes.join(",")}"`);
1920
+ T(j.dataTypes, D) || R(j, `type "${D}" not allowed by context "${j.dataTypes.join(",")}"`);
1921
1921
  }), h(j, I);
1922
1922
  }
1923
1923
  }
1924
1924
  function V(j, I) {
1925
1925
  I.length > 1 && !(I.length === 2 && I.includes("null")) && R(j, "use allowUnionTypes to allow union type keyword");
1926
1926
  }
1927
- function O(j, I) {
1927
+ function q(j, I) {
1928
1928
  const D = j.self.RULES.all;
1929
1929
  for (const F in D) {
1930
1930
  const U = D[F];
@@ -1937,13 +1937,13 @@ function De() {
1937
1937
  function z(j, I) {
1938
1938
  return j.includes(I) || I === "number" && j.includes("integer");
1939
1939
  }
1940
- function A(j, I) {
1940
+ function T(j, I) {
1941
1941
  return j.includes(I) || I === "integer" && j.includes("number");
1942
1942
  }
1943
1943
  function h(j, I) {
1944
1944
  const D = [];
1945
1945
  for (const F of j.dataTypes)
1946
- A(I, F) ? D.push(F) : I.includes("integer") && F === "number" && D.push("integer");
1946
+ T(I, F) ? D.push(F) : I.includes("integer") && F === "number" && D.push("integer");
1947
1947
  j.dataTypes = D;
1948
1948
  }
1949
1949
  function R(j, I) {
@@ -2017,7 +2017,7 @@ function De() {
2017
2017
  }
2018
2018
  invalid$data() {
2019
2019
  const { gen: I, schemaCode: D, schemaType: F, def: U, it: W } = this;
2020
- return (0, i.or)(re(), me());
2020
+ return (0, i.or)(re(), he());
2021
2021
  function re() {
2022
2022
  if (F.length) {
2023
2023
  if (!(D instanceof i.Name))
@@ -2027,7 +2027,7 @@ function De() {
2027
2027
  }
2028
2028
  return i.nil;
2029
2029
  }
2030
- function me() {
2030
+ function he() {
2031
2031
  if (U.validateSchema) {
2032
2032
  const oe = I.scopeValue("validate$data", { ref: U.validateSchema });
2033
2033
  return (0, i._)`!${oe}(${D})`;
@@ -2081,8 +2081,8 @@ function De() {
2081
2081
  return W;
2082
2082
  }
2083
2083
  let re = W;
2084
- const me = U.split("/");
2085
- for (const ie of me)
2084
+ const he = U.split("/");
2085
+ for (const ie of he)
2086
2086
  ie && (W = (0, i._)`${W}${(0, i.getProperty)((0, m.unescapeJsonPointer)(ie))}`, re = (0, i._)`${re} && ${W}`);
2087
2087
  return re;
2088
2088
  function oe(ie, ne) {
@@ -2108,8 +2108,8 @@ function ze() {
2108
2108
  Cr = 1, Object.defineProperty(Ue, "__esModule", { value: !0 });
2109
2109
  const e = /* @__PURE__ */ Ht();
2110
2110
  class t extends Error {
2111
- constructor(a, l, r, o) {
2112
- super(o || `can't resolve reference ${r} from id ${l}`), this.missingRef = (0, e.resolveUrl)(a, l, r), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(a, this.missingRef));
2111
+ constructor(a, f, r, o) {
2112
+ super(o || `can't resolve reference ${r} from id ${f}`), this.missingRef = (0, e.resolveUrl)(a, f, r), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(a, this.missingRef));
2113
2113
  }
2114
2114
  }
2115
2115
  return Ue.default = t, Ue;
@@ -2118,7 +2118,7 @@ var ce = {}, Mr;
2118
2118
  function Jt() {
2119
2119
  if (Mr) return ce;
2120
2120
  Mr = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.resolveSchema = ce.getCompilingSchema = ce.resolveRef = ce.compileSchema = ce.SchemaEnv = void 0;
2121
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Gt(), n = /* @__PURE__ */ ye(), a = /* @__PURE__ */ Ht(), l = /* @__PURE__ */ Z(), r = /* @__PURE__ */ De();
2121
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Gt(), n = /* @__PURE__ */ ye(), a = /* @__PURE__ */ Ht(), f = /* @__PURE__ */ Z(), r = /* @__PURE__ */ De();
2122
2122
  class o {
2123
2123
  constructor(v) {
2124
2124
  var u;
@@ -2168,10 +2168,10 @@ function Jt() {
2168
2168
  let N;
2169
2169
  try {
2170
2170
  this._compilations.add(y), (0, r.validateFunctionCode)(P), c.optimize(this.opts.code.optimize);
2171
- const T = c.toString();
2172
- N = `${c.scopeRefs(n.default.scope)}return ${T}`, this.opts.code.process && (N = this.opts.code.process(N, y));
2171
+ const A = c.toString();
2172
+ N = `${c.scopeRefs(n.default.scope)}return ${A}`, this.opts.code.process && (N = this.opts.code.process(N, y));
2173
2173
  const M = new Function(`${n.default.self}`, `${n.default.scope}`, N)(this, this.scope.get());
2174
- if (this.scope.value(k, { ref: M }), M.errors = null, M.schema = y.schema, M.schemaEnv = y, y.$async && (M.$async = !0), this.opts.code.source === !0 && (M.source = { validateName: k, validateCode: T, scopeValues: c._values }), this.opts.unevaluated) {
2174
+ if (this.scope.value(k, { ref: M }), M.errors = null, M.schema = y.schema, M.schemaEnv = y, y.$async && (M.$async = !0), this.opts.code.source === !0 && (M.source = { validateName: k, validateCode: A, scopeValues: c._values }), this.opts.unevaluated) {
2175
2175
  const { props: H, items: X } = P;
2176
2176
  M.evaluated = {
2177
2177
  props: H instanceof e.Name ? void 0 : H,
@@ -2181,8 +2181,8 @@ function Jt() {
2181
2181
  }, M.source && (M.source.evaluated = (0, e.stringify)(M.evaluated));
2182
2182
  }
2183
2183
  return y.validate = M, y;
2184
- } catch (T) {
2185
- throw delete y.validate, delete y.validateName, N && this.logger.error("Error compiling schema, function code:", N), T;
2184
+ } catch (A) {
2185
+ throw delete y.validate, delete y.validateName, N && this.logger.error("Error compiling schema, function code:", N), A;
2186
2186
  } finally {
2187
2187
  this._compilations.delete(y);
2188
2188
  }
@@ -2200,10 +2200,10 @@ function Jt() {
2200
2200
  c && (s = new o({ schema: c, schemaId: p, root: y, baseId: v }));
2201
2201
  }
2202
2202
  if (s !== void 0)
2203
- return y.refs[u] = f.call(this, s);
2203
+ return y.refs[u] = l.call(this, s);
2204
2204
  }
2205
2205
  ce.resolveRef = d;
2206
- function f(y) {
2206
+ function l(y) {
2207
2207
  return (0, a.inlineRef)(y.schema, this.opts.inlineRefs) ? y.schema : y.validate ? y : i.call(this, y);
2208
2208
  }
2209
2209
  function m(y) {
@@ -2254,7 +2254,7 @@ function Jt() {
2254
2254
  for (const p of y.fragment.slice(1).split("/")) {
2255
2255
  if (typeof u == "boolean")
2256
2256
  return;
2257
- const k = u[(0, l.unescapeFragment)(p)];
2257
+ const k = u[(0, f.unescapeFragment)(p)];
2258
2258
  if (k === void 0)
2259
2259
  return;
2260
2260
  u = k;
@@ -2262,7 +2262,7 @@ function Jt() {
2262
2262
  !S.has(p) && P && (v = (0, a.resolveUrl)(this.opts.uriResolver, v, P));
2263
2263
  }
2264
2264
  let s;
2265
- if (typeof u != "boolean" && u.$ref && !(0, l.schemaHasRulesButRef)(u, this.RULES)) {
2265
+ if (typeof u != "boolean" && u.$ref && !(0, f.schemaHasRulesButRef)(u, this.RULES)) {
2266
2266
  const p = (0, a.resolveUrl)(this.opts.uriResolver, v, u.$ref);
2267
2267
  s = b.call(this, $, p);
2268
2268
  }
@@ -2272,19 +2272,19 @@ function Jt() {
2272
2272
  }
2273
2273
  return ce;
2274
2274
  }
2275
- const Na = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Oa = "Meta-schema for $data reference (JSON AnySchema extension proposal)", qa = "object", Ia = ["$data"], Ta = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Aa = !1, Ca = {
2276
- $id: Na,
2277
- description: Oa,
2278
- type: qa,
2279
- required: Ia,
2280
- properties: Ta,
2281
- additionalProperties: Aa
2275
+ const Oa = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", qa = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ia = "object", Ta = ["$data"], Aa = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Ca = !1, Ma = {
2276
+ $id: Oa,
2277
+ description: qa,
2278
+ type: Ia,
2279
+ required: Ta,
2280
+ properties: Aa,
2281
+ additionalProperties: Ca
2282
2282
  };
2283
2283
  var Le = {}, Ie = { exports: {} }, ar, Dr;
2284
2284
  function Xn() {
2285
2285
  if (Dr) return ar;
2286
2286
  Dr = 1;
2287
- 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), n = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), l = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
2287
+ 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), n = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), f = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
2288
2288
  function r(s) {
2289
2289
  let c = "", p = 0, k = 0;
2290
2290
  for (k = 0; k < s.length; k++)
@@ -2316,15 +2316,15 @@ function Xn() {
2316
2316
  }
2317
2317
  return !0;
2318
2318
  }
2319
- function f(s) {
2319
+ function l(s) {
2320
2320
  let c = 0;
2321
2321
  const p = { error: !1, address: "", zone: "" }, k = [], P = [];
2322
- let N = !1, T = !1, q = d;
2322
+ let N = !1, A = !1, O = d;
2323
2323
  for (let M = 0; M < s.length; M++) {
2324
2324
  const H = s[M];
2325
2325
  if (!(H === "[" || H === "]"))
2326
2326
  if (H === ":") {
2327
- if (N === !0 && (T = !0), !q(P, k, p))
2327
+ if (N === !0 && (A = !0), !O(P, k, p))
2328
2328
  break;
2329
2329
  if (++c > 7) {
2330
2330
  p.error = !0;
@@ -2333,20 +2333,20 @@ function Xn() {
2333
2333
  M > 0 && s[M - 1] === ":" && (N = !0), k.push(":");
2334
2334
  continue;
2335
2335
  } else if (H === "%") {
2336
- if (!q(P, k, p))
2336
+ if (!O(P, k, p))
2337
2337
  break;
2338
- q = i;
2338
+ O = i;
2339
2339
  } else {
2340
2340
  P.push(H);
2341
2341
  continue;
2342
2342
  }
2343
2343
  }
2344
- return P.length && (q === i ? p.zone = P.join("") : T ? k.push(P.join("")) : k.push(r(P))), p.address = k.join(""), p;
2344
+ return P.length && (O === i ? p.zone = P.join("") : A ? k.push(P.join("")) : k.push(r(P))), p.address = k.join(""), p;
2345
2345
  }
2346
2346
  function m(s) {
2347
2347
  if (g(s, ":") < 2)
2348
2348
  return { host: s, isIPV6: !1 };
2349
- const c = f(s);
2349
+ const c = l(s);
2350
2350
  if (c.error)
2351
2351
  return { host: s, isIPV6: !1 };
2352
2352
  {
@@ -2431,8 +2431,8 @@ function Xn() {
2431
2431
  if (s[k] === "%" && k + 2 < s.length) {
2432
2432
  const P = s.slice(k + 1, k + 3);
2433
2433
  if (n(P)) {
2434
- const N = P.toUpperCase(), T = String.fromCharCode(parseInt(N, 16));
2435
- c && a(T) ? p += T : p += "%" + N, k += 2;
2434
+ const N = P.toUpperCase(), A = String.fromCharCode(parseInt(N, 16));
2435
+ c && a(A) ? p += A : p += "%" + N, k += 2;
2436
2436
  continue;
2437
2437
  }
2438
2438
  }
@@ -2451,7 +2451,7 @@ function Xn() {
2451
2451
  continue;
2452
2452
  }
2453
2453
  }
2454
- l(s[p]) ? c += s[p] : c += escape(s[p]);
2454
+ f(s[p]) ? c += s[p] : c += escape(s[p]);
2455
2455
  }
2456
2456
  return c;
2457
2457
  }
@@ -2496,7 +2496,7 @@ function Xn() {
2496
2496
  }, ar;
2497
2497
  }
2498
2498
  var sr, zr;
2499
- function Ma() {
2499
+ function Da() {
2500
2500
  if (zr) return sr;
2501
2501
  zr = 1;
2502
2502
  const { isUUID: e } = Xn(), t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, n = (
@@ -2516,7 +2516,7 @@ function Ma() {
2516
2516
  s
2517
2517
  ) !== -1;
2518
2518
  }
2519
- function l(s) {
2519
+ function f(s) {
2520
2520
  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;
2521
2521
  }
2522
2522
  function r(s) {
@@ -2527,16 +2527,16 @@ function Ma() {
2527
2527
  return (s.port === (c ? 443 : 80) || s.port === "") && (s.port = void 0), s.path || (s.path = "/"), s;
2528
2528
  }
2529
2529
  function i(s) {
2530
- return s.secure = l(s), s.resourceName = (s.path || "/") + (s.query ? "?" + s.query : ""), s.path = void 0, s.query = void 0, s;
2530
+ return s.secure = f(s), s.resourceName = (s.path || "/") + (s.query ? "?" + s.query : ""), s.path = void 0, s.query = void 0, s;
2531
2531
  }
2532
2532
  function d(s) {
2533
- if ((s.port === (l(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) {
2533
+ if ((s.port === (f(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) {
2534
2534
  const [c, p] = s.resourceName.split("?");
2535
2535
  s.path = c && c !== "/" ? c : void 0, s.query = p, s.resourceName = void 0;
2536
2536
  }
2537
2537
  return s.fragment = void 0, s;
2538
2538
  }
2539
- function f(s, c) {
2539
+ function l(s, c) {
2540
2540
  if (!s.path)
2541
2541
  return s.error = "URN can not be parsed", s;
2542
2542
  const p = s.path.match(t);
@@ -2554,8 +2554,8 @@ function Ma() {
2554
2554
  throw new Error("URN without nid cannot be serialized");
2555
2555
  const p = c.scheme || s.scheme || "urn", k = s.nid.toLowerCase(), P = `${p}:${c.nid || k}`, N = w(P);
2556
2556
  N && (s = N.serialize(s, c));
2557
- const T = s, q = s.nss;
2558
- return T.path = `${k || c.nid}:${q}`, c.skipEscape = !0, T;
2557
+ const A = s, O = s.nss;
2558
+ return A.path = `${k || c.nid}:${O}`, c.skipEscape = !0, A;
2559
2559
  }
2560
2560
  function g(s, c) {
2561
2561
  const p = s;
@@ -2608,7 +2608,7 @@ function Ma() {
2608
2608
  /** @type {SchemeHandler} */
2609
2609
  {
2610
2610
  scheme: "urn",
2611
- parse: f,
2611
+ parse: l,
2612
2612
  serialize: m,
2613
2613
  skipNormalize: !0
2614
2614
  }
@@ -2635,36 +2635,36 @@ function Ma() {
2635
2635
  ]) || void 0;
2636
2636
  }
2637
2637
  return sr = {
2638
- wsIsSecure: l,
2638
+ wsIsSecure: f,
2639
2639
  SCHEMES: $,
2640
2640
  isValidSchemeName: a,
2641
2641
  getSchemeHandler: w
2642
2642
  }, sr;
2643
2643
  }
2644
2644
  var Vr;
2645
- function Da() {
2645
+ function za() {
2646
2646
  if (Vr) return Ie.exports;
2647
2647
  Vr = 1;
2648
- const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: n, normalizePercentEncoding: a, normalizePathEncoding: l, escapePreservingEscapes: r, reescapeHostDelimiters: o, isIPv4: i, nonSimpleDomain: d } = Xn(), { SCHEMES: f, getSchemeHandler: m } = Ma();
2648
+ const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: n, normalizePercentEncoding: a, normalizePathEncoding: f, escapePreservingEscapes: r, reescapeHostDelimiters: o, isIPv4: i, nonSimpleDomain: d } = Xn(), { SCHEMES: l, getSchemeHandler: m } = Da();
2649
2649
  function g(P, N) {
2650
2650
  return typeof P == "string" ? P = /** @type {T} */
2651
2651
  s(P, N) : typeof P == "object" && (P = /** @type {T} */
2652
2652
  w(E(P, N), N)), P;
2653
2653
  }
2654
- function _(P, N, T) {
2655
- const q = T ? Object.assign({ scheme: "null" }, T) : { scheme: "null" }, M = b(w(P, q), w(N, q), q, !0);
2656
- return q.skipEscape = !0, E(M, q);
2654
+ function _(P, N, A) {
2655
+ const O = A ? Object.assign({ scheme: "null" }, A) : { scheme: "null" }, M = b(w(P, O), w(N, O), O, !0);
2656
+ return O.skipEscape = !0, E(M, O);
2657
2657
  }
2658
- function b(P, N, T, q) {
2658
+ function b(P, N, A, O) {
2659
2659
  const M = {};
2660
- return q || (P = w(E(P, T), T), N = w(E(N, T), T)), T = T || {}, !T.tolerant && N.scheme ? (M.scheme = N.scheme, M.userinfo = N.userinfo, M.host = N.host, M.port = N.port, M.path = t(N.path || ""), M.query = N.query) : (N.userinfo !== void 0 || N.host !== void 0 || N.port !== void 0 ? (M.userinfo = N.userinfo, M.host = N.host, M.port = N.port, M.path = t(N.path || ""), M.query = N.query) : (N.path ? (N.path[0] === "/" ? M.path = t(N.path) : ((P.userinfo !== void 0 || P.host !== void 0 || P.port !== void 0) && !P.path ? M.path = "/" + N.path : P.path ? M.path = P.path.slice(0, P.path.lastIndexOf("/") + 1) + N.path : M.path = N.path, M.path = t(M.path)), M.query = N.query) : (M.path = P.path, N.query !== void 0 ? M.query = N.query : M.query = P.query), M.userinfo = P.userinfo, M.host = P.host, M.port = P.port), M.scheme = P.scheme), M.fragment = N.fragment, M;
2660
+ return O || (P = w(E(P, A), A), N = w(E(N, A), A)), A = A || {}, !A.tolerant && N.scheme ? (M.scheme = N.scheme, M.userinfo = N.userinfo, M.host = N.host, M.port = N.port, M.path = t(N.path || ""), M.query = N.query) : (N.userinfo !== void 0 || N.host !== void 0 || N.port !== void 0 ? (M.userinfo = N.userinfo, M.host = N.host, M.port = N.port, M.path = t(N.path || ""), M.query = N.query) : (N.path ? (N.path[0] === "/" ? M.path = t(N.path) : ((P.userinfo !== void 0 || P.host !== void 0 || P.port !== void 0) && !P.path ? M.path = "/" + N.path : P.path ? M.path = P.path.slice(0, P.path.lastIndexOf("/") + 1) + N.path : M.path = N.path, M.path = t(M.path)), M.query = N.query) : (M.path = P.path, N.query !== void 0 ? M.query = N.query : M.query = P.query), M.userinfo = P.userinfo, M.host = P.host, M.port = P.port), M.scheme = P.scheme), M.fragment = N.fragment, M;
2661
2661
  }
2662
- function S(P, N, T) {
2663
- const q = p(P, T), M = p(N, T);
2664
- return q !== void 0 && M !== void 0 && q.toLowerCase() === M.toLowerCase();
2662
+ function S(P, N, A) {
2663
+ const O = p(P, A), M = p(N, A);
2664
+ return O !== void 0 && M !== void 0 && O.toLowerCase() === M.toLowerCase();
2665
2665
  }
2666
2666
  function E(P, N) {
2667
- const T = {
2667
+ const A = {
2668
2668
  host: P.host,
2669
2669
  scheme: P.scheme,
2670
2670
  userinfo: P.userinfo,
@@ -2679,14 +2679,14 @@ function Da() {
2679
2679
  resourceName: P.resourceName,
2680
2680
  secure: P.secure,
2681
2681
  error: ""
2682
- }, q = Object.assign({}, N), M = [], H = m(q.scheme || T.scheme);
2683
- H && H.serialize && H.serialize(T, q), T.path !== void 0 && (q.skipEscape ? T.path = a(T.path) : (T.path = r(T.path), T.scheme !== void 0 && (T.path = T.path.split("%3A").join(":")))), q.reference !== "suffix" && T.scheme && M.push(T.scheme, ":");
2684
- const X = n(T);
2685
- if (X !== void 0 && (q.reference !== "suffix" && M.push("//"), M.push(X), T.path && T.path[0] !== "/" && M.push("/")), T.path !== void 0) {
2686
- let x = T.path;
2687
- !q.absolutePath && (!H || !H.absolutePath) && (x = t(x)), X === void 0 && x[0] === "/" && x[1] === "/" && (x = "/%2F" + x.slice(2)), M.push(x);
2682
+ }, O = Object.assign({}, N), M = [], H = m(O.scheme || A.scheme);
2683
+ H && H.serialize && H.serialize(A, O), A.path !== void 0 && (O.skipEscape ? A.path = a(A.path) : (A.path = r(A.path), A.scheme !== void 0 && (A.path = A.path.split("%3A").join(":")))), O.reference !== "suffix" && A.scheme && M.push(A.scheme, ":");
2684
+ const X = n(A);
2685
+ if (X !== void 0 && (O.reference !== "suffix" && M.push("//"), M.push(X), A.path && A.path[0] !== "/" && M.push("/")), A.path !== void 0) {
2686
+ let x = A.path;
2687
+ !O.absolutePath && (!H || !H.absolutePath) && (x = t(x)), X === void 0 && x[0] === "/" && x[1] === "/" && (x = "/%2F" + x.slice(2)), M.push(x);
2688
2688
  }
2689
- return T.query !== void 0 && M.push("?", T.query), T.fragment !== void 0 && M.push("#", T.fragment), M.join("");
2689
+ return A.query !== void 0 && M.push("?", A.query), A.fragment !== void 0 && M.push("#", A.fragment), M.join("");
2690
2690
  }
2691
2691
  const y = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, v = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
2692
2692
  function u(P, N) {
@@ -2696,7 +2696,7 @@ function Da() {
2696
2696
  return "URI port is malformed.";
2697
2697
  }
2698
2698
  function $(P, N) {
2699
- const T = Object.assign({}, N), q = {
2699
+ const A = Object.assign({}, N), O = {
2700
2700
  scheme: void 0,
2701
2701
  userinfo: void 0,
2702
2702
  host: "",
@@ -2706,37 +2706,37 @@ function Da() {
2706
2706
  fragment: void 0
2707
2707
  };
2708
2708
  let M = !1, H = !1;
2709
- T.reference === "suffix" && (T.scheme ? P = T.scheme + ":" + P : P = "//" + P);
2709
+ A.reference === "suffix" && (A.scheme ? P = A.scheme + ":" + P : P = "//" + P);
2710
2710
  const X = P.match(v);
2711
- X !== null && X[1].indexOf("\\") !== -1 && (q.error = "URI authority must not contain a literal backslash.", M = !0);
2711
+ X !== null && X[1].indexOf("\\") !== -1 && (O.error = "URI authority must not contain a literal backslash.", M = !0);
2712
2712
  const x = P.match(y);
2713
2713
  if (x) {
2714
- q.scheme = x[1], q.userinfo = x[3], q.host = x[4], q.port = parseInt(x[5], 10), q.path = x[6] || "", q.query = x[7], q.fragment = x[8], isNaN(q.port) && (q.port = x[5]);
2715
- const ue = u(q, x);
2716
- if (ue !== void 0 && (q.error = q.error || ue, M = !0), q.host)
2717
- if (i(q.host) === !1) {
2718
- const V = e(q.host);
2719
- q.host = V.host.toLowerCase(), H = V.isIPV6;
2714
+ O.scheme = x[1], O.userinfo = x[3], O.host = x[4], O.port = parseInt(x[5], 10), O.path = x[6] || "", O.query = x[7], O.fragment = x[8], isNaN(O.port) && (O.port = x[5]);
2715
+ const ue = u(O, x);
2716
+ if (ue !== void 0 && (O.error = O.error || ue, M = !0), O.host)
2717
+ if (i(O.host) === !1) {
2718
+ const V = e(O.host);
2719
+ O.host = V.host.toLowerCase(), H = V.isIPV6;
2720
2720
  } else
2721
2721
  H = !0;
2722
- q.scheme === void 0 && q.userinfo === void 0 && q.host === void 0 && q.port === void 0 && q.query === void 0 && !q.path ? q.reference = "same-document" : q.scheme === void 0 ? q.reference = "relative" : q.fragment === void 0 ? q.reference = "absolute" : q.reference = "uri", T.reference && T.reference !== "suffix" && T.reference !== q.reference && (q.error = q.error || "URI is not a " + T.reference + " reference.");
2723
- const B = m(T.scheme || q.scheme);
2724
- if (!T.unicodeSupport && (!B || !B.unicodeSupport) && q.host && (T.domainHost || B && B.domainHost) && H === !1 && d(q.host))
2722
+ 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", A.reference && A.reference !== "suffix" && A.reference !== O.reference && (O.error = O.error || "URI is not a " + A.reference + " reference.");
2723
+ const B = m(A.scheme || O.scheme);
2724
+ if (!A.unicodeSupport && (!B || !B.unicodeSupport) && O.host && (A.domainHost || B && B.domainHost) && H === !1 && d(O.host))
2725
2725
  try {
2726
- q.host = new URL("http://" + q.host).hostname;
2727
- } catch (le) {
2728
- q.error = q.error || "Host's domain name can not be converted to ASCII: " + le;
2726
+ O.host = new URL("http://" + O.host).hostname;
2727
+ } catch (me) {
2728
+ O.error = O.error || "Host's domain name can not be converted to ASCII: " + me;
2729
2729
  }
2730
- if ((!B || B && !B.skipNormalize) && (P.indexOf("%") !== -1 && (q.scheme !== void 0 && (q.scheme = unescape(q.scheme)), q.host !== void 0 && (q.host = o(unescape(q.host), H))), q.path && (q.path = l(q.path)), q.fragment))
2730
+ if ((!B || B && !B.skipNormalize) && (P.indexOf("%") !== -1 && (O.scheme !== void 0 && (O.scheme = unescape(O.scheme)), O.host !== void 0 && (O.host = o(unescape(O.host), H))), O.path && (O.path = f(O.path)), O.fragment))
2731
2731
  try {
2732
- q.fragment = encodeURI(decodeURIComponent(q.fragment));
2732
+ O.fragment = encodeURI(decodeURIComponent(O.fragment));
2733
2733
  } catch {
2734
- q.error = q.error || "URI malformed";
2734
+ O.error = O.error || "URI malformed";
2735
2735
  }
2736
- B && B.parse && B.parse(q, T);
2736
+ B && B.parse && B.parse(O, A);
2737
2737
  } else
2738
- q.error = q.error || "URI can not be parsed.";
2739
- return { parsed: q, malformedAuthorityOrPort: M };
2738
+ O.error = O.error || "URI can not be parsed.";
2739
+ return { parsed: O, malformedAuthorityOrPort: M };
2740
2740
  }
2741
2741
  function w(P, N) {
2742
2742
  return $(P, N).parsed;
@@ -2745,22 +2745,22 @@ function Da() {
2745
2745
  return c(P, N).normalized;
2746
2746
  }
2747
2747
  function c(P, N) {
2748
- const { parsed: T, malformedAuthorityOrPort: q } = $(P, N);
2748
+ const { parsed: A, malformedAuthorityOrPort: O } = $(P, N);
2749
2749
  return {
2750
- normalized: q ? P : E(T, N),
2751
- malformedAuthorityOrPort: q
2750
+ normalized: O ? P : E(A, N),
2751
+ malformedAuthorityOrPort: O
2752
2752
  };
2753
2753
  }
2754
2754
  function p(P, N) {
2755
2755
  if (typeof P == "string") {
2756
- const { normalized: T, malformedAuthorityOrPort: q } = c(P, N);
2757
- return q ? void 0 : T;
2756
+ const { normalized: A, malformedAuthorityOrPort: O } = c(P, N);
2757
+ return O ? void 0 : A;
2758
2758
  }
2759
2759
  if (typeof P == "object")
2760
2760
  return E(P, N);
2761
2761
  }
2762
2762
  const k = {
2763
- SCHEMES: f,
2763
+ SCHEMES: l,
2764
2764
  normalize: g,
2765
2765
  resolve: _,
2766
2766
  resolveComponent: b,
@@ -2771,10 +2771,10 @@ function Da() {
2771
2771
  return Ie.exports = k, Ie.exports.default = k, Ie.exports.fastUri = k, Ie.exports;
2772
2772
  }
2773
2773
  var Fr;
2774
- function za() {
2774
+ function Va() {
2775
2775
  if (Fr) return Le;
2776
2776
  Fr = 1, Object.defineProperty(Le, "__esModule", { value: !0 });
2777
- const e = Da();
2777
+ const e = za();
2778
2778
  return e.code = 'require("ajv/dist/runtime/uri").default', Le.default = e, Le;
2779
2779
  }
2780
2780
  var Kr;
@@ -2799,7 +2799,7 @@ function xn() {
2799
2799
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2800
2800
  return n.CodeGen;
2801
2801
  } });
2802
- const a = /* @__PURE__ */ Gt(), l = /* @__PURE__ */ ze(), r = /* @__PURE__ */ Zn(), o = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ G(), d = /* @__PURE__ */ Ht(), f = /* @__PURE__ */ Vt(), m = /* @__PURE__ */ Z(), g = Ca, _ = /* @__PURE__ */ za(), b = (V, O) => new RegExp(V, O);
2802
+ const a = /* @__PURE__ */ Gt(), f = /* @__PURE__ */ ze(), r = /* @__PURE__ */ Zn(), o = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ G(), d = /* @__PURE__ */ Ht(), l = /* @__PURE__ */ Vt(), m = /* @__PURE__ */ Z(), g = Ma, _ = /* @__PURE__ */ Va(), b = (V, q) => new RegExp(V, q);
2803
2803
  b.code = "new RegExp";
2804
2804
  const S = ["removeAdditional", "useDefaults", "coerceTypes"], E = /* @__PURE__ */ new Set([
2805
2805
  "validate",
@@ -2837,8 +2837,8 @@ function xn() {
2837
2837
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2838
2838
  }, u = 200;
2839
2839
  function $(V) {
2840
- var O, z, A, h, R, C, K, L, Q, Y, j, I, D, F, U, W, re, me, oe, ie, ne, Ee, de, Bt, Zt;
2841
- const Oe = V.strict, Yt = (O = V.code) === null || O === void 0 ? void 0 : O.optimize, mr = Yt === !0 || Yt === void 0 ? 1 : Yt || 0, hr = (A = (z = V.code) === null || z === void 0 ? void 0 : z.regExp) !== null && A !== void 0 ? A : b, $a = (h = V.uriResolver) !== null && h !== void 0 ? h : _.default;
2840
+ var q, z, T, h, R, C, K, L, Q, Y, j, I, D, F, U, W, re, he, oe, ie, ne, Ee, de, Bt, Zt;
2841
+ const Oe = V.strict, Yt = (q = V.code) === null || q === void 0 ? void 0 : q.optimize, mr = Yt === !0 || Yt === void 0 ? 1 : Yt || 0, hr = (T = (z = V.code) === null || z === void 0 ? void 0 : z.regExp) !== null && T !== void 0 ? T : b, $a = (h = V.uriResolver) !== null && h !== void 0 ? h : _.default;
2842
2842
  return {
2843
2843
  strictSchema: (C = (R = V.strictSchema) !== null && R !== void 0 ? R : Oe) !== null && C !== void 0 ? C : !0,
2844
2844
  strictNumbers: (L = (K = V.strictNumbers) !== null && K !== void 0 ? K : Oe) !== null && L !== void 0 ? L : !0,
@@ -2849,7 +2849,7 @@ function xn() {
2849
2849
  loopRequired: (U = V.loopRequired) !== null && U !== void 0 ? U : u,
2850
2850
  loopEnum: (W = V.loopEnum) !== null && W !== void 0 ? W : u,
2851
2851
  meta: (re = V.meta) !== null && re !== void 0 ? re : !0,
2852
- messages: (me = V.messages) !== null && me !== void 0 ? me : !0,
2852
+ messages: (he = V.messages) !== null && he !== void 0 ? he : !0,
2853
2853
  inlineRefs: (oe = V.inlineRefs) !== null && oe !== void 0 ? oe : !0,
2854
2854
  schemaId: (ie = V.schemaId) !== null && ie !== void 0 ? ie : "$id",
2855
2855
  addUsedSchema: (ne = V.addUsedSchema) !== null && ne !== void 0 ? ne : !0,
@@ -2861,44 +2861,44 @@ function xn() {
2861
2861
  };
2862
2862
  }
2863
2863
  class w {
2864
- constructor(O = {}) {
2865
- this.schemas = {}, this.refs = {}, this.formats = /* @__PURE__ */ Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), O = this.opts = { ...O, ...$(O) };
2866
- const { es5: z, lines: A } = this.opts.code;
2867
- this.scope = new i.ValueScope({ scope: {}, prefixes: E, es5: z, lines: A }), this.logger = q(O.logger);
2868
- const h = O.validateFormats;
2869
- O.validateFormats = !1, this.RULES = (0, r.getRules)(), s.call(this, y, O, "NOT SUPPORTED"), s.call(this, v, O, "DEPRECATED", "warn"), this._metaOpts = N.call(this), O.formats && k.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), O.keywords && P.call(this, O.keywords), typeof O.meta == "object" && this.addMetaSchema(O.meta), p.call(this), O.validateFormats = h;
2864
+ constructor(q = {}) {
2865
+ this.schemas = {}, this.refs = {}, this.formats = /* @__PURE__ */ Object.create(null), this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), q = this.opts = { ...q, ...$(q) };
2866
+ const { es5: z, lines: T } = this.opts.code;
2867
+ this.scope = new i.ValueScope({ scope: {}, prefixes: E, es5: z, lines: T }), this.logger = O(q.logger);
2868
+ const h = q.validateFormats;
2869
+ q.validateFormats = !1, this.RULES = (0, r.getRules)(), s.call(this, y, q, "NOT SUPPORTED"), s.call(this, v, q, "DEPRECATED", "warn"), this._metaOpts = N.call(this), q.formats && k.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), q.keywords && P.call(this, q.keywords), typeof q.meta == "object" && this.addMetaSchema(q.meta), p.call(this), q.validateFormats = h;
2870
2870
  }
2871
2871
  _addVocabularies() {
2872
2872
  this.addKeyword("$async");
2873
2873
  }
2874
2874
  _addDefaultMetaSchema() {
2875
- const { $data: O, meta: z, schemaId: A } = this.opts;
2875
+ const { $data: q, meta: z, schemaId: T } = this.opts;
2876
2876
  let h = g;
2877
- A === "id" && (h = { ...g }, h.id = h.$id, delete h.$id), z && O && this.addMetaSchema(h, h[A], !1);
2877
+ T === "id" && (h = { ...g }, h.id = h.$id, delete h.$id), z && q && this.addMetaSchema(h, h[T], !1);
2878
2878
  }
2879
2879
  defaultMeta() {
2880
- const { meta: O, schemaId: z } = this.opts;
2881
- return this.opts.defaultMeta = typeof O == "object" ? O[z] || O : void 0;
2882
- }
2883
- validate(O, z) {
2884
- let A;
2885
- if (typeof O == "string") {
2886
- if (A = this.getSchema(O), !A)
2887
- throw new Error(`no schema with key or ref "${O}"`);
2880
+ const { meta: q, schemaId: z } = this.opts;
2881
+ return this.opts.defaultMeta = typeof q == "object" ? q[z] || q : void 0;
2882
+ }
2883
+ validate(q, z) {
2884
+ let T;
2885
+ if (typeof q == "string") {
2886
+ if (T = this.getSchema(q), !T)
2887
+ throw new Error(`no schema with key or ref "${q}"`);
2888
2888
  } else
2889
- A = this.compile(O);
2890
- const h = A(z);
2891
- return "$async" in A || (this.errors = A.errors), h;
2889
+ T = this.compile(q);
2890
+ const h = T(z);
2891
+ return "$async" in T || (this.errors = T.errors), h;
2892
2892
  }
2893
- compile(O, z) {
2894
- const A = this._addSchema(O, z);
2895
- return A.validate || this._compileSchemaEnv(A);
2893
+ compile(q, z) {
2894
+ const T = this._addSchema(q, z);
2895
+ return T.validate || this._compileSchemaEnv(T);
2896
2896
  }
2897
- compileAsync(O, z) {
2897
+ compileAsync(q, z) {
2898
2898
  if (typeof this.opts.loadSchema != "function")
2899
2899
  throw new Error("options.loadSchema should be a function");
2900
- const { loadSchema: A } = this.opts;
2901
- return h.call(this, O, z);
2900
+ const { loadSchema: T } = this.opts;
2901
+ return h.call(this, q, z);
2902
2902
  async function h(Y, j) {
2903
2903
  await R.call(this, Y.$schema);
2904
2904
  const I = this._addSchema(Y, j);
@@ -2911,7 +2911,7 @@ function xn() {
2911
2911
  try {
2912
2912
  return this._compileSchemaEnv(Y);
2913
2913
  } catch (j) {
2914
- if (!(j instanceof l.default))
2914
+ if (!(j instanceof f.default))
2915
2915
  throw j;
2916
2916
  return K.call(this, j), await L.call(this, j.missingSchema), C.call(this, Y);
2917
2917
  }
@@ -2929,42 +2929,42 @@ function xn() {
2929
2929
  if (j)
2930
2930
  return j;
2931
2931
  try {
2932
- return await (this._loading[Y] = A(Y));
2932
+ return await (this._loading[Y] = T(Y));
2933
2933
  } finally {
2934
2934
  delete this._loading[Y];
2935
2935
  }
2936
2936
  }
2937
2937
  }
2938
2938
  // Adds schema to the instance
2939
- addSchema(O, z, A, h = this.opts.validateSchema) {
2940
- if (Array.isArray(O)) {
2941
- for (const C of O)
2942
- this.addSchema(C, void 0, A, h);
2939
+ addSchema(q, z, T, h = this.opts.validateSchema) {
2940
+ if (Array.isArray(q)) {
2941
+ for (const C of q)
2942
+ this.addSchema(C, void 0, T, h);
2943
2943
  return this;
2944
2944
  }
2945
2945
  let R;
2946
- if (typeof O == "object") {
2946
+ if (typeof q == "object") {
2947
2947
  const { schemaId: C } = this.opts;
2948
- if (R = O[C], R !== void 0 && typeof R != "string")
2948
+ if (R = q[C], R !== void 0 && typeof R != "string")
2949
2949
  throw new Error(`schema ${C} must be string`);
2950
2950
  }
2951
- return z = (0, d.normalizeId)(z || R), this._checkUnique(z), this.schemas[z] = this._addSchema(O, A, z, h, !0), this;
2951
+ return z = (0, d.normalizeId)(z || R), this._checkUnique(z), this.schemas[z] = this._addSchema(q, T, z, h, !0), this;
2952
2952
  }
2953
2953
  // Add schema that will be used to validate other schemas
2954
2954
  // options in META_IGNORE_OPTIONS are alway set to false
2955
- addMetaSchema(O, z, A = this.opts.validateSchema) {
2956
- return this.addSchema(O, z, !0, A), this;
2955
+ addMetaSchema(q, z, T = this.opts.validateSchema) {
2956
+ return this.addSchema(q, z, !0, T), this;
2957
2957
  }
2958
2958
  // Validate schema against its meta-schema
2959
- validateSchema(O, z) {
2960
- if (typeof O == "boolean")
2959
+ validateSchema(q, z) {
2960
+ if (typeof q == "boolean")
2961
2961
  return !0;
2962
- let A;
2963
- if (A = O.$schema, A !== void 0 && typeof A != "string")
2962
+ let T;
2963
+ if (T = q.$schema, T !== void 0 && typeof T != "string")
2964
2964
  throw new Error("$schema must be a string");
2965
- if (A = A || this.opts.defaultMeta || this.defaultMeta(), !A)
2965
+ if (T = T || this.opts.defaultMeta || this.defaultMeta(), !T)
2966
2966
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
2967
- const h = this.validate(A, O);
2967
+ const h = this.validate(T, q);
2968
2968
  if (!h && z) {
2969
2969
  const R = "schema is invalid: " + this.errorsText();
2970
2970
  if (this.opts.validateSchema === "log")
@@ -2976,15 +2976,15 @@ function xn() {
2976
2976
  }
2977
2977
  // Get compiled schema by `key` or `ref`.
2978
2978
  // (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
2979
- getSchema(O) {
2979
+ getSchema(q) {
2980
2980
  let z;
2981
- for (; typeof (z = c.call(this, O)) == "string"; )
2982
- O = z;
2981
+ for (; typeof (z = c.call(this, q)) == "string"; )
2982
+ q = z;
2983
2983
  if (z === void 0) {
2984
- const { schemaId: A } = this.opts, h = new o.SchemaEnv({ schema: {}, schemaId: A });
2985
- if (z = o.resolveSchema.call(this, h, O), !z)
2984
+ const { schemaId: T } = this.opts, h = new o.SchemaEnv({ schema: {}, schemaId: T });
2985
+ if (z = o.resolveSchema.call(this, h, q), !z)
2986
2986
  return;
2987
- this.refs[O] = z;
2987
+ this.refs[q] = z;
2988
2988
  }
2989
2989
  return z.validate || this._compileSchemaEnv(z);
2990
2990
  }
@@ -2992,138 +2992,138 @@ function xn() {
2992
2992
  // If no parameter is passed all schemas but meta-schemas are removed.
2993
2993
  // If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
2994
2994
  // Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
2995
- removeSchema(O) {
2996
- if (O instanceof RegExp)
2997
- return this._removeAllSchemas(this.schemas, O), this._removeAllSchemas(this.refs, O), this;
2998
- switch (typeof O) {
2995
+ removeSchema(q) {
2996
+ if (q instanceof RegExp)
2997
+ return this._removeAllSchemas(this.schemas, q), this._removeAllSchemas(this.refs, q), this;
2998
+ switch (typeof q) {
2999
2999
  case "undefined":
3000
3000
  return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
3001
3001
  case "string": {
3002
- const z = c.call(this, O);
3003
- return typeof z == "object" && this._cache.delete(z.schema), delete this.schemas[O], delete this.refs[O], this;
3002
+ const z = c.call(this, q);
3003
+ return typeof z == "object" && this._cache.delete(z.schema), delete this.schemas[q], delete this.refs[q], this;
3004
3004
  }
3005
3005
  case "object": {
3006
- const z = O;
3006
+ const z = q;
3007
3007
  this._cache.delete(z);
3008
- let A = O[this.opts.schemaId];
3009
- return A && (A = (0, d.normalizeId)(A), delete this.schemas[A], delete this.refs[A]), this;
3008
+ let T = q[this.opts.schemaId];
3009
+ return T && (T = (0, d.normalizeId)(T), delete this.schemas[T], delete this.refs[T]), this;
3010
3010
  }
3011
3011
  default:
3012
3012
  throw new Error("ajv.removeSchema: invalid parameter");
3013
3013
  }
3014
3014
  }
3015
3015
  // add "vocabulary" - a collection of keywords
3016
- addVocabulary(O) {
3017
- for (const z of O)
3016
+ addVocabulary(q) {
3017
+ for (const z of q)
3018
3018
  this.addKeyword(z);
3019
3019
  return this;
3020
3020
  }
3021
- addKeyword(O, z) {
3022
- let A;
3023
- if (typeof O == "string")
3024
- A = O, typeof z == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), z.keyword = A);
3025
- else if (typeof O == "object" && z === void 0) {
3026
- if (z = O, A = z.keyword, Array.isArray(A) && !A.length)
3021
+ addKeyword(q, z) {
3022
+ let T;
3023
+ if (typeof q == "string")
3024
+ T = q, typeof z == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), z.keyword = T);
3025
+ else if (typeof q == "object" && z === void 0) {
3026
+ if (z = q, T = z.keyword, Array.isArray(T) && !T.length)
3027
3027
  throw new Error("addKeywords: keyword must be string or non-empty array");
3028
3028
  } else
3029
3029
  throw new Error("invalid addKeywords parameters");
3030
- if (H.call(this, A, z), !z)
3031
- return (0, m.eachItem)(A, (R) => X.call(this, R)), this;
3030
+ if (H.call(this, T, z), !z)
3031
+ return (0, m.eachItem)(T, (R) => X.call(this, R)), this;
3032
3032
  ue.call(this, z);
3033
3033
  const h = {
3034
3034
  ...z,
3035
- type: (0, f.getJSONTypes)(z.type),
3036
- schemaType: (0, f.getJSONTypes)(z.schemaType)
3035
+ type: (0, l.getJSONTypes)(z.type),
3036
+ schemaType: (0, l.getJSONTypes)(z.schemaType)
3037
3037
  };
3038
- return (0, m.eachItem)(A, h.type.length === 0 ? (R) => X.call(this, R, h) : (R) => h.type.forEach((C) => X.call(this, R, h, C))), this;
3038
+ return (0, m.eachItem)(T, h.type.length === 0 ? (R) => X.call(this, R, h) : (R) => h.type.forEach((C) => X.call(this, R, h, C))), this;
3039
3039
  }
3040
- getKeyword(O) {
3041
- const z = this.RULES.all[O];
3040
+ getKeyword(q) {
3041
+ const z = this.RULES.all[q];
3042
3042
  return typeof z == "object" ? z.definition : !!z;
3043
3043
  }
3044
3044
  // Remove keyword
3045
- removeKeyword(O) {
3045
+ removeKeyword(q) {
3046
3046
  const { RULES: z } = this;
3047
- delete z.keywords[O], delete z.all[O];
3048
- for (const A of z.rules) {
3049
- const h = A.rules.findIndex((R) => R.keyword === O);
3050
- h >= 0 && A.rules.splice(h, 1);
3047
+ delete z.keywords[q], delete z.all[q];
3048
+ for (const T of z.rules) {
3049
+ const h = T.rules.findIndex((R) => R.keyword === q);
3050
+ h >= 0 && T.rules.splice(h, 1);
3051
3051
  }
3052
3052
  return this;
3053
3053
  }
3054
3054
  // Add format
3055
- addFormat(O, z) {
3056
- return typeof z == "string" && (z = new RegExp(z)), this.formats[O] = z, this;
3055
+ addFormat(q, z) {
3056
+ return typeof z == "string" && (z = new RegExp(z)), this.formats[q] = z, this;
3057
3057
  }
3058
- errorsText(O = this.errors, { separator: z = ", ", dataVar: A = "data" } = {}) {
3059
- return !O || O.length === 0 ? "No errors" : O.map((h) => `${A}${h.instancePath} ${h.message}`).reduce((h, R) => h + z + R);
3058
+ errorsText(q = this.errors, { separator: z = ", ", dataVar: T = "data" } = {}) {
3059
+ return !q || q.length === 0 ? "No errors" : q.map((h) => `${T}${h.instancePath} ${h.message}`).reduce((h, R) => h + z + R);
3060
3060
  }
3061
- $dataMetaSchema(O, z) {
3062
- const A = this.RULES.all;
3063
- O = JSON.parse(JSON.stringify(O));
3061
+ $dataMetaSchema(q, z) {
3062
+ const T = this.RULES.all;
3063
+ q = JSON.parse(JSON.stringify(q));
3064
3064
  for (const h of z) {
3065
3065
  const R = h.split("/").slice(1);
3066
- let C = O;
3066
+ let C = q;
3067
3067
  for (const K of R)
3068
3068
  C = C[K];
3069
- for (const K in A) {
3070
- const L = A[K];
3069
+ for (const K in T) {
3070
+ const L = T[K];
3071
3071
  if (typeof L != "object")
3072
3072
  continue;
3073
3073
  const { $data: Q } = L.definition, Y = C[K];
3074
- Q && Y && (C[K] = le(Y));
3074
+ Q && Y && (C[K] = me(Y));
3075
3075
  }
3076
3076
  }
3077
- return O;
3077
+ return q;
3078
3078
  }
3079
- _removeAllSchemas(O, z) {
3080
- for (const A in O) {
3081
- const h = O[A];
3082
- (!z || z.test(A)) && (typeof h == "string" ? delete O[A] : h && !h.meta && (this._cache.delete(h.schema), delete O[A]));
3079
+ _removeAllSchemas(q, z) {
3080
+ for (const T in q) {
3081
+ const h = q[T];
3082
+ (!z || z.test(T)) && (typeof h == "string" ? delete q[T] : h && !h.meta && (this._cache.delete(h.schema), delete q[T]));
3083
3083
  }
3084
3084
  }
3085
- _addSchema(O, z, A, h = this.opts.validateSchema, R = this.opts.addUsedSchema) {
3085
+ _addSchema(q, z, T, h = this.opts.validateSchema, R = this.opts.addUsedSchema) {
3086
3086
  let C;
3087
3087
  const { schemaId: K } = this.opts;
3088
- if (typeof O == "object")
3089
- C = O[K];
3088
+ if (typeof q == "object")
3089
+ C = q[K];
3090
3090
  else {
3091
3091
  if (this.opts.jtd)
3092
3092
  throw new Error("schema must be object");
3093
- if (typeof O != "boolean")
3093
+ if (typeof q != "boolean")
3094
3094
  throw new Error("schema must be object or boolean");
3095
3095
  }
3096
- let L = this._cache.get(O);
3096
+ let L = this._cache.get(q);
3097
3097
  if (L !== void 0)
3098
3098
  return L;
3099
- A = (0, d.normalizeId)(C || A);
3100
- const Q = d.getSchemaRefs.call(this, O, A);
3101
- return L = new o.SchemaEnv({ schema: O, schemaId: K, meta: z, baseId: A, localRefs: Q }), this._cache.set(L.schema, L), R && !A.startsWith("#") && (A && this._checkUnique(A), this.refs[A] = L), h && this.validateSchema(O, !0), L;
3099
+ T = (0, d.normalizeId)(C || T);
3100
+ const Q = d.getSchemaRefs.call(this, q, T);
3101
+ return L = new o.SchemaEnv({ schema: q, schemaId: K, meta: z, baseId: T, localRefs: Q }), this._cache.set(L.schema, L), R && !T.startsWith("#") && (T && this._checkUnique(T), this.refs[T] = L), h && this.validateSchema(q, !0), L;
3102
3102
  }
3103
- _checkUnique(O) {
3104
- if (this.schemas[O] || this.refs[O])
3105
- throw new Error(`schema with key or id "${O}" already exists`);
3103
+ _checkUnique(q) {
3104
+ if (this.schemas[q] || this.refs[q])
3105
+ throw new Error(`schema with key or id "${q}" already exists`);
3106
3106
  }
3107
- _compileSchemaEnv(O) {
3108
- if (O.meta ? this._compileMetaSchema(O) : o.compileSchema.call(this, O), !O.validate)
3107
+ _compileSchemaEnv(q) {
3108
+ if (q.meta ? this._compileMetaSchema(q) : o.compileSchema.call(this, q), !q.validate)
3109
3109
  throw new Error("ajv implementation error");
3110
- return O.validate;
3110
+ return q.validate;
3111
3111
  }
3112
- _compileMetaSchema(O) {
3112
+ _compileMetaSchema(q) {
3113
3113
  const z = this.opts;
3114
3114
  this.opts = this._metaOpts;
3115
3115
  try {
3116
- o.compileSchema.call(this, O);
3116
+ o.compileSchema.call(this, q);
3117
3117
  } finally {
3118
3118
  this.opts = z;
3119
3119
  }
3120
3120
  }
3121
3121
  }
3122
- w.ValidationError = a.default, w.MissingRefError = l.default, e.default = w;
3123
- function s(V, O, z, A = "error") {
3122
+ w.ValidationError = a.default, w.MissingRefError = f.default, e.default = w;
3123
+ function s(V, q, z, T = "error") {
3124
3124
  for (const h in V) {
3125
3125
  const R = h;
3126
- R in O && this.logger[A](`${z}: option ${h}. ${V[R]}`);
3126
+ R in q && this.logger[T](`${z}: option ${h}. ${V[R]}`);
3127
3127
  }
3128
3128
  }
3129
3129
  function c(V) {
@@ -3135,13 +3135,13 @@ function xn() {
3135
3135
  if (Array.isArray(V))
3136
3136
  this.addSchema(V);
3137
3137
  else
3138
- for (const O in V)
3139
- this.addSchema(V[O], O);
3138
+ for (const q in V)
3139
+ this.addSchema(V[q], q);
3140
3140
  }
3141
3141
  function k() {
3142
3142
  for (const V in this.opts.formats) {
3143
- const O = this.opts.formats[V];
3144
- O && this.addFormat(V, O);
3143
+ const q = this.opts.formats[V];
3144
+ q && this.addFormat(V, q);
3145
3145
  }
3146
3146
  }
3147
3147
  function P(V) {
@@ -3150,24 +3150,24 @@ function xn() {
3150
3150
  return;
3151
3151
  }
3152
3152
  this.logger.warn("keywords option as map is deprecated, pass array");
3153
- for (const O in V) {
3154
- const z = V[O];
3155
- z.keyword || (z.keyword = O), this.addKeyword(z);
3153
+ for (const q in V) {
3154
+ const z = V[q];
3155
+ z.keyword || (z.keyword = q), this.addKeyword(z);
3156
3156
  }
3157
3157
  }
3158
3158
  function N() {
3159
3159
  const V = { ...this.opts };
3160
- for (const O of S)
3161
- delete V[O];
3160
+ for (const q of S)
3161
+ delete V[q];
3162
3162
  return V;
3163
3163
  }
3164
- const T = { log() {
3164
+ const A = { log() {
3165
3165
  }, warn() {
3166
3166
  }, error() {
3167
3167
  } };
3168
- function q(V) {
3168
+ function O(V) {
3169
3169
  if (V === !1)
3170
- return T;
3170
+ return A;
3171
3171
  if (V === void 0)
3172
3172
  return console;
3173
3173
  if (V.log && V.warn && V.error)
@@ -3175,53 +3175,53 @@ function xn() {
3175
3175
  throw new Error("logger must implement log, warn and error methods");
3176
3176
  }
3177
3177
  const M = /^[a-z_$][a-z0-9_$:-]*$/i;
3178
- function H(V, O) {
3178
+ function H(V, q) {
3179
3179
  const { RULES: z } = this;
3180
- if ((0, m.eachItem)(V, (A) => {
3181
- if (z.keywords[A])
3182
- throw new Error(`Keyword ${A} is already defined`);
3183
- if (!M.test(A))
3184
- throw new Error(`Keyword ${A} has invalid name`);
3185
- }), !!O && O.$data && !("code" in O || "validate" in O))
3180
+ if ((0, m.eachItem)(V, (T) => {
3181
+ if (z.keywords[T])
3182
+ throw new Error(`Keyword ${T} is already defined`);
3183
+ if (!M.test(T))
3184
+ throw new Error(`Keyword ${T} has invalid name`);
3185
+ }), !!q && q.$data && !("code" in q || "validate" in q))
3186
3186
  throw new Error('$data keyword must have "code" or "validate" function');
3187
3187
  }
3188
- function X(V, O, z) {
3189
- var A;
3190
- const h = O?.post;
3188
+ function X(V, q, z) {
3189
+ var T;
3190
+ const h = q?.post;
3191
3191
  if (z && h)
3192
3192
  throw new Error('keyword with "post" flag cannot have "type"');
3193
3193
  const { RULES: R } = this;
3194
3194
  let C = h ? R.post : R.rules.find(({ type: L }) => L === z);
3195
- if (C || (C = { type: z, rules: [] }, R.rules.push(C)), R.keywords[V] = !0, !O)
3195
+ if (C || (C = { type: z, rules: [] }, R.rules.push(C)), R.keywords[V] = !0, !q)
3196
3196
  return;
3197
3197
  const K = {
3198
3198
  keyword: V,
3199
3199
  definition: {
3200
- ...O,
3201
- type: (0, f.getJSONTypes)(O.type),
3202
- schemaType: (0, f.getJSONTypes)(O.schemaType)
3200
+ ...q,
3201
+ type: (0, l.getJSONTypes)(q.type),
3202
+ schemaType: (0, l.getJSONTypes)(q.schemaType)
3203
3203
  }
3204
3204
  };
3205
- O.before ? x.call(this, C, K, O.before) : C.rules.push(K), R.all[V] = K, (A = O.implements) === null || A === void 0 || A.forEach((L) => this.addKeyword(L));
3205
+ q.before ? x.call(this, C, K, q.before) : C.rules.push(K), R.all[V] = K, (T = q.implements) === null || T === void 0 || T.forEach((L) => this.addKeyword(L));
3206
3206
  }
3207
- function x(V, O, z) {
3208
- const A = V.rules.findIndex((h) => h.keyword === z);
3209
- A >= 0 ? V.rules.splice(A, 0, O) : (V.rules.push(O), this.logger.warn(`rule ${z} is not defined`));
3207
+ function x(V, q, z) {
3208
+ const T = V.rules.findIndex((h) => h.keyword === z);
3209
+ T >= 0 ? V.rules.splice(T, 0, q) : (V.rules.push(q), this.logger.warn(`rule ${z} is not defined`));
3210
3210
  }
3211
3211
  function ue(V) {
3212
- let { metaSchema: O } = V;
3213
- O !== void 0 && (V.$data && this.opts.$data && (O = le(O)), V.validateSchema = this.compile(O, !0));
3212
+ let { metaSchema: q } = V;
3213
+ q !== void 0 && (V.$data && this.opts.$data && (q = me(q)), V.validateSchema = this.compile(q, !0));
3214
3214
  }
3215
3215
  const B = {
3216
3216
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
3217
3217
  };
3218
- function le(V) {
3218
+ function me(V) {
3219
3219
  return { anyOf: [V, B] };
3220
3220
  }
3221
3221
  })(Qt)), Qt;
3222
3222
  }
3223
3223
  var He = {}, Ge = {}, Je = {}, Ur;
3224
- function Va() {
3224
+ function Fa() {
3225
3225
  if (Ur) return Je;
3226
3226
  Ur = 1, Object.defineProperty(Je, "__esModule", { value: !0 });
3227
3227
  const e = {
@@ -3236,61 +3236,61 @@ var be = {}, Lr;
3236
3236
  function dr() {
3237
3237
  if (Lr) return be;
3238
3238
  Lr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.callRef = be.getValidate = void 0;
3239
- const e = /* @__PURE__ */ ze(), t = /* @__PURE__ */ ve(), n = /* @__PURE__ */ G(), a = /* @__PURE__ */ ye(), l = /* @__PURE__ */ Jt(), r = /* @__PURE__ */ Z(), o = {
3239
+ const e = /* @__PURE__ */ ze(), t = /* @__PURE__ */ ve(), n = /* @__PURE__ */ G(), a = /* @__PURE__ */ ye(), f = /* @__PURE__ */ Jt(), r = /* @__PURE__ */ Z(), o = {
3240
3240
  keyword: "$ref",
3241
3241
  schemaType: "string",
3242
- code(f) {
3243
- const { gen: m, schema: g, it: _ } = f, { baseId: b, schemaEnv: S, validateName: E, opts: y, self: v } = _, { root: u } = S;
3242
+ code(l) {
3243
+ const { gen: m, schema: g, it: _ } = l, { baseId: b, schemaEnv: S, validateName: E, opts: y, self: v } = _, { root: u } = S;
3244
3244
  if ((g === "#" || g === "#/") && b === u.baseId)
3245
3245
  return w();
3246
- const $ = l.resolveRef.call(v, u, b, g);
3246
+ const $ = f.resolveRef.call(v, u, b, g);
3247
3247
  if ($ === void 0)
3248
3248
  throw new e.default(_.opts.uriResolver, b, g);
3249
- if ($ instanceof l.SchemaEnv)
3249
+ if ($ instanceof f.SchemaEnv)
3250
3250
  return s($);
3251
3251
  return c($);
3252
3252
  function w() {
3253
3253
  if (S === u)
3254
- return d(f, E, S, S.$async);
3254
+ return d(l, E, S, S.$async);
3255
3255
  const p = m.scopeValue("root", { ref: u });
3256
- return d(f, (0, n._)`${p}.validate`, u, u.$async);
3256
+ return d(l, (0, n._)`${p}.validate`, u, u.$async);
3257
3257
  }
3258
3258
  function s(p) {
3259
- const k = i(f, p);
3260
- d(f, k, p, p.$async);
3259
+ const k = i(l, p);
3260
+ d(l, k, p, p.$async);
3261
3261
  }
3262
3262
  function c(p) {
3263
- const k = m.scopeValue("schema", y.code.source === !0 ? { ref: p, code: (0, n.stringify)(p) } : { ref: p }), P = m.name("valid"), N = f.subschema({
3263
+ const k = m.scopeValue("schema", y.code.source === !0 ? { ref: p, code: (0, n.stringify)(p) } : { ref: p }), P = m.name("valid"), N = l.subschema({
3264
3264
  schema: p,
3265
3265
  dataTypes: [],
3266
3266
  schemaPath: n.nil,
3267
3267
  topSchemaRef: k,
3268
3268
  errSchemaPath: g
3269
3269
  }, P);
3270
- f.mergeEvaluated(N), f.ok(P);
3270
+ l.mergeEvaluated(N), l.ok(P);
3271
3271
  }
3272
3272
  }
3273
3273
  };
3274
- function i(f, m) {
3275
- const { gen: g } = f;
3274
+ function i(l, m) {
3275
+ const { gen: g } = l;
3276
3276
  return m.validate ? g.scopeValue("validate", { ref: m.validate }) : (0, n._)`${g.scopeValue("wrapper", { ref: m })}.validate`;
3277
3277
  }
3278
3278
  be.getValidate = i;
3279
- function d(f, m, g, _) {
3280
- const { gen: b, it: S } = f, { allErrors: E, schemaEnv: y, opts: v } = S, u = v.passContext ? a.default.this : n.nil;
3279
+ function d(l, m, g, _) {
3280
+ const { gen: b, it: S } = l, { allErrors: E, schemaEnv: y, opts: v } = S, u = v.passContext ? a.default.this : n.nil;
3281
3281
  _ ? $() : w();
3282
3282
  function $() {
3283
3283
  if (!y.$async)
3284
3284
  throw new Error("async schema referenced by sync schema");
3285
3285
  const p = b.let("valid");
3286
3286
  b.try(() => {
3287
- b.code((0, n._)`await ${(0, t.callValidateCode)(f, m, u)}`), c(m), E || b.assign(p, !0);
3287
+ b.code((0, n._)`await ${(0, t.callValidateCode)(l, m, u)}`), c(m), E || b.assign(p, !0);
3288
3288
  }, (k) => {
3289
3289
  b.if((0, n._)`!(${k} instanceof ${S.ValidationError})`, () => b.throw(k)), s(k), E || b.assign(p, !1);
3290
- }), f.ok(p);
3290
+ }), l.ok(p);
3291
3291
  }
3292
3292
  function w() {
3293
- f.result((0, t.callValidateCode)(f, m, u), () => c(m), () => s(m));
3293
+ l.result((0, t.callValidateCode)(l, m, u), () => c(m), () => s(m));
3294
3294
  }
3295
3295
  function s(p) {
3296
3296
  const k = (0, n._)`${p}.errors`;
@@ -3323,7 +3323,7 @@ var Hr;
3323
3323
  function ea() {
3324
3324
  if (Hr) return Ge;
3325
3325
  Hr = 1, Object.defineProperty(Ge, "__esModule", { value: !0 });
3326
- const e = /* @__PURE__ */ Va(), t = /* @__PURE__ */ dr(), n = [
3326
+ const e = /* @__PURE__ */ Fa(), t = /* @__PURE__ */ dr(), n = [
3327
3327
  "$schema",
3328
3328
  "$id",
3329
3329
  "$defs",
@@ -3336,7 +3336,7 @@ function ea() {
3336
3336
  return Ge.default = n, Ge;
3337
3337
  }
3338
3338
  var We = {}, Be = {}, Gr;
3339
- function Fa() {
3339
+ function Ka() {
3340
3340
  if (Gr) return Be;
3341
3341
  Gr = 1, Object.defineProperty(Be, "__esModule", { value: !0 });
3342
3342
  const e = /* @__PURE__ */ G(), t = e.operators, n = {
@@ -3347,7 +3347,7 @@ function Fa() {
3347
3347
  }, a = {
3348
3348
  message: ({ keyword: r, schemaCode: o }) => (0, e.str)`must be ${n[r].okStr} ${o}`,
3349
3349
  params: ({ keyword: r, schemaCode: o }) => (0, e._)`{comparison: ${n[r].okStr}, limit: ${o}}`
3350
- }, l = {
3350
+ }, f = {
3351
3351
  keyword: Object.keys(n),
3352
3352
  type: "number",
3353
3353
  schemaType: "number",
@@ -3358,10 +3358,10 @@ function Fa() {
3358
3358
  r.fail$data((0, e._)`${i} ${n[o].fail} ${d} || isNaN(${i})`);
3359
3359
  }
3360
3360
  };
3361
- return Be.default = l, Be;
3361
+ return Be.default = f, Be;
3362
3362
  }
3363
3363
  var Ze = {}, Jr;
3364
- function Ka() {
3364
+ function Ua() {
3365
3365
  if (Jr) return Ze;
3366
3366
  Jr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
3367
3367
  const e = /* @__PURE__ */ G(), n = {
@@ -3374,30 +3374,30 @@ function Ka() {
3374
3374
  params: ({ schemaCode: a }) => (0, e._)`{multipleOf: ${a}}`
3375
3375
  },
3376
3376
  code(a) {
3377
- const { gen: l, data: r, schemaCode: o, it: i } = a, d = i.opts.multipleOfPrecision, f = l.let("res"), m = d ? (0, e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${d}` : (0, e._)`${f} !== parseInt(${f})`;
3378
- a.fail$data((0, e._)`(${o} === 0 || (${f} = ${r}/${o}, ${m}))`);
3377
+ const { gen: f, data: r, schemaCode: o, it: i } = a, d = i.opts.multipleOfPrecision, l = f.let("res"), m = d ? (0, e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${d}` : (0, e._)`${l} !== parseInt(${l})`;
3378
+ a.fail$data((0, e._)`(${o} === 0 || (${l} = ${r}/${o}, ${m}))`);
3379
3379
  }
3380
3380
  };
3381
3381
  return Ze.default = n, Ze;
3382
3382
  }
3383
3383
  var Ye = {}, Qe = {}, Wr;
3384
- function Ua() {
3384
+ function La() {
3385
3385
  if (Wr) return Qe;
3386
3386
  Wr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
3387
3387
  function e(t) {
3388
3388
  const n = t.length;
3389
- let a = 0, l = 0, r;
3390
- for (; l < n; )
3391
- a++, r = t.charCodeAt(l++), r >= 55296 && r <= 56319 && l < n && (r = t.charCodeAt(l), (r & 64512) === 56320 && l++);
3389
+ let a = 0, f = 0, r;
3390
+ for (; f < n; )
3391
+ a++, r = t.charCodeAt(f++), r >= 55296 && r <= 56319 && f < n && (r = t.charCodeAt(f), (r & 64512) === 56320 && f++);
3392
3392
  return a;
3393
3393
  }
3394
3394
  return Qe.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Qe;
3395
3395
  }
3396
3396
  var Br;
3397
- function La() {
3397
+ function Ha() {
3398
3398
  if (Br) return Ye;
3399
3399
  Br = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
3400
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ Ua(), l = {
3400
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ La(), f = {
3401
3401
  keyword: ["maxLength", "minLength"],
3402
3402
  type: "string",
3403
3403
  schemaType: "number",
@@ -3410,17 +3410,17 @@ function La() {
3410
3410
  params: ({ schemaCode: r }) => (0, e._)`{limit: ${r}}`
3411
3411
  },
3412
3412
  code(r) {
3413
- const { keyword: o, data: i, schemaCode: d, it: f } = r, m = o === "maxLength" ? e.operators.GT : e.operators.LT, g = f.opts.unicode === !1 ? (0, e._)`${i}.length` : (0, e._)`${(0, t.useFunc)(r.gen, n.default)}(${i})`;
3413
+ const { keyword: o, data: i, schemaCode: d, it: l } = r, m = o === "maxLength" ? e.operators.GT : e.operators.LT, g = l.opts.unicode === !1 ? (0, e._)`${i}.length` : (0, e._)`${(0, t.useFunc)(r.gen, n.default)}(${i})`;
3414
3414
  r.fail$data((0, e._)`${g} ${m} ${d}`);
3415
3415
  }
3416
3416
  };
3417
- return Ye.default = l, Ye;
3417
+ return Ye.default = f, Ye;
3418
3418
  }
3419
3419
  var Xe = {}, Zr;
3420
- function Ha() {
3420
+ function Ga() {
3421
3421
  if (Zr) return Xe;
3422
3422
  Zr = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
3423
- const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ G(), l = {
3423
+ const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ G(), f = {
3424
3424
  keyword: "pattern",
3425
3425
  type: "string",
3426
3426
  schemaType: "string",
@@ -3430,20 +3430,20 @@ function Ha() {
3430
3430
  params: ({ schemaCode: r }) => (0, n._)`{pattern: ${r}}`
3431
3431
  },
3432
3432
  code(r) {
3433
- const { gen: o, data: i, $data: d, schema: f, schemaCode: m, it: g } = r, _ = g.opts.unicodeRegExp ? "u" : "";
3433
+ const { gen: o, data: i, $data: d, schema: l, schemaCode: m, it: g } = r, _ = g.opts.unicodeRegExp ? "u" : "";
3434
3434
  if (d) {
3435
3435
  const { regExp: b } = g.opts.code, S = b.code === "new RegExp" ? (0, n._)`new RegExp` : (0, t.useFunc)(o, b), E = o.let("valid");
3436
3436
  o.try(() => o.assign(E, (0, n._)`${S}(${m}, ${_}).test(${i})`), () => o.assign(E, !1)), r.fail$data((0, n._)`!${E}`);
3437
3437
  } else {
3438
- const b = (0, e.usePattern)(r, f);
3438
+ const b = (0, e.usePattern)(r, l);
3439
3439
  r.fail$data((0, n._)`!${b}.test(${i})`);
3440
3440
  }
3441
3441
  }
3442
3442
  };
3443
- return Xe.default = l, Xe;
3443
+ return Xe.default = f, Xe;
3444
3444
  }
3445
3445
  var xe = {}, Yr;
3446
- function Ga() {
3446
+ function Ja() {
3447
3447
  if (Yr) return xe;
3448
3448
  Yr = 1, Object.defineProperty(xe, "__esModule", { value: !0 });
3449
3449
  const e = /* @__PURE__ */ G(), n = {
@@ -3452,24 +3452,24 @@ function Ga() {
3452
3452
  schemaType: "number",
3453
3453
  $data: !0,
3454
3454
  error: {
3455
- message({ keyword: a, schemaCode: l }) {
3455
+ message({ keyword: a, schemaCode: f }) {
3456
3456
  const r = a === "maxProperties" ? "more" : "fewer";
3457
- return (0, e.str)`must NOT have ${r} than ${l} properties`;
3457
+ return (0, e.str)`must NOT have ${r} than ${f} properties`;
3458
3458
  },
3459
3459
  params: ({ schemaCode: a }) => (0, e._)`{limit: ${a}}`
3460
3460
  },
3461
3461
  code(a) {
3462
- const { keyword: l, data: r, schemaCode: o } = a, i = l === "maxProperties" ? e.operators.GT : e.operators.LT;
3462
+ const { keyword: f, data: r, schemaCode: o } = a, i = f === "maxProperties" ? e.operators.GT : e.operators.LT;
3463
3463
  a.fail$data((0, e._)`Object.keys(${r}).length ${i} ${o}`);
3464
3464
  }
3465
3465
  };
3466
3466
  return xe.default = n, xe;
3467
3467
  }
3468
3468
  var et = {}, Qr;
3469
- function Ja() {
3469
+ function Wa() {
3470
3470
  if (Qr) return et;
3471
3471
  Qr = 1, Object.defineProperty(et, "__esModule", { value: !0 });
3472
- const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), l = {
3472
+ const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), f = {
3473
3473
  keyword: "required",
3474
3474
  type: "object",
3475
3475
  schemaType: "array",
@@ -3479,7 +3479,7 @@ function Ja() {
3479
3479
  params: ({ params: { missingProperty: r } }) => (0, t._)`{missingProperty: ${r}}`
3480
3480
  },
3481
3481
  code(r) {
3482
- const { gen: o, schema: i, schemaCode: d, data: f, $data: m, it: g } = r, { opts: _ } = g;
3482
+ const { gen: o, schema: i, schemaCode: d, data: l, $data: m, it: g } = r, { opts: _ } = g;
3483
3483
  if (!m && i.length === 0)
3484
3484
  return;
3485
3485
  const b = i.length >= _.loopRequired;
@@ -3508,22 +3508,22 @@ function Ja() {
3508
3508
  }
3509
3509
  function y() {
3510
3510
  o.forOf("prop", d, (u) => {
3511
- r.setParams({ missingProperty: u }), o.if((0, e.noPropertyInData)(o, f, u, _.ownProperties), () => r.error());
3511
+ r.setParams({ missingProperty: u }), o.if((0, e.noPropertyInData)(o, l, u, _.ownProperties), () => r.error());
3512
3512
  });
3513
3513
  }
3514
3514
  function v(u, $) {
3515
3515
  r.setParams({ missingProperty: u }), o.forOf(u, d, () => {
3516
- o.assign($, (0, e.propertyInData)(o, f, u, _.ownProperties)), o.if((0, t.not)($), () => {
3516
+ o.assign($, (0, e.propertyInData)(o, l, u, _.ownProperties)), o.if((0, t.not)($), () => {
3517
3517
  r.error(), o.break();
3518
3518
  });
3519
3519
  }, t.nil);
3520
3520
  }
3521
3521
  }
3522
3522
  };
3523
- return et.default = l, et;
3523
+ return et.default = f, et;
3524
3524
  }
3525
3525
  var tt = {}, Xr;
3526
- function Wa() {
3526
+ function Ba() {
3527
3527
  if (Xr) return tt;
3528
3528
  Xr = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
3529
3529
  const e = /* @__PURE__ */ G(), n = {
@@ -3532,14 +3532,14 @@ function Wa() {
3532
3532
  schemaType: "number",
3533
3533
  $data: !0,
3534
3534
  error: {
3535
- message({ keyword: a, schemaCode: l }) {
3535
+ message({ keyword: a, schemaCode: f }) {
3536
3536
  const r = a === "maxItems" ? "more" : "fewer";
3537
- return (0, e.str)`must NOT have ${r} than ${l} items`;
3537
+ return (0, e.str)`must NOT have ${r} than ${f} items`;
3538
3538
  },
3539
3539
  params: ({ schemaCode: a }) => (0, e._)`{limit: ${a}}`
3540
3540
  },
3541
3541
  code(a) {
3542
- const { keyword: l, data: r, schemaCode: o } = a, i = l === "maxItems" ? e.operators.GT : e.operators.LT;
3542
+ const { keyword: f, data: r, schemaCode: o } = a, i = f === "maxItems" ? e.operators.GT : e.operators.LT;
3543
3543
  a.fail$data((0, e._)`${r}.length ${i} ${o}`);
3544
3544
  }
3545
3545
  };
@@ -3553,7 +3553,7 @@ function fr() {
3553
3553
  return e.code = 'require("ajv/dist/runtime/equal").default', nt.default = e, nt;
3554
3554
  }
3555
3555
  var en;
3556
- function Ba() {
3556
+ function Za() {
3557
3557
  if (en) return rt;
3558
3558
  en = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
3559
3559
  const e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ fr(), r = {
@@ -3566,8 +3566,8 @@ function Ba() {
3566
3566
  params: ({ params: { i: o, j: i } }) => (0, t._)`{i: ${o}, j: ${i}}`
3567
3567
  },
3568
3568
  code(o) {
3569
- const { gen: i, data: d, $data: f, schema: m, parentSchema: g, schemaCode: _, it: b } = o;
3570
- if (!f && !m)
3569
+ const { gen: i, data: d, $data: l, schema: m, parentSchema: g, schemaCode: _, it: b } = o;
3570
+ if (!l && !m)
3571
3571
  return;
3572
3572
  const S = i.let("valid"), E = g.items ? (0, e.getSchemaTypes)(g.items) : [];
3573
3573
  o.block$data(S, y, (0, t._)`${_} === false`), o.ok(S);
@@ -3597,10 +3597,10 @@ function Ba() {
3597
3597
  return rt.default = r, rt;
3598
3598
  }
3599
3599
  var at = {}, tn;
3600
- function Za() {
3600
+ function Ya() {
3601
3601
  if (tn) return at;
3602
3602
  tn = 1, Object.defineProperty(at, "__esModule", { value: !0 });
3603
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ fr(), l = {
3603
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ fr(), f = {
3604
3604
  keyword: "const",
3605
3605
  $data: !0,
3606
3606
  error: {
@@ -3608,17 +3608,17 @@ function Za() {
3608
3608
  params: ({ schemaCode: r }) => (0, e._)`{allowedValue: ${r}}`
3609
3609
  },
3610
3610
  code(r) {
3611
- const { gen: o, data: i, $data: d, schemaCode: f, schema: m } = r;
3612
- d || m && typeof m == "object" ? r.fail$data((0, e._)`!${(0, t.useFunc)(o, n.default)}(${i}, ${f})`) : r.fail((0, e._)`${m} !== ${i}`);
3611
+ const { gen: o, data: i, $data: d, schemaCode: l, schema: m } = r;
3612
+ d || m && typeof m == "object" ? r.fail$data((0, e._)`!${(0, t.useFunc)(o, n.default)}(${i}, ${l})`) : r.fail((0, e._)`${m} !== ${i}`);
3613
3613
  }
3614
3614
  };
3615
- return at.default = l, at;
3615
+ return at.default = f, at;
3616
3616
  }
3617
3617
  var st = {}, rn;
3618
- function Ya() {
3618
+ function Qa() {
3619
3619
  if (rn) return st;
3620
3620
  rn = 1, Object.defineProperty(st, "__esModule", { value: !0 });
3621
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ fr(), l = {
3621
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ fr(), f = {
3622
3622
  keyword: "enum",
3623
3623
  schemaType: "array",
3624
3624
  $data: !0,
@@ -3627,38 +3627,38 @@ function Ya() {
3627
3627
  params: ({ schemaCode: r }) => (0, e._)`{allowedValues: ${r}}`
3628
3628
  },
3629
3629
  code(r) {
3630
- const { gen: o, data: i, $data: d, schema: f, schemaCode: m, it: g } = r;
3631
- if (!d && f.length === 0)
3630
+ const { gen: o, data: i, $data: d, schema: l, schemaCode: m, it: g } = r;
3631
+ if (!d && l.length === 0)
3632
3632
  throw new Error("enum must have non-empty array");
3633
- const _ = f.length >= g.opts.loopEnum;
3633
+ const _ = l.length >= g.opts.loopEnum;
3634
3634
  let b;
3635
3635
  const S = () => b ?? (b = (0, t.useFunc)(o, n.default));
3636
3636
  let E;
3637
3637
  if (_ || d)
3638
3638
  E = o.let("valid"), r.block$data(E, y);
3639
3639
  else {
3640
- if (!Array.isArray(f))
3640
+ if (!Array.isArray(l))
3641
3641
  throw new Error("ajv implementation error");
3642
3642
  const u = o.const("vSchema", m);
3643
- E = (0, e.or)(...f.map(($, w) => v(u, w)));
3643
+ E = (0, e.or)(...l.map(($, w) => v(u, w)));
3644
3644
  }
3645
3645
  r.pass(E);
3646
3646
  function y() {
3647
3647
  o.assign(E, !1), o.forOf("v", m, (u) => o.if((0, e._)`${S()}(${i}, ${u})`, () => o.assign(E, !0).break()));
3648
3648
  }
3649
3649
  function v(u, $) {
3650
- const w = f[$];
3650
+ const w = l[$];
3651
3651
  return typeof w == "object" && w !== null ? (0, e._)`${S()}(${i}, ${u}[${$}])` : (0, e._)`${i} === ${w}`;
3652
3652
  }
3653
3653
  }
3654
3654
  };
3655
- return st.default = l, st;
3655
+ return st.default = f, st;
3656
3656
  }
3657
3657
  var nn;
3658
3658
  function ta() {
3659
3659
  if (nn) return We;
3660
3660
  nn = 1, Object.defineProperty(We, "__esModule", { value: !0 });
3661
- const e = /* @__PURE__ */ Fa(), t = /* @__PURE__ */ Ka(), n = /* @__PURE__ */ La(), a = /* @__PURE__ */ Ha(), l = /* @__PURE__ */ Ga(), r = /* @__PURE__ */ Ja(), o = /* @__PURE__ */ Wa(), i = /* @__PURE__ */ Ba(), d = /* @__PURE__ */ Za(), f = /* @__PURE__ */ Ya(), m = [
3661
+ const e = /* @__PURE__ */ Ka(), t = /* @__PURE__ */ Ua(), n = /* @__PURE__ */ Ha(), a = /* @__PURE__ */ Ga(), f = /* @__PURE__ */ Ja(), r = /* @__PURE__ */ Wa(), o = /* @__PURE__ */ Ba(), i = /* @__PURE__ */ Za(), d = /* @__PURE__ */ Ya(), l = /* @__PURE__ */ Qa(), m = [
3662
3662
  // number
3663
3663
  e.default,
3664
3664
  t.default,
@@ -3666,7 +3666,7 @@ function ta() {
3666
3666
  n.default,
3667
3667
  a.default,
3668
3668
  // object
3669
- l.default,
3669
+ f.default,
3670
3670
  r.default,
3671
3671
  // array
3672
3672
  o.default,
@@ -3675,7 +3675,7 @@ function ta() {
3675
3675
  { keyword: "type", schemaType: ["string", "array"] },
3676
3676
  { keyword: "nullable", schemaType: "boolean" },
3677
3677
  d.default,
3678
- f.default
3678
+ l.default
3679
3679
  ];
3680
3680
  return We.default = m, We;
3681
3681
  }
@@ -3698,13 +3698,13 @@ function ra() {
3698
3698
  (0, t.checkStrictMode)(i, '"additionalItems" is ignored when "items" is not an array of schemas');
3699
3699
  return;
3700
3700
  }
3701
- l(r, d);
3701
+ f(r, d);
3702
3702
  }
3703
3703
  };
3704
- function l(r, o) {
3705
- const { gen: i, schema: d, data: f, keyword: m, it: g } = r;
3704
+ function f(r, o) {
3705
+ const { gen: i, schema: d, data: l, keyword: m, it: g } = r;
3706
3706
  g.items = !0;
3707
- const _ = i.const("len", (0, e._)`${f}.length`);
3707
+ const _ = i.const("len", (0, e._)`${l}.length`);
3708
3708
  if (d === !1)
3709
3709
  r.setParams({ len: o.length }), r.pass((0, e._)`${_} <= ${o.length}`);
3710
3710
  else if (typeof d == "object" && !(0, t.alwaysValidSchema)(g, d)) {
@@ -3717,7 +3717,7 @@ function ra() {
3717
3717
  });
3718
3718
  }
3719
3719
  }
3720
- return Re.validateAdditionalItems = l, Re.default = a, Re;
3720
+ return Re.validateAdditionalItems = f, Re.default = a, Re;
3721
3721
  }
3722
3722
  var it = {}, ke = {}, sn;
3723
3723
  function na() {
@@ -3731,13 +3731,13 @@ function na() {
3731
3731
  code(r) {
3732
3732
  const { schema: o, it: i } = r;
3733
3733
  if (Array.isArray(o))
3734
- return l(r, "additionalItems", o);
3734
+ return f(r, "additionalItems", o);
3735
3735
  i.items = !0, !(0, t.alwaysValidSchema)(i, o) && r.ok((0, n.validateArray)(r));
3736
3736
  }
3737
3737
  };
3738
- function l(r, o, i = r.schema) {
3739
- const { gen: d, parentSchema: f, data: m, keyword: g, it: _ } = r;
3740
- E(f), _.opts.unevaluated && i.length && _.items !== !0 && (_.items = t.mergeEvaluated.items(d, i.length, _.items));
3738
+ function f(r, o, i = r.schema) {
3739
+ const { gen: d, parentSchema: l, data: m, keyword: g, it: _ } = r;
3740
+ E(l), _.opts.unevaluated && i.length && _.items !== !0 && (_.items = t.mergeEvaluated.items(d, i.length, _.items));
3741
3741
  const b = d.name("valid"), S = d.const("len", (0, e._)`${m}.length`);
3742
3742
  i.forEach((y, v) => {
3743
3743
  (0, t.alwaysValidSchema)(_, y) || (d.if((0, e._)`${S} > ${v}`, () => r.subschema({
@@ -3754,10 +3754,10 @@ function na() {
3754
3754
  }
3755
3755
  }
3756
3756
  }
3757
- return ke.validateTuple = l, ke.default = a, ke;
3757
+ return ke.validateTuple = f, ke.default = a, ke;
3758
3758
  }
3759
3759
  var on;
3760
- function Qa() {
3760
+ function Xa() {
3761
3761
  if (on) return it;
3762
3762
  on = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3763
3763
  const e = /* @__PURE__ */ na(), t = {
@@ -3770,7 +3770,7 @@ function Qa() {
3770
3770
  return it.default = t, it;
3771
3771
  }
3772
3772
  var ct = {}, cn;
3773
- function Xa() {
3773
+ function xa() {
3774
3774
  if (cn) return ct;
3775
3775
  cn = 1, Object.defineProperty(ct, "__esModule", { value: !0 });
3776
3776
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ ve(), a = /* @__PURE__ */ ra(), r = {
@@ -3783,14 +3783,14 @@ function Xa() {
3783
3783
  params: ({ params: { len: o } }) => (0, e._)`{limit: ${o}}`
3784
3784
  },
3785
3785
  code(o) {
3786
- const { schema: i, parentSchema: d, it: f } = o, { prefixItems: m } = d;
3787
- f.items = !0, !(0, t.alwaysValidSchema)(f, i) && (m ? (0, a.validateAdditionalItems)(o, m) : o.ok((0, n.validateArray)(o)));
3786
+ const { schema: i, parentSchema: d, it: l } = o, { prefixItems: m } = d;
3787
+ l.items = !0, !(0, t.alwaysValidSchema)(l, i) && (m ? (0, a.validateAdditionalItems)(o, m) : o.ok((0, n.validateArray)(o)));
3788
3788
  }
3789
3789
  };
3790
3790
  return ct.default = r, ct;
3791
3791
  }
3792
3792
  var ut = {}, un;
3793
- function xa() {
3793
+ function es() {
3794
3794
  if (un) return ut;
3795
3795
  un = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
3796
3796
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), a = {
@@ -3800,38 +3800,38 @@ function xa() {
3800
3800
  before: "uniqueItems",
3801
3801
  trackErrors: !0,
3802
3802
  error: {
3803
- message: ({ params: { min: l, max: r } }) => r === void 0 ? (0, e.str)`must contain at least ${l} valid item(s)` : (0, e.str)`must contain at least ${l} and no more than ${r} valid item(s)`,
3804
- params: ({ params: { min: l, max: r } }) => r === void 0 ? (0, e._)`{minContains: ${l}}` : (0, e._)`{minContains: ${l}, maxContains: ${r}}`
3803
+ message: ({ params: { min: f, max: r } }) => r === void 0 ? (0, e.str)`must contain at least ${f} valid item(s)` : (0, e.str)`must contain at least ${f} and no more than ${r} valid item(s)`,
3804
+ params: ({ params: { min: f, max: r } }) => r === void 0 ? (0, e._)`{minContains: ${f}}` : (0, e._)`{minContains: ${f}, maxContains: ${r}}`
3805
3805
  },
3806
- code(l) {
3807
- const { gen: r, schema: o, parentSchema: i, data: d, it: f } = l;
3806
+ code(f) {
3807
+ const { gen: r, schema: o, parentSchema: i, data: d, it: l } = f;
3808
3808
  let m, g;
3809
3809
  const { minContains: _, maxContains: b } = i;
3810
- f.opts.next ? (m = _ === void 0 ? 1 : _, g = b) : m = 1;
3810
+ l.opts.next ? (m = _ === void 0 ? 1 : _, g = b) : m = 1;
3811
3811
  const S = r.const("len", (0, e._)`${d}.length`);
3812
- if (l.setParams({ min: m, max: g }), g === void 0 && m === 0) {
3813
- (0, t.checkStrictMode)(f, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3812
+ if (f.setParams({ min: m, max: g }), g === void 0 && m === 0) {
3813
+ (0, t.checkStrictMode)(l, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3814
3814
  return;
3815
3815
  }
3816
3816
  if (g !== void 0 && m > g) {
3817
- (0, t.checkStrictMode)(f, '"minContains" > "maxContains" is always invalid'), l.fail();
3817
+ (0, t.checkStrictMode)(l, '"minContains" > "maxContains" is always invalid'), f.fail();
3818
3818
  return;
3819
3819
  }
3820
- if ((0, t.alwaysValidSchema)(f, o)) {
3820
+ if ((0, t.alwaysValidSchema)(l, o)) {
3821
3821
  let $ = (0, e._)`${S} >= ${m}`;
3822
- g !== void 0 && ($ = (0, e._)`${$} && ${S} <= ${g}`), l.pass($);
3822
+ g !== void 0 && ($ = (0, e._)`${$} && ${S} <= ${g}`), f.pass($);
3823
3823
  return;
3824
3824
  }
3825
- f.items = !0;
3825
+ l.items = !0;
3826
3826
  const E = r.name("valid");
3827
- g === void 0 && m === 1 ? v(E, () => r.if(E, () => r.break())) : m === 0 ? (r.let(E, !0), g !== void 0 && r.if((0, e._)`${d}.length > 0`, y)) : (r.let(E, !1), y()), l.result(E, () => l.reset());
3827
+ g === void 0 && m === 1 ? v(E, () => r.if(E, () => r.break())) : m === 0 ? (r.let(E, !0), g !== void 0 && r.if((0, e._)`${d}.length > 0`, y)) : (r.let(E, !1), y()), f.result(E, () => f.reset());
3828
3828
  function y() {
3829
3829
  const $ = r.name("_valid"), w = r.let("count", 0);
3830
3830
  v($, () => r.if($, () => u(w)));
3831
3831
  }
3832
3832
  function v($, w) {
3833
3833
  r.forRange("i", 0, S, (s) => {
3834
- l.subschema({
3834
+ f.subschema({
3835
3835
  keyword: "contains",
3836
3836
  dataProp: s,
3837
3837
  dataPropType: t.Type.Num,
@@ -3852,43 +3852,43 @@ function lr() {
3852
3852
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3853
3853
  const t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ ve();
3854
3854
  e.error = {
3855
- message: ({ params: { property: d, depsCount: f, deps: m } }) => {
3856
- const g = f === 1 ? "property" : "properties";
3855
+ message: ({ params: { property: d, depsCount: l, deps: m } }) => {
3856
+ const g = l === 1 ? "property" : "properties";
3857
3857
  return (0, t.str)`must have ${g} ${m} when property ${d} is present`;
3858
3858
  },
3859
- params: ({ params: { property: d, depsCount: f, deps: m, missingProperty: g } }) => (0, t._)`{property: ${d},
3859
+ params: ({ params: { property: d, depsCount: l, deps: m, missingProperty: g } }) => (0, t._)`{property: ${d},
3860
3860
  missingProperty: ${g},
3861
- depsCount: ${f},
3861
+ depsCount: ${l},
3862
3862
  deps: ${m}}`
3863
3863
  // TODO change to reference
3864
3864
  };
3865
- const l = {
3865
+ const f = {
3866
3866
  keyword: "dependencies",
3867
3867
  type: "object",
3868
3868
  schemaType: "object",
3869
3869
  error: e.error,
3870
3870
  code(d) {
3871
- const [f, m] = r(d);
3872
- o(d, f), i(d, m);
3871
+ const [l, m] = r(d);
3872
+ o(d, l), i(d, m);
3873
3873
  }
3874
3874
  };
3875
3875
  function r({ schema: d }) {
3876
- const f = {}, m = {};
3876
+ const l = {}, m = {};
3877
3877
  for (const g in d) {
3878
3878
  if (g === "__proto__")
3879
3879
  continue;
3880
- const _ = Array.isArray(d[g]) ? f : m;
3880
+ const _ = Array.isArray(d[g]) ? l : m;
3881
3881
  _[g] = d[g];
3882
3882
  }
3883
- return [f, m];
3883
+ return [l, m];
3884
3884
  }
3885
- function o(d, f = d.schema) {
3885
+ function o(d, l = d.schema) {
3886
3886
  const { gen: m, data: g, it: _ } = d;
3887
- if (Object.keys(f).length === 0)
3887
+ if (Object.keys(l).length === 0)
3888
3888
  return;
3889
3889
  const b = m.let("missing");
3890
- for (const S in f) {
3891
- const E = f[S];
3890
+ for (const S in l) {
3891
+ const E = l[S];
3892
3892
  if (E.length === 0)
3893
3893
  continue;
3894
3894
  const y = (0, a.propertyInData)(m, g, S, _.opts.ownProperties);
@@ -3903,10 +3903,10 @@ function lr() {
3903
3903
  }
3904
3904
  }
3905
3905
  e.validatePropertyDeps = o;
3906
- function i(d, f = d.schema) {
3906
+ function i(d, l = d.schema) {
3907
3907
  const { gen: m, data: g, keyword: _, it: b } = d, S = m.name("valid");
3908
- for (const E in f)
3909
- (0, n.alwaysValidSchema)(b, f[E]) || (m.if(
3908
+ for (const E in l)
3909
+ (0, n.alwaysValidSchema)(b, l[E]) || (m.if(
3910
3910
  (0, a.propertyInData)(m, g, E, b.opts.ownProperties),
3911
3911
  () => {
3912
3912
  const y = d.subschema({ keyword: _, schemaProp: E }, S);
@@ -3916,11 +3916,11 @@ function lr() {
3916
3916
  // TODO var
3917
3917
  ), d.ok(S));
3918
3918
  }
3919
- e.validateSchemaDeps = i, e.default = l;
3919
+ e.validateSchemaDeps = i, e.default = f;
3920
3920
  })(or)), or;
3921
3921
  }
3922
3922
  var dt = {}, fn;
3923
- function es() {
3923
+ function ts() {
3924
3924
  if (fn) return dt;
3925
3925
  fn = 1, Object.defineProperty(dt, "__esModule", { value: !0 });
3926
3926
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), a = {
@@ -3929,24 +3929,24 @@ function es() {
3929
3929
  schemaType: ["object", "boolean"],
3930
3930
  error: {
3931
3931
  message: "property name must be valid",
3932
- params: ({ params: l }) => (0, e._)`{propertyName: ${l.propertyName}}`
3932
+ params: ({ params: f }) => (0, e._)`{propertyName: ${f.propertyName}}`
3933
3933
  },
3934
- code(l) {
3935
- const { gen: r, schema: o, data: i, it: d } = l;
3934
+ code(f) {
3935
+ const { gen: r, schema: o, data: i, it: d } = f;
3936
3936
  if ((0, t.alwaysValidSchema)(d, o))
3937
3937
  return;
3938
- const f = r.name("valid");
3938
+ const l = r.name("valid");
3939
3939
  r.forIn("key", i, (m) => {
3940
- l.setParams({ propertyName: m }), l.subschema({
3940
+ f.setParams({ propertyName: m }), f.subschema({
3941
3941
  keyword: "propertyNames",
3942
3942
  data: m,
3943
3943
  dataTypes: ["string"],
3944
3944
  propertyName: m,
3945
3945
  compositeRule: !0
3946
- }, f), r.if((0, e.not)(f), () => {
3947
- l.error(!0), d.allErrors || r.break();
3946
+ }, l), r.if((0, e.not)(l), () => {
3947
+ f.error(!0), d.allErrors || r.break();
3948
3948
  });
3949
- }), l.ok(f);
3949
+ }), f.ok(l);
3950
3950
  }
3951
3951
  };
3952
3952
  return dt.default = a, dt;
@@ -3966,13 +3966,13 @@ function aa() {
3966
3966
  params: ({ params: o }) => (0, t._)`{additionalProperty: ${o.additionalProperty}}`
3967
3967
  },
3968
3968
  code(o) {
3969
- const { gen: i, schema: d, parentSchema: f, data: m, errsCount: g, it: _ } = o;
3969
+ const { gen: i, schema: d, parentSchema: l, data: m, errsCount: g, it: _ } = o;
3970
3970
  if (!g)
3971
3971
  throw new Error("ajv implementation error");
3972
3972
  const { allErrors: b, opts: S } = _;
3973
3973
  if (_.props = !0, S.removeAdditional !== "all" && (0, a.alwaysValidSchema)(_, d))
3974
3974
  return;
3975
- const E = (0, e.allSchemaProperties)(f.properties), y = (0, e.allSchemaProperties)(f.patternProperties);
3975
+ const E = (0, e.allSchemaProperties)(l.properties), y = (0, e.allSchemaProperties)(l.patternProperties);
3976
3976
  v(), o.ok((0, t._)`${g} === ${n.default.errors}`);
3977
3977
  function v() {
3978
3978
  i.forIn("key", m, (c) => {
@@ -3982,7 +3982,7 @@ function aa() {
3982
3982
  function u(c) {
3983
3983
  let p;
3984
3984
  if (E.length > 8) {
3985
- const k = (0, a.schemaRefOrVal)(_, f.properties, "properties");
3985
+ const k = (0, a.schemaRefOrVal)(_, l.properties, "properties");
3986
3986
  p = (0, e.isOwnProperty)(i, k, c);
3987
3987
  } else E.length ? p = (0, t.or)(...E.map((k) => (0, t._)`${c} === ${k}`)) : p = t.nil;
3988
3988
  return y.length && (p = (0, t.or)(p, ...y.map((k) => (0, t._)`${(0, e.usePattern)(o, k)}.test(${c})`))), (0, t.not)(p);
@@ -4023,15 +4023,15 @@ function aa() {
4023
4023
  return ft.default = r, ft;
4024
4024
  }
4025
4025
  var lt = {}, mn;
4026
- function ts() {
4026
+ function rs() {
4027
4027
  if (mn) return lt;
4028
4028
  mn = 1, Object.defineProperty(lt, "__esModule", { value: !0 });
4029
- const e = /* @__PURE__ */ De(), t = /* @__PURE__ */ ve(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ aa(), l = {
4029
+ const e = /* @__PURE__ */ De(), t = /* @__PURE__ */ ve(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ aa(), f = {
4030
4030
  keyword: "properties",
4031
4031
  type: "object",
4032
4032
  schemaType: "object",
4033
4033
  code(r) {
4034
- const { gen: o, schema: i, parentSchema: d, data: f, it: m } = r;
4034
+ const { gen: o, schema: i, parentSchema: d, data: l, it: m } = r;
4035
4035
  m.opts.removeAdditional === "all" && d.additionalProperties === void 0 && a.default.code(new e.KeywordCxt(m, a.default, "additionalProperties"));
4036
4036
  const g = (0, t.allSchemaProperties)(i);
4037
4037
  for (const y of g)
@@ -4042,7 +4042,7 @@ function ts() {
4042
4042
  return;
4043
4043
  const b = o.name("valid");
4044
4044
  for (const y of _)
4045
- S(y) ? E(y) : (o.if((0, t.propertyInData)(o, f, y, m.opts.ownProperties)), E(y), m.allErrors || o.else().var(b, !0), o.endIf()), r.it.definedProperties.add(y), r.ok(b);
4045
+ S(y) ? E(y) : (o.if((0, t.propertyInData)(o, l, y, m.opts.ownProperties)), E(y), m.allErrors || o.else().var(b, !0), o.endIf()), r.it.definedProperties.add(y), r.ok(b);
4046
4046
  function S(y) {
4047
4047
  return m.opts.useDefaults && !m.compositeRule && i[y].default !== void 0;
4048
4048
  }
@@ -4055,21 +4055,21 @@ function ts() {
4055
4055
  }
4056
4056
  }
4057
4057
  };
4058
- return lt.default = l, lt;
4058
+ return lt.default = f, lt;
4059
4059
  }
4060
4060
  var mt = {}, hn;
4061
- function rs() {
4061
+ function ns() {
4062
4062
  if (hn) return mt;
4063
4063
  hn = 1, Object.defineProperty(mt, "__esModule", { value: !0 });
4064
- const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ Z(), l = {
4064
+ const e = /* @__PURE__ */ ve(), t = /* @__PURE__ */ G(), n = /* @__PURE__ */ Z(), a = /* @__PURE__ */ Z(), f = {
4065
4065
  keyword: "patternProperties",
4066
4066
  type: "object",
4067
4067
  schemaType: "object",
4068
4068
  code(r) {
4069
- const { gen: o, schema: i, data: d, parentSchema: f, it: m } = r, { opts: g } = m, _ = (0, e.allSchemaProperties)(i), b = _.filter((w) => (0, n.alwaysValidSchema)(m, i[w]));
4069
+ const { gen: o, schema: i, data: d, parentSchema: l, it: m } = r, { opts: g } = m, _ = (0, e.allSchemaProperties)(i), b = _.filter((w) => (0, n.alwaysValidSchema)(m, i[w]));
4070
4070
  if (_.length === 0 || b.length === _.length && (!m.opts.unevaluated || m.props === !0))
4071
4071
  return;
4072
- const S = g.strictSchema && !g.allowMatchingProperties && f.properties, E = o.name("valid");
4072
+ const S = g.strictSchema && !g.allowMatchingProperties && l.properties, E = o.name("valid");
4073
4073
  m.props !== !0 && !(m.props instanceof t.Name) && (m.props = (0, a.evaluatedPropsToName)(o, m.props));
4074
4074
  const { props: y } = m;
4075
4075
  v();
@@ -4096,10 +4096,10 @@ function rs() {
4096
4096
  }
4097
4097
  }
4098
4098
  };
4099
- return mt.default = l, mt;
4099
+ return mt.default = f, mt;
4100
4100
  }
4101
4101
  var ht = {}, pn;
4102
- function ns() {
4102
+ function as() {
4103
4103
  if (pn) return ht;
4104
4104
  pn = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
4105
4105
  const e = /* @__PURE__ */ Z(), t = {
@@ -4107,8 +4107,8 @@ function ns() {
4107
4107
  schemaType: ["object", "boolean"],
4108
4108
  trackErrors: !0,
4109
4109
  code(n) {
4110
- const { gen: a, schema: l, it: r } = n;
4111
- if ((0, e.alwaysValidSchema)(r, l)) {
4110
+ const { gen: a, schema: f, it: r } = n;
4111
+ if ((0, e.alwaysValidSchema)(r, f)) {
4112
4112
  n.fail();
4113
4113
  return;
4114
4114
  }
@@ -4125,7 +4125,7 @@ function ns() {
4125
4125
  return ht.default = t, ht;
4126
4126
  }
4127
4127
  var pt = {}, yn;
4128
- function as() {
4128
+ function ss() {
4129
4129
  if (yn) return pt;
4130
4130
  yn = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
4131
4131
  const t = {
@@ -4138,7 +4138,7 @@ function as() {
4138
4138
  return pt.default = t, pt;
4139
4139
  }
4140
4140
  var yt = {}, vn;
4141
- function ss() {
4141
+ function os() {
4142
4142
  if (vn) return yt;
4143
4143
  vn = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
4144
4144
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), a = {
@@ -4147,25 +4147,25 @@ function ss() {
4147
4147
  trackErrors: !0,
4148
4148
  error: {
4149
4149
  message: "must match exactly one schema in oneOf",
4150
- params: ({ params: l }) => (0, e._)`{passingSchemas: ${l.passing}}`
4150
+ params: ({ params: f }) => (0, e._)`{passingSchemas: ${f.passing}}`
4151
4151
  },
4152
- code(l) {
4153
- const { gen: r, schema: o, parentSchema: i, it: d } = l;
4152
+ code(f) {
4153
+ const { gen: r, schema: o, parentSchema: i, it: d } = f;
4154
4154
  if (!Array.isArray(o))
4155
4155
  throw new Error("ajv implementation error");
4156
4156
  if (d.opts.discriminator && i.discriminator)
4157
4157
  return;
4158
- const f = o, m = r.let("valid", !1), g = r.let("passing", null), _ = r.name("_valid");
4159
- l.setParams({ passing: g }), r.block(b), l.result(m, () => l.reset(), () => l.error(!0));
4158
+ const l = o, m = r.let("valid", !1), g = r.let("passing", null), _ = r.name("_valid");
4159
+ f.setParams({ passing: g }), r.block(b), f.result(m, () => f.reset(), () => f.error(!0));
4160
4160
  function b() {
4161
- f.forEach((S, E) => {
4161
+ l.forEach((S, E) => {
4162
4162
  let y;
4163
- (0, t.alwaysValidSchema)(d, S) ? r.var(_, !0) : y = l.subschema({
4163
+ (0, t.alwaysValidSchema)(d, S) ? r.var(_, !0) : y = f.subschema({
4164
4164
  keyword: "oneOf",
4165
4165
  schemaProp: E,
4166
4166
  compositeRule: !0
4167
4167
  }, _), E > 0 && r.if((0, e._)`${_} && ${m}`).assign(m, !1).assign(g, (0, e._)`[${g}, ${E}]`).else(), r.if(_, () => {
4168
- r.assign(m, !0), r.assign(g, E), y && l.mergeEvaluated(y, e.Name);
4168
+ r.assign(m, !0), r.assign(g, E), y && f.mergeEvaluated(y, e.Name);
4169
4169
  });
4170
4170
  });
4171
4171
  }
@@ -4174,29 +4174,29 @@ function ss() {
4174
4174
  return yt.default = a, yt;
4175
4175
  }
4176
4176
  var vt = {}, gn;
4177
- function os() {
4177
+ function is() {
4178
4178
  if (gn) return vt;
4179
4179
  gn = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
4180
4180
  const e = /* @__PURE__ */ Z(), t = {
4181
4181
  keyword: "allOf",
4182
4182
  schemaType: "array",
4183
4183
  code(n) {
4184
- const { gen: a, schema: l, it: r } = n;
4185
- if (!Array.isArray(l))
4184
+ const { gen: a, schema: f, it: r } = n;
4185
+ if (!Array.isArray(f))
4186
4186
  throw new Error("ajv implementation error");
4187
4187
  const o = a.name("valid");
4188
- l.forEach((i, d) => {
4188
+ f.forEach((i, d) => {
4189
4189
  if ((0, e.alwaysValidSchema)(r, i))
4190
4190
  return;
4191
- const f = n.subschema({ keyword: "allOf", schemaProp: d }, o);
4192
- n.ok(o), n.mergeEvaluated(f);
4191
+ const l = n.subschema({ keyword: "allOf", schemaProp: d }, o);
4192
+ n.ok(o), n.mergeEvaluated(l);
4193
4193
  });
4194
4194
  }
4195
4195
  };
4196
4196
  return vt.default = t, vt;
4197
4197
  }
4198
4198
  var gt = {}, _n;
4199
- function is() {
4199
+ function cs() {
4200
4200
  if (_n) return gt;
4201
4201
  _n = 1, Object.defineProperty(gt, "__esModule", { value: !0 });
4202
4202
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), a = {
@@ -4210,14 +4210,14 @@ function is() {
4210
4210
  code(r) {
4211
4211
  const { gen: o, parentSchema: i, it: d } = r;
4212
4212
  i.then === void 0 && i.else === void 0 && (0, t.checkStrictMode)(d, '"if" without "then" and "else" is ignored');
4213
- const f = l(d, "then"), m = l(d, "else");
4214
- if (!f && !m)
4213
+ const l = f(d, "then"), m = f(d, "else");
4214
+ if (!l && !m)
4215
4215
  return;
4216
4216
  const g = o.let("valid", !0), _ = o.name("_valid");
4217
- if (b(), r.reset(), f && m) {
4217
+ if (b(), r.reset(), l && m) {
4218
4218
  const E = o.let("ifClause");
4219
4219
  r.setParams({ ifClause: E }), o.if(_, S("then", E), S("else", E));
4220
- } else f ? o.if(_, S("then")) : o.if((0, e.not)(_), S("else"));
4220
+ } else l ? o.if(_, S("then")) : o.if((0, e.not)(_), S("else"));
4221
4221
  r.pass(g, () => r.error(!0));
4222
4222
  function b() {
4223
4223
  const E = r.subschema({
@@ -4236,21 +4236,21 @@ function is() {
4236
4236
  }
4237
4237
  }
4238
4238
  };
4239
- function l(r, o) {
4239
+ function f(r, o) {
4240
4240
  const i = r.schema[o];
4241
4241
  return i !== void 0 && !(0, t.alwaysValidSchema)(r, i);
4242
4242
  }
4243
4243
  return gt.default = a, gt;
4244
4244
  }
4245
4245
  var _t = {}, $n;
4246
- function cs() {
4246
+ function us() {
4247
4247
  if ($n) return _t;
4248
4248
  $n = 1, Object.defineProperty(_t, "__esModule", { value: !0 });
4249
4249
  const e = /* @__PURE__ */ Z(), t = {
4250
4250
  keyword: ["then", "else"],
4251
4251
  schemaType: ["object", "boolean"],
4252
- code({ keyword: n, parentSchema: a, it: l }) {
4253
- a.if === void 0 && (0, e.checkStrictMode)(l, `"${n}" without "if" is ignored`);
4252
+ code({ keyword: n, parentSchema: a, it: f }) {
4253
+ a.if === void 0 && (0, e.checkStrictMode)(f, `"${n}" without "if" is ignored`);
4254
4254
  }
4255
4255
  };
4256
4256
  return _t.default = t, _t;
@@ -4259,7 +4259,7 @@ var bn;
4259
4259
  function sa() {
4260
4260
  if (bn) return ot;
4261
4261
  bn = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
4262
- const e = /* @__PURE__ */ ra(), t = /* @__PURE__ */ Qa(), n = /* @__PURE__ */ na(), a = /* @__PURE__ */ Xa(), l = /* @__PURE__ */ xa(), r = /* @__PURE__ */ lr(), o = /* @__PURE__ */ es(), i = /* @__PURE__ */ aa(), d = /* @__PURE__ */ ts(), f = /* @__PURE__ */ rs(), m = /* @__PURE__ */ ns(), g = /* @__PURE__ */ as(), _ = /* @__PURE__ */ ss(), b = /* @__PURE__ */ os(), S = /* @__PURE__ */ is(), E = /* @__PURE__ */ cs();
4262
+ const e = /* @__PURE__ */ ra(), t = /* @__PURE__ */ Xa(), n = /* @__PURE__ */ na(), a = /* @__PURE__ */ xa(), f = /* @__PURE__ */ es(), r = /* @__PURE__ */ lr(), o = /* @__PURE__ */ ts(), i = /* @__PURE__ */ aa(), d = /* @__PURE__ */ rs(), l = /* @__PURE__ */ ns(), m = /* @__PURE__ */ as(), g = /* @__PURE__ */ ss(), _ = /* @__PURE__ */ os(), b = /* @__PURE__ */ is(), S = /* @__PURE__ */ cs(), E = /* @__PURE__ */ us();
4263
4263
  function y(v = !1) {
4264
4264
  const u = [
4265
4265
  // any
@@ -4274,9 +4274,9 @@ function sa() {
4274
4274
  i.default,
4275
4275
  r.default,
4276
4276
  d.default,
4277
- f.default
4277
+ l.default
4278
4278
  ];
4279
- return v ? u.push(t.default, a.default) : u.push(e.default, n.default), u.push(l.default), u;
4279
+ return v ? u.push(t.default, a.default) : u.push(e.default, n.default), u.push(f.default), u;
4280
4280
  }
4281
4281
  return ot.default = y, ot;
4282
4282
  }
@@ -4284,23 +4284,23 @@ var $t = {}, je = {}, wn;
4284
4284
  function oa() {
4285
4285
  if (wn) return je;
4286
4286
  wn = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.dynamicAnchor = void 0;
4287
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ ye(), n = /* @__PURE__ */ Jt(), a = /* @__PURE__ */ dr(), l = {
4287
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ ye(), n = /* @__PURE__ */ Jt(), a = /* @__PURE__ */ dr(), f = {
4288
4288
  keyword: "$dynamicAnchor",
4289
4289
  schemaType: "string",
4290
4290
  code: (i) => r(i, i.schema)
4291
4291
  };
4292
4292
  function r(i, d) {
4293
- const { gen: f, it: m } = i;
4293
+ const { gen: l, it: m } = i;
4294
4294
  m.schemaEnv.root.dynamicAnchors[d] = !0;
4295
4295
  const g = (0, e._)`${t.default.dynamicAnchors}${(0, e.getProperty)(d)}`, _ = m.errSchemaPath === "#" ? m.validateName : o(i);
4296
- f.if((0, e._)`!${g}`, () => f.assign(g, _));
4296
+ l.if((0, e._)`!${g}`, () => l.assign(g, _));
4297
4297
  }
4298
4298
  je.dynamicAnchor = r;
4299
4299
  function o(i) {
4300
- const { schemaEnv: d, schema: f, self: m } = i.it, { root: g, baseId: _, localRefs: b, meta: S } = d.root, { schemaId: E } = m.opts, y = new n.SchemaEnv({ schema: f, schemaId: E, root: g, baseId: _, localRefs: b, meta: S });
4300
+ const { schemaEnv: d, schema: l, self: m } = i.it, { root: g, baseId: _, localRefs: b, meta: S } = d.root, { schemaId: E } = m.opts, y = new n.SchemaEnv({ schema: l, schemaId: E, root: g, baseId: _, localRefs: b, meta: S });
4301
4301
  return n.compileSchema.call(m, y), (0, a.getValidate)(i, y);
4302
4302
  }
4303
- return je.default = l, je;
4303
+ return je.default = f, je;
4304
4304
  }
4305
4305
  var Ne = {}, Sn;
4306
4306
  function ia() {
@@ -4309,25 +4309,25 @@ function ia() {
4309
4309
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ ye(), n = /* @__PURE__ */ dr(), a = {
4310
4310
  keyword: "$dynamicRef",
4311
4311
  schemaType: "string",
4312
- code: (r) => l(r, r.schema)
4312
+ code: (r) => f(r, r.schema)
4313
4313
  };
4314
- function l(r, o) {
4315
- const { gen: i, keyword: d, it: f } = r;
4314
+ function f(r, o) {
4315
+ const { gen: i, keyword: d, it: l } = r;
4316
4316
  if (o[0] !== "#")
4317
4317
  throw new Error(`"${d}" only supports hash fragment reference`);
4318
4318
  const m = o.slice(1);
4319
- if (f.allErrors)
4319
+ if (l.allErrors)
4320
4320
  g();
4321
4321
  else {
4322
4322
  const b = i.let("valid", !1);
4323
4323
  g(b), r.ok(b);
4324
4324
  }
4325
4325
  function g(b) {
4326
- if (f.schemaEnv.root.dynamicAnchors[m]) {
4326
+ if (l.schemaEnv.root.dynamicAnchors[m]) {
4327
4327
  const S = i.let("_v", (0, e._)`${t.default.dynamicAnchors}${(0, e.getProperty)(m)}`);
4328
- i.if(S, _(S, b), _(f.validateName, b));
4328
+ i.if(S, _(S, b), _(l.validateName, b));
4329
4329
  } else
4330
- _(f.validateName, b)();
4330
+ _(l.validateName, b)();
4331
4331
  }
4332
4332
  function _(b, S) {
4333
4333
  return S ? () => i.block(() => {
@@ -4335,10 +4335,10 @@ function ia() {
4335
4335
  }) : () => (0, n.callRef)(r, b);
4336
4336
  }
4337
4337
  }
4338
- return Ne.dynamicRef = l, Ne.default = a, Ne;
4338
+ return Ne.dynamicRef = f, Ne.default = a, Ne;
4339
4339
  }
4340
4340
  var bt = {}, Pn;
4341
- function us() {
4341
+ function ds() {
4342
4342
  if (Pn) return bt;
4343
4343
  Pn = 1, Object.defineProperty(bt, "__esModule", { value: !0 });
4344
4344
  const e = /* @__PURE__ */ oa(), t = /* @__PURE__ */ Z(), n = {
@@ -4351,7 +4351,7 @@ function us() {
4351
4351
  return bt.default = n, bt;
4352
4352
  }
4353
4353
  var wt = {}, En;
4354
- function ds() {
4354
+ function fs() {
4355
4355
  if (En) return wt;
4356
4356
  En = 1, Object.defineProperty(wt, "__esModule", { value: !0 });
4357
4357
  const e = /* @__PURE__ */ ia(), t = {
@@ -4362,14 +4362,14 @@ function ds() {
4362
4362
  return wt.default = t, wt;
4363
4363
  }
4364
4364
  var Rn;
4365
- function fs() {
4365
+ function ls() {
4366
4366
  if (Rn) return $t;
4367
4367
  Rn = 1, Object.defineProperty($t, "__esModule", { value: !0 });
4368
- const e = /* @__PURE__ */ oa(), t = /* @__PURE__ */ ia(), n = /* @__PURE__ */ us(), a = /* @__PURE__ */ ds(), l = [e.default, t.default, n.default, a.default];
4369
- return $t.default = l, $t;
4368
+ const e = /* @__PURE__ */ oa(), t = /* @__PURE__ */ ia(), n = /* @__PURE__ */ ds(), a = /* @__PURE__ */ fs(), f = [e.default, t.default, n.default, a.default];
4369
+ return $t.default = f, $t;
4370
4370
  }
4371
4371
  var St = {}, Pt = {}, kn;
4372
- function ls() {
4372
+ function ms() {
4373
4373
  if (kn) return Pt;
4374
4374
  kn = 1, Object.defineProperty(Pt, "__esModule", { value: !0 });
4375
4375
  const e = /* @__PURE__ */ lr(), t = {
@@ -4382,7 +4382,7 @@ function ls() {
4382
4382
  return Pt.default = t, Pt;
4383
4383
  }
4384
4384
  var Et = {}, jn;
4385
- function ms() {
4385
+ function hs() {
4386
4386
  if (jn) return Et;
4387
4387
  jn = 1, Object.defineProperty(Et, "__esModule", { value: !0 });
4388
4388
  const e = /* @__PURE__ */ lr(), t = {
@@ -4394,31 +4394,31 @@ function ms() {
4394
4394
  return Et.default = t, Et;
4395
4395
  }
4396
4396
  var Rt = {}, Nn;
4397
- function hs() {
4397
+ function ps() {
4398
4398
  if (Nn) return Rt;
4399
4399
  Nn = 1, Object.defineProperty(Rt, "__esModule", { value: !0 });
4400
4400
  const e = /* @__PURE__ */ Z(), t = {
4401
4401
  keyword: ["maxContains", "minContains"],
4402
4402
  type: "array",
4403
4403
  schemaType: "number",
4404
- code({ keyword: n, parentSchema: a, it: l }) {
4405
- a.contains === void 0 && (0, e.checkStrictMode)(l, `"${n}" without "contains" is ignored`);
4404
+ code({ keyword: n, parentSchema: a, it: f }) {
4405
+ a.contains === void 0 && (0, e.checkStrictMode)(f, `"${n}" without "contains" is ignored`);
4406
4406
  }
4407
4407
  };
4408
4408
  return Rt.default = t, Rt;
4409
4409
  }
4410
4410
  var On;
4411
- function ps() {
4411
+ function ys() {
4412
4412
  if (On) return St;
4413
4413
  On = 1, Object.defineProperty(St, "__esModule", { value: !0 });
4414
- const e = /* @__PURE__ */ ls(), t = /* @__PURE__ */ ms(), n = /* @__PURE__ */ hs(), a = [e.default, t.default, n.default];
4414
+ const e = /* @__PURE__ */ ms(), t = /* @__PURE__ */ hs(), n = /* @__PURE__ */ ps(), a = [e.default, t.default, n.default];
4415
4415
  return St.default = a, St;
4416
4416
  }
4417
4417
  var kt = {}, jt = {}, qn;
4418
- function ys() {
4418
+ function vs() {
4419
4419
  if (qn) return jt;
4420
4420
  qn = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
4421
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ ye(), l = {
4421
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), n = /* @__PURE__ */ ye(), f = {
4422
4422
  keyword: "unevaluatedProperties",
4423
4423
  type: "object",
4424
4424
  schemaType: ["boolean", "object"],
@@ -4428,11 +4428,11 @@ function ys() {
4428
4428
  params: ({ params: r }) => (0, e._)`{unevaluatedProperty: ${r.unevaluatedProperty}}`
4429
4429
  },
4430
4430
  code(r) {
4431
- const { gen: o, schema: i, data: d, errsCount: f, it: m } = r;
4432
- if (!f)
4431
+ const { gen: o, schema: i, data: d, errsCount: l, it: m } = r;
4432
+ if (!l)
4433
4433
  throw new Error("ajv implementation error");
4434
4434
  const { allErrors: g, props: _ } = m;
4435
- _ instanceof e.Name ? o.if((0, e._)`${_} !== true`, () => o.forIn("key", d, (y) => o.if(S(_, y), () => b(y)))) : _ !== !0 && o.forIn("key", d, (y) => _ === void 0 ? b(y) : o.if(E(_, y), () => b(y))), m.props = !0, r.ok((0, e._)`${f} === ${n.default.errors}`);
4435
+ _ instanceof e.Name ? o.if((0, e._)`${_} !== true`, () => o.forIn("key", d, (y) => o.if(S(_, y), () => b(y)))) : _ !== !0 && o.forIn("key", d, (y) => _ === void 0 ? b(y) : o.if(E(_, y), () => b(y))), m.props = !0, r.ok((0, e._)`${l} === ${n.default.errors}`);
4436
4436
  function b(y) {
4437
4437
  if (i === !1) {
4438
4438
  r.setParams({ unevaluatedProperty: y }), r.error(), g || o.break();
@@ -4458,10 +4458,10 @@ function ys() {
4458
4458
  }
4459
4459
  }
4460
4460
  };
4461
- return jt.default = l, jt;
4461
+ return jt.default = f, jt;
4462
4462
  }
4463
4463
  var Nt = {}, In;
4464
- function vs() {
4464
+ function gs() {
4465
4465
  if (In) return Nt;
4466
4466
  In = 1, Object.defineProperty(Nt, "__esModule", { value: !0 });
4467
4467
  const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ Z(), a = {
@@ -4469,24 +4469,24 @@ function vs() {
4469
4469
  type: "array",
4470
4470
  schemaType: ["boolean", "object"],
4471
4471
  error: {
4472
- message: ({ params: { len: l } }) => (0, e.str)`must NOT have more than ${l} items`,
4473
- params: ({ params: { len: l } }) => (0, e._)`{limit: ${l}}`
4472
+ message: ({ params: { len: f } }) => (0, e.str)`must NOT have more than ${f} items`,
4473
+ params: ({ params: { len: f } }) => (0, e._)`{limit: ${f}}`
4474
4474
  },
4475
- code(l) {
4476
- const { gen: r, schema: o, data: i, it: d } = l, f = d.items || 0;
4477
- if (f === !0)
4475
+ code(f) {
4476
+ const { gen: r, schema: o, data: i, it: d } = f, l = d.items || 0;
4477
+ if (l === !0)
4478
4478
  return;
4479
4479
  const m = r.const("len", (0, e._)`${i}.length`);
4480
4480
  if (o === !1)
4481
- l.setParams({ len: f }), l.fail((0, e._)`${m} > ${f}`);
4481
+ f.setParams({ len: l }), f.fail((0, e._)`${m} > ${l}`);
4482
4482
  else if (typeof o == "object" && !(0, t.alwaysValidSchema)(d, o)) {
4483
- const _ = r.var("valid", (0, e._)`${m} <= ${f}`);
4484
- r.if((0, e.not)(_), () => g(_, f)), l.ok(_);
4483
+ const _ = r.var("valid", (0, e._)`${m} <= ${l}`);
4484
+ r.if((0, e.not)(_), () => g(_, l)), f.ok(_);
4485
4485
  }
4486
4486
  d.items = !0;
4487
4487
  function g(_, b) {
4488
4488
  r.forRange("i", b, m, (S) => {
4489
- l.subschema({ keyword: "unevaluatedItems", dataProp: S, dataPropType: t.Type.Num }, _), d.allErrors || r.if((0, e.not)(_), () => r.break());
4489
+ f.subschema({ keyword: "unevaluatedItems", dataProp: S, dataPropType: t.Type.Num }, _), d.allErrors || r.if((0, e.not)(_), () => r.break());
4490
4490
  });
4491
4491
  }
4492
4492
  }
@@ -4494,14 +4494,14 @@ function vs() {
4494
4494
  return Nt.default = a, Nt;
4495
4495
  }
4496
4496
  var Tn;
4497
- function gs() {
4497
+ function _s() {
4498
4498
  if (Tn) return kt;
4499
4499
  Tn = 1, Object.defineProperty(kt, "__esModule", { value: !0 });
4500
- const e = /* @__PURE__ */ ys(), t = /* @__PURE__ */ vs(), n = [e.default, t.default];
4500
+ const e = /* @__PURE__ */ vs(), t = /* @__PURE__ */ gs(), n = [e.default, t.default];
4501
4501
  return kt.default = n, kt;
4502
4502
  }
4503
4503
  var Ot = {}, qt = {}, An;
4504
- function _s() {
4504
+ function $s() {
4505
4505
  if (An) return qt;
4506
4506
  An = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
4507
4507
  const e = /* @__PURE__ */ G(), n = {
@@ -4513,8 +4513,8 @@ function _s() {
4513
4513
  message: ({ schemaCode: a }) => (0, e.str)`must match format "${a}"`,
4514
4514
  params: ({ schemaCode: a }) => (0, e._)`{format: ${a}}`
4515
4515
  },
4516
- code(a, l) {
4517
- const { gen: r, data: o, $data: i, schema: d, schemaCode: f, it: m } = a, { opts: g, errSchemaPath: _, schemaEnv: b, self: S } = m;
4516
+ code(a, f) {
4517
+ const { gen: r, data: o, $data: i, schema: d, schemaCode: l, it: m } = a, { opts: g, errSchemaPath: _, schemaEnv: b, self: S } = m;
4518
4518
  if (!g.validateFormats)
4519
4519
  return;
4520
4520
  i ? E() : y();
@@ -4522,14 +4522,14 @@ function _s() {
4522
4522
  const v = r.scopeValue("formats", {
4523
4523
  ref: S.formats,
4524
4524
  code: g.code.formats
4525
- }), u = r.const("fDef", (0, e._)`${v}[${f}]`), $ = r.let("fType"), w = r.let("format");
4525
+ }), u = r.const("fDef", (0, e._)`${v}[${l}]`), $ = r.let("fType"), w = r.let("format");
4526
4526
  r.if((0, e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`, () => r.assign($, (0, e._)`${u}.type || "string"`).assign(w, (0, e._)`${u}.validate`), () => r.assign($, (0, e._)`"string"`).assign(w, u)), a.fail$data((0, e.or)(s(), c()));
4527
4527
  function s() {
4528
- return g.strictSchema === !1 ? e.nil : (0, e._)`${f} && !${w}`;
4528
+ return g.strictSchema === !1 ? e.nil : (0, e._)`${l} && !${w}`;
4529
4529
  }
4530
4530
  function c() {
4531
4531
  const p = b.$async ? (0, e._)`(${u}.async ? await ${w}(${o}) : ${w}(${o}))` : (0, e._)`${w}(${o})`, k = (0, e._)`(typeof ${w} == "function" ? ${p} : ${w}.test(${o}))`;
4532
- return (0, e._)`${w} && ${w} !== true && ${$} === ${l} && !${k}`;
4532
+ return (0, e._)`${w} && ${w} !== true && ${$} === ${f} && !${k}`;
4533
4533
  }
4534
4534
  }
4535
4535
  function y() {
@@ -4541,7 +4541,7 @@ function _s() {
4541
4541
  if (v === !0)
4542
4542
  return;
4543
4543
  const [u, $, w] = c(v);
4544
- u === l && a.pass(p());
4544
+ u === f && a.pass(p());
4545
4545
  function s() {
4546
4546
  if (g.strictSchema === !1) {
4547
4547
  S.logger.warn(k());
@@ -4573,7 +4573,7 @@ var Cn;
4573
4573
  function ca() {
4574
4574
  if (Cn) return Ot;
4575
4575
  Cn = 1, Object.defineProperty(Ot, "__esModule", { value: !0 });
4576
- const t = [(/* @__PURE__ */ _s()).default];
4576
+ const t = [(/* @__PURE__ */ $s()).default];
4577
4577
  return Ot.default = t, Ot;
4578
4578
  }
4579
4579
  var Pe = {}, Mn;
@@ -4593,10 +4593,10 @@ function ua() {
4593
4593
  ]), Pe;
4594
4594
  }
4595
4595
  var Dn;
4596
- function $s() {
4596
+ function bs() {
4597
4597
  if (Dn) return He;
4598
4598
  Dn = 1, Object.defineProperty(He, "__esModule", { value: !0 });
4599
- const e = /* @__PURE__ */ ea(), t = /* @__PURE__ */ ta(), n = /* @__PURE__ */ sa(), a = /* @__PURE__ */ fs(), l = /* @__PURE__ */ ps(), r = /* @__PURE__ */ gs(), o = /* @__PURE__ */ ca(), i = /* @__PURE__ */ ua(), d = [
4599
+ const e = /* @__PURE__ */ ea(), t = /* @__PURE__ */ ta(), n = /* @__PURE__ */ sa(), a = /* @__PURE__ */ ls(), f = /* @__PURE__ */ ys(), r = /* @__PURE__ */ _s(), o = /* @__PURE__ */ ca(), i = /* @__PURE__ */ ua(), d = [
4600
4600
  a.default,
4601
4601
  e.default,
4602
4602
  t.default,
@@ -4604,13 +4604,13 @@ function $s() {
4604
4604
  o.default,
4605
4605
  i.metadataVocabulary,
4606
4606
  i.contentVocabulary,
4607
- l.default,
4607
+ f.default,
4608
4608
  r.default
4609
4609
  ];
4610
4610
  return He.default = d, He;
4611
4611
  }
4612
4612
  var It = {}, Te = {}, zn;
4613
- function bs() {
4613
+ function ws() {
4614
4614
  if (zn) return Te;
4615
4615
  zn = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.DiscrError = void 0;
4616
4616
  var e;
@@ -4622,16 +4622,16 @@ var Vn;
4622
4622
  function da() {
4623
4623
  if (Vn) return It;
4624
4624
  Vn = 1, Object.defineProperty(It, "__esModule", { value: !0 });
4625
- const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ bs(), n = /* @__PURE__ */ Jt(), a = /* @__PURE__ */ ze(), l = /* @__PURE__ */ Z(), o = {
4625
+ const e = /* @__PURE__ */ G(), t = /* @__PURE__ */ ws(), n = /* @__PURE__ */ Jt(), a = /* @__PURE__ */ ze(), f = /* @__PURE__ */ Z(), o = {
4626
4626
  keyword: "discriminator",
4627
4627
  type: "object",
4628
4628
  schemaType: "object",
4629
4629
  error: {
4630
4630
  message: ({ params: { discrError: i, tagName: d } }) => i === t.DiscrError.Tag ? `tag "${d}" must be string` : `value of tag "${d}" must be in oneOf`,
4631
- params: ({ params: { discrError: i, tag: d, tagName: f } }) => (0, e._)`{error: ${i}, tag: ${f}, tagValue: ${d}}`
4631
+ params: ({ params: { discrError: i, tag: d, tagName: l } }) => (0, e._)`{error: ${i}, tag: ${l}, tagValue: ${d}}`
4632
4632
  },
4633
4633
  code(i) {
4634
- const { gen: d, data: f, schema: m, parentSchema: g, it: _ } = i, { oneOf: b } = g;
4634
+ const { gen: d, data: l, schema: m, parentSchema: g, it: _ } = i, { oneOf: b } = g;
4635
4635
  if (!_.opts.discriminator)
4636
4636
  throw new Error("discriminator: requires discriminator option");
4637
4637
  const S = m.propertyName;
@@ -4641,7 +4641,7 @@ function da() {
4641
4641
  throw new Error("discriminator: mapping is not supported");
4642
4642
  if (!b)
4643
4643
  throw new Error("discriminator: requires oneOf keyword");
4644
- const E = d.let("valid", !1), y = d.const("tag", (0, e._)`${f}${(0, e.getProperty)(S)}`);
4644
+ const E = d.let("valid", !1), y = d.const("tag", (0, e._)`${l}${(0, e.getProperty)(S)}`);
4645
4645
  d.if((0, e._)`typeof ${y} == "string"`, () => v(), () => i.error(!1, { discrError: t.DiscrError.Tag, tag: y, tagName: S })), i.ok(E);
4646
4646
  function v() {
4647
4647
  const w = $();
@@ -4658,37 +4658,37 @@ function da() {
4658
4658
  var w;
4659
4659
  const s = {}, c = k(g);
4660
4660
  let p = !0;
4661
- for (let T = 0; T < b.length; T++) {
4662
- let q = b[T];
4663
- if (q?.$ref && !(0, l.schemaHasRulesButRef)(q, _.self.RULES)) {
4664
- const H = q.$ref;
4665
- if (q = n.resolveRef.call(_.self, _.schemaEnv.root, _.baseId, H), q instanceof n.SchemaEnv && (q = q.schema), q === void 0)
4661
+ for (let A = 0; A < b.length; A++) {
4662
+ let O = b[A];
4663
+ if (O?.$ref && !(0, f.schemaHasRulesButRef)(O, _.self.RULES)) {
4664
+ const H = O.$ref;
4665
+ if (O = n.resolveRef.call(_.self, _.schemaEnv.root, _.baseId, H), O instanceof n.SchemaEnv && (O = O.schema), O === void 0)
4666
4666
  throw new a.default(_.opts.uriResolver, _.baseId, H);
4667
4667
  }
4668
- const M = (w = q?.properties) === null || w === void 0 ? void 0 : w[S];
4668
+ const M = (w = O?.properties) === null || w === void 0 ? void 0 : w[S];
4669
4669
  if (typeof M != "object")
4670
4670
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${S}"`);
4671
- p = p && (c || k(q)), P(M, T);
4671
+ p = p && (c || k(O)), P(M, A);
4672
4672
  }
4673
4673
  if (!p)
4674
4674
  throw new Error(`discriminator: "${S}" must be required`);
4675
4675
  return s;
4676
- function k({ required: T }) {
4677
- return Array.isArray(T) && T.includes(S);
4676
+ function k({ required: A }) {
4677
+ return Array.isArray(A) && A.includes(S);
4678
4678
  }
4679
- function P(T, q) {
4680
- if (T.const)
4681
- N(T.const, q);
4682
- else if (T.enum)
4683
- for (const M of T.enum)
4684
- N(M, q);
4679
+ function P(A, O) {
4680
+ if (A.const)
4681
+ N(A.const, O);
4682
+ else if (A.enum)
4683
+ for (const M of A.enum)
4684
+ N(M, O);
4685
4685
  else
4686
4686
  throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`);
4687
4687
  }
4688
- function N(T, q) {
4689
- if (typeof T != "string" || T in s)
4688
+ function N(A, O) {
4689
+ if (typeof A != "string" || A in s)
4690
4690
  throw new Error(`discriminator: "${S}" values must be unique strings`);
4691
- s[T] = q;
4691
+ s[A] = O;
4692
4692
  }
4693
4693
  }
4694
4694
  }
@@ -4696,88 +4696,88 @@ function da() {
4696
4696
  return It.default = o, It;
4697
4697
  }
4698
4698
  var Tt = {};
4699
- const ws = "https://json-schema.org/draft/2020-12/schema", Ss = "https://json-schema.org/draft/2020-12/schema", Ps = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Es = "meta", Rs = "Core and Validation specifications meta-schema", ks = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], js = ["object", "boolean"], Ns = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", Os = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, qs = {
4700
- $schema: ws,
4701
- $id: Ss,
4702
- $vocabulary: Ps,
4703
- $dynamicAnchor: Es,
4704
- title: Rs,
4705
- allOf: ks,
4706
- type: js,
4707
- $comment: Ns,
4708
- properties: Os
4709
- }, Is = "https://json-schema.org/draft/2020-12/schema", Ts = "https://json-schema.org/draft/2020-12/meta/applicator", As = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, Cs = "meta", Ms = "Applicator vocabulary meta-schema", Ds = ["object", "boolean"], zs = { prefixItems: { $ref: "#/$defs/schemaArray" }, items: { $dynamicRef: "#meta" }, contains: { $dynamicRef: "#meta" }, additionalProperties: { $dynamicRef: "#meta" }, properties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, propertyNames: { $dynamicRef: "#meta" }, if: { $dynamicRef: "#meta" }, then: { $dynamicRef: "#meta" }, else: { $dynamicRef: "#meta" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $dynamicRef: "#meta" } }, Vs = { schemaArray: { type: "array", minItems: 1, items: { $dynamicRef: "#meta" } } }, Fs = {
4710
- $schema: Is,
4711
- $id: Ts,
4712
- $vocabulary: As,
4713
- $dynamicAnchor: Cs,
4714
- title: Ms,
4715
- type: Ds,
4716
- properties: zs,
4717
- $defs: Vs
4718
- }, Ks = "https://json-schema.org/draft/2020-12/schema", Us = "https://json-schema.org/draft/2020-12/meta/unevaluated", Ls = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Hs = "meta", Gs = "Unevaluated applicator vocabulary meta-schema", Js = ["object", "boolean"], Ws = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, Bs = {
4719
- $schema: Ks,
4720
- $id: Us,
4721
- $vocabulary: Ls,
4722
- $dynamicAnchor: Hs,
4723
- title: Gs,
4724
- type: Js,
4725
- properties: Ws
4726
- }, Zs = "https://json-schema.org/draft/2020-12/schema", Ys = "https://json-schema.org/draft/2020-12/meta/content", Qs = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Xs = "meta", xs = "Content vocabulary meta-schema", eo = ["object", "boolean"], to = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, ro = {
4727
- $schema: Zs,
4728
- $id: Ys,
4729
- $vocabulary: Qs,
4730
- $dynamicAnchor: Xs,
4731
- title: xs,
4732
- type: eo,
4733
- properties: to
4734
- }, no = "https://json-schema.org/draft/2020-12/schema", ao = "https://json-schema.org/draft/2020-12/meta/core", so = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, oo = "meta", io = "Core vocabulary meta-schema", co = ["object", "boolean"], uo = { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, fo = { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } }, lo = {
4735
- $schema: no,
4736
- $id: ao,
4737
- $vocabulary: so,
4738
- $dynamicAnchor: oo,
4739
- title: io,
4740
- type: co,
4741
- properties: uo,
4742
- $defs: fo
4743
- }, mo = "https://json-schema.org/draft/2020-12/schema", ho = "https://json-schema.org/draft/2020-12/meta/format-annotation", po = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, yo = "meta", vo = "Format vocabulary meta-schema for annotation results", go = ["object", "boolean"], _o = { format: { type: "string" } }, $o = {
4744
- $schema: mo,
4745
- $id: ho,
4746
- $vocabulary: po,
4747
- $dynamicAnchor: yo,
4748
- title: vo,
4749
- type: go,
4750
- properties: _o
4751
- }, bo = "https://json-schema.org/draft/2020-12/schema", wo = "https://json-schema.org/draft/2020-12/meta/meta-data", So = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, Po = "meta", Eo = "Meta-data vocabulary meta-schema", Ro = ["object", "boolean"], ko = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, jo = {
4752
- $schema: bo,
4753
- $id: wo,
4754
- $vocabulary: So,
4755
- $dynamicAnchor: Po,
4756
- title: Eo,
4757
- type: Ro,
4758
- properties: ko
4759
- }, No = "https://json-schema.org/draft/2020-12/schema", Oo = "https://json-schema.org/draft/2020-12/meta/validation", qo = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, Io = "meta", To = "Validation vocabulary meta-schema", Ao = ["object", "boolean"], Co = { type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, const: !0, enum: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } } }, Mo = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Do = {
4760
- $schema: No,
4761
- $id: Oo,
4762
- $vocabulary: qo,
4763
- $dynamicAnchor: Io,
4764
- title: To,
4765
- type: Ao,
4766
- properties: Co,
4767
- $defs: Mo
4699
+ const Ss = "https://json-schema.org/draft/2020-12/schema", Ps = "https://json-schema.org/draft/2020-12/schema", Es = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Rs = "meta", ks = "Core and Validation specifications meta-schema", js = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], Ns = ["object", "boolean"], Os = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", qs = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, Is = {
4700
+ $schema: Ss,
4701
+ $id: Ps,
4702
+ $vocabulary: Es,
4703
+ $dynamicAnchor: Rs,
4704
+ title: ks,
4705
+ allOf: js,
4706
+ type: Ns,
4707
+ $comment: Os,
4708
+ properties: qs
4709
+ }, Ts = "https://json-schema.org/draft/2020-12/schema", As = "https://json-schema.org/draft/2020-12/meta/applicator", Cs = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, Ms = "meta", Ds = "Applicator vocabulary meta-schema", zs = ["object", "boolean"], Vs = { prefixItems: { $ref: "#/$defs/schemaArray" }, items: { $dynamicRef: "#meta" }, contains: { $dynamicRef: "#meta" }, additionalProperties: { $dynamicRef: "#meta" }, properties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, propertyNames: { format: "regex" }, default: {} }, dependentSchemas: { type: "object", additionalProperties: { $dynamicRef: "#meta" }, default: {} }, propertyNames: { $dynamicRef: "#meta" }, if: { $dynamicRef: "#meta" }, then: { $dynamicRef: "#meta" }, else: { $dynamicRef: "#meta" }, allOf: { $ref: "#/$defs/schemaArray" }, anyOf: { $ref: "#/$defs/schemaArray" }, oneOf: { $ref: "#/$defs/schemaArray" }, not: { $dynamicRef: "#meta" } }, Fs = { schemaArray: { type: "array", minItems: 1, items: { $dynamicRef: "#meta" } } }, Ks = {
4710
+ $schema: Ts,
4711
+ $id: As,
4712
+ $vocabulary: Cs,
4713
+ $dynamicAnchor: Ms,
4714
+ title: Ds,
4715
+ type: zs,
4716
+ properties: Vs,
4717
+ $defs: Fs
4718
+ }, Us = "https://json-schema.org/draft/2020-12/schema", Ls = "https://json-schema.org/draft/2020-12/meta/unevaluated", Hs = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Gs = "meta", Js = "Unevaluated applicator vocabulary meta-schema", Ws = ["object", "boolean"], Bs = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, Zs = {
4719
+ $schema: Us,
4720
+ $id: Ls,
4721
+ $vocabulary: Hs,
4722
+ $dynamicAnchor: Gs,
4723
+ title: Js,
4724
+ type: Ws,
4725
+ properties: Bs
4726
+ }, Ys = "https://json-schema.org/draft/2020-12/schema", Qs = "https://json-schema.org/draft/2020-12/meta/content", Xs = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, xs = "meta", eo = "Content vocabulary meta-schema", to = ["object", "boolean"], ro = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, no = {
4727
+ $schema: Ys,
4728
+ $id: Qs,
4729
+ $vocabulary: Xs,
4730
+ $dynamicAnchor: xs,
4731
+ title: eo,
4732
+ type: to,
4733
+ properties: ro
4734
+ }, ao = "https://json-schema.org/draft/2020-12/schema", so = "https://json-schema.org/draft/2020-12/meta/core", oo = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, io = "meta", co = "Core vocabulary meta-schema", uo = ["object", "boolean"], fo = { $id: { $ref: "#/$defs/uriReferenceString", $comment: "Non-empty fragments not allowed.", pattern: "^[^#]*#?$" }, $schema: { $ref: "#/$defs/uriString" }, $ref: { $ref: "#/$defs/uriReferenceString" }, $anchor: { $ref: "#/$defs/anchorString" }, $dynamicRef: { $ref: "#/$defs/uriReferenceString" }, $dynamicAnchor: { $ref: "#/$defs/anchorString" }, $vocabulary: { type: "object", propertyNames: { $ref: "#/$defs/uriString" }, additionalProperties: { type: "boolean" } }, $comment: { type: "string" }, $defs: { type: "object", additionalProperties: { $dynamicRef: "#meta" } } }, lo = { anchorString: { type: "string", pattern: "^[A-Za-z_][-A-Za-z0-9._]*$" }, uriString: { type: "string", format: "uri" }, uriReferenceString: { type: "string", format: "uri-reference" } }, mo = {
4735
+ $schema: ao,
4736
+ $id: so,
4737
+ $vocabulary: oo,
4738
+ $dynamicAnchor: io,
4739
+ title: co,
4740
+ type: uo,
4741
+ properties: fo,
4742
+ $defs: lo
4743
+ }, ho = "https://json-schema.org/draft/2020-12/schema", po = "https://json-schema.org/draft/2020-12/meta/format-annotation", yo = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, vo = "meta", go = "Format vocabulary meta-schema for annotation results", _o = ["object", "boolean"], $o = { format: { type: "string" } }, bo = {
4744
+ $schema: ho,
4745
+ $id: po,
4746
+ $vocabulary: yo,
4747
+ $dynamicAnchor: vo,
4748
+ title: go,
4749
+ type: _o,
4750
+ properties: $o
4751
+ }, wo = "https://json-schema.org/draft/2020-12/schema", So = "https://json-schema.org/draft/2020-12/meta/meta-data", Po = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, Eo = "meta", Ro = "Meta-data vocabulary meta-schema", ko = ["object", "boolean"], jo = { title: { type: "string" }, description: { type: "string" }, default: !0, deprecated: { type: "boolean", default: !1 }, readOnly: { type: "boolean", default: !1 }, writeOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 } }, No = {
4752
+ $schema: wo,
4753
+ $id: So,
4754
+ $vocabulary: Po,
4755
+ $dynamicAnchor: Eo,
4756
+ title: Ro,
4757
+ type: ko,
4758
+ properties: jo
4759
+ }, Oo = "https://json-schema.org/draft/2020-12/schema", qo = "https://json-schema.org/draft/2020-12/meta/validation", Io = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, To = "meta", Ao = "Validation vocabulary meta-schema", Co = ["object", "boolean"], Mo = { type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, const: !0, enum: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } } }, Do = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, zo = {
4760
+ $schema: Oo,
4761
+ $id: qo,
4762
+ $vocabulary: Io,
4763
+ $dynamicAnchor: To,
4764
+ title: Ao,
4765
+ type: Co,
4766
+ properties: Mo,
4767
+ $defs: Do
4768
4768
  };
4769
4769
  var Fn;
4770
- function zo() {
4770
+ function Vo() {
4771
4771
  if (Fn) return Tt;
4772
4772
  Fn = 1, Object.defineProperty(Tt, "__esModule", { value: !0 });
4773
- const e = qs, t = Fs, n = Bs, a = ro, l = lo, r = $o, o = jo, i = Do, d = ["/properties"];
4774
- function f(m) {
4773
+ const e = Is, t = Ks, n = Zs, a = no, f = mo, r = bo, o = No, i = zo, d = ["/properties"];
4774
+ function l(m) {
4775
4775
  return [
4776
4776
  e,
4777
4777
  t,
4778
4778
  n,
4779
4779
  a,
4780
- l,
4780
+ f,
4781
4781
  g(this, r),
4782
4782
  o,
4783
4783
  g(this, i)
@@ -4786,13 +4786,13 @@ function zo() {
4786
4786
  return m ? _.$dataMetaSchema(b, d) : b;
4787
4787
  }
4788
4788
  }
4789
- return Tt.default = f, Tt;
4789
+ return Tt.default = l, Tt;
4790
4790
  }
4791
4791
  var Kn;
4792
- function Vo() {
4792
+ function Fo() {
4793
4793
  return Kn || (Kn = 1, (function(e, t) {
4794
4794
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2020 = void 0;
4795
- const n = /* @__PURE__ */ xn(), a = /* @__PURE__ */ $s(), l = /* @__PURE__ */ da(), r = /* @__PURE__ */ zo(), o = "https://json-schema.org/draft/2020-12/schema";
4795
+ const n = /* @__PURE__ */ xn(), a = /* @__PURE__ */ bs(), f = /* @__PURE__ */ da(), r = /* @__PURE__ */ Vo(), o = "https://json-schema.org/draft/2020-12/schema";
4796
4796
  class i extends n.default {
4797
4797
  constructor(b = {}) {
4798
4798
  super({
@@ -4803,7 +4803,7 @@ function Vo() {
4803
4803
  });
4804
4804
  }
4805
4805
  _addVocabularies() {
4806
- super._addVocabularies(), a.default.forEach((b) => this.addVocabulary(b)), this.opts.discriminator && this.addKeyword(l.default);
4806
+ super._addVocabularies(), a.default.forEach((b) => this.addVocabulary(b)), this.opts.discriminator && this.addKeyword(f.default);
4807
4807
  }
4808
4808
  _addDefaultMetaSchema() {
4809
4809
  super._addDefaultMetaSchema();
@@ -4819,19 +4819,19 @@ function Vo() {
4819
4819
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4820
4820
  return d.KeywordCxt;
4821
4821
  } });
4822
- var f = /* @__PURE__ */ G();
4822
+ var l = /* @__PURE__ */ G();
4823
4823
  Object.defineProperty(t, "_", { enumerable: !0, get: function() {
4824
- return f._;
4824
+ return l._;
4825
4825
  } }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
4826
- return f.str;
4826
+ return l.str;
4827
4827
  } }), Object.defineProperty(t, "stringify", { enumerable: !0, get: function() {
4828
- return f.stringify;
4828
+ return l.stringify;
4829
4829
  } }), Object.defineProperty(t, "nil", { enumerable: !0, get: function() {
4830
- return f.nil;
4830
+ return l.nil;
4831
4831
  } }), Object.defineProperty(t, "Name", { enumerable: !0, get: function() {
4832
- return f.Name;
4832
+ return l.Name;
4833
4833
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
4834
- return f.CodeGen;
4834
+ return l.CodeGen;
4835
4835
  } });
4836
4836
  var m = /* @__PURE__ */ Gt();
4837
4837
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
@@ -4843,10 +4843,10 @@ function Vo() {
4843
4843
  } });
4844
4844
  })(Ve, Ve.exports)), Ve.exports;
4845
4845
  }
4846
- var Fo = /* @__PURE__ */ Vo();
4847
- const Ko = /* @__PURE__ */ Bn(Fo);
4846
+ var Ko = /* @__PURE__ */ Fo();
4847
+ const Uo = /* @__PURE__ */ Bn(Ko);
4848
4848
  var At = { exports: {} }, ir = {}, Un;
4849
- function Uo() {
4849
+ function Lo() {
4850
4850
  return Un || (Un = 1, (function(e) {
4851
4851
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
4852
4852
  function t(P, N) {
@@ -4856,7 +4856,7 @@ function Uo() {
4856
4856
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
4857
4857
  date: t(r, o),
4858
4858
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
4859
- time: t(d, f),
4859
+ time: t(d, l),
4860
4860
  "date-time": t(g, _),
4861
4861
  // duration: https://tools.ietf.org/html/rfc3339#appendix-A
4862
4862
  duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
@@ -4899,7 +4899,7 @@ function Uo() {
4899
4899
  }, e.fastFormats = {
4900
4900
  ...e.fullFormats,
4901
4901
  date: t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, o),
4902
- time: t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, f),
4902
+ time: t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, l),
4903
4903
  "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, _),
4904
4904
  // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
4905
4905
  uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
@@ -4912,13 +4912,13 @@ function Uo() {
4912
4912
  function n(P) {
4913
4913
  return P % 4 === 0 && (P % 100 !== 0 || P % 400 === 0);
4914
4914
  }
4915
- const a = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, l = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4915
+ const a = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, f = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4916
4916
  function r(P) {
4917
4917
  const N = a.exec(P);
4918
4918
  if (!N)
4919
4919
  return !1;
4920
- const T = +N[1], q = +N[2], M = +N[3];
4921
- return q >= 1 && q <= 12 && M >= 1 && M <= (q === 2 && n(T) ? 29 : l[q]);
4920
+ const A = +N[1], O = +N[2], M = +N[3];
4921
+ return O >= 1 && O <= 12 && M >= 1 && M <= (O === 2 && n(A) ? 29 : f[O]);
4922
4922
  }
4923
4923
  function o(P, N) {
4924
4924
  if (P && N)
@@ -4926,18 +4926,18 @@ function Uo() {
4926
4926
  }
4927
4927
  const i = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
4928
4928
  function d(P, N) {
4929
- const T = i.exec(P);
4930
- if (!T)
4929
+ const A = i.exec(P);
4930
+ if (!A)
4931
4931
  return !1;
4932
- const q = +T[1], M = +T[2], H = +T[3], X = T[5];
4933
- return (q <= 23 && M <= 59 && H <= 59 || q === 23 && M === 59 && H === 60) && (!N || X !== "");
4932
+ const O = +A[1], M = +A[2], H = +A[3], X = A[5];
4933
+ return (O <= 23 && M <= 59 && H <= 59 || O === 23 && M === 59 && H === 60) && (!N || X !== "");
4934
4934
  }
4935
- function f(P, N) {
4935
+ function l(P, N) {
4936
4936
  if (!(P && N))
4937
4937
  return;
4938
- const T = i.exec(P), q = i.exec(N);
4939
- if (T && q)
4940
- return P = T[1] + T[2] + T[3] + (T[4] || ""), N = q[1] + q[2] + q[3] + (q[4] || ""), P > N ? 1 : P < N ? -1 : 0;
4938
+ const A = i.exec(P), O = i.exec(N);
4939
+ if (A && O)
4940
+ return P = A[1] + A[2] + A[3] + (A[4] || ""), N = O[1] + O[2] + O[3] + (O[4] || ""), P > N ? 1 : P < N ? -1 : 0;
4941
4941
  }
4942
4942
  const m = /t|\s/i;
4943
4943
  function g(P) {
@@ -4947,9 +4947,9 @@ function Uo() {
4947
4947
  function _(P, N) {
4948
4948
  if (!(P && N))
4949
4949
  return;
4950
- const [T, q] = P.split(m), [M, H] = N.split(m), X = o(T, M);
4950
+ const [A, O] = P.split(m), [M, H] = N.split(m), X = o(A, M);
4951
4951
  if (X !== void 0)
4952
- return X || f(q, H);
4952
+ return X || l(O, H);
4953
4953
  }
4954
4954
  const b = /\/|:/, S = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
4955
4955
  function E(P) {
@@ -4982,36 +4982,36 @@ function Uo() {
4982
4982
  })(ir)), ir;
4983
4983
  }
4984
4984
  var cr = {}, Ct = { exports: {} }, Mt = {}, Ln;
4985
- function Lo() {
4985
+ function Ho() {
4986
4986
  if (Ln) return Mt;
4987
4987
  Ln = 1, Object.defineProperty(Mt, "__esModule", { value: !0 });
4988
- const e = /* @__PURE__ */ ea(), t = /* @__PURE__ */ ta(), n = /* @__PURE__ */ sa(), a = /* @__PURE__ */ ca(), l = /* @__PURE__ */ ua(), r = [
4988
+ const e = /* @__PURE__ */ ea(), t = /* @__PURE__ */ ta(), n = /* @__PURE__ */ sa(), a = /* @__PURE__ */ ca(), f = /* @__PURE__ */ ua(), r = [
4989
4989
  e.default,
4990
4990
  t.default,
4991
4991
  (0, n.default)(),
4992
4992
  a.default,
4993
- l.metadataVocabulary,
4994
- l.contentVocabulary
4993
+ f.metadataVocabulary,
4994
+ f.contentVocabulary
4995
4995
  ];
4996
4996
  return Mt.default = r, Mt;
4997
4997
  }
4998
- const Ho = "http://json-schema.org/draft-07/schema#", Go = "http://json-schema.org/draft-07/schema#", Jo = "Core schema meta-schema", Wo = { 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: [] } }, Bo = ["object", "boolean"], Zo = { $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: "#" } }, Yo = {
4999
- $schema: Ho,
5000
- $id: Go,
5001
- title: Jo,
5002
- definitions: Wo,
5003
- type: Bo,
5004
- properties: Zo,
4998
+ const Go = "http://json-schema.org/draft-07/schema#", Jo = "http://json-schema.org/draft-07/schema#", Wo = "Core schema meta-schema", Bo = { 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: [] } }, Zo = ["object", "boolean"], Yo = { $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: "#" } }, Qo = {
4999
+ $schema: Go,
5000
+ $id: Jo,
5001
+ title: Wo,
5002
+ definitions: Bo,
5003
+ type: Zo,
5004
+ properties: Yo,
5005
5005
  default: !0
5006
5006
  };
5007
5007
  var Hn;
5008
- function Qo() {
5008
+ function Xo() {
5009
5009
  return Hn || (Hn = 1, (function(e, t) {
5010
5010
  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;
5011
- const n = /* @__PURE__ */ xn(), a = /* @__PURE__ */ Lo(), l = /* @__PURE__ */ da(), r = Yo, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
5011
+ const n = /* @__PURE__ */ xn(), a = /* @__PURE__ */ Ho(), f = /* @__PURE__ */ da(), r = Qo, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
5012
5012
  class d extends n.default {
5013
5013
  _addVocabularies() {
5014
- super._addVocabularies(), a.default.forEach((S) => this.addVocabulary(S)), this.opts.discriminator && this.addKeyword(l.default);
5014
+ super._addVocabularies(), a.default.forEach((S) => this.addVocabulary(S)), this.opts.discriminator && this.addKeyword(f.default);
5015
5015
  }
5016
5016
  _addDefaultMetaSchema() {
5017
5017
  if (super._addDefaultMetaSchema(), !this.opts.meta)
@@ -5024,9 +5024,9 @@ function Qo() {
5024
5024
  }
5025
5025
  }
5026
5026
  t.Ajv = d, e.exports = t = d, e.exports.Ajv = d, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = d;
5027
- var f = /* @__PURE__ */ De();
5027
+ var l = /* @__PURE__ */ De();
5028
5028
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
5029
- return f.KeywordCxt;
5029
+ return l.KeywordCxt;
5030
5030
  } });
5031
5031
  var m = /* @__PURE__ */ G();
5032
5032
  Object.defineProperty(t, "_", { enumerable: !0, get: function() {
@@ -5053,26 +5053,26 @@ function Qo() {
5053
5053
  })(Ct, Ct.exports)), Ct.exports;
5054
5054
  }
5055
5055
  var Gn;
5056
- function Xo() {
5056
+ function xo() {
5057
5057
  return Gn || (Gn = 1, (function(e) {
5058
5058
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
5059
- const t = /* @__PURE__ */ Qo(), n = /* @__PURE__ */ G(), a = n.operators, l = {
5059
+ const t = /* @__PURE__ */ Xo(), n = /* @__PURE__ */ G(), a = n.operators, f = {
5060
5060
  formatMaximum: { okStr: "<=", ok: a.LTE, fail: a.GT },
5061
5061
  formatMinimum: { okStr: ">=", ok: a.GTE, fail: a.LT },
5062
5062
  formatExclusiveMaximum: { okStr: "<", ok: a.LT, fail: a.GTE },
5063
5063
  formatExclusiveMinimum: { okStr: ">", ok: a.GT, fail: a.LTE }
5064
5064
  }, r = {
5065
- message: ({ keyword: i, schemaCode: d }) => n.str`should be ${l[i].okStr} ${d}`,
5066
- params: ({ keyword: i, schemaCode: d }) => n._`{comparison: ${l[i].okStr}, limit: ${d}}`
5065
+ message: ({ keyword: i, schemaCode: d }) => n.str`should be ${f[i].okStr} ${d}`,
5066
+ params: ({ keyword: i, schemaCode: d }) => n._`{comparison: ${f[i].okStr}, limit: ${d}}`
5067
5067
  };
5068
5068
  e.formatLimitDefinition = {
5069
- keyword: Object.keys(l),
5069
+ keyword: Object.keys(f),
5070
5070
  type: "string",
5071
5071
  schemaType: "string",
5072
5072
  $data: !0,
5073
5073
  error: r,
5074
5074
  code(i) {
5075
- const { gen: d, data: f, schemaCode: m, keyword: g, it: _ } = i, { opts: b, self: S } = _;
5075
+ const { gen: d, data: l, schemaCode: m, keyword: g, it: _ } = i, { opts: b, self: S } = _;
5076
5076
  if (!b.validateFormats)
5077
5077
  return;
5078
5078
  const E = new t.KeywordCxt(_, S.RULES.all.format.definition, "format");
@@ -5098,7 +5098,7 @@ function Xo() {
5098
5098
  i.fail$data(u(s));
5099
5099
  }
5100
5100
  function u($) {
5101
- return n._`${$}.compare(${f}, ${m}) ${l[g].fail} 0`;
5101
+ return n._`${$}.compare(${l}, ${m}) ${f[g].fail} 0`;
5102
5102
  }
5103
5103
  },
5104
5104
  dependencies: ["format"]
@@ -5108,45 +5108,45 @@ function Xo() {
5108
5108
  })(cr)), cr;
5109
5109
  }
5110
5110
  var Jn;
5111
- function xo() {
5111
+ function ei() {
5112
5112
  return Jn || (Jn = 1, (function(e, t) {
5113
5113
  Object.defineProperty(t, "__esModule", { value: !0 });
5114
- const n = Uo(), a = Xo(), l = /* @__PURE__ */ G(), r = new l.Name("fullFormats"), o = new l.Name("fastFormats"), i = (f, m = { keywords: !0 }) => {
5114
+ const n = Lo(), a = xo(), f = /* @__PURE__ */ G(), r = new f.Name("fullFormats"), o = new f.Name("fastFormats"), i = (l, m = { keywords: !0 }) => {
5115
5115
  if (Array.isArray(m))
5116
- return d(f, m, n.fullFormats, r), f;
5116
+ return d(l, m, n.fullFormats, r), l;
5117
5117
  const [g, _] = m.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, r], b = m.formats || n.formatNames;
5118
- return d(f, b, g, _), m.keywords && a.default(f), f;
5118
+ return d(l, b, g, _), m.keywords && a.default(l), l;
5119
5119
  };
5120
- i.get = (f, m = "full") => {
5121
- const _ = (m === "fast" ? n.fastFormats : n.fullFormats)[f];
5120
+ i.get = (l, m = "full") => {
5121
+ const _ = (m === "fast" ? n.fastFormats : n.fullFormats)[l];
5122
5122
  if (!_)
5123
- throw new Error(`Unknown format "${f}"`);
5123
+ throw new Error(`Unknown format "${l}"`);
5124
5124
  return _;
5125
5125
  };
5126
- function d(f, m, g, _) {
5126
+ function d(l, m, g, _) {
5127
5127
  var b, S;
5128
- (b = (S = f.opts.code).formats) !== null && b !== void 0 || (S.formats = l._`require("ajv-formats/dist/formats").${_}`);
5128
+ (b = (S = l.opts.code).formats) !== null && b !== void 0 || (S.formats = f._`require("ajv-formats/dist/formats").${_}`);
5129
5129
  for (const E of m)
5130
- f.addFormat(E, g[E]);
5130
+ l.addFormat(E, g[E]);
5131
5131
  }
5132
5132
  e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
5133
5133
  })(At, At.exports)), At.exports;
5134
5134
  }
5135
- var ei = xo();
5136
- const ti = /* @__PURE__ */ Bn(ei), ri = [
5135
+ var ti = ei();
5136
+ const ri = /* @__PURE__ */ Bn(ti), ni = [
5137
5137
  { section: "var", keys: ["vars", "var", "research_variable"] },
5138
5138
  { section: "step", keys: ["steps", "step", "research_step"] },
5139
5139
  { section: "check", keys: ["checks", "check", "research_check"] },
5140
5140
  { section: "quiz", keys: ["quiz", "quizzes", "research_quiz"] }
5141
- ], fa = new Ko({
5141
+ ], fa = new Uo({
5142
5142
  allErrors: !0,
5143
5143
  allowUnionTypes: !0,
5144
5144
  coerceTypes: "array",
5145
5145
  strict: !1
5146
5146
  });
5147
- ti(fa);
5147
+ ri(fa);
5148
5148
  const Wn = /* @__PURE__ */ new WeakMap();
5149
- function ni(e) {
5149
+ function ai(e) {
5150
5150
  const t = Wn.get(e);
5151
5151
  if (t) return t;
5152
5152
  const n = fa.compile(e);
@@ -5155,7 +5155,7 @@ function ni(e) {
5155
5155
  function te(e) {
5156
5156
  return !!e && typeof e == "object" && !Array.isArray(e);
5157
5157
  }
5158
- function fe(e, t) {
5158
+ function le(e, t) {
5159
5159
  return Object.prototype.hasOwnProperty.call(e, t);
5160
5160
  }
5161
5161
  function ur(e) {
@@ -5164,15 +5164,15 @@ function ur(e) {
5164
5164
  function Ft(e, t, n) {
5165
5165
  return typeof e?.required == "boolean" ? e.required : typeof t?.required == "boolean" ? t.required : n;
5166
5166
  }
5167
- function ai(e, t) {
5167
+ function si(e, t) {
5168
5168
  const n = e?.pattern ?? t?.pattern;
5169
5169
  return typeof n == "string" && n ? n : void 0;
5170
5170
  }
5171
- function si(e) {
5171
+ function oi(e) {
5172
5172
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
5173
5173
  }
5174
5174
  function la(e) {
5175
- return e.split("/").slice(1).map(si);
5175
+ return e.split("/").slice(1).map(oi);
5176
5176
  }
5177
5177
  function ma(e, t, n) {
5178
5178
  return `var_table:${e}:${t}:${n}`;
@@ -5194,14 +5194,14 @@ function Ce(e) {
5194
5194
  if (typeof n == "number" && Number.isFinite(n)) return n;
5195
5195
  } catch {
5196
5196
  }
5197
- return typeof e.airalogy_file_id == "string" ? e.airalogy_file_id : typeof e.airalogyId == "string" ? e.airalogyId : (e.type === "file" || e.type === "image") && typeof e.id == "string" ? e.id : fe(e, "value") && (fe(e, "displayedValue") || fe(e, "formattedValue") || fe(e, "type")) ? Ce(e.value) : !fe(e, "value") && typeof e.formattedValue == "string" ? e.formattedValue : Object.fromEntries(
5197
+ return typeof e.airalogy_file_id == "string" ? e.airalogy_file_id : typeof e.airalogyId == "string" ? e.airalogyId : (e.type === "file" || e.type === "image") && typeof e.id == "string" ? e.id : le(e, "value") && (le(e, "displayedValue") || le(e, "formattedValue") || le(e, "type")) ? Ce(e.value) : !le(e, "value") && typeof e.formattedValue == "string" ? e.formattedValue : Object.fromEntries(
5198
5198
  Object.entries(e).map(([n, a]) => [n, Ce(a)])
5199
5199
  );
5200
5200
  }
5201
- function oi(e, t) {
5201
+ function ii(e, t) {
5202
5202
  const n = t[e] ?? {};
5203
5203
  return e === "step" || e === "check" ? Object.fromEntries(
5204
- Object.entries(n).map(([a, l]) => [a, Ce(Me(l))])
5204
+ Object.entries(n).map(([a, f]) => [a, Ce(Me(f))])
5205
5205
  ) : Ce(n);
5206
5206
  }
5207
5207
  function ha(e) {
@@ -5209,8 +5209,8 @@ function ha(e) {
5209
5209
  if (e.type === "object" || te(e.properties) || Array.isArray(e.required))
5210
5210
  return [{ section: "var", schema: e }];
5211
5211
  const t = [];
5212
- for (const n of ri) {
5213
- const a = n.keys.map((l) => e[l]).find(te);
5212
+ for (const n of ni) {
5213
+ const a = n.keys.map((f) => e[f]).find(te);
5214
5214
  a && t.push({ section: n.section, schema: a });
5215
5215
  }
5216
5216
  return t;
@@ -5219,17 +5219,17 @@ function pa(e) {
5219
5219
  const t = /* @__PURE__ */ new Set();
5220
5220
  for (const { section: n, schema: a } of e)
5221
5221
  if (te(a.properties))
5222
- for (const l of Object.keys(a.properties))
5223
- t.add(`${n}:${l}`), n === "var" && t.add(`var_table:${l}`);
5222
+ for (const f of Object.keys(a.properties))
5223
+ t.add(`${n}:${f}`), n === "var" && t.add(`var_table:${f}`);
5224
5224
  return t;
5225
5225
  }
5226
5226
  function Wt(e, t) {
5227
5227
  const n = t.$ref;
5228
5228
  if (typeof n != "string" || !n.startsWith("#/")) return t;
5229
5229
  let a = e;
5230
- for (const l of la(n.slice(1))) {
5230
+ for (const f of la(n.slice(1))) {
5231
5231
  if (!te(a)) return t;
5232
- a = a[l];
5232
+ a = a[f];
5233
5233
  }
5234
5234
  return te(a) ? a : t;
5235
5235
  }
@@ -5238,12 +5238,12 @@ function Kt(e, t, n = /* @__PURE__ */ new Set()) {
5238
5238
  n.add(t);
5239
5239
  const a = Wt(e, t);
5240
5240
  if (a !== t && !n.has(a)) {
5241
- const l = Kt(e, a, n);
5242
- if (l) return l;
5241
+ const f = Kt(e, a, n);
5242
+ if (f) return f;
5243
5243
  }
5244
- if (a.type === "array" || fe(a, "items")) return a;
5245
- for (const l of ["anyOf", "oneOf", "allOf"]) {
5246
- const r = a[l];
5244
+ if (a.type === "array" || le(a, "items")) return a;
5245
+ for (const f of ["anyOf", "oneOf", "allOf"]) {
5246
+ const r = a[f];
5247
5247
  if (Array.isArray(r))
5248
5248
  for (const o of r) {
5249
5249
  const i = Kt(e, o, n);
@@ -5256,8 +5256,8 @@ function Ut(e, t, n = /* @__PURE__ */ new Set()) {
5256
5256
  n.add(t);
5257
5257
  const a = Wt(e, t);
5258
5258
  if (a !== t && Ut(e, a, n) || a.nullable === !0 || a.type === "null" || Array.isArray(a.type) && a.type.includes("null")) return !0;
5259
- for (const l of ["anyOf", "oneOf"]) {
5260
- const r = a[l];
5259
+ for (const f of ["anyOf", "oneOf"]) {
5260
+ const r = a[f];
5261
5261
  if (Array.isArray(r) && r.some((o) => Ut(e, o, n)))
5262
5262
  return !0;
5263
5263
  }
@@ -5266,11 +5266,11 @@ function Ut(e, t, n = /* @__PURE__ */ new Set()) {
5266
5266
  function ya(e) {
5267
5267
  const t = /* @__PURE__ */ new Set();
5268
5268
  for (const { section: n, schema: a } of e) {
5269
- const l = te(a.properties) ? a.properties : {};
5270
- for (const [r, o] of Object.entries(l)) {
5269
+ const f = te(a.properties) ? a.properties : {};
5270
+ for (const [r, o] of Object.entries(f)) {
5271
5271
  if (Ut(a, o) && (t.add(`${n}:${r}`), n === "var" && t.add(`var_table:${r}`)), n !== "var") continue;
5272
- const i = Kt(a, o), d = te(i?.items) ? Wt(a, i.items) : void 0, f = d && te(d.properties) ? d.properties : {};
5273
- for (const [m, g] of Object.entries(f))
5272
+ const i = Kt(a, o), d = te(i?.items) ? Wt(a, i.items) : void 0, l = d && te(d.properties) ? d.properties : {};
5273
+ for (const [m, g] of Object.entries(l))
5274
5274
  Ut(a, g) && t.add(`var_table:${r}:${m}`);
5275
5275
  }
5276
5276
  }
@@ -5279,58 +5279,58 @@ function ya(e) {
5279
5279
  function va(e) {
5280
5280
  const t = /* @__PURE__ */ new Set();
5281
5281
  for (const { section: n, schema: a } of e) {
5282
- const l = new Set(
5282
+ const f = new Set(
5283
5283
  Array.isArray(a.required) ? a.required.filter((o) => typeof o == "string") : []
5284
5284
  ), r = te(a.properties) ? a.properties : {};
5285
5285
  for (const [o, i] of Object.entries(r)) {
5286
- if (l.has(o) && (t.add(`${n}:${o}`), n === "var" && t.add(`var_table:${o}`)), n !== "var") continue;
5287
- const d = Kt(a, i), f = te(d?.items) ? Wt(a, d.items) : void 0;
5288
- if (!(!f || !Array.isArray(f.required)))
5289
- for (const m of f.required)
5286
+ if (f.has(o) && (t.add(`${n}:${o}`), n === "var" && t.add(`var_table:${o}`)), n !== "var") continue;
5287
+ const d = Kt(a, i), l = te(d?.items) ? Wt(a, d.items) : void 0;
5288
+ if (!(!l || !Array.isArray(l.required)))
5289
+ for (const m of l.required)
5290
5290
  typeof m == "string" && t.add(`var_table:${o}:${m}`);
5291
5291
  }
5292
5292
  }
5293
5293
  return t;
5294
5294
  }
5295
- function $i(e, t = {}) {
5296
- const n = /* @__PURE__ */ new Set(), a = t.fieldMeta ?? {}, l = ha(t.schema), r = pa(l), o = va(l), i = ya(l), d = (f, m, g, _) => {
5297
- (r.has(f) ? a[f]?.required === !0 || o.has(f) && !i.has(f) : Ft(a[f], m, g && !Dt(_))) && n.add(f);
5295
+ function bi(e, t = {}) {
5296
+ const n = /* @__PURE__ */ new Set(), a = t.fieldMeta ?? {}, f = ha(t.schema), r = pa(f), o = va(f), i = ya(f), d = (l, m, g, _) => {
5297
+ (r.has(l) ? a[l]?.required === !0 || o.has(l) && !i.has(l) : Ft(a[l], m, g && !Dt(_))) && n.add(l);
5298
5298
  };
5299
- for (const f of e.var_definitions ?? [])
5300
- d(`var:${f.id}`, f.kwargs, !fe(f, "default"), f.type);
5301
- for (const f of e.var_table ?? []) {
5302
- const m = `var_table:${f.id}`;
5303
- d(m, f.kwargs, !fe(f, "default"), f.type_annotation);
5299
+ for (const l of e.var_definitions ?? [])
5300
+ d(`var:${l.id}`, l.kwargs, !le(l, "default"), l.type);
5301
+ for (const l of e.var_table ?? []) {
5302
+ const m = `var_table:${l.id}`;
5303
+ d(m, l.kwargs, !le(l, "default"), l.type_annotation);
5304
5304
  const g = r.has(m);
5305
- for (const _ of f.subvars ?? []) {
5305
+ for (const _ of l.subvars ?? []) {
5306
5306
  const b = `${m}:${_.id}`;
5307
5307
  (g ? a[b]?.required === !0 || o.has(b) && !i.has(b) : Ft(
5308
5308
  a[b],
5309
5309
  _.kwargs,
5310
- !fe(_, "default") && !Dt(_.type)
5310
+ !le(_, "default") && !Dt(_.type)
5311
5311
  )) && n.add(b);
5312
5312
  }
5313
5313
  }
5314
- for (const f of e.step ?? [])
5315
- d(`step:${f}`, void 0, !1);
5316
- for (const f of e.check ?? [])
5317
- d(`check:${f}`, void 0, !1);
5318
- for (const f of e.quiz ?? [])
5314
+ for (const l of e.step ?? [])
5315
+ d(`step:${l}`, void 0, !1);
5316
+ for (const l of e.check ?? [])
5317
+ d(`check:${l}`, void 0, !1);
5318
+ for (const l of e.quiz ?? [])
5319
5319
  d(
5320
- `quiz:${f.id}`,
5321
- te(f.extra) ? f.extra : void 0,
5320
+ `quiz:${l.id}`,
5321
+ te(l.extra) ? l.extra : void 0,
5322
5322
  !1
5323
5323
  );
5324
5324
  return n;
5325
5325
  }
5326
- function ii(e, t, n, a, l, r) {
5326
+ function ci(e, t, n, a, f, r) {
5327
5327
  if (t === "var")
5328
5328
  return e.var_definitions?.find((i) => i.id === n)?.title || n;
5329
5329
  if (t === "var_table") {
5330
5330
  const o = e.var_table?.find((i) => i.id === n);
5331
- if (l && a !== void 0 && r) {
5332
- const i = o?.subvars.find((d) => d.id === l);
5333
- return r.tableCell(a + 1, i?.title || l);
5331
+ if (f && a !== void 0 && r) {
5332
+ const i = o?.subvars.find((d) => d.id === f);
5333
+ return r.tableCell(a + 1, i?.title || f);
5334
5334
  }
5335
5335
  return o?.title || n;
5336
5336
  }
@@ -5340,17 +5340,17 @@ function ii(e, t, n, a, l, r) {
5340
5340
  }
5341
5341
  return n;
5342
5342
  }
5343
- function ci(e, t, n, a, l) {
5343
+ function ui(e, t, n, a, f) {
5344
5344
  if (t === "var") return e.var[n];
5345
5345
  if (t === "var_table") {
5346
5346
  const r = e.var[n];
5347
5347
  if (a === void 0 || !Array.isArray(r)) return r;
5348
5348
  const o = r[a];
5349
- return l && te(o) ? o[l] : o;
5349
+ return f && te(o) ? o[f] : o;
5350
5350
  }
5351
5351
  return t === "step" ? Me(e.step[n]) : t === "check" ? Me(e.check[n]) : e.quiz[n];
5352
5352
  }
5353
- function ui(e, t, n, a, l) {
5353
+ function di(e, t, n, a, f) {
5354
5354
  const r = la(e.instancePath);
5355
5355
  e.keyword === "required" && typeof e.params.missingProperty == "string" && r.push(e.params.missingProperty), e.keyword === "additionalProperties" && typeof e.params.additionalProperty == "string" && r.push(e.params.additionalProperty), e.keyword === "unevaluatedProperties" && typeof e.params.unevaluatedProperty == "string" && r.push(e.params.unevaluatedProperty), e.keyword === "dependentRequired" && typeof e.params.missingProperty == "string" && r.push(e.params.missingProperty);
5356
5356
  const o = r[0];
@@ -5359,50 +5359,50 @@ function ui(e, t, n, a, l) {
5359
5359
  fieldKey: `${t}:$schema`,
5360
5360
  section: t,
5361
5361
  code: "schema",
5362
- message: l.schema("Schema", e.message || e.keyword),
5362
+ message: f.schema("Schema", e.message || e.keyword),
5363
5363
  keyword: e.keyword,
5364
5364
  instancePath: e.instancePath,
5365
5365
  schemaPath: e.schemaPath
5366
5366
  };
5367
- const i = t === "var" && n.var_table.some((y) => y.id === o), d = i ? "var_table" : t, f = i && /^\d+$/.test(r[1] ?? "") ? Number(r[1]) : void 0, m = i && f !== void 0 ? r[2] : void 0, g = i && f !== void 0 && m ? ma(o, f, m) : `${d}:${o}`, _ = ii(n, d, o, f, m, l), b = e.message || e.keyword;
5368
- let S = "schema", E = l.schema(_, b);
5367
+ const i = t === "var" && n.var_table.some((y) => y.id === o), d = i ? "var_table" : t, l = i && /^\d+$/.test(r[1] ?? "") ? Number(r[1]) : void 0, m = i && l !== void 0 ? r[2] : void 0, g = i && l !== void 0 && m ? ma(o, l, m) : `${d}:${o}`, _ = ci(n, d, o, l, m, f), b = e.message || e.keyword;
5368
+ let S = "schema", E = f.schema(_, b);
5369
5369
  switch (e.keyword) {
5370
5370
  case "required":
5371
- S = "required", E = l.required(_);
5371
+ S = "required", E = f.required(_);
5372
5372
  break;
5373
5373
  case "pattern":
5374
- S = "pattern", E = l.pattern(_);
5374
+ S = "pattern", E = f.pattern(_);
5375
5375
  break;
5376
5376
  case "enum":
5377
5377
  case "const":
5378
- S = "enum", E = l.enum(_);
5378
+ S = "enum", E = f.enum(_);
5379
5379
  break;
5380
5380
  case "type": {
5381
5381
  S = "type";
5382
5382
  const y = String(e.params.type || "the expected type");
5383
- E = l.type(_, y);
5383
+ E = f.type(_, y);
5384
5384
  break;
5385
5385
  }
5386
5386
  case "format": {
5387
5387
  S = "format";
5388
5388
  const y = String(e.params.format || "the expected");
5389
- E = l.format(_, y);
5389
+ E = f.format(_, y);
5390
5390
  break;
5391
5391
  }
5392
5392
  case "minimum":
5393
- S = "numeric", E = l.numeric(_, `Must be >= ${String(e.params.limit)}`);
5393
+ S = "numeric", E = f.numeric(_, `Must be >= ${String(e.params.limit)}`);
5394
5394
  break;
5395
5395
  case "exclusiveMinimum":
5396
- S = "numeric", E = l.numeric(_, `Must be > ${String(e.params.limit)}`);
5396
+ S = "numeric", E = f.numeric(_, `Must be > ${String(e.params.limit)}`);
5397
5397
  break;
5398
5398
  case "maximum":
5399
- S = "numeric", E = l.numeric(_, `Must be <= ${String(e.params.limit)}`);
5399
+ S = "numeric", E = f.numeric(_, `Must be <= ${String(e.params.limit)}`);
5400
5400
  break;
5401
5401
  case "exclusiveMaximum":
5402
- S = "numeric", E = l.numeric(_, `Must be < ${String(e.params.limit)}`);
5402
+ S = "numeric", E = f.numeric(_, `Must be < ${String(e.params.limit)}`);
5403
5403
  break;
5404
5404
  case "multipleOf":
5405
- S = "numeric", E = l.numeric(_, `Must be a multiple of ${String(e.params.multipleOf)}`);
5405
+ S = "numeric", E = f.numeric(_, `Must be a multiple of ${String(e.params.multipleOf)}`);
5406
5406
  break;
5407
5407
  }
5408
5408
  return {
@@ -5410,55 +5410,55 @@ function ui(e, t, n, a, l) {
5410
5410
  section: d,
5411
5411
  code: S,
5412
5412
  message: E,
5413
- value: ci(a, d, o, f, m),
5414
- rowIndex: f,
5413
+ value: ui(a, d, o, l, m),
5414
+ rowIndex: l,
5415
5415
  column: m,
5416
5416
  keyword: e.keyword,
5417
5417
  instancePath: e.instancePath,
5418
5418
  schemaPath: e.schemaPath
5419
5419
  };
5420
5420
  }
5421
- function di(e, t, n, a, l) {
5421
+ function fi(e, t, n, a, f) {
5422
5422
  if (a.length !== 0)
5423
5423
  for (const { section: r, schema: o } of a) {
5424
5424
  let i;
5425
5425
  try {
5426
- i = ni(o);
5426
+ i = ai(o);
5427
5427
  } catch (d) {
5428
5428
  e.push({
5429
5429
  fieldKey: `${r}:$schema`,
5430
5430
  section: r,
5431
5431
  code: "schema",
5432
- message: l.schema("Schema", d instanceof Error ? d.message : String(d)),
5432
+ message: f.schema("Schema", d instanceof Error ? d.message : String(d)),
5433
5433
  keyword: "compile"
5434
5434
  });
5435
5435
  continue;
5436
5436
  }
5437
- i(oi(r, n));
5437
+ i(ii(r, n));
5438
5438
  for (const d of i.errors ?? []) {
5439
- const f = ui(d, r, t, n, l);
5440
- f && e.push(f);
5439
+ const l = di(d, r, t, n, f);
5440
+ l && e.push(l);
5441
5441
  }
5442
5442
  }
5443
5443
  }
5444
- function pe(e, t, n, a, l, r, o) {
5445
- e.push({ fieldKey: t, section: n, code: a, message: l, value: r, ...o });
5444
+ function fe(e, t, n, a, f, r, o) {
5445
+ e.push({ fieldKey: t, section: n, code: a, message: f, value: r, ...o });
5446
5446
  }
5447
5447
  function ga(e) {
5448
5448
  return e ? e.replace(/\s+/g, "").replace(/^(?:typing\.)?Optional\[(.*)\]$/i, "$1").split("|").find((t) => !/^(?:none|null|undefined)$/i.test(t))?.replace(/^(?:builtins\.|airalogy\.types\.)/, "").toLowerCase() ?? "" : "";
5449
5449
  }
5450
- function fi(e) {
5450
+ function li(e) {
5451
5451
  const t = ga(e);
5452
5452
  if (/^(?:str|string|date|datetime|time|uuid|decimal)$/.test(t)) return "string";
5453
5453
  if (/^(?:float|number)$/.test(t)) return "number";
5454
5454
  if (/^(?:int|integer)$/.test(t)) return "integer";
5455
5455
  if (/^(?:bool|boolean)$/.test(t)) return "boolean";
5456
5456
  if (/^(?:list|list\[|array|tuple|set)/.test(t)) return "array";
5457
- const n = Sa(e)?.type;
5457
+ const n = Pa(e)?.type;
5458
5458
  if (n === "string" || n === "number" || n === "integer" || n === "boolean" || n === "array" || n === "object")
5459
5459
  return n;
5460
5460
  }
5461
- function li(e, t) {
5461
+ function mi(e, t) {
5462
5462
  if (!t) return !0;
5463
5463
  if (t === "array") return Array.isArray(e);
5464
5464
  if (t === "object") return te(e);
@@ -5473,7 +5473,7 @@ function li(e, t) {
5473
5473
  }
5474
5474
  return typeof e == "string";
5475
5475
  }
5476
- function mi(e, t) {
5476
+ function hi(e, t) {
5477
5477
  if (typeof t?.format == "string" && t.format) return t.format;
5478
5478
  const n = ga(e);
5479
5479
  if (n === "date") return "date";
@@ -5481,18 +5481,18 @@ function mi(e, t) {
5481
5481
  if (n === "time") return "time";
5482
5482
  if (n === "uuid") return "uuid";
5483
5483
  }
5484
- function hi(e, t) {
5484
+ function pi(e, t) {
5485
5485
  return typeof e != "string" ? !1 : t === "date" ? /^\d{4}-\d{2}-\d{2}$/.test(e) && !Number.isNaN(Date.parse(`${e}T00:00:00Z`)) : t === "date-time" ? !Number.isNaN(Date.parse(e)) : t === "time" ? /^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|[+-][0-2]\d:[0-5]\d)?$/.test(e) : t === "uuid" ? /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e) : t === "email" ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) : !0;
5486
5486
  }
5487
5487
  function Ae(e, t, n) {
5488
5488
  const {
5489
5489
  fieldKey: a,
5490
- section: l,
5490
+ section: f,
5491
5491
  label: r,
5492
5492
  value: o,
5493
5493
  type: i,
5494
5494
  kwargs: d,
5495
- meta: f,
5495
+ meta: l,
5496
5496
  enumValues: m,
5497
5497
  rowIndex: g,
5498
5498
  column: _,
@@ -5500,36 +5500,38 @@ function Ae(e, t, n) {
5500
5500
  schemaCovered: S = !1,
5501
5501
  schemaRequired: E = !1,
5502
5502
  schemaNullable: y = !1
5503
- } = n, v = { rowIndex: g, column: _ }, u = S ? void 0 : d, $ = S ? void 0 : m, w = f?.required === !0 || !S && d?.required === !0, s = S ? y : Dt(i), c = S ? E || f?.required === !0 : Ft(f, d, b && !s), p = o === null && s && !w;
5503
+ } = n, v = { rowIndex: g, column: _ }, u = S ? void 0 : d, $ = S ? void 0 : m, w = l?.required === !0 || !S && d?.required === !0, s = S ? y : Dt(i), c = S ? E || l?.required === !0 : Ft(l, d, b && !s), p = o === null && s && !w;
5504
5504
  if (c && ur(o) && !p) {
5505
- pe(e, a, l, "required", t.messages.required(r), o, v);
5505
+ fe(e, a, f, "required", t.messages.required(r), o, v);
5506
5506
  return;
5507
5507
  }
5508
5508
  if (ur(o)) return;
5509
- const k = ai(f, u);
5509
+ const k = si(l, u);
5510
5510
  if (k)
5511
5511
  try {
5512
- new RegExp(k).test(String(o)) || pe(e, a, l, "pattern", t.messages.pattern(r), o, v);
5512
+ new RegExp(k).test(String(o)) || fe(e, a, f, "pattern", t.messages.pattern(r), o, v);
5513
5513
  } catch {
5514
- pe(e, a, l, "pattern", t.messages.pattern(r), o, v);
5515
- }
5516
- const P = f?.enumOptions?.map((T) => T.value) ?? $;
5517
- if (P?.length && !P.some((T) => Object.is(T, o)) && pe(e, a, l, "enum", t.messages.enum(r), o, v), !S) {
5518
- const T = fi(i);
5519
- li(o, T) || pe(e, a, l, "type", t.messages.type(r, T || i || "valid"), o, v);
5520
- const q = mi(i, d);
5521
- q && !hi(o, q) && pe(e, a, l, "format", t.messages.format(r, q), o, v);
5522
- }
5523
- const N = ba(o, i, u);
5524
- N && pe(e, a, l, "numeric", t.messages.numeric(r, N), o, v);
5514
+ fe(e, a, f, "pattern", t.messages.pattern(r), o, v);
5515
+ }
5516
+ const P = l?.enumOptions?.map((O) => O.value) ?? $;
5517
+ P?.length && !P.some((O) => Object.is(O, o)) && fe(e, a, f, "enum", t.messages.enum(r), o, v);
5518
+ const N = ba(i);
5519
+ if (N.length && Array.isArray(o) && o.some((O) => !N.some((M) => Object.is(M, O))) && fe(e, a, f, "enum", t.messages.enum(r), o, v), !S) {
5520
+ const O = li(i);
5521
+ mi(o, O) || fe(e, a, f, "type", t.messages.type(r, O || i || "valid"), o, v);
5522
+ const M = hi(i, d);
5523
+ M && !pi(o, M) && fe(e, a, f, "format", t.messages.format(r, M), o, v);
5524
+ }
5525
+ const A = wa(o, i, u);
5526
+ A && fe(e, a, f, "numeric", t.messages.numeric(r, A), o, v);
5525
5527
  }
5526
- function pi(e, t, n) {
5527
- const a = wa(n.type, n.kwargs, n.meta);
5528
+ function yi(e, t, n) {
5529
+ const a = Sa(n.type, n.kwargs, n.meta);
5528
5530
  if (!a || ur(n.value)) return;
5529
- const l = a.multiple ? Array.isArray(n.value) ? n.value : [n.value] : [n.value];
5530
- for (const r of l) {
5531
+ const f = a.multiple ? Array.isArray(n.value) ? n.value : [n.value] : [n.value];
5532
+ for (const r of f) {
5531
5533
  if (!te(r) || typeof r.id != "string" || !r.id.trim()) {
5532
- pe(
5534
+ fe(
5533
5535
  e,
5534
5536
  n.fieldKey,
5535
5537
  "var",
@@ -5540,7 +5542,7 @@ function pi(e, t, n) {
5540
5542
  return;
5541
5543
  }
5542
5544
  if (a.containerRequired && (typeof r.container_id != "string" || !r.container_id.trim())) {
5543
- pe(
5545
+ fe(
5544
5546
  e,
5545
5547
  n.fieldKey,
5546
5548
  "var",
@@ -5551,7 +5553,7 @@ function pi(e, t, n) {
5551
5553
  return;
5552
5554
  }
5553
5555
  if (a.bookingRequired && (typeof r.booking_id != "string" || !r.booking_id.trim())) {
5554
- pe(
5556
+ fe(
5555
5557
  e,
5556
5558
  n.fieldKey,
5557
5559
  "var",
@@ -5570,30 +5572,30 @@ function _a(e, t) {
5570
5572
  if (n.length === 2)
5571
5573
  return e.startsWith(`${t}:`);
5572
5574
  if (n.length === 3) {
5573
- const [a, l, r] = n, o = e.split(":");
5574
- return o[0] === a && o[1] === l && o.length === 4 && o[3] === r;
5575
+ const [a, f, r] = n, o = e.split(":");
5576
+ return o[0] === a && o[1] === f && o.length === 4 && o[3] === r;
5575
5577
  }
5576
5578
  return !1;
5577
5579
  }
5578
- function bi(e, t) {
5580
+ function wi(e, t) {
5579
5581
  return _a(e, t);
5580
5582
  }
5581
- function yi(e, t) {
5583
+ function vi(e, t) {
5582
5584
  const n = t?.length ? e.filter((o) => t.some((i) => _a(o.fieldKey, i))) : e, a = new Set(
5583
5585
  n.filter((o) => o.keyword !== "anyOf" && o.keyword !== "oneOf").map((o) => o.fieldKey)
5584
- ), l = new Set(
5586
+ ), f = new Set(
5585
5587
  n.filter((o) => o.code === "required").map((o) => o.fieldKey)
5586
5588
  ), r = /* @__PURE__ */ new Set();
5587
5589
  return n.filter((o) => {
5588
- if (o.code !== "required" && l.has(o.fieldKey) || (o.keyword === "anyOf" || o.keyword === "oneOf") && a.has(o.fieldKey))
5590
+ if (o.code !== "required" && f.has(o.fieldKey) || (o.keyword === "anyOf" || o.keyword === "oneOf") && a.has(o.fieldKey))
5589
5591
  return !1;
5590
5592
  const i = `${o.fieldKey}\0${o.code}`;
5591
5593
  return r.has(i) ? !1 : (r.add(i), !0);
5592
5594
  });
5593
5595
  }
5594
- function vi(e, t, n) {
5595
- const a = [], l = n.fieldMeta ?? {}, r = ha(n.schema), o = pa(r), i = va(r), d = ya(r);
5596
- di(a, e, t, r, n.messages);
5596
+ function gi(e, t, n) {
5597
+ const a = [], f = n.fieldMeta ?? {}, r = ha(n.schema), o = pa(r), i = va(r), d = ya(r);
5598
+ fi(a, e, t, r, n.messages);
5597
5599
  for (const g of e.var_definitions ?? []) {
5598
5600
  const _ = `var:${g.id}`;
5599
5601
  Ae(a, n, {
@@ -5603,29 +5605,29 @@ function vi(e, t, n) {
5603
5605
  value: t.var[g.id],
5604
5606
  type: g.type,
5605
5607
  kwargs: g.kwargs,
5606
- meta: l[_],
5608
+ meta: f[_],
5607
5609
  enumValues: g.enum,
5608
- inferredRequired: !fe(g, "default"),
5610
+ inferredRequired: !le(g, "default"),
5609
5611
  schemaCovered: o.has(_),
5610
5612
  schemaRequired: i.has(_),
5611
5613
  schemaNullable: d.has(_)
5612
- }), pi(a, n, {
5614
+ }), yi(a, n, {
5613
5615
  fieldKey: _,
5614
5616
  label: g.title || g.id,
5615
5617
  value: t.var[g.id],
5616
5618
  type: g.type,
5617
5619
  kwargs: g.kwargs,
5618
- meta: l[_]
5620
+ meta: f[_]
5619
5621
  });
5620
5622
  }
5621
5623
  for (const g of e.var_table ?? []) {
5622
5624
  const _ = `var_table:${g.id}`, b = Array.isArray(t.var[g.id]) ? t.var[g.id] : [], S = o.has(_);
5623
- if ((S ? l[_]?.required === !0 || i.has(_) && !d.has(_) : Ft(
5624
- l[_],
5625
+ if ((S ? f[_]?.required === !0 || i.has(_) && !d.has(_) : Ft(
5626
+ f[_],
5625
5627
  g.kwargs,
5626
- !fe(g, "default") && !Dt(g.type_annotation)
5628
+ !le(g, "default") && !Dt(g.type_annotation)
5627
5629
  )) && b.length === 0) {
5628
- pe(a, _, "var_table", "required", n.messages.required(g.title || g.id), b);
5630
+ fe(a, _, "var_table", "required", n.messages.required(g.title || g.id), b);
5629
5631
  continue;
5630
5632
  }
5631
5633
  b.forEach((y, v) => {
@@ -5638,11 +5640,11 @@ function vi(e, t, n) {
5638
5640
  value: y?.[u.id],
5639
5641
  type: u.type,
5640
5642
  kwargs: u.kwargs,
5641
- meta: l[$],
5643
+ meta: f[$],
5642
5644
  enumValues: u.enum,
5643
5645
  rowIndex: v,
5644
5646
  column: u.id,
5645
- inferredRequired: !fe(u, "default"),
5647
+ inferredRequired: !le(u, "default"),
5646
5648
  schemaCovered: S,
5647
5649
  schemaRequired: i.has($),
5648
5650
  schemaNullable: d.has($)
@@ -5657,7 +5659,7 @@ function vi(e, t, n) {
5657
5659
  section: "step",
5658
5660
  label: g,
5659
5661
  value: Me(t.step[g]),
5660
- meta: l[_],
5662
+ meta: f[_],
5661
5663
  schemaCovered: o.has(_),
5662
5664
  schemaRequired: i.has(_)
5663
5665
  });
@@ -5669,7 +5671,7 @@ function vi(e, t, n) {
5669
5671
  section: "check",
5670
5672
  label: g,
5671
5673
  value: Me(t.check[g]),
5672
- meta: l[_],
5674
+ meta: f[_],
5673
5675
  schemaCovered: o.has(_),
5674
5676
  schemaRequired: i.has(_)
5675
5677
  });
@@ -5682,31 +5684,31 @@ function vi(e, t, n) {
5682
5684
  label: g.title || g.stem || g.id,
5683
5685
  value: t.quiz[g.id],
5684
5686
  kwargs: b,
5685
- meta: l[_],
5687
+ meta: f[_],
5686
5688
  schemaCovered: o.has(_),
5687
5689
  schemaRequired: i.has(_)
5688
5690
  });
5689
5691
  }
5690
- const f = yi(a, n.fieldKeys), m = {};
5691
- for (const g of f)
5692
+ const l = vi(a, n.fieldKeys), m = {};
5693
+ for (const g of l)
5692
5694
  m[g.fieldKey] ??= { validationError: g.message };
5693
5695
  return {
5694
- valid: f.length === 0,
5695
- issues: f,
5696
+ valid: l.length === 0,
5697
+ issues: l,
5696
5698
  fieldState: m,
5697
5699
  validatedFieldKeys: n.fieldKeys?.length ? [...n.fieldKeys] : void 0
5698
5700
  };
5699
5701
  }
5700
- function wi(e, t, n, a) {
5701
- return vi(e, t, {
5702
+ function Si(e, t, n, a) {
5703
+ return gi(e, t, {
5702
5704
  ...a,
5703
5705
  fieldKeys: [n]
5704
5706
  });
5705
5707
  }
5706
5708
  export {
5707
5709
  ma as a,
5708
- vi as b,
5709
- $i as g,
5710
- bi as m,
5711
- wi as v
5710
+ gi as b,
5711
+ bi as g,
5712
+ wi as m,
5713
+ Si as v
5712
5714
  };