@tempots/beatui 0.73.0 → 0.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { U as sn, V as ye, B as Gs, o as ze, m as br, p as Xs, C as Zs, t as xs, l as Ys, j as Qs, N as ei, k as ti, s as ri, r as ni, q as ai, R as si, S as ii, E as rs, W as oi, u as ci, X as ui } from "../widget-customization-29Hl2gKT.js";
2
- import { c as gf, d as vf, f as $f } from "../widget-customization-29Hl2gKT.js";
1
+ import { U as sn, V as ye, B as Gs, o as ze, m as br, p as Xs, C as Zs, t as xs, l as Ys, j as Qs, N as ei, k as ti, s as ri, r as ni, q as ai, R as si, S as ii, E as rs, W as oi, u as ci, X as ui } from "../widget-customization-Bo4XWiwB.js";
2
+ import { Y as gf, c as vf, d as $f, f as bf } from "../widget-customization-Bo4XWiwB.js";
3
3
  import { g as dr } from "../_commonjsHelpers-C6fGbg64.js";
4
4
  import { a as Ee, S as me, I as nt, c as te, j as _r, b as on, L as We, M as li, C as ns, g as di, A as fi, h as mi } from "../use-form-B7A865EM.js";
5
5
  import { _ as Kr, g as pi, S as hi, f as yi, N as as, l as de, W as gi, e as vi, t as Xe, T as $i, U as bi, b as Mr, c as _i, M as st, h as wi, G as Si, L as Pi, i as ji, j as Ei } from "../deep-merge-CQQCMLwG.js";
@@ -310,8 +310,8 @@ function H() {
310
310
  super(), this.varKind = $, this.name = j, this.rhs = R;
311
311
  }
312
312
  render({ es5: $, _n: j }) {
313
- const R = $ ? r.varKinds.var : this.varKind, F = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
314
- return `${R} ${this.name}${F};` + j;
313
+ const R = $ ? r.varKinds.var : this.varKind, L = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
314
+ return `${R} ${this.name}${L};` + j;
315
315
  }
316
316
  optimizeNames($, j) {
317
317
  if ($[this.name.str])
@@ -334,12 +334,12 @@ function H() {
334
334
  }
335
335
  get names() {
336
336
  const $ = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
337
- return L($, this.rhs);
337
+ return F($, this.rhs);
338
338
  }
339
339
  }
340
340
  class l extends c {
341
- constructor($, j, R, F) {
342
- super($, R, F), this.op = j;
341
+ constructor($, j, R, L) {
342
+ super($, R, L), this.op = j;
343
343
  }
344
344
  render({ _n: $ }) {
345
345
  return `${this.lhs} ${this.op}= ${this.rhs};` + $;
@@ -407,10 +407,10 @@ function H() {
407
407
  }
408
408
  optimizeNames($, j) {
409
409
  const { nodes: R } = this;
410
- let F = R.length;
411
- for (; F--; ) {
412
- const D = R[F];
413
- D.optimizeNames($, j) || (ee($, D.names), R.splice(F, 1));
410
+ let L = R.length;
411
+ for (; L--; ) {
412
+ const D = R[L];
413
+ D.optimizeNames($, j) || (ee($, D.names), R.splice(L, 1));
414
414
  }
415
415
  return R.length > 0 ? this : void 0;
416
416
  }
@@ -458,7 +458,7 @@ function H() {
458
458
  }
459
459
  get names() {
460
460
  const $ = super.names;
461
- return L($, this.condition), this.else && V($, this.else.names), $;
461
+ return F($, this.condition), this.else && V($, this.else.names), $;
462
462
  }
463
463
  }
464
464
  f.kind = "if";
@@ -481,21 +481,21 @@ function H() {
481
481
  }
482
482
  }
483
483
  class y extends o {
484
- constructor($, j, R, F) {
485
- super(), this.varKind = $, this.name = j, this.from = R, this.to = F;
484
+ constructor($, j, R, L) {
485
+ super(), this.varKind = $, this.name = j, this.from = R, this.to = L;
486
486
  }
487
487
  render($) {
488
- const j = $.es5 ? r.varKinds.var : this.varKind, { name: R, from: F, to: D } = this;
489
- return `for(${j} ${R}=${F}; ${R}<${D}; ${R}++)` + super.render($);
488
+ const j = $.es5 ? r.varKinds.var : this.varKind, { name: R, from: L, to: D } = this;
489
+ return `for(${j} ${R}=${L}; ${R}<${D}; ${R}++)` + super.render($);
490
490
  }
491
491
  get names() {
492
- const $ = L(super.names, this.from);
493
- return L($, this.to);
492
+ const $ = F(super.names, this.from);
493
+ return F($, this.to);
494
494
  }
495
495
  }
496
496
  class v extends o {
497
- constructor($, j, R, F) {
498
- super(), this.loop = $, this.varKind = j, this.name = R, this.iterable = F;
497
+ constructor($, j, R, L) {
498
+ super(), this.loop = $, this.varKind = j, this.name = R, this.iterable = L;
499
499
  }
500
500
  render($) {
501
501
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render($);
@@ -533,8 +533,8 @@ function H() {
533
533
  return super.optimizeNodes(), ($ = this.catch) === null || $ === void 0 || $.optimizeNodes(), (j = this.finally) === null || j === void 0 || j.optimizeNodes(), this;
534
534
  }
535
535
  optimizeNames($, j) {
536
- var R, F;
537
- return super.optimizeNames($, j), (R = this.catch) === null || R === void 0 || R.optimizeNames($, j), (F = this.finally) === null || F === void 0 || F.optimizeNames($, j), this;
536
+ var R, L;
537
+ return super.optimizeNames($, j), (R = this.catch) === null || R === void 0 || R.optimizeNames($, j), (L = this.finally) === null || L === void 0 || L.optimizeNames($, j), this;
538
538
  }
539
539
  get names() {
540
540
  const $ = super.names;
@@ -588,9 +588,9 @@ function H() {
588
588
  scopeCode() {
589
589
  return this._extScope.scopeCode(this._values);
590
590
  }
591
- _def($, j, R, F) {
591
+ _def($, j, R, L) {
592
592
  const D = this._scope.toName(j);
593
- return R !== void 0 && F && (this._constants[D.str] = R), this._leafNode(new i($, D, R)), D;
593
+ return R !== void 0 && L && (this._constants[D.str] = R), this._leafNode(new i($, D, R)), D;
594
594
  }
595
595
  // `const` declaration (`var` in es5 mode)
596
596
  const($, j, R) {
@@ -619,8 +619,8 @@ function H() {
619
619
  // returns code for object literal for the passed argument list of key-value pairs
620
620
  object(...$) {
621
621
  const j = ["{"];
622
- for (const [R, F] of $)
623
- j.length > 1 && j.push(","), j.push(R), (R !== F || this.opts.es5) && (j.push(":"), (0, t.addCodeArg)(j, F));
622
+ for (const [R, L] of $)
623
+ j.length > 1 && j.push(","), j.push(R), (R !== L || this.opts.es5) && (j.push(":"), (0, t.addCodeArg)(j, L));
624
624
  return j.push("}"), new t._Code(j);
625
625
  }
626
626
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
@@ -653,12 +653,12 @@ function H() {
653
653
  return this._for(new d($), j);
654
654
  }
655
655
  // `for` statement for a range of values
656
- forRange($, j, R, F, D = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
656
+ forRange($, j, R, L, D = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
657
657
  const X = this._scope.toName($);
658
- return this._for(new y(D, X, j, R), () => F(X));
658
+ return this._for(new y(D, X, j, R), () => L(X));
659
659
  }
660
660
  // `for-of` statement (in es5 mode replace with a normal for loop)
661
- forOf($, j, R, F = r.varKinds.const) {
661
+ forOf($, j, R, L = r.varKinds.const) {
662
662
  const D = this._scope.toName($);
663
663
  if (this.opts.es5) {
664
664
  const X = j instanceof t.Name ? j : this.var("_arr", j);
@@ -666,15 +666,15 @@ function H() {
666
666
  this.var(D, (0, t._)`${X}[${G}]`), R(D);
667
667
  });
668
668
  }
669
- return this._for(new v("of", F, D, j), () => R(D));
669
+ return this._for(new v("of", L, D, j), () => R(D));
670
670
  }
671
671
  // `for-in` statement.
672
672
  // With option `ownProperties` replaced with a `for-of` loop for object keys
673
- forIn($, j, R, F = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
673
+ forIn($, j, R, L = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
674
674
  if (this.opts.ownProperties)
675
675
  return this.forOf($, (0, t._)`Object.keys(${j})`, R);
676
676
  const D = this._scope.toName($);
677
- return this._for(new v("in", F, D, j), () => R(D));
677
+ return this._for(new v("in", L, D, j), () => R(D));
678
678
  }
679
679
  // end `for` loop
680
680
  endFor() {
@@ -699,12 +699,12 @@ function H() {
699
699
  try($, j, R) {
700
700
  if (!j && !R)
701
701
  throw new Error('CodeGen: "try" without "catch" and "finally"');
702
- const F = new N();
703
- if (this._blockNode(F), this.code($), j) {
702
+ const L = new N();
703
+ if (this._blockNode(L), this.code($), j) {
704
704
  const D = this.name("e");
705
- this._currNode = F.catch = new q(D), j(D);
705
+ this._currNode = L.catch = new q(D), j(D);
706
706
  }
707
- return R && (this._currNode = F.finally = new U(), this.code(R)), this._endBlockNode(q, U);
707
+ return R && (this._currNode = L.finally = new U(), this.code(R)), this._endBlockNode(q, U);
708
708
  }
709
709
  // `throw` statement
710
710
  throw($) {
@@ -725,8 +725,8 @@ function H() {
725
725
  return this._nodes.length = j, this;
726
726
  }
727
727
  // `function` heading (or definition if funcBody is passed)
728
- func($, j = t.nil, R, F) {
729
- return this._blockNode(new _($, j, R)), F && this.code(F).endFunc(), this;
728
+ func($, j = t.nil, R, L) {
729
+ return this._blockNode(new _($, j, R)), L && this.code(L).endFunc(), this;
730
730
  }
731
731
  // end function definition
732
732
  endFunc() {
@@ -772,20 +772,20 @@ function H() {
772
772
  k[j] = (k[j] || 0) + ($[j] || 0);
773
773
  return k;
774
774
  }
775
- function L(k, $) {
775
+ function F(k, $) {
776
776
  return $ instanceof t._CodeOrName ? V(k, $.names) : k;
777
777
  }
778
778
  function W(k, $, j) {
779
779
  if (k instanceof t.Name)
780
780
  return R(k);
781
- if (!F(k))
781
+ if (!L(k))
782
782
  return k;
783
783
  return new t._Code(k._items.reduce((D, X) => (X instanceof t.Name && (X = R(X)), X instanceof t._Code ? D.push(...X._items) : D.push(X), D), []));
784
784
  function R(D) {
785
785
  const X = j[D.str];
786
786
  return X === void 0 || $[D.str] !== 1 ? D : (delete $[D.str], X);
787
787
  }
788
- function F(D) {
788
+ function L(D) {
789
789
  return D instanceof t._Code && D._items.some((X) => X instanceof t.Name && $[X.str] === 1 && j[X.str] !== void 0);
790
790
  }
791
791
  }
@@ -894,8 +894,8 @@ function Q() {
894
894
  Z.eachItem = g;
895
895
  function w({ mergeNames: v, mergeToName: _, mergeValues: P, resultToName: N }) {
896
896
  return (q, U, I, V) => {
897
- const L = I === void 0 ? U : I instanceof e.Name ? (U instanceof e.Name ? v(q, U, I) : _(q, U, I), I) : U instanceof e.Name ? (_(q, I, U), U) : P(U, I);
898
- return V === e.Name && !(L instanceof e.Name) ? N(q, L) : L;
897
+ const F = I === void 0 ? U : I instanceof e.Name ? (U instanceof e.Name ? v(q, U, I) : _(q, U, I), I) : U instanceof e.Name ? (_(q, I, U), U) : P(U, I);
898
+ return V === e.Name && !(F instanceof e.Name) ? N(q, F) : F;
899
899
  };
900
900
  }
901
901
  Z.mergeEvaluated = {
@@ -1370,14 +1370,14 @@ function je() {
1370
1370
  }
1371
1371
  ne.schemaProperties = g;
1372
1372
  function w({ schemaCode: o, data: d, it: { gen: y, topSchemaRef: v, schemaPath: _, errorPath: P }, it: N }, q, U, I) {
1373
- const V = I ? (0, e._)`${o}, ${d}, ${v}${_}` : d, L = [
1373
+ const V = I ? (0, e._)`${o}, ${d}, ${v}${_}` : d, F = [
1374
1374
  [r.default.instancePath, (0, e.strConcat)(r.default.instancePath, P)],
1375
1375
  [r.default.parentData, N.parentData],
1376
1376
  [r.default.parentDataProperty, N.parentDataProperty],
1377
1377
  [r.default.rootData, r.default.rootData]
1378
1378
  ];
1379
- N.opts.dynamicRef && L.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1380
- const W = (0, e._)`${V}, ${y.object(...L)}`;
1379
+ N.opts.dynamicRef && F.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1380
+ const W = (0, e._)`${V}, ${y.object(...F)}`;
1381
1381
  return U !== e.nil ? (0, e._)`${q}.call(${U}, ${W})` : (0, e._)`${q}(${W})`;
1382
1382
  }
1383
1383
  ne.callValidateCode = w;
@@ -1456,25 +1456,25 @@ function Di() {
1456
1456
  if (w.errors === !1)
1457
1457
  I(), w.modifying && i(g), V(() => g.error());
1458
1458
  else {
1459
- const L = w.async ? q() : U();
1460
- w.modifying && i(g), V(() => c(g, L));
1459
+ const F = w.async ? q() : U();
1460
+ w.modifying && i(g), V(() => c(g, F));
1461
1461
  }
1462
1462
  }
1463
1463
  function q() {
1464
- const L = h.let("ruleErrs", null);
1465
- return h.try(() => I((0, e._)`await `), (W) => h.assign(P, !1).if((0, e._)`${W} instanceof ${y.ValidationError}`, () => h.assign(L, (0, e._)`${W}.errors`), () => h.throw(W))), L;
1464
+ const F = h.let("ruleErrs", null);
1465
+ return h.try(() => I((0, e._)`await `), (W) => h.assign(P, !1).if((0, e._)`${W} instanceof ${y.ValidationError}`, () => h.assign(F, (0, e._)`${W}.errors`), () => h.throw(W))), F;
1466
1466
  }
1467
1467
  function U() {
1468
- const L = (0, e._)`${_}.errors`;
1469
- return h.assign(L, null), I(e.nil), L;
1468
+ const F = (0, e._)`${_}.errors`;
1469
+ return h.assign(F, null), I(e.nil), F;
1470
1470
  }
1471
- function I(L = w.async ? (0, e._)`await ` : e.nil) {
1471
+ function I(F = w.async ? (0, e._)`await ` : e.nil) {
1472
1472
  const W = y.opts.passContext ? t.default.this : t.default.self, ee = !("compile" in w && !d || w.schema === !1);
1473
- h.assign(P, (0, e._)`${L}${(0, r.callValidateCode)(g, _, W, ee)}`, w.modifying);
1473
+ h.assign(P, (0, e._)`${F}${(0, r.callValidateCode)(g, _, W, ee)}`, w.modifying);
1474
1474
  }
1475
- function V(L) {
1475
+ function V(F) {
1476
1476
  var W;
1477
- h.if((0, e.not)((W = w.valid) !== null && W !== void 0 ? W : P), L);
1477
+ h.if((0, e.not)((W = w.valid) !== null && W !== void 0 ? W : P), F);
1478
1478
  }
1479
1479
  }
1480
1480
  Se.funcKeywordCode = a;
@@ -1753,11 +1753,11 @@ function pr() {
1753
1753
  if (typeof h == "boolean")
1754
1754
  return {};
1755
1755
  const { schemaId: f, uriResolver: o } = this.opts, d = b(h[f] || u), y = { "": d }, v = l(o, d, !1), _ = {}, P = /* @__PURE__ */ new Set();
1756
- return r(h, { allKeys: !0 }, (U, I, V, L) => {
1757
- if (L === void 0)
1756
+ return r(h, { allKeys: !0 }, (U, I, V, F) => {
1757
+ if (F === void 0)
1758
1758
  return;
1759
1759
  const W = v + I;
1760
- let ee = y[L];
1760
+ let ee = y[F];
1761
1761
  typeof U[f] == "string" && (ee = re.call(this, U[f])), ae.call(this, U.$anchor), ae.call(this, U.$dynamicAnchor), y[I] = ee;
1762
1762
  function re(Y) {
1763
1763
  const ce = this.opts.uriResolver.resolve;
@@ -1816,7 +1816,7 @@ function Je() {
1816
1816
  function u(E) {
1817
1817
  const { schema: A, opts: T, gen: z } = E;
1818
1818
  w(E, () => {
1819
- T.$comment && A.$comment && L(E), U(E), z.let(l.default.vErrors, null), z.let(l.default.errors, 0), T.unevaluated && f(E), N(E), W(E);
1819
+ T.$comment && A.$comment && F(E), U(E), z.let(l.default.vErrors, null), z.let(l.default.errors, 0), T.unevaluated && f(E), N(E), W(E);
1820
1820
  });
1821
1821
  }
1822
1822
  function f(E) {
@@ -1847,7 +1847,7 @@ function Je() {
1847
1847
  }
1848
1848
  function _(E, A) {
1849
1849
  const { schema: T, gen: z, opts: B } = E;
1850
- B.$comment && T.$comment && L(E), I(E), V(E);
1850
+ B.$comment && T.$comment && F(E), I(E), V(E);
1851
1851
  const x = z.const("_errs", l.default.errors);
1852
1852
  N(E, x), z.var(A, (0, c._)`${x} === ${l.default.errors}`);
1853
1853
  }
@@ -1876,7 +1876,7 @@ function Je() {
1876
1876
  if (E.schema.$async && !E.schemaEnv.$async)
1877
1877
  throw new Error("async schema in sync schema");
1878
1878
  }
1879
- function L({ gen: E, schemaEnv: A, schema: T, errSchemaPath: z, opts: B }) {
1879
+ function F({ gen: E, schemaEnv: A, schema: T, errSchemaPath: z, opts: B }) {
1880
1880
  const x = T.$comment;
1881
1881
  if (B.$comment === !0)
1882
1882
  E.code((0, c._)`${l.default.self}.logger.log(${x})`);
@@ -1895,7 +1895,7 @@ function Je() {
1895
1895
  function re(E, A, T, z) {
1896
1896
  const { gen: B, schema: x, data: ue, allErrors: we, opts: ge, self: ve } = E, { RULES: le } = ve;
1897
1897
  if (x.$ref && (ge.ignoreKeywordsWithRef || !(0, m.schemaHasRulesButRef)(x, le))) {
1898
- B.block(() => F(E, "$ref", le.all.$ref.definition));
1898
+ B.block(() => L(E, "$ref", le.all.$ref.definition));
1899
1899
  return;
1900
1900
  }
1901
1901
  ge.jtd || Y(E, A), B.block(() => {
@@ -1911,7 +1911,7 @@ function Je() {
1911
1911
  const { gen: T, schema: z, opts: { useDefaults: B } } = E;
1912
1912
  B && (0, s.assignDefaults)(E, A.type), T.block(() => {
1913
1913
  for (const x of A.rules)
1914
- (0, r.shouldUseRule)(z, x) && F(E, x.keyword, x.definition, A.type);
1914
+ (0, r.shouldUseRule)(z, x) && L(E, x.keyword, x.definition, A.type);
1915
1915
  });
1916
1916
  }
1917
1917
  function Y(E, A) {
@@ -2059,7 +2059,7 @@ function Je() {
2059
2059
  }
2060
2060
  }
2061
2061
  Oe.KeywordCxt = R;
2062
- function F(E, A, T, z) {
2062
+ function L(E, A, T, z) {
2063
2063
  const B = new R(E, T, A);
2064
2064
  "code" in T ? T.code(B, z) : B.$data && T.validate ? (0, a.funcKeywordCode)(B, T) : "macro" in T ? (0, a.macroKeywordCode)(B, T) : (T.compile || T.validate) && (0, a.funcKeywordCode)(B, T);
2065
2065
  }
@@ -2177,17 +2177,17 @@ function hr() {
2177
2177
  this._compilations.add(u), (0, a.validateFunctionCode)(q), _.optimize(this.opts.code.optimize);
2178
2178
  const I = _.toString();
2179
2179
  U = `${_.scopeRefs(r.default.scope)}return ${I}`, this.opts.code.process && (U = this.opts.code.process(U, u));
2180
- const L = new Function(`${r.default.self}`, `${r.default.scope}`, U)(this, this.scope.get());
2181
- if (this.scope.value(N, { ref: L }), L.errors = null, L.schema = u.schema, L.schemaEnv = u, u.$async && (L.$async = !0), this.opts.code.source === !0 && (L.source = { validateName: N, validateCode: I, scopeValues: _._values }), this.opts.unevaluated) {
2180
+ const F = new Function(`${r.default.self}`, `${r.default.scope}`, U)(this, this.scope.get());
2181
+ if (this.scope.value(N, { ref: F }), F.errors = null, F.schema = u.schema, F.schemaEnv = u, u.$async && (F.$async = !0), this.opts.code.source === !0 && (F.source = { validateName: N, validateCode: I, scopeValues: _._values }), this.opts.unevaluated) {
2182
2182
  const { props: W, items: ee } = q;
2183
- L.evaluated = {
2183
+ F.evaluated = {
2184
2184
  props: W instanceof e.Name ? void 0 : W,
2185
2185
  items: ee instanceof e.Name ? void 0 : ee,
2186
2186
  dynamicProps: W instanceof e.Name,
2187
2187
  dynamicItems: ee instanceof e.Name
2188
- }, L.source && (L.source.evaluated = (0, e.stringify)(L.evaluated));
2188
+ }, F.source && (F.source.evaluated = (0, e.stringify)(F.evaluated));
2189
2189
  }
2190
- return u.validate = L, u;
2190
+ return u.validate = F, u;
2191
2191
  } catch (I) {
2192
2192
  throw delete u.validate, delete u.validateName, U && this.logger.error("Error compiling schema, function code:", U), I;
2193
2193
  } finally {
@@ -2279,9 +2279,9 @@ function hr() {
2279
2279
  }
2280
2280
  return $e;
2281
2281
  }
2282
- const Fi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Li = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ui = "object", Ki = ["$data"], Wi = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Bi = !1, Ji = {
2283
- $id: Fi,
2284
- description: Li,
2282
+ const Li = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Fi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ui = "object", Ki = ["$data"], Wi = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Bi = !1, Ji = {
2283
+ $id: Li,
2284
+ description: Fi,
2285
2285
  type: Ui,
2286
2286
  required: Ki,
2287
2287
  properties: Wi,
@@ -2709,11 +2709,11 @@ function Jr() {
2709
2709
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2710
2710
  }, o = 200;
2711
2711
  function d(M) {
2712
- var O, C, k, $, j, R, F, D, X, G, E, A, T, z, B, x, ue, we, ge, ve, le, Ve, _e, gr, vr;
2712
+ var O, C, k, $, j, R, L, D, X, G, E, A, T, z, B, x, ue, we, ge, ve, le, Ve, _e, gr, vr;
2713
2713
  const Ge = M.strict, $r = (O = M.code) === null || O === void 0 ? void 0 : O.optimize, nn = $r === !0 || $r === void 0 ? 1 : $r || 0, an = (k = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && k !== void 0 ? k : w, Hs = ($ = M.uriResolver) !== null && $ !== void 0 ? $ : g.default;
2714
2714
  return {
2715
2715
  strictSchema: (R = (j = M.strictSchema) !== null && j !== void 0 ? j : Ge) !== null && R !== void 0 ? R : !0,
2716
- strictNumbers: (D = (F = M.strictNumbers) !== null && F !== void 0 ? F : Ge) !== null && D !== void 0 ? D : !0,
2716
+ strictNumbers: (D = (L = M.strictNumbers) !== null && L !== void 0 ? L : Ge) !== null && D !== void 0 ? D : !0,
2717
2717
  strictTypes: (G = (X = M.strictTypes) !== null && X !== void 0 ? X : Ge) !== null && G !== void 0 ? G : "log",
2718
2718
  strictTuples: (A = (E = M.strictTuples) !== null && E !== void 0 ? E : Ge) !== null && A !== void 0 ? A : "log",
2719
2719
  strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T : Ge) !== null && z !== void 0 ? z : !1,
@@ -2785,10 +2785,10 @@ function Jr() {
2785
2785
  } catch (E) {
2786
2786
  if (!(E instanceof s.default))
2787
2787
  throw E;
2788
- return F.call(this, E), await D.call(this, E.missingSchema), R.call(this, G);
2788
+ return L.call(this, E), await D.call(this, E.missingSchema), R.call(this, G);
2789
2789
  }
2790
2790
  }
2791
- function F({ missingSchema: G, missingRef: E }) {
2791
+ function L({ missingSchema: G, missingRef: E }) {
2792
2792
  if (this.refs[G])
2793
2793
  throw new Error(`AnySchema ${G} is loaded but ${E} cannot be resolved`);
2794
2794
  }
@@ -2936,14 +2936,14 @@ function Jr() {
2936
2936
  for (const $ of C) {
2937
2937
  const j = $.split("/").slice(1);
2938
2938
  let R = O;
2939
- for (const F of j)
2940
- R = R[F];
2941
- for (const F in k) {
2942
- const D = k[F];
2939
+ for (const L of j)
2940
+ R = R[L];
2941
+ for (const L in k) {
2942
+ const D = k[L];
2943
2943
  if (typeof D != "object")
2944
2944
  continue;
2945
- const { $data: X } = D.definition, G = R[F];
2946
- X && G && (R[F] = ce(G));
2945
+ const { $data: X } = D.definition, G = R[L];
2946
+ X && G && (R[L] = ce(G));
2947
2947
  }
2948
2948
  }
2949
2949
  return O;
@@ -2956,9 +2956,9 @@ function Jr() {
2956
2956
  }
2957
2957
  _addSchema(O, C, k, $ = this.opts.validateSchema, j = this.opts.addUsedSchema) {
2958
2958
  let R;
2959
- const { schemaId: F } = this.opts;
2959
+ const { schemaId: L } = this.opts;
2960
2960
  if (typeof O == "object")
2961
- R = O[F];
2961
+ R = O[L];
2962
2962
  else {
2963
2963
  if (this.opts.jtd)
2964
2964
  throw new Error("schema must be object");
@@ -2970,7 +2970,7 @@ function Jr() {
2970
2970
  return D;
2971
2971
  k = (0, l.normalizeId)(R || k);
2972
2972
  const X = l.getSchemaRefs.call(this, O, k);
2973
- return D = new i.SchemaEnv({ schema: O, schemaId: F, meta: C, baseId: k, localRefs: X }), this._cache.set(D.schema, D), j && !k.startsWith("#") && (k && this._checkUnique(k), this.refs[k] = D), $ && this.validateSchema(O, !0), D;
2973
+ return D = new i.SchemaEnv({ schema: O, schemaId: L, meta: C, baseId: k, localRefs: X }), this._cache.set(D.schema, D), j && !k.startsWith("#") && (k && this._checkUnique(k), this.refs[k] = D), $ && this.validateSchema(O, !0), D;
2974
2974
  }
2975
2975
  _checkUnique(O) {
2976
2976
  if (this.schemas[O] || this.refs[O])
@@ -3046,13 +3046,13 @@ function Jr() {
3046
3046
  return M;
3047
3047
  throw new Error("logger must implement log, warn and error methods");
3048
3048
  }
3049
- const L = /^[a-z_$][a-z0-9_$:-]*$/i;
3049
+ const F = /^[a-z_$][a-z0-9_$:-]*$/i;
3050
3050
  function W(M, O) {
3051
3051
  const { RULES: C } = this;
3052
3052
  if ((0, m.eachItem)(M, (k) => {
3053
3053
  if (C.keywords[k])
3054
3054
  throw new Error(`Keyword ${k} is already defined`);
3055
- if (!L.test(k))
3055
+ if (!F.test(k))
3056
3056
  throw new Error(`Keyword ${k} has invalid name`);
3057
3057
  }), !!O && O.$data && !("code" in O || "validate" in O))
3058
3058
  throw new Error('$data keyword must have "code" or "validate" function');
@@ -3066,7 +3066,7 @@ function Jr() {
3066
3066
  let R = $ ? j.post : j.rules.find(({ type: D }) => D === C);
3067
3067
  if (R || (R = { type: C, rules: [] }, j.rules.push(R)), j.keywords[M] = !0, !O)
3068
3068
  return;
3069
- const F = {
3069
+ const L = {
3070
3070
  keyword: M,
3071
3071
  definition: {
3072
3072
  ...O,
@@ -3074,7 +3074,7 @@ function Jr() {
3074
3074
  schemaType: (0, p.getJSONTypes)(O.schemaType)
3075
3075
  }
3076
3076
  };
3077
- O.before ? re.call(this, R, F, O.before) : R.rules.push(F), j.all[M] = F, (k = O.implements) === null || k === void 0 || k.forEach((D) => this.addKeyword(D));
3077
+ O.before ? re.call(this, R, L, O.before) : R.rules.push(L), j.all[M] = L, (k = O.implements) === null || k === void 0 || k.forEach((D) => this.addKeyword(D));
3078
3078
  }
3079
3079
  function re(M, O, C) {
3080
3080
  const k = M.rules.findIndex(($) => $.keyword === C);
@@ -3232,10 +3232,10 @@ function Qi() {
3232
3232
  };
3233
3233
  return ht.default = s, ht;
3234
3234
  }
3235
- var yt = {}, Fn;
3235
+ var yt = {}, Ln;
3236
3236
  function eo() {
3237
- if (Fn) return yt;
3238
- Fn = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
3237
+ if (Ln) return yt;
3238
+ Ln = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
3239
3239
  const e = H(), r = {
3240
3240
  keyword: "multipleOf",
3241
3241
  type: "number",
@@ -3252,10 +3252,10 @@ function eo() {
3252
3252
  };
3253
3253
  return yt.default = r, yt;
3254
3254
  }
3255
- var gt = {}, vt = {}, Ln;
3255
+ var gt = {}, vt = {}, Fn;
3256
3256
  function to() {
3257
- if (Ln) return vt;
3258
- Ln = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
3257
+ if (Fn) return vt;
3258
+ Fn = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
3259
3259
  function e(t) {
3260
3260
  const r = t.length;
3261
3261
  let n = 0, s = 0, a;
@@ -3545,10 +3545,10 @@ function hs() {
3545
3545
  ];
3546
3546
  return pt.default = m, pt;
3547
3547
  }
3548
- var Ot = {}, Fe = {}, Yn;
3548
+ var Ot = {}, Le = {}, Yn;
3549
3549
  function ys() {
3550
- if (Yn) return Fe;
3551
- Yn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.validateAdditionalItems = void 0;
3550
+ if (Yn) return Le;
3551
+ Yn = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateAdditionalItems = void 0;
3552
3552
  const e = H(), t = Q(), n = {
3553
3553
  keyword: "additionalItems",
3554
3554
  type: "array",
@@ -3583,12 +3583,12 @@ function ys() {
3583
3583
  });
3584
3584
  }
3585
3585
  }
3586
- return Fe.validateAdditionalItems = s, Fe.default = n, Fe;
3586
+ return Le.validateAdditionalItems = s, Le.default = n, Le;
3587
3587
  }
3588
- var Rt = {}, Le = {}, Qn;
3588
+ var Rt = {}, Fe = {}, Qn;
3589
3589
  function gs() {
3590
- if (Qn) return Le;
3591
- Qn = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateTuple = void 0;
3590
+ if (Qn) return Fe;
3591
+ Qn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.validateTuple = void 0;
3592
3592
  const e = H(), t = Q(), r = je(), n = {
3593
3593
  keyword: "items",
3594
3594
  type: "array",
@@ -3620,7 +3620,7 @@ function gs() {
3620
3620
  }
3621
3621
  }
3622
3622
  }
3623
- return Le.validateTuple = s, Le.default = n, Le;
3623
+ return Fe.validateTuple = s, Fe.default = n, Fe;
3624
3624
  }
3625
3625
  var ea;
3626
3626
  function lo() {
@@ -4108,10 +4108,10 @@ function _o() {
4108
4108
  }
4109
4109
  return zt.default = n, zt;
4110
4110
  }
4111
- var Ft = {}, ma;
4111
+ var Lt = {}, ma;
4112
4112
  function wo() {
4113
- if (ma) return Ft;
4114
- ma = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
4113
+ if (ma) return Lt;
4114
+ ma = 1, Object.defineProperty(Lt, "__esModule", { value: !0 });
4115
4115
  const e = Q(), t = {
4116
4116
  keyword: ["then", "else"],
4117
4117
  schemaType: ["object", "boolean"],
@@ -4119,7 +4119,7 @@ function wo() {
4119
4119
  n.if === void 0 && (0, e.checkStrictMode)(s, `"${r}" without "if" is ignored`);
4120
4120
  }
4121
4121
  };
4122
- return Ft.default = t, Ft;
4122
+ return Lt.default = t, Lt;
4123
4123
  }
4124
4124
  var pa;
4125
4125
  function $s() {
@@ -4146,7 +4146,7 @@ function $s() {
4146
4146
  }
4147
4147
  return Ot.default = u, Ot;
4148
4148
  }
4149
- var Lt = {}, Ut = {}, ha;
4149
+ var Ft = {}, Ut = {}, ha;
4150
4150
  function So() {
4151
4151
  if (ha) return Ut;
4152
4152
  ha = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
@@ -4217,10 +4217,10 @@ function So() {
4217
4217
  }
4218
4218
  var ya;
4219
4219
  function bs() {
4220
- if (ya) return Lt;
4221
- ya = 1, Object.defineProperty(Lt, "__esModule", { value: !0 });
4220
+ if (ya) return Ft;
4221
+ ya = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
4222
4222
  const t = [So().default];
4223
- return Lt.default = t, Lt;
4223
+ return Ft.default = t, Ft;
4224
4224
  }
4225
4225
  var Me = {}, ga;
4226
4226
  function _s() {
@@ -4308,10 +4308,10 @@ function Zr() {
4308
4308
  if (V = r.resolveRef.call(g.self, g.schemaEnv.root, g.baseId, W), V instanceof r.SchemaEnv && (V = V.schema), V === void 0)
4309
4309
  throw new n.default(g.opts.uriResolver, g.baseId, W);
4310
4310
  }
4311
- const L = (y = V?.properties) === null || y === void 0 ? void 0 : y[S];
4312
- if (typeof L != "object")
4311
+ const F = (y = V?.properties) === null || y === void 0 ? void 0 : y[S];
4312
+ if (typeof F != "object")
4313
4313
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${S}"`);
4314
- P = P && (_ || N(V)), q(L, I);
4314
+ P = P && (_ || N(V)), q(F, I);
4315
4315
  }
4316
4316
  if (!P)
4317
4317
  throw new Error(`discriminator: "${S}" must be required`);
@@ -4323,8 +4323,8 @@ function Zr() {
4323
4323
  if (I.const)
4324
4324
  U(I.const, V);
4325
4325
  else if (I.enum)
4326
- for (const L of I.enum)
4327
- U(L, V);
4326
+ for (const F of I.enum)
4327
+ U(F, V);
4328
4328
  else
4329
4329
  throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`);
4330
4330
  }
@@ -4618,9 +4618,9 @@ function As() {
4618
4618
  return Yt.default = r, Yt;
4619
4619
  }
4620
4620
  var tr = {};
4621
- const Fo = "https://json-schema.org/draft/2019-09/schema", Lo = "https://json-schema.org/draft/2019-09/schema", Uo = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Ko = !0, Wo = "Core and Validation specifications meta-schema", Bo = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], Jo = ["object", "boolean"], Ho = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, Go = {
4622
- $schema: Fo,
4623
- $id: Lo,
4621
+ const Lo = "https://json-schema.org/draft/2019-09/schema", Fo = "https://json-schema.org/draft/2019-09/schema", Uo = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Ko = !0, Wo = "Core and Validation specifications meta-schema", Bo = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], Jo = ["object", "boolean"], Ho = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, Go = {
4622
+ $schema: Lo,
4623
+ $id: Fo,
4624
4624
  $vocabulary: Uo,
4625
4625
  $recursiveAnchor: Ko,
4626
4626
  title: Wo,
@@ -4668,13 +4668,13 @@ const Fo = "https://json-schema.org/draft/2019-09/schema", Lo = "https://json-sc
4668
4668
  title: Ic,
4669
4669
  type: Cc,
4670
4670
  properties: Tc
4671
- }, Mc = "https://json-schema.org/draft/2019-09/schema", Dc = "https://json-schema.org/draft/2019-09/meta/validation", Vc = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, zc = !0, Fc = "Validation vocabulary meta-schema", Lc = ["object", "boolean"], Uc = { 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" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Kc = { 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: [] } }, Wc = {
4671
+ }, Mc = "https://json-schema.org/draft/2019-09/schema", Dc = "https://json-schema.org/draft/2019-09/meta/validation", Vc = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, zc = !0, Lc = "Validation vocabulary meta-schema", Fc = ["object", "boolean"], Uc = { 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" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Kc = { 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: [] } }, Wc = {
4672
4672
  $schema: Mc,
4673
4673
  $id: Dc,
4674
4674
  $vocabulary: Vc,
4675
4675
  $recursiveAnchor: zc,
4676
- title: Fc,
4677
- type: Lc,
4676
+ title: Lc,
4677
+ type: Fc,
4678
4678
  properties: Uc,
4679
4679
  $defs: Kc
4680
4680
  };
@@ -4818,9 +4818,9 @@ const Zc = "https://json-schema.org/draft/2020-12/schema", xc = "https://json-sc
4818
4818
  type: Mu,
4819
4819
  properties: Du,
4820
4820
  $defs: Vu
4821
- }, Fu = "https://json-schema.org/draft/2020-12/schema", Lu = "https://json-schema.org/draft/2020-12/meta/format-annotation", Uu = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Ku = "meta", Wu = "Format vocabulary meta-schema for annotation results", Bu = ["object", "boolean"], Ju = { format: { type: "string" } }, Hu = {
4822
- $schema: Fu,
4823
- $id: Lu,
4821
+ }, Lu = "https://json-schema.org/draft/2020-12/schema", Fu = "https://json-schema.org/draft/2020-12/meta/format-annotation", Uu = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Ku = "meta", Wu = "Format vocabulary meta-schema for annotation results", Bu = ["object", "boolean"], Ju = { format: { type: "string" } }, Hu = {
4822
+ $schema: Lu,
4823
+ $id: Fu,
4824
4824
  $vocabulary: Uu,
4825
4825
  $dynamicAnchor: Ku,
4826
4826
  title: Wu,
@@ -4999,8 +4999,8 @@ function hl() {
4999
4999
  const V = n.exec(I);
5000
5000
  if (!V)
5001
5001
  return !1;
5002
- const L = +V[1], W = +V[2], ee = +V[3];
5003
- return W >= 1 && W <= 12 && ee >= 1 && ee <= (W === 2 && r(L) ? 29 : s[W]);
5002
+ const F = +V[1], W = +V[2], ee = +V[3];
5003
+ return W >= 1 && W <= 12 && ee >= 1 && ee <= (W === 2 && r(F) ? 29 : s[W]);
5004
5004
  }
5005
5005
  function i(I, V) {
5006
5006
  if (I && V)
@@ -5008,8 +5008,8 @@ function hl() {
5008
5008
  }
5009
5009
  const c = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
5010
5010
  function l(I) {
5011
- return function(L) {
5012
- const W = c.exec(L);
5011
+ return function(F) {
5012
+ const W = c.exec(F);
5013
5013
  if (!W)
5014
5014
  return !1;
5015
5015
  const ee = +W[1], re = +W[2], ae = +W[3], Y = W[4], ce = W[5] === "-" ? -1 : 1, M = +(W[6] || 0), O = +(W[7] || 0);
@@ -5024,16 +5024,16 @@ function hl() {
5024
5024
  function p(I, V) {
5025
5025
  if (!(I && V))
5026
5026
  return;
5027
- const L = (/* @__PURE__ */ new Date("2020-01-01T" + I)).valueOf(), W = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
5028
- if (L && W)
5029
- return L - W;
5027
+ const F = (/* @__PURE__ */ new Date("2020-01-01T" + I)).valueOf(), W = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
5028
+ if (F && W)
5029
+ return F - W;
5030
5030
  }
5031
5031
  function m(I, V) {
5032
5032
  if (!(I && V))
5033
5033
  return;
5034
- const L = c.exec(I), W = c.exec(V);
5035
- if (L && W)
5036
- return I = L[1] + L[2] + L[3], V = W[1] + W[2] + W[3], I > V ? 1 : I < V ? -1 : 0;
5034
+ const F = c.exec(I), W = c.exec(V);
5035
+ if (F && W)
5036
+ return I = F[1] + F[2] + F[3], V = W[1] + W[2] + W[3], I > V ? 1 : I < V ? -1 : 0;
5037
5037
  }
5038
5038
  const b = /t|\s/i;
5039
5039
  function g(I) {
@@ -5046,14 +5046,14 @@ function hl() {
5046
5046
  function w(I, V) {
5047
5047
  if (!(I && V))
5048
5048
  return;
5049
- const L = new Date(I).valueOf(), W = new Date(V).valueOf();
5050
- if (L && W)
5051
- return L - W;
5049
+ const F = new Date(I).valueOf(), W = new Date(V).valueOf();
5050
+ if (F && W)
5051
+ return F - W;
5052
5052
  }
5053
5053
  function S(I, V) {
5054
5054
  if (!(I && V))
5055
5055
  return;
5056
- const [L, W] = I.split(b), [ee, re] = V.split(b), ae = i(L, ee);
5056
+ const [F, W] = I.split(b), [ee, re] = V.split(b), ae = i(F, ee);
5057
5057
  if (ae !== void 0)
5058
5058
  return ae || p(W, re);
5059
5059
  }
@@ -5087,9 +5087,9 @@ function hl() {
5087
5087
  }
5088
5088
  }(Cr)), Cr;
5089
5089
  }
5090
- var Tr = {}, Fa;
5090
+ var Tr = {}, La;
5091
5091
  function yl() {
5092
- return Fa || (Fa = 1, function(e) {
5092
+ return La || (La = 1, function(e) {
5093
5093
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
5094
5094
  const t = Ss(), r = H(), n = r.operators, s = {
5095
5095
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
@@ -5142,9 +5142,9 @@ function yl() {
5142
5142
  e.default = i;
5143
5143
  }(Tr)), Tr;
5144
5144
  }
5145
- var La;
5145
+ var Fa;
5146
5146
  function gl() {
5147
- return La || (La = 1, function(e, t) {
5147
+ return Fa || (Fa = 1, function(e, t) {
5148
5148
  Object.defineProperty(t, "__esModule", { value: !0 });
5149
5149
  const r = hl(), n = yl(), s = H(), a = new s.Name("fullFormats"), i = new s.Name("fastFormats"), c = (p, m = { keywords: !0 }) => {
5150
5150
  if (Array.isArray(m))
@@ -5983,7 +5983,7 @@ function zl(e, t) {
5983
5983
  return { ok: !1 };
5984
5984
  }
5985
5985
  }
5986
- function Fl(e) {
5986
+ function Ll(e) {
5987
5987
  switch (e) {
5988
5988
  case "null":
5989
5989
  return null;
@@ -5995,7 +5995,7 @@ function Fl(e) {
5995
5995
  return;
5996
5996
  }
5997
5997
  }
5998
- function Ll(e) {
5998
+ function Fl(e) {
5999
5999
  if (typeof e == "boolean") return {};
6000
6000
  const t = e["x:ui"];
6001
6001
  if (t != null && typeof t == "object" && !Array.isArray(t)) {
@@ -6371,7 +6371,7 @@ function zr({
6371
6371
  controller: t
6372
6372
  });
6373
6373
  }
6374
- function Fr({
6374
+ function Lr({
6375
6375
  ctx: e,
6376
6376
  controller: t
6377
6377
  }) {
@@ -6476,7 +6476,7 @@ function zs(e, t) {
6476
6476
  }
6477
6477
  return n.set(t, i), i;
6478
6478
  }
6479
- function Fs(e, t, r) {
6479
+ function Ls(e, t, r) {
6480
6480
  let n = e;
6481
6481
  const s = /* @__PURE__ */ new Set(), a = (i, c) => {
6482
6482
  const { $ref: l, ...p } = c;
@@ -6618,7 +6618,7 @@ function ie(e, t, r) {
6618
6618
  i
6619
6619
  );
6620
6620
  }
6621
- function Ls(e) {
6621
+ function Fs(e) {
6622
6622
  if (typeof e == "boolean") return;
6623
6623
  const t = e["x:ui"];
6624
6624
  if (!t || !t.visibleIf) return;
@@ -6681,7 +6681,7 @@ function Zl(e, t) {
6681
6681
  }
6682
6682
  return n;
6683
6683
  }
6684
- function Lr(e, t) {
6684
+ function Fr(e, t) {
6685
6685
  const r = Zl(t, e.field);
6686
6686
  switch (e.operator) {
6687
6687
  case "equals":
@@ -6713,7 +6713,7 @@ function Lr(e, t) {
6713
6713
  }
6714
6714
  }
6715
6715
  function Us(e, t) {
6716
- const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ? Us(n, t) : Lr(n, t));
6716
+ const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ? Us(n, t) : Fr(n, t));
6717
6717
  switch (e.operator) {
6718
6718
  case "and":
6719
6719
  return r.every(Boolean);
@@ -6729,9 +6729,9 @@ function xl(e, t) {
6729
6729
  try {
6730
6730
  if (typeof e == "string") {
6731
6731
  const r = Xl(e);
6732
- return Lr(r, t);
6732
+ return Fr(r, t);
6733
6733
  }
6734
- return "operator" in e && ["and", "or", "not"].includes(e.operator) ? Us(e, t) : Lr(e, t);
6734
+ return "operator" in e && ["and", "or", "not"].includes(e.operator) ? Us(e, t) : Fr(e, t);
6735
6735
  } catch (r) {
6736
6736
  return console.warn("Error evaluating visibility condition:", r), !0;
6737
6737
  }
@@ -6751,7 +6751,7 @@ function Ql({
6751
6751
  children: r,
6752
6752
  options: n = Xa
6753
6753
  }) {
6754
- const s = Ls(e.definition);
6754
+ const s = Fs(e.definition);
6755
6755
  if (!s)
6756
6756
  return r;
6757
6757
  const a = { ...Xa, ...n }, i = ed(t), c = Yl(s, i);
@@ -7329,7 +7329,14 @@ function Ks({
7329
7329
  ), l = e.with({
7330
7330
  definition: i,
7331
7331
  schemaConflicts: [...e.schemaConflicts, ...c]
7332
- }), p = i.properties ?? {}, m = new Set(Object.keys(p)), b = Object.keys(s ?? {}), g = b.filter((R) => !m.has(R)), w = i.unevaluatedProperties, S = Qe(
7332
+ }), p = i.properties ?? {};
7333
+ console.log(
7334
+ "[OBJECT_CONTROL_DEBUG] ctx.path:",
7335
+ e.path,
7336
+ "effective.properties keys:",
7337
+ Object.keys(i.properties ?? {})
7338
+ );
7339
+ const m = new Set(Object.keys(p)), b = Object.keys(s ?? {}), g = b.filter((R) => !m.has(R)), w = i.unevaluatedProperties, S = Qe(
7333
7340
  i,
7334
7341
  s ?? {},
7335
7342
  e.ajv
@@ -7344,22 +7351,22 @@ function Ks({
7344
7351
  } catch {
7345
7352
  return null;
7346
7353
  }
7347
- }).filter((R) => R != null), V = i.propertyNames, L = (R) => {
7348
- const F = (R ?? "").trim();
7349
- if (F === "") return { ok: !1, message: "Key cannot be empty" };
7354
+ }).filter((R) => R != null), V = i.propertyNames, F = (R) => {
7355
+ const L = (R ?? "").trim();
7356
+ if (L === "") return { ok: !1, message: "Key cannot be empty" };
7350
7357
  if (V === !1)
7351
7358
  return { ok: !1, message: "No property names are allowed by schema" };
7352
7359
  if (V && typeof V == "object" && e.ajv)
7353
7360
  try {
7354
7361
  const D = e.ajv.compile(V);
7355
- if (!D(F))
7362
+ if (!D(L))
7356
7363
  return { ok: !1, message: D.errors?.[0]?.message ?? "Invalid property name" };
7357
7364
  } catch {
7358
7365
  }
7359
- if (!o && !m.has(F)) {
7366
+ if (!o && !m.has(L)) {
7360
7367
  if (I.length === 0)
7361
7368
  return { ok: !1, message: "Only declared properties are allowed" };
7362
- if (!I.some((X) => X.test(F)))
7369
+ if (!I.some((X) => X.test(L)))
7363
7370
  return {
7364
7371
  ok: !1,
7365
7372
  message: `Key must match one of: ${Object.keys(U).join(", ")}`
@@ -7367,19 +7374,19 @@ function Ks({
7367
7374
  }
7368
7375
  return { ok: !0 };
7369
7376
  }, W = i["x:ui"], ee = !!(W && typeof W == "object" && W.lockKeyAfterSet), re = (R) => {
7370
- const F = rt(R, (X) => X);
7371
- if (F !== void 0) return F;
7377
+ const L = rt(R, (X) => X);
7378
+ if (L !== void 0) return L;
7372
7379
  const D = R.type;
7373
7380
  if (D === "string") return "";
7374
7381
  if (D === "number" || D === "integer") return 0;
7375
7382
  if (D === "boolean") return !1;
7376
7383
  if (D === "array") return [];
7377
7384
  if (D === "object") return {};
7378
- }, ae = (R, F) => {
7379
- const D = R, X = (E) => F.has(E) ? !1 : L(E).ok;
7385
+ }, ae = (R, L) => {
7386
+ const D = R, X = (E) => L.has(E) ? !1 : F(E).ok;
7380
7387
  if (X(D)) return D;
7381
7388
  let G = 1;
7382
- for (; F.has(D + G) || !X(D + G); ) G++;
7389
+ for (; L.has(D + G) || !X(D + G); ) G++;
7383
7390
  return D + G;
7384
7391
  }, Y = Wr(
7385
7392
  Br,
@@ -7389,10 +7396,10 @@ function Ks({
7389
7396
  disabled: !N,
7390
7397
  onClick: () => {
7391
7398
  if (!N) return;
7392
- const F = new Set(
7399
+ const L = new Set(
7393
7400
  Object.keys(se.get(t.signal) ?? {})
7394
- ), D = ae("property", F);
7395
- if (!L(D).ok) return;
7401
+ ), D = ae("property", L);
7402
+ if (!F(D).ok) return;
7396
7403
  let G = d;
7397
7404
  w && typeof w == "object" && (G = w);
7398
7405
  const E = re(G), A = {
@@ -7407,17 +7414,24 @@ function Ks({
7407
7414
  )
7408
7415
  ), ce = sd(l), M = Ti(p).filter(
7409
7416
  ([, R]) => R !== !1
7410
- ), C = [
7417
+ );
7418
+ console.log(
7419
+ "[OBJECT_CONTROL_DEBUG] knownProps keys:",
7420
+ Object.keys(p),
7421
+ "filtered entries:",
7422
+ M.map(([R]) => R)
7423
+ );
7424
+ const C = [
7411
7425
  ...M.map(([R]) => R),
7412
7426
  ...u,
7413
7427
  ...h
7414
7428
  ], k = [
7415
7429
  // Known properties
7416
- ...M.map(([R, F]) => {
7430
+ ...M.map(([R, L]) => {
7417
7431
  const D = R, X = t.field(D);
7418
7432
  return De({
7419
7433
  ctx: l.with({
7420
- definition: F,
7434
+ definition: L,
7421
7435
  isPropertyRequired: Array.isArray(i.required) ? i.required.includes(D) : l.hasRequiredProperty(D),
7422
7436
  // Ensure child fields show their own labels even when this object
7423
7437
  // is rendered inside a union/combinator where labels are suppressed
@@ -7428,21 +7442,21 @@ function Ks({
7428
7442
  }),
7429
7443
  // Evaluated additional keys (pattern-matched and truly additional)
7430
7444
  ...u.map((R) => {
7431
- const F = I.some((D) => D.test(R));
7432
- return nd(R, F, {
7445
+ const L = I.some((D) => D.test(R));
7446
+ return nd(R, L, {
7433
7447
  controller: t,
7434
7448
  effCtx: l,
7435
7449
  patternProps: U,
7436
7450
  apSchema: d,
7437
7451
  canRemove: q,
7438
7452
  lockKeyAfterSet: ee,
7439
- validatePropertyName: L
7453
+ validatePropertyName: F
7440
7454
  });
7441
7455
  }),
7442
7456
  // Unevaluated keys (use unevaluatedProperties schema if available)
7443
7457
  ...h.map((R) => {
7444
- const F = I.some((D) => D.test(R));
7445
- return ad(R, F, {
7458
+ const L = I.some((D) => D.test(R));
7459
+ return ad(R, L, {
7446
7460
  controller: t,
7447
7461
  effCtx: l,
7448
7462
  patternProps: U,
@@ -7450,7 +7464,7 @@ function Ks({
7450
7464
  unevaluatedProps: w,
7451
7465
  canRemove: q,
7452
7466
  lockKeyAfterSet: ee,
7453
- validatePropertyName: L
7467
+ validatePropertyName: F
7454
7468
  });
7455
7469
  }),
7456
7470
  // Add affordance
@@ -7666,7 +7680,7 @@ function ff({
7666
7680
  });
7667
7681
  if (n)
7668
7682
  return n;
7669
- const a = e.definition.allOf.filter((p) => typeof p == "object").map((p) => Fs(p, e.schema, e.ajv)), { mergedSchema: i, conflicts: c } = Qr(a, e.path), l = e.with({
7683
+ const a = e.definition.allOf.filter((p) => typeof p == "object").map((p) => Ls(p, e.schema, e.ajv)), { mergedSchema: i, conflicts: c } = Qr(a, e.path), l = e.with({
7670
7684
  definition: i,
7671
7685
  schemaConflicts: [...e.schemaConflicts, ...c]
7672
7686
  });
@@ -7742,7 +7756,7 @@ function De({
7742
7756
  );
7743
7757
  if (i.length > 0) {
7744
7758
  const c = i.map(
7745
- (g) => Fs(g, e.schema, e.ajv)
7759
+ (g) => Ls(g, e.schema, e.ajv)
7746
7760
  ), { mergedSchema: l, conflicts: p } = Qr(c, e.path), { allOf: m, ...b } = n;
7747
7761
  n = { ...b, ...l }, s = e.with({
7748
7762
  definition: n,
@@ -7868,7 +7882,7 @@ function De({
7868
7882
  case "boolean":
7869
7883
  return ie(
7870
7884
  s,
7871
- Fr({
7885
+ Lr({
7872
7886
  ctx: s,
7873
7887
  controller: t
7874
7888
  }),
@@ -7934,7 +7948,7 @@ function De({
7934
7948
  t,
7935
7949
  ie(
7936
7950
  s,
7937
- Fr({
7951
+ Lr({
7938
7952
  ctx: s,
7939
7953
  controller: t
7940
7954
  }),
@@ -8016,7 +8030,7 @@ function wd({
8016
8030
  return e === !0 ? lr({ ctx: s, controller: t }) : e === !1 ? ke() : De({ ctx: s, controller: t });
8017
8031
  }
8018
8032
  function he(e, t, r) {
8019
- return Ls(e.definition) ? Ql({
8033
+ return Fs(e.definition) ? Ql({
8020
8034
  ctx: e,
8021
8035
  controller: t,
8022
8036
  children: r,
@@ -8207,7 +8221,7 @@ function Pd(e) {
8207
8221
  label: Kr(t),
8208
8222
  detect: (r) => Vl(r, [t]) === t,
8209
8223
  convert: (r) => zl(r, t),
8210
- defaultValue: () => Fl(t)
8224
+ defaultValue: () => Ll(t)
8211
8225
  }));
8212
8226
  }
8213
8227
  function Js({
@@ -8223,7 +8237,7 @@ function Js({
8223
8237
  return n;
8224
8238
  const s = e.definition;
8225
8239
  let a = s.type ?? [];
8226
- const i = Ll(s), c = a.includes("null"), l = a.filter(
8240
+ const i = Fl(s), c = a.includes("null"), l = a.filter(
8227
8241
  (h) => h !== "null" && (h === "string" || h === "number" || h === "integer" || h === "boolean")
8228
8242
  ), p = c && l.length === a.length - 1;
8229
8243
  p && (a = l);
@@ -8280,7 +8294,7 @@ function Js({
8280
8294
  controller: f
8281
8295
  });
8282
8296
  case "boolean":
8283
- return Fr({
8297
+ return Lr({
8284
8298
  ctx: o,
8285
8299
  controller: f
8286
8300
  });
@@ -8721,10 +8735,10 @@ function Dd(e) {
8721
8735
  case "array":
8722
8736
  return zd(e);
8723
8737
  case "string":
8724
- return Fd(e);
8738
+ return Ld(e);
8725
8739
  case "number":
8726
8740
  case "integer":
8727
- return Ld(e);
8741
+ return Fd(e);
8728
8742
  case "boolean":
8729
8743
  return !1;
8730
8744
  case "null":
@@ -8758,7 +8772,7 @@ function zd(e) {
8758
8772
  const n = Be(r);
8759
8773
  return Array(t).fill(n ?? null);
8760
8774
  }
8761
- function Fd(e) {
8775
+ function Ld(e) {
8762
8776
  switch (e.format) {
8763
8777
  case "date":
8764
8778
  return Wd();
@@ -8770,7 +8784,7 @@ function Fd(e) {
8770
8784
  return "";
8771
8785
  }
8772
8786
  }
8773
- function Ld(e) {
8787
+ function Fd(e) {
8774
8788
  const t = e.type === "integer";
8775
8789
  let r = e.minimum, n = e.maximum;
8776
8790
  if (e.exclusiveMinimum !== void 0) {
@@ -8891,10 +8905,10 @@ function mf({
8891
8905
  for (const ae of f)
8892
8906
  o.validateField(ae, re, re);
8893
8907
  }) : () => {
8894
- }, L = () => {
8908
+ }, F = () => {
8895
8909
  U(), I(), V(), o?.dispose(), v.dispose();
8896
8910
  }, W = c ? Gd(c) : void 0, ee = ke(
8897
- Ai(L),
8911
+ Ai(F),
8898
8912
  wd({
8899
8913
  schema: e,
8900
8914
  controller: v,
@@ -8955,7 +8969,7 @@ export {
8955
8969
  lr as JSONSchemaAny,
8956
8970
  bd as JSONSchemaAnyOf,
8957
8971
  Bs as JSONSchemaArray,
8958
- Fr as JSONSchemaBoolean,
8972
+ Lr as JSONSchemaBoolean,
8959
8973
  rd as JSONSchemaConst,
8960
8974
  wd as JSONSchemaControl,
8961
8975
  td as JSONSchemaEnum,
@@ -8978,12 +8992,13 @@ export {
8978
8992
  Yr as compileWithCache,
8979
8993
  Dl as composeEffectiveObjectSchema,
8980
8994
  pf as createAJVStandardSchema,
8995
+ gf as createDiagnosticWidget,
8981
8996
  Is as evaluateIfThenElseOverlay,
8982
8997
  Ml as evaluateNotViolation,
8983
8998
  Be as extractSchemaDefaults,
8984
- gf as forFormat,
8985
- vf as forTypeAndFormat,
8986
- $f as forXUI,
8999
+ vf as forFormat,
9000
+ $f as forTypeAndFormat,
9001
+ bf as forXUI,
8987
9002
  Ol as getAjvForSchema,
8988
9003
  df as getCacheStats,
8989
9004
  Qe as getEvaluatedProperties,