@quickflo/quickforms-vue 1.16.19 → 1.16.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { provide as f0, inject as Ku, computed as ee, defineComponent as it, ref as Le, createElementBlock as q, openBlock as j, createElementVNode as G, withDirectives as ai, createCommentVNode as X, createTextVNode as vt, toDisplayString as ue, vModelText as Bs, normalizeClass as Gu, vModelDynamic as Fa, vModelCheckbox as u0, Fragment as Tt, renderList as Wi, vModelSelect as d0, createBlock as kn, resolveDynamicComponent as m0, createVNode as Ju, watch as Je, shallowRef as Zo, toRaw as Dl, onMounted as bo, onBeforeUnmount as p0, h as g0, normalizeStyle as Yu, mergeModels as fh, useModel as y0, reactive as b0, markRaw as v0, nextTick as Vr, renderSlot as w0 } from "vue";
1
+ import { provide as f0, inject as Ku, computed as ee, defineComponent as it, ref as Le, createElementBlock as q, openBlock as j, createElementVNode as G, withDirectives as ai, createCommentVNode as X, createTextVNode as vt, toDisplayString as de, vModelText as Bs, normalizeClass as Gu, vModelDynamic as Fa, vModelCheckbox as u0, Fragment as Tt, renderList as Wi, vModelSelect as d0, createBlock as kn, resolveDynamicComponent as m0, createVNode as Ju, watch as Je, shallowRef as Zo, toRaw as Dl, onMounted as bo, onBeforeUnmount as p0, h as g0, normalizeStyle as Yu, mergeModels as fh, useModel as y0, reactive as b0, markRaw as v0, nextTick as Vr, renderSlot as w0 } from "vue";
2
2
  import { useField as k0, useForm as S0 } from "vee-validate";
3
3
  class x0 {
4
4
  constructor() {
@@ -365,7 +365,7 @@ var Il = {};
365
365
  }
366
366
  optimizeNames(v, k) {
367
367
  if (v[this.name.str])
368
- return this.rhs && (this.rhs = I(this.rhs, v, k)), this;
368
+ return this.rhs && (this.rhs = R(this.rhs, v, k)), this;
369
369
  }
370
370
  get names() {
371
371
  return this.rhs instanceof e._CodeOrName ? this.rhs.names : {};
@@ -380,7 +380,7 @@ var Il = {};
380
380
  }
381
381
  optimizeNames(v, k) {
382
382
  if (!(this.lhs instanceof e.Name && !v[this.lhs.str] && !this.sideEffects))
383
- return this.rhs = I(this.rhs, v, k), this;
383
+ return this.rhs = R(this.rhs, v, k), this;
384
384
  }
385
385
  get names() {
386
386
  const v = this.lhs instanceof e.Name ? {} : { ...this.lhs.names };
@@ -433,7 +433,7 @@ var Il = {};
433
433
  return `${this.code}` ? this : void 0;
434
434
  }
435
435
  optimizeNames(v, k) {
436
- return this.code = I(this.code, v, k), this;
436
+ return this.code = R(this.code, v, k), this;
437
437
  }
438
438
  get names() {
439
439
  return this.code instanceof e._CodeOrName ? this.code.names : {};
@@ -497,14 +497,14 @@ var Il = {};
497
497
  k = this.else = Array.isArray(A) ? new g(A) : A;
498
498
  }
499
499
  if (k)
500
- return v === !1 ? k instanceof p ? k : k.nodes : this.nodes.length ? this : new p(de(v), k instanceof p ? [k] : k.nodes);
500
+ return v === !1 ? k instanceof p ? k : k.nodes : this.nodes.length ? this : new p(ce(v), k instanceof p ? [k] : k.nodes);
501
501
  if (!(v === !1 || !this.nodes.length))
502
502
  return this;
503
503
  }
504
504
  optimizeNames(v, k) {
505
505
  var A;
506
506
  if (this.else = (A = this.else) === null || A === void 0 ? void 0 : A.optimizeNames(v, k), !!(super.optimizeNames(v, k) || this.else))
507
- return this.condition = I(this.condition, v, k), this;
507
+ return this.condition = R(this.condition, v, k), this;
508
508
  }
509
509
  get names() {
510
510
  const v = super.names;
@@ -524,7 +524,7 @@ var Il = {};
524
524
  }
525
525
  optimizeNames(v, k) {
526
526
  if (super.optimizeNames(v, k))
527
- return this.iteration = I(this.iteration, v, k), this;
527
+ return this.iteration = R(this.iteration, v, k), this;
528
528
  }
529
529
  get names() {
530
530
  return P(super.names, this.iteration.names);
@@ -552,7 +552,7 @@ var Il = {};
552
552
  }
553
553
  optimizeNames(v, k) {
554
554
  if (super.optimizeNames(v, k))
555
- return this.iterable = I(this.iterable, v, k), this;
555
+ return this.iterable = R(this.iterable, v, k), this;
556
556
  }
557
557
  get names() {
558
558
  return P(super.names, this.iterable.names);
@@ -606,7 +606,7 @@ var Il = {};
606
606
  }
607
607
  }
608
608
  B.kind = "finally";
609
- class R {
609
+ class I {
610
610
  constructor(v, k = {}) {
611
611
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...k, _n: k.lines ? `
612
612
  ` : "" }, this._extScope = v, this._scope = new t.Scope({ parent: v }), this._nodes = [new y()];
@@ -704,16 +704,16 @@ var Il = {};
704
704
  }
705
705
  // `for` statement for a range of values
706
706
  forRange(v, k, A, K, Y = this.opts.es5 ? t.varKinds.var : t.varKinds.let) {
707
- const fe = this._scope.toName(v);
708
- return this._for(new S(Y, fe, k, A), () => K(fe));
707
+ const ue = this._scope.toName(v);
708
+ return this._for(new S(Y, ue, k, A), () => K(ue));
709
709
  }
710
710
  // `for-of` statement (in es5 mode replace with a normal for loop)
711
711
  forOf(v, k, A, K = t.varKinds.const) {
712
712
  const Y = this._scope.toName(v);
713
713
  if (this.opts.es5) {
714
- const fe = k instanceof e.Name ? k : this.var("_arr", k);
715
- return this.forRange("_i", 0, (0, e._)`${fe}.length`, (he) => {
716
- this.var(Y, (0, e._)`${fe}[${he}]`), A(Y);
714
+ const ue = k instanceof e.Name ? k : this.var("_arr", k);
715
+ return this.forRange("_i", 0, (0, e._)`${ue}.length`, (fe) => {
716
+ this.var(Y, (0, e._)`${ue}[${fe}]`), A(Y);
717
717
  });
718
718
  }
719
719
  return this._for(new x("of", K, Y, k), () => A(Y));
@@ -816,7 +816,7 @@ var Il = {};
816
816
  k[k.length - 1] = v;
817
817
  }
818
818
  }
819
- n.CodeGen = R;
819
+ n.CodeGen = I;
820
820
  function P(_, v) {
821
821
  for (const k in v)
822
822
  _[k] = (_[k] || 0) + (v[k] || 0);
@@ -825,28 +825,28 @@ var Il = {};
825
825
  function U(_, v) {
826
826
  return v instanceof e._CodeOrName ? P(_, v.names) : _;
827
827
  }
828
- function I(_, v, k) {
828
+ function R(_, v, k) {
829
829
  if (_ instanceof e.Name)
830
830
  return A(_);
831
831
  if (!K(_))
832
832
  return _;
833
- return new e._Code(_._items.reduce((Y, fe) => (fe instanceof e.Name && (fe = A(fe)), fe instanceof e._Code ? Y.push(...fe._items) : Y.push(fe), Y), []));
833
+ return new e._Code(_._items.reduce((Y, ue) => (ue instanceof e.Name && (ue = A(ue)), ue instanceof e._Code ? Y.push(...ue._items) : Y.push(ue), Y), []));
834
834
  function A(Y) {
835
- const fe = k[Y.str];
836
- return fe === void 0 || v[Y.str] !== 1 ? Y : (delete v[Y.str], fe);
835
+ const ue = k[Y.str];
836
+ return ue === void 0 || v[Y.str] !== 1 ? Y : (delete v[Y.str], ue);
837
837
  }
838
838
  function K(Y) {
839
- return Y instanceof e._Code && Y._items.some((fe) => fe instanceof e.Name && v[fe.str] === 1 && k[fe.str] !== void 0);
839
+ return Y instanceof e._Code && Y._items.some((ue) => ue instanceof e.Name && v[ue.str] === 1 && k[ue.str] !== void 0);
840
840
  }
841
841
  }
842
842
  function Z(_, v) {
843
843
  for (const k in v)
844
844
  _[k] = (_[k] || 0) - (v[k] || 0);
845
845
  }
846
- function de(_) {
846
+ function ce(_) {
847
847
  return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${$(_)}`;
848
848
  }
849
- n.not = de;
849
+ n.not = ce;
850
850
  const Se = C(n.operators.AND);
851
851
  function nt(..._) {
852
852
  return _.reduce(Se);
@@ -1104,8 +1104,8 @@ ei.default = W0;
1104
1104
  return b && (S = (0, e.str)`${S}${(0, t.getErrorPath)(b, t.Type.Str)}`), [h.schemaPath, S];
1105
1105
  }
1106
1106
  function y(g, { params: p, message: b }, w) {
1107
- const { keyword: S, data: x, schemaValue: O, it: T } = g, { opts: D, propertyName: N, topSchemaRef: B, schemaPath: R } = T;
1108
- w.push([h.keyword, S], [h.params, typeof p == "function" ? p(g) : p || (0, e._)`{}`]), D.messages && w.push([h.message, typeof b == "function" ? b(g) : b]), D.verbose && w.push([h.schema, O], [h.parentSchema, (0, e._)`${B}${R}`], [i.default.data, x]), N && w.push([h.propertyName, N]);
1107
+ const { keyword: S, data: x, schemaValue: O, it: T } = g, { opts: D, propertyName: N, topSchemaRef: B, schemaPath: I } = T;
1108
+ w.push([h.keyword, S], [h.params, typeof p == "function" ? p(g) : p || (0, e._)`{}`]), D.messages && w.push([h.message, typeof b == "function" ? b(g) : b]), D.verbose && w.push([h.schema, O], [h.parentSchema, (0, e._)`${B}${I}`], [i.default.data, x]), N && w.push([h.propertyName, N]);
1109
1109
  }
1110
1110
  })(Or);
1111
1111
  Object.defineProperty(Sn, "__esModule", { value: !0 });
@@ -2733,12 +2733,12 @@ Qa.default = Vd;
2733
2733
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2734
2734
  }, b = 200;
2735
2735
  function w(L) {
2736
- var C, $, _, v, k, A, K, Y, fe, he, Re, en, jo, Fo, qo, Vo, zo, Ho, Wo, Uo, Ko, Go, Jo, Yo, Qo;
2736
+ var C, $, _, v, k, A, K, Y, ue, fe, Re, en, jo, Fo, qo, Vo, zo, Ho, Wo, Uo, Ko, Go, Jo, Yo, Qo;
2737
2737
  const jn = L.strict, Xo = (C = L.code) === null || C === void 0 ? void 0 : C.optimize, ch = Xo === !0 || Xo === void 0 ? 1 : Xo || 0, hh = (_ = ($ = L.code) === null || $ === void 0 ? void 0 : $.regExp) !== null && _ !== void 0 ? _ : d, h0 = (v = L.uriResolver) !== null && v !== void 0 ? v : u.default;
2738
2738
  return {
2739
2739
  strictSchema: (A = (k = L.strictSchema) !== null && k !== void 0 ? k : jn) !== null && A !== void 0 ? A : !0,
2740
2740
  strictNumbers: (Y = (K = L.strictNumbers) !== null && K !== void 0 ? K : jn) !== null && Y !== void 0 ? Y : !0,
2741
- strictTypes: (he = (fe = L.strictTypes) !== null && fe !== void 0 ? fe : jn) !== null && he !== void 0 ? he : "log",
2741
+ strictTypes: (fe = (ue = L.strictTypes) !== null && ue !== void 0 ? ue : jn) !== null && fe !== void 0 ? fe : "log",
2742
2742
  strictTuples: (en = (Re = L.strictTuples) !== null && Re !== void 0 ? Re : jn) !== null && en !== void 0 ? en : "log",
2743
2743
  strictRequired: (Fo = (jo = L.strictRequired) !== null && jo !== void 0 ? jo : jn) !== null && Fo !== void 0 ? Fo : !1,
2744
2744
  code: L.code ? { ...L.code, optimize: ch, regExp: hh } : { optimize: ch, regExp: hh },
@@ -2795,39 +2795,39 @@ Qa.default = Vd;
2795
2795
  throw new Error("options.loadSchema should be a function");
2796
2796
  const { loadSchema: _ } = this.opts;
2797
2797
  return v.call(this, C, $);
2798
- async function v(he, Re) {
2799
- await k.call(this, he.$schema);
2800
- const en = this._addSchema(he, Re);
2798
+ async function v(fe, Re) {
2799
+ await k.call(this, fe.$schema);
2800
+ const en = this._addSchema(fe, Re);
2801
2801
  return en.validate || A.call(this, en);
2802
2802
  }
2803
- async function k(he) {
2804
- he && !this.getSchema(he) && await v.call(this, { $ref: he }, !0);
2803
+ async function k(fe) {
2804
+ fe && !this.getSchema(fe) && await v.call(this, { $ref: fe }, !0);
2805
2805
  }
2806
- async function A(he) {
2806
+ async function A(fe) {
2807
2807
  try {
2808
- return this._compileSchemaEnv(he);
2808
+ return this._compileSchemaEnv(fe);
2809
2809
  } catch (Re) {
2810
2810
  if (!(Re instanceof r.default))
2811
2811
  throw Re;
2812
- return K.call(this, Re), await Y.call(this, Re.missingSchema), A.call(this, he);
2812
+ return K.call(this, Re), await Y.call(this, Re.missingSchema), A.call(this, fe);
2813
2813
  }
2814
2814
  }
2815
- function K({ missingSchema: he, missingRef: Re }) {
2816
- if (this.refs[he])
2817
- throw new Error(`AnySchema ${he} is loaded but ${Re} cannot be resolved`);
2815
+ function K({ missingSchema: fe, missingRef: Re }) {
2816
+ if (this.refs[fe])
2817
+ throw new Error(`AnySchema ${fe} is loaded but ${Re} cannot be resolved`);
2818
2818
  }
2819
- async function Y(he) {
2820
- const Re = await fe.call(this, he);
2821
- this.refs[he] || await k.call(this, Re.$schema), this.refs[he] || this.addSchema(Re, he, $);
2819
+ async function Y(fe) {
2820
+ const Re = await ue.call(this, fe);
2821
+ this.refs[fe] || await k.call(this, Re.$schema), this.refs[fe] || this.addSchema(Re, fe, $);
2822
2822
  }
2823
- async function fe(he) {
2824
- const Re = this._loading[he];
2823
+ async function ue(fe) {
2824
+ const Re = this._loading[fe];
2825
2825
  if (Re)
2826
2826
  return Re;
2827
2827
  try {
2828
- return await (this._loading[he] = _(he));
2828
+ return await (this._loading[fe] = _(fe));
2829
2829
  } finally {
2830
- delete this._loading[he];
2830
+ delete this._loading[fe];
2831
2831
  }
2832
2832
  }
2833
2833
  }
@@ -2923,7 +2923,7 @@ Qa.default = Vd;
2923
2923
  throw new Error("addKeywords: keyword must be string or non-empty array");
2924
2924
  } else
2925
2925
  throw new Error("invalid addKeywords parameters");
2926
- if (I.call(this, _, $), !$)
2926
+ if (R.call(this, _, $), !$)
2927
2927
  return (0, h.eachItem)(_, (k) => Z.call(this, k)), this;
2928
2928
  Se.call(this, $);
2929
2929
  const v = {
@@ -2966,8 +2966,8 @@ Qa.default = Vd;
2966
2966
  const Y = _[K];
2967
2967
  if (typeof Y != "object")
2968
2968
  continue;
2969
- const { $data: fe } = Y.definition, he = A[K];
2970
- fe && he && (A[K] = xe(he));
2969
+ const { $data: ue } = Y.definition, fe = A[K];
2970
+ ue && fe && (A[K] = xe(fe));
2971
2971
  }
2972
2972
  }
2973
2973
  return C;
@@ -2993,8 +2993,8 @@ Qa.default = Vd;
2993
2993
  if (Y !== void 0)
2994
2994
  return Y;
2995
2995
  _ = (0, a.normalizeId)(A || _);
2996
- const fe = a.getSchemaRefs.call(this, C, _);
2997
- return Y = new o.SchemaEnv({ schema: C, schemaId: K, meta: $, baseId: _, localRefs: fe }), this._cache.set(Y.schema, Y), k && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = Y), v && this.validateSchema(C, !0), Y;
2996
+ const ue = a.getSchemaRefs.call(this, C, _);
2997
+ return Y = new o.SchemaEnv({ schema: C, schemaId: K, meta: $, baseId: _, localRefs: ue }), this._cache.set(Y.schema, Y), k && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = Y), v && this.validateSchema(C, !0), Y;
2998
2998
  }
2999
2999
  _checkUnique(C) {
3000
3000
  if (this.schemas[C] || this.refs[C])
@@ -3057,13 +3057,13 @@ Qa.default = Vd;
3057
3057
  delete L[C];
3058
3058
  return L;
3059
3059
  }
3060
- const R = { log() {
3060
+ const I = { log() {
3061
3061
  }, warn() {
3062
3062
  }, error() {
3063
3063
  } };
3064
3064
  function P(L) {
3065
3065
  if (L === !1)
3066
- return R;
3066
+ return I;
3067
3067
  if (L === void 0)
3068
3068
  return console;
3069
3069
  if (L.log && L.warn && L.error)
@@ -3071,7 +3071,7 @@ Qa.default = Vd;
3071
3071
  throw new Error("logger must implement log, warn and error methods");
3072
3072
  }
3073
3073
  const U = /^[a-z_$][a-z0-9_$:-]*$/i;
3074
- function I(L, C) {
3074
+ function R(L, C) {
3075
3075
  const { RULES: $ } = this;
3076
3076
  if ((0, h.eachItem)(L, (_) => {
3077
3077
  if ($.keywords[_])
@@ -3098,9 +3098,9 @@ Qa.default = Vd;
3098
3098
  schemaType: (0, c.getJSONTypes)(C.schemaType)
3099
3099
  }
3100
3100
  };
3101
- C.before ? de.call(this, A, K, C.before) : A.rules.push(K), k.all[L] = K, (_ = C.implements) === null || _ === void 0 || _.forEach((Y) => this.addKeyword(Y));
3101
+ C.before ? ce.call(this, A, K, C.before) : A.rules.push(K), k.all[L] = K, (_ = C.implements) === null || _ === void 0 || _.forEach((Y) => this.addKeyword(Y));
3102
3102
  }
3103
- function de(L, C, $) {
3103
+ function ce(L, C, $) {
3104
3104
  const _ = L.rules.findIndex((v) => v.keyword === $);
3105
3105
  _ >= 0 ? L.rules.splice(_, 0, C) : (L.rules.push(C), this.logger.warn(`rule ${$} is not defined`));
3106
3106
  }
@@ -4608,8 +4608,8 @@ var Vl = { exports: {} }, Xd = {};
4608
4608
  const B = i.exec(N);
4609
4609
  if (!B)
4610
4610
  return !1;
4611
- const R = +B[1], P = +B[2], U = +B[3];
4612
- return P >= 1 && P <= 12 && U >= 1 && U <= (P === 2 && t(R) ? 29 : r[P]);
4611
+ const I = +B[1], P = +B[2], U = +B[3];
4612
+ return P >= 1 && P <= 12 && U >= 1 && U <= (P === 2 && t(I) ? 29 : r[P]);
4613
4613
  }
4614
4614
  function o(N, B) {
4615
4615
  if (N && B)
@@ -4617,18 +4617,18 @@ var Vl = { exports: {} }, Xd = {};
4617
4617
  }
4618
4618
  const l = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
4619
4619
  function a(N, B) {
4620
- const R = l.exec(N);
4621
- if (!R)
4620
+ const I = l.exec(N);
4621
+ if (!I)
4622
4622
  return !1;
4623
- const P = +R[1], U = +R[2], I = +R[3], Z = R[5];
4624
- return (P <= 23 && U <= 59 && I <= 59 || P === 23 && U === 59 && I === 60) && (!B || Z !== "");
4623
+ const P = +I[1], U = +I[2], R = +I[3], Z = I[5];
4624
+ return (P <= 23 && U <= 59 && R <= 59 || P === 23 && U === 59 && R === 60) && (!B || Z !== "");
4625
4625
  }
4626
4626
  function c(N, B) {
4627
4627
  if (!(N && B))
4628
4628
  return;
4629
- const R = l.exec(N), P = l.exec(B);
4630
- if (R && P)
4631
- return N = R[1] + R[2] + R[3] + (R[4] || ""), B = P[1] + P[2] + P[3] + (P[4] || ""), N > B ? 1 : N < B ? -1 : 0;
4629
+ const I = l.exec(N), P = l.exec(B);
4630
+ if (I && P)
4631
+ return N = I[1] + I[2] + I[3] + (I[4] || ""), B = P[1] + P[2] + P[3] + (P[4] || ""), N > B ? 1 : N < B ? -1 : 0;
4632
4632
  }
4633
4633
  const h = /t|\s/i;
4634
4634
  function f(N) {
@@ -4638,9 +4638,9 @@ var Vl = { exports: {} }, Xd = {};
4638
4638
  function u(N, B) {
4639
4639
  if (!(N && B))
4640
4640
  return;
4641
- const [R, P] = N.split(h), [U, I] = B.split(h), Z = o(R, U);
4641
+ const [I, P] = N.split(h), [U, R] = B.split(h), Z = o(I, U);
4642
4642
  if (Z !== void 0)
4643
- return Z || c(P, I);
4643
+ return Z || c(P, R);
4644
4644
  }
4645
4645
  const d = /\/|:/, m = /^(?:[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;
4646
4646
  function y(N) {
@@ -4946,16 +4946,16 @@ function Lh(n) {
4946
4946
  }
4947
4947
  function xt(n, e, t = {}) {
4948
4948
  const i = Ti(), r = (i == null ? void 0 : i.validationMode) || "ValidateAndShow", s = i == null ? void 0 : i.errorMessages, o = i == null ? void 0 : i.validators, l = i == null ? void 0 : i.validatorDebounce, a = (D, N) => {
4949
- var R;
4949
+ var I;
4950
4950
  const B = e["x-error-messages"];
4951
- return B != null && B[D] ? B[D] : (R = s == null ? void 0 : s[n]) != null && R[D] ? s[n][D] : N;
4951
+ return B != null && B[D] ? B[D] : (I = s == null ? void 0 : s[n]) != null && I[D] ? s[n][D] : N;
4952
4952
  }, c = () => {
4953
4953
  if (typeof l == "number")
4954
4954
  return l;
4955
4955
  if (l && typeof l == "object")
4956
4956
  return l[n];
4957
4957
  }, h = (D) => {
4958
- var R;
4958
+ var I;
4959
4959
  if (r === "NoValidation")
4960
4960
  return !0;
4961
4961
  const N = i == null ? void 0 : i.schema;
@@ -5033,44 +5033,44 @@ function xt(n, e, t = {}) {
5033
5033
  const P = Array.isArray(e.items) ? e.items[0] : e.items;
5034
5034
  if (P && typeof P != "boolean")
5035
5035
  for (let U = 0; U < D.length; U++) {
5036
- const I = D[U];
5037
- if (!(typeof I == "string" && /\{\{.*?\}\}/.test(I))) {
5038
- if (P.type === "string" && typeof I == "string") {
5039
- if (P.format === "email" && !Ih(I))
5036
+ const R = D[U];
5037
+ if (!(typeof R == "string" && /\{\{.*?\}\}/.test(R))) {
5038
+ if (P.type === "string" && typeof R == "string") {
5039
+ if (P.format === "email" && !Ih(R))
5040
5040
  return a(
5041
5041
  "items.format",
5042
- `Item "${I}" is not a valid email address`
5042
+ `Item "${R}" is not a valid email address`
5043
5043
  );
5044
- if ((P.format === "url" || P.format === "uri") && !Nh(I))
5044
+ if ((P.format === "url" || P.format === "uri") && !Nh(R))
5045
5045
  return a(
5046
5046
  "items.format",
5047
- `Item "${I}" is not a valid URL`
5047
+ `Item "${R}" is not a valid URL`
5048
5048
  );
5049
- if (P.minLength !== void 0 && I.length < P.minLength)
5049
+ if (P.minLength !== void 0 && R.length < P.minLength)
5050
5050
  return a(
5051
5051
  "items.minLength",
5052
- `Item "${I}" must be at least ${P.minLength} characters`
5052
+ `Item "${R}" must be at least ${P.minLength} characters`
5053
5053
  );
5054
- if (P.maxLength !== void 0 && I.length > P.maxLength)
5054
+ if (P.maxLength !== void 0 && R.length > P.maxLength)
5055
5055
  return a(
5056
5056
  "items.maxLength",
5057
- `Item "${I}" must be at most ${P.maxLength} characters`
5057
+ `Item "${R}" must be at most ${P.maxLength} characters`
5058
5058
  );
5059
5059
  if (P.pattern)
5060
5060
  try {
5061
- if (!new RegExp(P.pattern).test(I))
5061
+ if (!new RegExp(P.pattern).test(R))
5062
5062
  return a(
5063
5063
  "items.pattern",
5064
- `Item "${I}" has invalid format`
5064
+ `Item "${R}" has invalid format`
5065
5065
  );
5066
5066
  } catch {
5067
5067
  console.warn("Invalid regex pattern:", P.pattern);
5068
5068
  }
5069
5069
  }
5070
- if (P.enum && !P.enum.includes(I))
5070
+ if (P.enum && !P.enum.includes(R))
5071
5071
  return a(
5072
5072
  "items.enum",
5073
- `Item "${I}" is not a valid option`
5073
+ `Item "${R}" is not a valid option`
5074
5074
  );
5075
5075
  }
5076
5076
  }
@@ -5082,8 +5082,8 @@ function xt(n, e, t = {}) {
5082
5082
  const B = o == null ? void 0 : o[n];
5083
5083
  if (B)
5084
5084
  try {
5085
- const P = ((R = i == null ? void 0 : i.formValues) == null ? void 0 : R.call(i)) || {}, U = (i == null ? void 0 : i.context) || {}, I = B(D, P, U);
5086
- return I instanceof Promise ? I.then(Lh) : Lh(I);
5085
+ const P = ((I = i == null ? void 0 : i.formValues) == null ? void 0 : I.call(i)) || {}, U = (i == null ? void 0 : i.context) || {}, R = B(D, P, U);
5086
+ return R instanceof Promise ? R.then(Lh) : Lh(R);
5087
5087
  } catch (P) {
5088
5088
  return console.error("Custom validator error for", n, ":", P), "Validation error";
5089
5089
  }
@@ -5195,7 +5195,7 @@ function Vw(n, e, t, i, r, s) {
5195
5195
  class: "quickform-label"
5196
5196
  }, [
5197
5197
  vt(
5198
- ue(i.label) + " ",
5198
+ de(i.label) + " ",
5199
5199
  1
5200
5200
  /* TEXT */
5201
5201
  ),
@@ -5299,7 +5299,7 @@ function Vw(n, e, t, i, r, s) {
5299
5299
  i.errorMessage ? (j(), q(
5300
5300
  "div",
5301
5301
  qw,
5302
- ue(i.errorMessage),
5302
+ de(i.errorMessage),
5303
5303
  1
5304
5304
  /* TEXT */
5305
5305
  )) : X("v-if", !0)
@@ -5335,7 +5335,7 @@ function Qw(n, e, t, i, r, s) {
5335
5335
  class: "quickform-label"
5336
5336
  }, [
5337
5337
  vt(
5338
- ue(i.label) + " ",
5338
+ de(i.label) + " ",
5339
5339
  1
5340
5340
  /* TEXT */
5341
5341
  ),
@@ -5376,7 +5376,7 @@ function Qw(n, e, t, i, r, s) {
5376
5376
  i.errorMessage ? (j(), q(
5377
5377
  "div",
5378
5378
  Yw,
5379
- ue(i.errorMessage),
5379
+ de(i.errorMessage),
5380
5380
  1
5381
5381
  /* TEXT */
5382
5382
  )) : X("v-if", !0)
@@ -5429,7 +5429,7 @@ function lk(n, e, t, i, r, s) {
5429
5429
  ]),
5430
5430
  G("span", ik, [
5431
5431
  vt(
5432
- ue(i.label) + " ",
5432
+ de(i.label) + " ",
5433
5433
  1
5434
5434
  /* TEXT */
5435
5435
  ),
@@ -5446,7 +5446,7 @@ function lk(n, e, t, i, r, s) {
5446
5446
  i.errorMessage ? (j(), q(
5447
5447
  "div",
5448
5448
  ok,
5449
- ue(i.errorMessage),
5449
+ de(i.errorMessage),
5450
5450
  1
5451
5451
  /* TEXT */
5452
5452
  )) : X("v-if", !0)
@@ -5506,7 +5506,7 @@ function wk(n, e, t, i, r, s) {
5506
5506
  class: "quickform-label"
5507
5507
  }, [
5508
5508
  vt(
5509
- ue(i.label) + " ",
5509
+ de(i.label) + " ",
5510
5510
  1
5511
5511
  /* TEXT */
5512
5512
  ),
@@ -5537,7 +5537,7 @@ function wk(n, e, t, i, r, s) {
5537
5537
  Wi(i.options, (o) => (j(), q("option", {
5538
5538
  key: String(o.value),
5539
5539
  value: o.value
5540
- }, ue(o.label), 9, dk))),
5540
+ }, de(o.label), 9, dk))),
5541
5541
  128
5542
5542
  /* KEYED_FRAGMENT */
5543
5543
  ))
@@ -5559,7 +5559,7 @@ function wk(n, e, t, i, r, s) {
5559
5559
  G(
5560
5560
  "option",
5561
5561
  pk,
5562
- ue(i.placeholder),
5562
+ de(i.placeholder),
5563
5563
  1
5564
5564
  /* TEXT */
5565
5565
  ),
@@ -5569,7 +5569,7 @@ function wk(n, e, t, i, r, s) {
5569
5569
  Wi(i.options, (o) => (j(), q("option", {
5570
5570
  key: String(o.value),
5571
5571
  value: o.value
5572
- }, ue(o.label), 9, gk))),
5572
+ }, de(o.label), 9, gk))),
5573
5573
  128
5574
5574
  /* KEYED_FRAGMENT */
5575
5575
  ))
@@ -5586,7 +5586,7 @@ function wk(n, e, t, i, r, s) {
5586
5586
  i.errorMessage ? (j(), q(
5587
5587
  "div",
5588
5588
  vk,
5589
- ue(i.errorMessage),
5589
+ de(i.errorMessage),
5590
5590
  1
5591
5591
  /* TEXT */
5592
5592
  )) : X("v-if", !0)
@@ -5622,7 +5622,7 @@ function Pk(n, e, t, i, r, s) {
5622
5622
  class: "quickform-label"
5623
5623
  }, [
5624
5624
  vt(
5625
- ue(i.label) + " ",
5625
+ de(i.label) + " ",
5626
5626
  1
5627
5627
  /* TEXT */
5628
5628
  ),
@@ -5654,7 +5654,7 @@ function Pk(n, e, t, i, r, s) {
5654
5654
  i.errorMessage ? (j(), q(
5655
5655
  "div",
5656
5656
  Ak,
5657
- ue(i.errorMessage),
5657
+ de(i.errorMessage),
5658
5658
  1
5659
5659
  /* TEXT */
5660
5660
  )) : X("v-if", !0)
@@ -5730,14 +5730,14 @@ function $k(n, e, t, i, r, s) {
5730
5730
  G(
5731
5731
  "p",
5732
5732
  null,
5733
- "No renderer available for field: " + ue(t.path),
5733
+ "No renderer available for field: " + de(t.path),
5734
5734
  1
5735
5735
  /* TEXT */
5736
5736
  ),
5737
5737
  G(
5738
5738
  "pre",
5739
5739
  null,
5740
- ue(JSON.stringify(t.schema, null, 2)),
5740
+ de(JSON.stringify(t.schema, null, 2)),
5741
5741
  1
5742
5742
  /* TEXT */
5743
5743
  )
@@ -5764,11 +5764,15 @@ const Tr = /* @__PURE__ */ ht(Tk, [["render", $k], ["__scopeId", "data-v-abf28e2
5764
5764
  },
5765
5765
  setup(n, { expose: e }) {
5766
5766
  e();
5767
- const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = ee(() => t.schema.properties ? Object.entries(t.schema.properties).map(([c, h]) => ({
5768
- key: c,
5769
- schema: h,
5770
- path: t.path ? `${t.path}.${c}` : c
5771
- })) : []), a = { props: t, label: i, hint: r, errorMessage: s, fieldId: o, properties: l, FieldRenderer: Tr };
5767
+ const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = ee(() => {
5768
+ if (!t.schema.properties) return [];
5769
+ const c = t.schema["x-field-order"];
5770
+ return (c && Array.isArray(c) && c.length > 0 ? c : Object.keys(t.schema.properties)).filter((f) => f in t.schema.properties).map((f) => ({
5771
+ key: f,
5772
+ schema: t.schema.properties[f],
5773
+ path: t.path ? `${t.path}.${f}` : f
5774
+ }));
5775
+ }), a = { props: t, label: i, hint: r, errorMessage: s, fieldId: o, properties: l, FieldRenderer: Tr };
5772
5776
  return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
5773
5777
  }
5774
5778
  }), Rk = { class: "quickform-field quickform-object-field" }, Ik = ["id", "aria-describedby"], Nk = {
@@ -5790,7 +5794,7 @@ function Vk(n, e, t, i, r, s) {
5790
5794
  }, [
5791
5795
  i.label ? (j(), q("legend", Nk, [
5792
5796
  vt(
5793
- ue(i.label) + " ",
5797
+ de(i.label) + " ",
5794
5798
  1
5795
5799
  /* TEXT */
5796
5800
  ),
@@ -5821,7 +5825,7 @@ function Vk(n, e, t, i, r, s) {
5821
5825
  i.errorMessage ? (j(), q(
5822
5826
  "div",
5823
5827
  qk,
5824
- ue(i.errorMessage),
5828
+ de(i.errorMessage),
5825
5829
  1
5826
5830
  /* TEXT */
5827
5831
  )) : X("v-if", !0)
@@ -5869,8 +5873,8 @@ const zh = /* @__PURE__ */ ht(Dk, [["render", Vk], ["__scopeId", "data-v-8012fc1
5869
5873
  if (typeof O == "object" && O !== null) {
5870
5874
  let T = w, D = !1;
5871
5875
  if (T = T.replace(/\{\{([^}]+)\}\}/g, (N, B) => {
5872
- const R = O[B.trim()];
5873
- return R != null && R !== "" ? (D = !0, String(R)) : "";
5876
+ const I = O[B.trim()];
5877
+ return I != null && I !== "" ? (D = !0, String(I)) : "";
5874
5878
  }), T = T.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), D && T.trim())
5875
5879
  return T.trim();
5876
5880
  }
@@ -5901,7 +5905,7 @@ function oS(n, e, t, i, r, s) {
5901
5905
  }, [
5902
5906
  i.label ? (j(), q("legend", Uk, [
5903
5907
  vt(
5904
- ue(i.label) + " ",
5908
+ de(i.label) + " ",
5905
5909
  1
5906
5910
  /* TEXT */
5907
5911
  ),
@@ -5966,12 +5970,12 @@ function oS(n, e, t, i, r, s) {
5966
5970
  class: "quickform-btn quickform-btn-secondary",
5967
5971
  disabled: !i.canAdd,
5968
5972
  onClick: i.addItem
5969
- }, " + " + ue(i.formContext.labels.addItem), 9, rS)
5973
+ }, " + " + de(i.formContext.labels.addItem), 9, rS)
5970
5974
  ]),
5971
5975
  i.errorMessage ? (j(), q(
5972
5976
  "div",
5973
5977
  sS,
5974
- ue(i.errorMessage),
5978
+ de(i.errorMessage),
5975
5979
  1
5976
5980
  /* TEXT */
5977
5981
  )) : X("v-if", !0)
@@ -6053,7 +6057,7 @@ function wS(n, e, t, i, r, s) {
6053
6057
  class: "quickform-label"
6054
6058
  }, [
6055
6059
  vt(
6056
- ue(i.label) + " ",
6060
+ de(i.label) + " ",
6057
6061
  1
6058
6062
  /* TEXT */
6059
6063
  ),
@@ -6137,7 +6141,7 @@ function wS(n, e, t, i, r, s) {
6137
6141
  i.errorMessage ? (j(), q(
6138
6142
  "div",
6139
6143
  vS,
6140
- ue(i.errorMessage),
6144
+ de(i.errorMessage),
6141
6145
  1
6142
6146
  /* TEXT */
6143
6147
  )) : X("v-if", !0)
@@ -6209,7 +6213,7 @@ function rm(n) {
6209
6213
  function Gh(n) {
6210
6214
  return n < 65536 ? 1 : 2;
6211
6215
  }
6212
- class ce {
6216
+ class he {
6213
6217
  /**
6214
6218
  Get the line description around the given position.
6215
6219
  */
@@ -6341,10 +6345,10 @@ class ce {
6341
6345
  static of(e) {
6342
6346
  if (e.length == 0)
6343
6347
  throw new RangeError("A document must have at least one line");
6344
- return e.length == 1 && !e[0] ? ce.empty : e.length <= 32 ? new Oe(e) : zt.from(Oe.split(e, []));
6348
+ return e.length == 1 && !e[0] ? he.empty : e.length <= 32 ? new Oe(e) : zt.from(Oe.split(e, []));
6345
6349
  }
6346
6350
  }
6347
- class Oe extends ce {
6351
+ class Oe extends he {
6348
6352
  constructor(e, t = CS(e)) {
6349
6353
  super(), this.text = e, this.length = t;
6350
6354
  }
@@ -6406,7 +6410,7 @@ class Oe extends ce {
6406
6410
  return r > -1 && t.push(new Oe(i, r)), t;
6407
6411
  }
6408
6412
  }
6409
- class zt extends ce {
6413
+ class zt extends he {
6410
6414
  constructor(e, t) {
6411
6415
  super(), this.children = e, this.length = t, this.lines = 0;
6412
6416
  for (let i of e)
@@ -6503,7 +6507,7 @@ class zt extends ce {
6503
6507
  return u(), l.length == 1 ? l[0] : new zt(l, t);
6504
6508
  }
6505
6509
  }
6506
- ce.empty = /* @__PURE__ */ new Oe([""], 0);
6510
+ he.empty = /* @__PURE__ */ new Oe([""], 0);
6507
6511
  function CS(n) {
6508
6512
  let e = -1;
6509
6513
  for (let t of n)
@@ -6583,7 +6587,7 @@ class om {
6583
6587
  return !1;
6584
6588
  }
6585
6589
  }
6586
- typeof Symbol < "u" && (ce.prototype[Symbol.iterator] = function() {
6590
+ typeof Symbol < "u" && (he.prototype[Symbol.iterator] = function() {
6587
6591
  return this.iter();
6588
6592
  }, rr.prototype[Symbol.iterator] = sm.prototype[Symbol.iterator] = om.prototype[Symbol.iterator] = function() {
6589
6593
  return this;
@@ -6821,8 +6825,8 @@ class Ee extends Qt {
6821
6825
  t[r] = l, t[r + 1] = o;
6822
6826
  let a = r >> 1;
6823
6827
  for (; i.length < a; )
6824
- i.push(ce.empty);
6825
- i.push(o ? e.slice(s, s + o) : ce.empty);
6828
+ i.push(he.empty);
6829
+ i.push(o ? e.slice(s, s + o) : he.empty);
6826
6830
  }
6827
6831
  s += o;
6828
6832
  }
@@ -6936,7 +6940,7 @@ class Ee extends Qt {
6936
6940
  let { from: f, to: u = f, insert: d } = h;
6937
6941
  if (f > u || f < 0 || u > t)
6938
6942
  throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);
6939
- let m = d ? typeof d == "string" ? ce.of(d.split(i || Hl)) : d : ce.empty, y = m.length;
6943
+ let m = d ? typeof d == "string" ? he.of(d.split(i || Hl)) : d : he.empty, y = m.length;
6940
6944
  if (f == u && y == 0)
6941
6945
  return;
6942
6946
  f < o && a(), f > o && He(r, f - o, -1), He(r, u - f, y), wi(s, r, m), o = u;
@@ -6969,8 +6973,8 @@ class Ee extends Qt {
6969
6973
  t.push(s[0], 0);
6970
6974
  else {
6971
6975
  for (; i.length < r; )
6972
- i.push(ce.empty);
6973
- i[r] = ce.of(s.slice(1)), t.push(s[0], i[r].length);
6976
+ i.push(he.empty);
6977
+ i[r] = he.of(s.slice(1)), t.push(s[0], i[r].length);
6974
6978
  }
6975
6979
  }
6976
6980
  }
@@ -6997,7 +7001,7 @@ function wi(n, e, t) {
6997
7001
  n[n.length - 1] = n[n.length - 1].append(t);
6998
7002
  else {
6999
7003
  for (; n.length < i; )
7000
- n.push(ce.empty);
7004
+ n.push(he.empty);
7001
7005
  n.push(t);
7002
7006
  }
7003
7007
  }
@@ -7008,7 +7012,7 @@ function Wl(n, e, t) {
7008
7012
  if (a < 0)
7009
7013
  r += l, s += l;
7010
7014
  else {
7011
- let c = r, h = s, f = ce.empty;
7015
+ let c = r, h = s, f = he.empty;
7012
7016
  for (; c += l, h += a, a && i && (f = f.append(i[o - 2 >> 1])), !(t || o == n.sections.length || n.sections[o + 1] < 0); )
7013
7017
  l = n.sections[o++], a = n.sections[o++];
7014
7018
  e(r, c, s, h, f), r = c, s = h;
@@ -7087,11 +7091,11 @@ class ur {
7087
7091
  }
7088
7092
  get text() {
7089
7093
  let { inserted: e } = this.set, t = this.i - 2 >> 1;
7090
- return t >= e.length ? ce.empty : e[t];
7094
+ return t >= e.length ? he.empty : e[t];
7091
7095
  }
7092
7096
  textBit(e) {
7093
7097
  let { inserted: t } = this.set, i = this.i - 2 >> 1;
7094
- return i >= t.length && !e ? ce.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
7098
+ return i >= t.length && !e ? he.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
7095
7099
  }
7096
7100
  forward(e) {
7097
7101
  e == this.len ? this.next() : (this.len -= e, this.off += e);
@@ -8044,7 +8048,7 @@ class le {
8044
8048
  [`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
8045
8049
  */
8046
8050
  toText(e) {
8047
- return ce.of(e.split(this.facet(le.lineSeparator) || Hl));
8051
+ return he.of(e.split(this.facet(le.lineSeparator) || Hl));
8048
8052
  }
8049
8053
  /**
8050
8054
  Return the given range of the document as a string.
@@ -8106,7 +8110,7 @@ class le {
8106
8110
  transactions.
8107
8111
  */
8108
8112
  static create(e = {}) {
8109
- let t = Ws.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof ce ? e.doc : ce.of((e.doc || "").split(t.staticFacet(le.lineSeparator) || Hl)), r = e.selection ? e.selection instanceof E ? e.selection : E.single(e.selection.anchor, e.selection.head) : E.single(0);
8113
+ let t = Ws.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof he ? e.doc : he.of((e.doc || "").split(t.staticFacet(le.lineSeparator) || Hl)), r = e.selection ? e.selection instanceof E ? e.selection : E.single(e.selection.anchor, e.selection.head) : E.single(0);
8110
8114
  return am(r, i.length), t.staticFacet(Jl) || (r = r.asSingle()), new le(t, i, r, t.dynamicSlots.map(() => null), (s, o) => o.create(s), null);
8111
8115
  }
8112
8116
  /**
@@ -9659,12 +9663,12 @@ class ri extends me {
9659
9663
  }
9660
9664
  get overrideDOMText() {
9661
9665
  if (this.length == 0)
9662
- return ce.empty;
9666
+ return he.empty;
9663
9667
  let e = this;
9664
9668
  for (; e.parent; )
9665
9669
  e = e.parent;
9666
9670
  let { view: t } = e, i = t && t.state.doc, r = this.posAtStart;
9667
- return i ? i.slice(r, r + this.length) : ce.empty;
9671
+ return i ? i.slice(r, r + this.length) : he.empty;
9668
9672
  }
9669
9673
  domAtPos(e) {
9670
9674
  return (this.length ? e == 0 : this.side > 0) ? We.before(this.dom) : We.after(this.dom, e == this.length);
@@ -9735,7 +9739,7 @@ class Mn extends me {
9735
9739
  return this.dom.getBoundingClientRect();
9736
9740
  }
9737
9741
  get overrideDOMText() {
9738
- return ce.empty;
9742
+ return he.empty;
9739
9743
  }
9740
9744
  get isHidden() {
9741
9745
  return !0;
@@ -10176,7 +10180,7 @@ class li extends me {
10176
10180
  (!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
10177
10181
  }
10178
10182
  get overrideDOMText() {
10179
- return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : ce.empty;
10183
+ return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : he.empty;
10180
10184
  }
10181
10185
  domBoundsAround() {
10182
10186
  return null;
@@ -11694,12 +11698,12 @@ function rp(n, e) {
11694
11698
  h && (V.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == Yn + Yn && h.toB--, t = {
11695
11699
  from: o + h.from,
11696
11700
  to: o + h.toA,
11697
- insert: ce.of(e.text.slice(h.from, h.toB).split(Yn))
11701
+ insert: he.of(e.text.slice(h.from, h.toB).split(Yn))
11698
11702
  });
11699
11703
  } else i && (!n.hasFocus && n.state.facet(ii) || i.main.eq(r)) && (i = null);
11700
11704
  if (!t && !i)
11701
11705
  return !1;
11702
- if (!t && e.typeOver && !r.empty && i && i.main.empty ? t = { from: r.from, to: r.to, insert: n.state.doc.slice(r.from, r.to) } : (V.mac || V.android) && t && t.from == t.to && t.from == r.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = E.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: ce.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= r.from && t.to <= r.to && (t.from != r.from || t.to != r.to) && r.to - r.from - (t.to - t.from) <= 4 ? t = {
11706
+ if (!t && e.typeOver && !r.empty && i && i.main.empty ? t = { from: r.from, to: r.to, insert: n.state.doc.slice(r.from, r.to) } : (V.mac || V.android) && t && t.from == t.to && t.from == r.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = E.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: he.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= r.from && t.to <= r.to && (t.from != r.from || t.to != r.to) && r.to - r.from - (t.to - t.from) <= 4 ? t = {
11703
11707
  from: r.from,
11704
11708
  to: r.to,
11705
11709
  insert: n.state.doc.slice(r.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, r.to))
@@ -11708,7 +11712,7 @@ function rp(n, e) {
11708
11712
  to: r.to,
11709
11713
  insert: n.state.toText(n.inputState.insertingText)
11710
11714
  } : V.chrome && t && t.from == t.to && t.from == r.head && t.insert.toString() == `
11711
- ` && n.lineWrapping && (i && (i = E.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert: ce.of([" "]) }), t)
11715
+ ` && n.lineWrapping && (i && (i = E.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert: he.of([" "]) }), t)
11712
11716
  return qc(n, t, i, s);
11713
11717
  if (i && !i.main.eq(r)) {
11714
11718
  let o = !1, l = "select";
@@ -12291,7 +12295,7 @@ function Af() {
12291
12295
  }
12292
12296
  class Xx {
12293
12297
  constructor(e) {
12294
- this.lineWrapping = e, this.doc = ce.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
12298
+ this.lineWrapping = e, this.doc = he.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
12295
12299
  }
12296
12300
  heightForGap(e, t) {
12297
12301
  let i = this.doc.lineAt(t).number - this.doc.lineAt(e).number + 1;
@@ -12811,7 +12815,7 @@ class Tf {
12811
12815
  constructor(e) {
12812
12816
  this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = Ef, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = we.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
12813
12817
  let t = e.facet(jc).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
12814
- this.heightOracle = new Xx(t), this.stateDeco = e.facet(gr).filter((i) => typeof i != "function"), this.heightMap = tt.empty().applyChanges(this.stateDeco, ce.empty, this.heightOracle.setDoc(e.doc), [new wt(0, 0, 0, e.doc.length)]);
12818
+ this.heightOracle = new Xx(t), this.stateDeco = e.facet(gr).filter((i) => typeof i != "function"), this.heightMap = tt.empty().applyChanges(this.stateDeco, he.empty, this.heightOracle.setDoc(e.doc), [new wt(0, 0, 0, e.doc.length)]);
12815
12819
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
12816
12820
  ;
12817
12821
  this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Q.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
@@ -12876,7 +12880,7 @@ class Tf {
12876
12880
  y > 0 && g > 0 ? h = Math.max(y, g) : y < 0 && g < 0 && (h = Math.min(y, g)), Af();
12877
12881
  for (let x of this.viewports) {
12878
12882
  let O = x.from == this.viewport.from ? S : e.docView.measureVisibleLineHeights(x);
12879
- this.heightMap = (o ? tt.empty().applyChanges(this.stateDeco, ce.empty, this.heightOracle, [new wt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, o, new Zx(x.from, O));
12883
+ this.heightMap = (o ? tt.empty().applyChanges(this.stateDeco, he.empty, this.heightOracle, [new wt(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, o, new Zx(x.from, O));
12880
12884
  }
12881
12885
  An && (c |= 2);
12882
12886
  }
@@ -13692,10 +13696,10 @@ class mC {
13692
13696
  let f = {
13693
13697
  from: h.from + l,
13694
13698
  to: h.toA + l,
13695
- insert: ce.of(i.text.slice(h.from, h.toB).split(`
13699
+ insert: he.of(i.text.slice(h.from, h.toB).split(`
13696
13700
  `))
13697
13701
  };
13698
- if ((V.mac || V.android) && f.from == o - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (f = { from: l, to: a, insert: ce.of([i.text.replace(".", " ")]) }), this.pendingContextChange = f, !e.state.readOnly) {
13702
+ if ((V.mac || V.android) && f.from == o - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (f = { from: l, to: a, insert: he.of([i.text.replace(".", " ")]) }), this.pendingContextChange = f, !e.state.readOnly) {
13699
13703
  let u = this.to - this.from + (f.to - f.from + f.insert.length);
13700
13704
  qc(e, f, E.single(this.toEditorPos(i.selectionStart, u), this.toEditorPos(i.selectionEnd, u)));
13701
13705
  }
@@ -14763,25 +14767,25 @@ function SC(n, e, t) {
14763
14767
  }
14764
14768
  function w(x, O, T) {
14765
14769
  let D = 1e9, N = -1e9, B = [];
14766
- function R(I, Z, de, Se, nt) {
14767
- let xe = n.coordsAtPos(I, I == T.to ? -2 : 2), L = n.coordsAtPos(de, de == T.from ? 2 : -2);
14770
+ function I(R, Z, ce, Se, nt) {
14771
+ let xe = n.coordsAtPos(R, R == T.to ? -2 : 2), L = n.coordsAtPos(ce, ce == T.from ? 2 : -2);
14768
14772
  !xe || !L || (D = Math.min(xe.top, L.top, D), N = Math.max(xe.bottom, L.bottom, N), nt == we.LTR ? B.push(s && Z ? f : xe.left, s && Se ? u : L.right) : B.push(!s && Se ? f : L.left, !s && Z ? u : xe.right));
14769
14773
  }
14770
14774
  let P = x ?? T.from, U = O ?? T.to;
14771
- for (let I of n.visibleRanges)
14772
- if (I.to > P && I.from < U)
14773
- for (let Z = Math.max(I.from, P), de = Math.min(I.to, U); ; ) {
14775
+ for (let R of n.visibleRanges)
14776
+ if (R.to > P && R.from < U)
14777
+ for (let Z = Math.max(R.from, P), ce = Math.min(R.to, U); ; ) {
14774
14778
  let Se = n.state.doc.lineAt(Z);
14775
14779
  for (let nt of n.bidiSpans(Se)) {
14776
14780
  let xe = nt.from + Se.from, L = nt.to + Se.from;
14777
- if (xe >= de)
14781
+ if (xe >= ce)
14778
14782
  break;
14779
- L > Z && R(Math.max(xe, Z), x == null && xe <= P, Math.min(L, de), O == null && L >= U, nt.dir);
14783
+ L > Z && I(Math.max(xe, Z), x == null && xe <= P, Math.min(L, ce), O == null && L >= U, nt.dir);
14780
14784
  }
14781
- if (Z = Se.to + 1, Z >= de)
14785
+ if (Z = Se.to + 1, Z >= ce)
14782
14786
  break;
14783
14787
  }
14784
- return B.length == 0 && R(P, x == null, U, O == null, n.textDirection), { top: D, bottom: N, horizontal: B };
14788
+ return B.length == 0 && I(P, x == null, U, O == null, n.textDirection), { top: D, bottom: N, horizontal: B };
14785
14789
  }
14786
14790
  function S(x, O) {
14787
14791
  let T = l.top + (O ? x.top : x.bottom);
@@ -17294,123 +17298,123 @@ function __(n) {
17294
17298
  var e;
17295
17299
  let { buffer: t, nodeSet: i, maxBufferLength: r = Ep, reused: s = [], minRepeatType: o = i.types.length } = n, l = Array.isArray(t) ? new Uc(t, t.length) : t, a = i.types, c = 0, h = 0;
17296
17300
  function f(x, O, T, D, N, B) {
17297
- let { id: R, start: P, end: U, size: I } = l, Z = h, de = c;
17298
- if (I < 0)
17299
- if (l.next(), I == -1) {
17300
- let C = s[R];
17301
+ let { id: I, start: P, end: U, size: R } = l, Z = h, ce = c;
17302
+ if (R < 0)
17303
+ if (l.next(), R == -1) {
17304
+ let C = s[I];
17301
17305
  T.push(C), D.push(P - x);
17302
17306
  return;
17303
- } else if (I == -3) {
17304
- c = R;
17307
+ } else if (R == -3) {
17308
+ c = I;
17305
17309
  return;
17306
- } else if (I == -4) {
17307
- h = R;
17310
+ } else if (R == -4) {
17311
+ h = I;
17308
17312
  return;
17309
17313
  } else
17310
- throw new RangeError(`Unrecognized record size: ${I}`);
17311
- let Se = a[R], nt, xe, L = P - x;
17314
+ throw new RangeError(`Unrecognized record size: ${R}`);
17315
+ let Se = a[I], nt, xe, L = P - x;
17312
17316
  if (U - P <= r && (xe = g(l.pos - O, N))) {
17313
17317
  let C = new Uint16Array(xe.size - xe.skip), $ = l.pos - xe.size, _ = C.length;
17314
17318
  for (; l.pos > $; )
17315
17319
  _ = p(xe.start, C, _);
17316
17320
  nt = new Ai(C, U - xe.start, i), L = xe.start - x;
17317
17321
  } else {
17318
- let C = l.pos - I;
17322
+ let C = l.pos - R;
17319
17323
  l.next();
17320
- let $ = [], _ = [], v = R >= o ? R : -1, k = 0, A = U;
17324
+ let $ = [], _ = [], v = I >= o ? I : -1, k = 0, A = U;
17321
17325
  for (; l.pos > C; )
17322
- v >= 0 && l.id == v && l.size >= 0 ? (l.end <= A - r && (m($, _, P, k, l.end, A, v, Z, de), k = $.length, A = l.end), l.next()) : B > 2500 ? u(P, C, $, _) : f(P, C, $, _, v, B + 1);
17323
- if (v >= 0 && k > 0 && k < $.length && m($, _, P, k, P, A, v, Z, de), $.reverse(), _.reverse(), v > -1 && k > 0) {
17324
- let K = d(Se, de);
17326
+ v >= 0 && l.id == v && l.size >= 0 ? (l.end <= A - r && (m($, _, P, k, l.end, A, v, Z, ce), k = $.length, A = l.end), l.next()) : B > 2500 ? u(P, C, $, _) : f(P, C, $, _, v, B + 1);
17327
+ if (v >= 0 && k > 0 && k < $.length && m($, _, P, k, P, A, v, Z, ce), $.reverse(), _.reverse(), v > -1 && k > 0) {
17328
+ let K = d(Se, ce);
17325
17329
  nt = Gc(Se, $, _, 0, $.length, 0, U - P, K, K);
17326
17330
  } else
17327
- nt = y(Se, $, _, U - P, Z - U, de);
17331
+ nt = y(Se, $, _, U - P, Z - U, ce);
17328
17332
  }
17329
17333
  T.push(nt), D.push(L);
17330
17334
  }
17331
17335
  function u(x, O, T, D) {
17332
- let N = [], B = 0, R = -1;
17336
+ let N = [], B = 0, I = -1;
17333
17337
  for (; l.pos > O; ) {
17334
- let { id: P, start: U, end: I, size: Z } = l;
17338
+ let { id: P, start: U, end: R, size: Z } = l;
17335
17339
  if (Z > 4)
17336
17340
  l.next();
17337
17341
  else {
17338
- if (R > -1 && U < R)
17342
+ if (I > -1 && U < I)
17339
17343
  break;
17340
- R < 0 && (R = I - r), N.push(P, U, I), B++, l.next();
17344
+ I < 0 && (I = R - r), N.push(P, U, R), B++, l.next();
17341
17345
  }
17342
17346
  }
17343
17347
  if (B) {
17344
17348
  let P = new Uint16Array(B * 4), U = N[N.length - 2];
17345
- for (let I = N.length - 3, Z = 0; I >= 0; I -= 3)
17346
- P[Z++] = N[I], P[Z++] = N[I + 1] - U, P[Z++] = N[I + 2] - U, P[Z++] = Z;
17349
+ for (let R = N.length - 3, Z = 0; R >= 0; R -= 3)
17350
+ P[Z++] = N[R], P[Z++] = N[R + 1] - U, P[Z++] = N[R + 2] - U, P[Z++] = Z;
17347
17351
  T.push(new Ai(P, N[2] - U, i)), D.push(U - x);
17348
17352
  }
17349
17353
  }
17350
17354
  function d(x, O) {
17351
17355
  return (T, D, N) => {
17352
- let B = 0, R = T.length - 1, P, U;
17353
- if (R >= 0 && (P = T[R]) instanceof Pe) {
17354
- if (!R && P.type == x && P.length == N)
17356
+ let B = 0, I = T.length - 1, P, U;
17357
+ if (I >= 0 && (P = T[I]) instanceof Pe) {
17358
+ if (!I && P.type == x && P.length == N)
17355
17359
  return P;
17356
- (U = P.prop(oe.lookAhead)) && (B = D[R] + P.length + U);
17360
+ (U = P.prop(oe.lookAhead)) && (B = D[I] + P.length + U);
17357
17361
  }
17358
17362
  return y(x, T, D, N, B, O);
17359
17363
  };
17360
17364
  }
17361
- function m(x, O, T, D, N, B, R, P, U) {
17362
- let I = [], Z = [];
17365
+ function m(x, O, T, D, N, B, I, P, U) {
17366
+ let R = [], Z = [];
17363
17367
  for (; x.length > D; )
17364
- I.push(x.pop()), Z.push(O.pop() + T - N);
17365
- x.push(y(i.types[R], I, Z, B - N, P - B, U)), O.push(N - T);
17368
+ R.push(x.pop()), Z.push(O.pop() + T - N);
17369
+ x.push(y(i.types[I], R, Z, B - N, P - B, U)), O.push(N - T);
17366
17370
  }
17367
- function y(x, O, T, D, N, B, R) {
17371
+ function y(x, O, T, D, N, B, I) {
17368
17372
  if (B) {
17369
17373
  let P = [oe.contextHash, B];
17370
- R = R ? [P].concat(R) : [P];
17374
+ I = I ? [P].concat(I) : [P];
17371
17375
  }
17372
17376
  if (N > 25) {
17373
17377
  let P = [oe.lookAhead, N];
17374
- R = R ? [P].concat(R) : [P];
17378
+ I = I ? [P].concat(I) : [P];
17375
17379
  }
17376
- return new Pe(x, O, T, D, R);
17380
+ return new Pe(x, O, T, D, I);
17377
17381
  }
17378
17382
  function g(x, O) {
17379
- let T = l.fork(), D = 0, N = 0, B = 0, R = T.end - r, P = { size: 0, start: 0, skip: 0 };
17383
+ let T = l.fork(), D = 0, N = 0, B = 0, I = T.end - r, P = { size: 0, start: 0, skip: 0 };
17380
17384
  e: for (let U = T.pos - x; T.pos > U; ) {
17381
- let I = T.size;
17382
- if (T.id == O && I >= 0) {
17385
+ let R = T.size;
17386
+ if (T.id == O && R >= 0) {
17383
17387
  P.size = D, P.start = N, P.skip = B, B += 4, D += 4, T.next();
17384
17388
  continue;
17385
17389
  }
17386
- let Z = T.pos - I;
17387
- if (I < 0 || Z < U || T.start < R)
17390
+ let Z = T.pos - R;
17391
+ if (R < 0 || Z < U || T.start < I)
17388
17392
  break;
17389
- let de = T.id >= o ? 4 : 0, Se = T.start;
17393
+ let ce = T.id >= o ? 4 : 0, Se = T.start;
17390
17394
  for (T.next(); T.pos > Z; ) {
17391
17395
  if (T.size < 0)
17392
17396
  if (T.size == -3)
17393
- de += 4;
17397
+ ce += 4;
17394
17398
  else
17395
17399
  break e;
17396
- else T.id >= o && (de += 4);
17400
+ else T.id >= o && (ce += 4);
17397
17401
  T.next();
17398
17402
  }
17399
- N = Se, D += I, B += de;
17403
+ N = Se, D += R, B += ce;
17400
17404
  }
17401
17405
  return (O < 0 || D == x) && (P.size = D, P.start = N, P.skip = B), P.size > 4 ? P : void 0;
17402
17406
  }
17403
17407
  function p(x, O, T) {
17404
- let { id: D, start: N, end: B, size: R } = l;
17405
- if (l.next(), R >= 0 && D < o) {
17408
+ let { id: D, start: N, end: B, size: I } = l;
17409
+ if (l.next(), I >= 0 && D < o) {
17406
17410
  let P = T;
17407
- if (R > 4) {
17408
- let U = l.pos - (R - 4);
17411
+ if (I > 4) {
17412
+ let U = l.pos - (I - 4);
17409
17413
  for (; l.pos > U; )
17410
17414
  T = p(x, O, T);
17411
17415
  }
17412
17416
  O[--T] = P, O[--T] = B - x, O[--T] = N - x, O[--T] = D;
17413
- } else R == -3 ? c = D : R == -4 && (h = D);
17417
+ } else I == -3 ? c = D : I == -4 && (h = D);
17414
17418
  return T;
17415
17419
  }
17416
17420
  let b = [], w = [];
@@ -20002,7 +20006,7 @@ const _g = (n, e, t) => Fr(n, (i) => {
20002
20006
  if (n.readOnly)
20003
20007
  return !1;
20004
20008
  let t = n.changeByRange((i) => ({
20005
- changes: { from: i.from, to: i.to, insert: ce.of(["", ""]) },
20009
+ changes: { from: i.from, to: i.to, insert: he.of(["", ""]) },
20006
20010
  range: E.cursor(i.from)
20007
20011
  }));
20008
20012
  return e(n.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
@@ -20100,7 +20104,7 @@ function Eg(n) {
20100
20104
  a ? { from: s, to: o } = a : s > l.from && s < l.from + 100 && !/\S/.test(l.text.slice(0, s)) && (s = l.from);
20101
20105
  let f = ["", Sr(e, h)];
20102
20106
  return a && f.push(Sr(e, c.lineIndent(l.from, -1))), {
20103
- changes: { from: s, to: o, insert: ce.of(f) },
20107
+ changes: { from: s, to: o, insert: he.of(f) },
20104
20108
  range: E.cursor(s + 1 + f[1].length)
20105
20109
  };
20106
20110
  });
@@ -24495,10 +24499,10 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
24495
24499
  ), c = Ti(), h = Dt(t.path), f = Le(""), u = Le(null), d = Le(!0);
24496
24500
  Je(
24497
24501
  () => i.value,
24498
- (R) => {
24502
+ (I) => {
24499
24503
  if (d.value) {
24500
24504
  try {
24501
- f.value = JSON.stringify(R || {}, null, 2), u.value = null;
24505
+ f.value = JSON.stringify(I || {}, null, 2), u.value = null;
24502
24506
  } catch {
24503
24507
  f.value = "{}";
24504
24508
  }
@@ -24508,15 +24512,15 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
24508
24512
  { immediate: !0 }
24509
24513
  );
24510
24514
  const m = ee(() => t.schema["x-json-height"] || "300px"), y = ee(() => t.schema["x-json-dark-theme"] === !0);
24511
- function g(R) {
24512
- const P = R.state.doc.toString(), U = R.state.selection.main.head;
24515
+ function g(I) {
24516
+ const P = I.state.doc.toString(), U = I.state.selection.main.head;
24513
24517
  try {
24514
- const I = JSON.parse(P), Z = JSON.stringify(I, null, 2), de = P.length > 0 ? U / P.length : 0, Se = Math.min(
24515
- Math.round(de * Z.length),
24518
+ const R = JSON.parse(P), Z = JSON.stringify(R, null, 2), ce = P.length > 0 ? U / P.length : 0, Se = Math.min(
24519
+ Math.round(ce * Z.length),
24516
24520
  Z.length
24517
24521
  );
24518
- return R.dispatch({
24519
- changes: { from: 0, to: R.state.doc.length, insert: Z },
24522
+ return I.dispatch({
24523
+ changes: { from: 0, to: I.state.doc.length, insert: Z },
24520
24524
  selection: { anchor: Se }
24521
24525
  }), u.value = null, !0;
24522
24526
  } catch {
@@ -24525,10 +24529,10 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
24525
24529
  }
24526
24530
  const p = ee(() => t.schema["x-json-line-numbers"] ?? !0), b = ee(() => t.schema["x-json-lint-gutter"] ?? !0), w = ee(() => t.schema["x-json-tab-size"] ?? 2), S = ee(() => t.schema["x-json-indent-with-tab"] ?? !0), x = ee(() => {
24527
24531
  var P, U;
24528
- const R = t.schema["x-json-format-key"];
24529
- return R !== void 0 ? R : ((U = (P = c == null ? void 0 : c.componentDefaults) == null ? void 0 : P.jsonEditor) == null ? void 0 : U.formatKey) ?? "Ctrl-.";
24532
+ const I = t.schema["x-json-format-key"];
24533
+ return I !== void 0 ? I : ((U = (P = c == null ? void 0 : c.componentDefaults) == null ? void 0 : P.jsonEditor) == null ? void 0 : U.formatKey) ?? "Ctrl-.";
24530
24534
  }), O = ee(() => {
24531
- const R = [
24535
+ const I = [
24532
24536
  VP(),
24533
24537
  // Add keyboard shortcut for formatting
24534
24538
  Nr.of([{
@@ -24536,18 +24540,18 @@ const zP = "#e5c07b", Fu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Ls = "#abb
24536
24540
  run: g
24537
24541
  }])
24538
24542
  ];
24539
- return p.value ? R.push(Tp()) : R.push(z.theme({
24543
+ return p.value ? I.push(Tp()) : I.push(z.theme({
24540
24544
  ".cm-gutters": {
24541
24545
  display: "none !important"
24542
24546
  }
24543
- })), b.value && (R.push(aP(jP())), R.push(yP())), y.value && R.push(ZP), R;
24547
+ })), b.value && (I.push(aP(jP())), I.push(yP())), y.value && I.push(ZP), I;
24544
24548
  }), T = ee(() => u.value || l.value), D = ee(
24545
24549
  () => `${p.value}-${b.value}-${y.value}-${x.value}`
24546
24550
  );
24547
- function N(R, P) {
24551
+ function N(I, P) {
24548
24552
  if (!d.value)
24549
24553
  try {
24550
- const U = JSON.parse(R);
24554
+ const U = JSON.parse(I);
24551
24555
  r(U), u.value = null;
24552
24556
  } catch (U) {
24553
24557
  u.value = U.message;
@@ -24576,7 +24580,7 @@ function h2(n, e, t, i, r, s) {
24576
24580
  class: "quickform-label"
24577
24581
  }, [
24578
24582
  vt(
24579
- ue(i.label) + " ",
24583
+ de(i.label) + " ",
24580
24584
  1
24581
24585
  /* TEXT */
24582
24586
  ),
@@ -24599,7 +24603,7 @@ function h2(n, e, t, i, r, s) {
24599
24603
  G(
24600
24604
  "kbd",
24601
24605
  null,
24602
- ue(i.formatKey),
24606
+ de(i.formatKey),
24603
24607
  1
24604
24608
  /* TEXT */
24605
24609
  ),
@@ -24629,7 +24633,7 @@ function h2(n, e, t, i, r, s) {
24629
24633
  i.displayError ? (j(), q(
24630
24634
  "div",
24631
24635
  c2,
24632
- ue(i.displayError),
24636
+ de(i.displayError),
24633
24637
  1
24634
24638
  /* TEXT */
24635
24639
  )) : X("v-if", !0)
@@ -24687,7 +24691,7 @@ function C2(n, e, t, i, r, s) {
24687
24691
  }, [
24688
24692
  i.label ? (j(), q("legend", m2, [
24689
24693
  vt(
24690
- ue(i.label) + " ",
24694
+ de(i.label) + " ",
24691
24695
  1
24692
24696
  /* TEXT */
24693
24697
  ),
@@ -24705,7 +24709,7 @@ function C2(n, e, t, i, r, s) {
24705
24709
  key: 0,
24706
24710
  for: `${i.fieldId}-select`,
24707
24711
  class: "quickform-select-label"
24708
- }, ue(i.selectLabel), 9, v2)) : X("v-if", !0),
24712
+ }, de(i.selectLabel), 9, v2)) : X("v-if", !0),
24709
24713
  G("select", {
24710
24714
  id: `${i.fieldId}-select`,
24711
24715
  value: i.selectedIndex,
@@ -24719,7 +24723,7 @@ function C2(n, e, t, i, r, s) {
24719
24723
  Wi(i.optionLabels, (o, l) => (j(), q("option", {
24720
24724
  key: l,
24721
24725
  value: l
24722
- }, ue(o), 9, k2))),
24726
+ }, de(o), 9, k2))),
24723
24727
  128
24724
24728
  /* KEYED_FRAGMENT */
24725
24729
  ))
@@ -24737,7 +24741,7 @@ function C2(n, e, t, i, r, s) {
24737
24741
  i.errorMessage ? (j(), q(
24738
24742
  "div",
24739
24743
  x2,
24740
- ue(i.errorMessage),
24744
+ de(i.errorMessage),
24741
24745
  1
24742
24746
  /* TEXT */
24743
24747
  )) : X("v-if", !0)
@@ -24918,11 +24922,11 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
24918
24922
  }),
24919
24923
  emits: /* @__PURE__ */ fh(["submit", "validation", "ready"], ["update:modelValue"]),
24920
24924
  setup(n, { expose: e, emit: t }) {
24921
- var N, B, R, P, U;
24925
+ var N, B, I, P, U;
24922
24926
  e();
24923
24927
  const i = n, r = y0(n, "modelValue"), s = t, o = i.options.registry || D2(), l = ee(() => {
24924
- const I = i.schema;
24925
- return I["x-render"] || I.oneOf || I.anyOf ? !0 : i.schema.type === "object" && !i.schema.properties;
24928
+ const R = i.schema;
24929
+ return R["x-render"] || R.oneOf || R.anyOf ? !0 : i.schema.type === "object" && !i.schema.properties;
24926
24930
  }), a = l.value ? {
24927
24931
  [rn]: r.value && typeof r.value == "object" && Object.keys(r.value).length > 0 ? r.value : i.options.useDefaults !== !1 ? ni.getDefaultValue(i.schema) : {}
24928
24932
  } : i.options.useDefaults !== !1 ? { ...ni.getDefaultValue(i.schema), ...r.value } : { ...r.value }, { handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m } = S0({
@@ -24981,7 +24985,7 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
24981
24985
  },
24982
24986
  array: {
24983
24987
  ...g.array,
24984
- ...(R = i.options.componentDefaults) == null ? void 0 : R.array
24988
+ ...(I = i.options.componentDefaults) == null ? void 0 : I.array
24985
24989
  },
24986
24990
  number: {
24987
24991
  ...g.number,
@@ -25003,68 +25007,73 @@ const rn = "__root__", R2 = /* @__PURE__ */ it({
25003
25007
  });
25004
25008
  });
25005
25009
  let w = !1, S = !1;
25006
- Je(r, (I) => {
25010
+ Je(r, (R) => {
25007
25011
  if (!S) {
25008
25012
  if (w = !0, l.value) {
25009
- const Z = I && typeof I == "object" && Object.keys(I).length > 0 ? I : i.options.useDefaults !== !1 ? ni.getDefaultValue(i.schema) : {};
25013
+ const Z = R && typeof R == "object" && Object.keys(R).length > 0 ? R : i.options.useDefaults !== !1 ? ni.getDefaultValue(i.schema) : {};
25010
25014
  u(rn, Z);
25011
25015
  } else
25012
- I && f(I);
25016
+ R && f(R);
25013
25017
  Vr(() => {
25014
25018
  w = !1;
25015
25019
  });
25016
25020
  }
25017
25021
  }), l.value ? Je(
25018
25022
  () => h[rn],
25019
- (I) => {
25020
- w || (S = !0, r.value = I, Vr(() => {
25023
+ (R) => {
25024
+ w || (S = !0, r.value = R, Vr(() => {
25021
25025
  S = !1;
25022
25026
  }));
25023
25027
  },
25024
25028
  { deep: !0 }
25025
25029
  ) : Je(
25026
25030
  h,
25027
- (I) => {
25028
- w || (S = !0, r.value = I, Vr(() => {
25031
+ (R) => {
25032
+ w || (S = !0, r.value = R, Vr(() => {
25029
25033
  S = !1;
25030
25034
  }));
25031
25035
  },
25032
25036
  { deep: !0 }
25033
25037
  ), Je(
25034
25038
  [d, m],
25035
- ([I, Z]) => {
25039
+ ([R, Z]) => {
25036
25040
  s("validation", {
25037
25041
  valid: Z.valid,
25038
- errors: I
25042
+ errors: R
25039
25043
  });
25040
25044
  },
25041
25045
  { immediate: !0 }
25042
25046
  );
25043
- const x = c((I) => {
25044
- const Z = l.value ? I[rn] : I, de = ni.validate(i.schema, Z);
25045
- de.valid ? s("submit", Z) : console.error("Form validation failed:", de.errors);
25046
- }), O = ee(() => i.schema.type !== "object" || !i.schema.properties ? [] : Object.entries(i.schema.properties).map(([I, Z]) => ({
25047
- key: I,
25048
- schema: Z,
25049
- path: I
25050
- }))), T = ee(() => {
25051
- var de, Se;
25052
- const I = ((Se = (de = i.options.componentDefaults) == null ? void 0 : de.layout) == null ? void 0 : Se.fieldGap) ?? "1rem";
25047
+ const x = c((R) => {
25048
+ const Z = l.value ? R[rn] : R, ce = ni.validate(i.schema, Z);
25049
+ ce.valid ? s("submit", Z) : console.error("Form validation failed:", ce.errors);
25050
+ }), O = ee(() => {
25051
+ if (i.schema.type !== "object" || !i.schema.properties)
25052
+ return [];
25053
+ const R = i.schema["x-field-order"];
25054
+ return (R && Array.isArray(R) && R.length > 0 ? R : Object.keys(i.schema.properties)).filter((ce) => ce in i.schema.properties).map((ce) => ({
25055
+ key: ce,
25056
+ schema: i.schema.properties[ce],
25057
+ path: ce
25058
+ }));
25059
+ }), T = ee(() => {
25060
+ var ce, Se;
25061
+ const R = ((Se = (ce = i.options.componentDefaults) == null ? void 0 : ce.layout) == null ? void 0 : Se.fieldGap) ?? "1rem";
25053
25062
  return {
25054
25063
  xs: "4px",
25055
25064
  sm: "8px",
25056
25065
  md: "16px",
25057
25066
  lg: "24px",
25058
25067
  xl: "32px"
25059
- }[I] ?? I;
25068
+ }[R] ?? R;
25060
25069
  }), D = { props: i, model: r, emit: s, registry: o, SINGLE_FIELD_PATH: rn, isSingleField: l, initialValues: a, handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m, defaultLabels: y, defaultComponentDefaults: g, formContext: p, isReady: b, get isUpdatingFromModel() {
25061
25070
  return w;
25062
- }, set isUpdatingFromModel(I) {
25063
- w = I;
25071
+ }, set isUpdatingFromModel(R) {
25072
+ w = R;
25064
25073
  }, get isUpdatingModel() {
25065
25074
  return S;
25066
- }, set isUpdatingModel(I) {
25067
- S = I;
25075
+ }, set isUpdatingModel(R) {
25076
+ S = R;
25068
25077
  }, onSubmit: x, properties: O, fieldGapStyle: T, FieldRenderer: Tr };
25069
25078
  return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
25070
25079
  }