@quickflo/quickforms-vue 1.19.0 → 1.19.2

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 u0, inject as Gu, computed as ee, defineComponent as nt, ref as Fe, createElementBlock as V, openBlock as j, createElementVNode as J, withDirectives as ci, createCommentVNode as Z, createTextVNode as vt, toDisplayString as pe, vModelText as Fs, normalizeClass as Ju, vModelDynamic as ja, vModelCheckbox as d0, Fragment as Tt, renderList as Ui, vModelSelect as m0, createBlock as kn, resolveDynamicComponent as p0, createVNode as Yu, watch as Ne, shallowRef as el, toRaw as Kn, onMounted as vo, onBeforeUnmount as qa, h as g0, normalizeStyle as Qu, mergeModels as uh, useModel as y0, reactive as b0, markRaw as v0, nextTick as zr, renderSlot as w0 } from "vue";
1
+ import { provide as u0, inject as Gu, computed as Q, defineComponent as nt, ref as Fe, createElementBlock as V, openBlock as j, createElementVNode as J, withDirectives as hi, createCommentVNode as ee, createTextVNode as vt, toDisplayString as pe, vModelText as Fs, normalizeClass as Ju, vModelDynamic as ja, vModelCheckbox as d0, Fragment as Tt, renderList as Ui, vModelSelect as m0, watch as Ee, createBlock as kn, resolveDynamicComponent as p0, createVNode as Yu, shallowRef as el, toRaw as Kn, onMounted as vo, onBeforeUnmount as qa, h as g0, normalizeStyle as Qu, mergeModels as uh, useModel as y0, reactive as b0, markRaw as v0, nextTick as zr, renderSlot as w0 } from "vue";
2
2
  import { useField as k0, useForm as S0 } from "vee-validate";
3
3
  class x0 {
4
4
  constructor() {
@@ -459,8 +459,8 @@ var Il = {};
459
459
  const { nodes: O } = this;
460
460
  let K = O.length;
461
461
  for (; K--; ) {
462
- const Q = O[K];
463
- Q.optimizeNames(v, k) || (D(v, Q.names), O.splice(K, 1));
462
+ const X = O[K];
463
+ X.optimizeNames(v, k) || (D(v, X.names), O.splice(K, 1));
464
464
  }
465
465
  return O.length > 0 ? this : void 0;
466
466
  }
@@ -497,7 +497,7 @@ var Il = {};
497
497
  k = this.else = Array.isArray(O) ? new g(O) : O;
498
498
  }
499
499
  if (k)
500
- return v === !1 ? k instanceof p ? k : k.nodes : this.nodes.length ? this : new p(re(v), k instanceof p ? [k] : k.nodes);
500
+ return v === !1 ? k instanceof p ? k : k.nodes : this.nodes.length ? this : new p(ne(v), k instanceof p ? [k] : k.nodes);
501
501
  if (!(v === !1 || !this.nodes.length))
502
502
  return this;
503
503
  }
@@ -535,8 +535,8 @@ var Il = {};
535
535
  super(), this.varKind = v, this.name = k, this.from = O, this.to = K;
536
536
  }
537
537
  render(v) {
538
- const k = v.es5 ? t.varKinds.var : this.varKind, { name: O, from: K, to: Q } = this;
539
- return `for(${k} ${O}=${K}; ${O}<${Q}; ${O}++)` + super.render(v);
538
+ const k = v.es5 ? t.varKinds.var : this.varKind, { name: O, from: K, to: X } = this;
539
+ return `for(${k} ${O}=${K}; ${O}<${X}; ${O}++)` + super.render(v);
540
540
  }
541
541
  get names() {
542
542
  const v = B(super.names, this.from);
@@ -639,8 +639,8 @@ var Il = {};
639
639
  return this._extScope.scopeCode(this._values);
640
640
  }
641
641
  _def(v, k, O, K) {
642
- const Q = this._scope.toName(k);
643
- return O !== void 0 && K && (this._constants[Q.str] = O), this._leafNode(new o(v, Q, O)), Q;
642
+ const X = this._scope.toName(k);
643
+ return O !== void 0 && K && (this._constants[X.str] = O), this._leafNode(new o(v, X, O)), X;
644
644
  }
645
645
  // `const` declaration (`var` in es5 mode)
646
646
  const(v, k, O) {
@@ -703,28 +703,28 @@ var Il = {};
703
703
  return this._for(new w(v), k);
704
704
  }
705
705
  // `for` statement for a range of values
706
- forRange(v, k, O, K, Q = this.opts.es5 ? t.varKinds.var : t.varKinds.let) {
706
+ forRange(v, k, O, K, X = this.opts.es5 ? t.varKinds.var : t.varKinds.let) {
707
707
  const me = this._scope.toName(v);
708
- return this._for(new S(Q, me, k, O), () => K(me));
708
+ return this._for(new S(X, me, k, O), () => K(me));
709
709
  }
710
710
  // `for-of` statement (in es5 mode replace with a normal for loop)
711
711
  forOf(v, k, O, K = t.varKinds.const) {
712
- const Q = this._scope.toName(v);
712
+ const X = this._scope.toName(v);
713
713
  if (this.opts.es5) {
714
714
  const me = k instanceof e.Name ? k : this.var("_arr", k);
715
715
  return this.forRange("_i", 0, (0, e._)`${me}.length`, (ue) => {
716
- this.var(Q, (0, e._)`${me}[${ue}]`), O(Q);
716
+ this.var(X, (0, e._)`${me}[${ue}]`), O(X);
717
717
  });
718
718
  }
719
- return this._for(new x("of", K, Q, k), () => O(Q));
719
+ return this._for(new x("of", K, X, k), () => O(X));
720
720
  }
721
721
  // `for-in` statement.
722
722
  // With option `ownProperties` replaced with a `for-of` loop for object keys
723
723
  forIn(v, k, O, K = this.opts.es5 ? t.varKinds.var : t.varKinds.const) {
724
724
  if (this.opts.ownProperties)
725
725
  return this.forOf(v, (0, e._)`Object.keys(${k})`, O);
726
- const Q = this._scope.toName(v);
727
- return this._for(new x("in", K, Q, k), () => O(Q));
726
+ const X = this._scope.toName(v);
727
+ return this._for(new x("in", K, X, k), () => O(X));
728
728
  }
729
729
  // end `for` loop
730
730
  endFor() {
@@ -751,8 +751,8 @@ var Il = {};
751
751
  throw new Error('CodeGen: "try" without "catch" and "finally"');
752
752
  const K = new $();
753
753
  if (this._blockNode(K), this.code(v), k) {
754
- const Q = this.name("e");
755
- this._currNode = K.catch = new I(Q), k(Q);
754
+ const X = this.name("e");
755
+ this._currNode = K.catch = new I(X), k(X);
756
756
  }
757
757
  return O && (this._currNode = K.finally = new F(), this.code(O)), this._endBlockNode(I, F);
758
758
  }
@@ -830,23 +830,23 @@ var Il = {};
830
830
  return O(_);
831
831
  if (!K(_))
832
832
  return _;
833
- return new e._Code(_._items.reduce((Q, me) => (me instanceof e.Name && (me = O(me)), me instanceof e._Code ? Q.push(...me._items) : Q.push(me), Q), []));
834
- function O(Q) {
835
- const me = k[Q.str];
836
- return me === void 0 || v[Q.str] !== 1 ? Q : (delete v[Q.str], me);
833
+ return new e._Code(_._items.reduce((X, me) => (me instanceof e.Name && (me = O(me)), me instanceof e._Code ? X.push(...me._items) : X.push(me), X), []));
834
+ function O(X) {
835
+ const me = k[X.str];
836
+ return me === void 0 || v[X.str] !== 1 ? X : (delete v[X.str], me);
837
837
  }
838
- function K(Q) {
839
- return Q instanceof e._Code && Q._items.some((me) => me instanceof e.Name && v[me.str] === 1 && k[me.str] !== void 0);
838
+ function K(X) {
839
+ return X instanceof e._Code && X._items.some((me) => me instanceof e.Name && v[me.str] === 1 && k[me.str] !== void 0);
840
840
  }
841
841
  }
842
842
  function D(_, v) {
843
843
  for (const k in v)
844
844
  _[k] = (_[k] || 0) - (v[k] || 0);
845
845
  }
846
- function re(_) {
846
+ function ne(_) {
847
847
  return typeof _ == "boolean" || typeof _ == "number" || _ === null ? !_ : (0, e._)`!${E(_)}`;
848
848
  }
849
- n.not = re;
849
+ n.not = ne;
850
850
  const te = C(n.operators.AND);
851
851
  function de(..._) {
852
852
  return _.reduce(te);
@@ -1136,7 +1136,7 @@ function od(n, e) {
1136
1136
  };
1137
1137
  (0, U0.reportError)(r, J0, void 0, e);
1138
1138
  }
1139
- var Ee = {}, Ki = {};
1139
+ var $e = {}, Ki = {};
1140
1140
  Object.defineProperty(Ki, "__esModule", { value: !0 });
1141
1141
  Ki.getRules = Ki.isJSONType = void 0;
1142
1142
  const X0 = ["string", "number", "integer", "boolean", "null", "object", "array"], Z0 = new Set(X0);
@@ -1160,30 +1160,30 @@ function ty() {
1160
1160
  };
1161
1161
  }
1162
1162
  Ki.getRules = ty;
1163
- var oi = {};
1164
- Object.defineProperty(oi, "__esModule", { value: !0 });
1165
- oi.shouldUseRule = oi.shouldUseGroup = oi.schemaHasRulesForType = void 0;
1163
+ var li = {};
1164
+ Object.defineProperty(li, "__esModule", { value: !0 });
1165
+ li.shouldUseRule = li.shouldUseGroup = li.schemaHasRulesForType = void 0;
1166
1166
  function iy({ schema: n, self: e }, t) {
1167
1167
  const i = e.RULES.types[t];
1168
1168
  return i && i !== !0 && ld(n, i);
1169
1169
  }
1170
- oi.schemaHasRulesForType = iy;
1170
+ li.schemaHasRulesForType = iy;
1171
1171
  function ld(n, e) {
1172
1172
  return e.rules.some((t) => ad(n, t));
1173
1173
  }
1174
- oi.shouldUseGroup = ld;
1174
+ li.shouldUseGroup = ld;
1175
1175
  function ad(n, e) {
1176
1176
  var t;
1177
1177
  return n[e.keyword] !== void 0 || ((t = e.definition.implements) === null || t === void 0 ? void 0 : t.some((i) => n[i] !== void 0));
1178
1178
  }
1179
- oi.shouldUseRule = ad;
1180
- Object.defineProperty(Ee, "__esModule", { value: !0 });
1181
- Ee.reportTypeError = Ee.checkDataTypes = Ee.checkDataType = Ee.coerceAndCheckDataType = Ee.getJSONTypes = Ee.getSchemaTypes = Ee.DataType = void 0;
1182
- const ny = Ki, ry = oi, sy = Or, se = oe, cd = U;
1179
+ li.shouldUseRule = ad;
1180
+ Object.defineProperty($e, "__esModule", { value: !0 });
1181
+ $e.reportTypeError = $e.checkDataTypes = $e.checkDataType = $e.coerceAndCheckDataType = $e.getJSONTypes = $e.getSchemaTypes = $e.DataType = void 0;
1182
+ const ny = Ki, ry = li, sy = Or, se = oe, cd = U;
1183
1183
  var dn;
1184
1184
  (function(n) {
1185
1185
  n[n.Correct = 0] = "Correct", n[n.Wrong = 1] = "Wrong";
1186
- })(dn || (Ee.DataType = dn = {}));
1186
+ })(dn || ($e.DataType = dn = {}));
1187
1187
  function oy(n) {
1188
1188
  const e = hd(n.type);
1189
1189
  if (e.includes("null")) {
@@ -1196,14 +1196,14 @@ function oy(n) {
1196
1196
  }
1197
1197
  return e;
1198
1198
  }
1199
- Ee.getSchemaTypes = oy;
1199
+ $e.getSchemaTypes = oy;
1200
1200
  function hd(n) {
1201
1201
  const e = Array.isArray(n) ? n : n ? [n] : [];
1202
1202
  if (e.every(ny.isJSONType))
1203
1203
  return e;
1204
1204
  throw new Error("type must be JSONType or JSONType[]: " + e.join(","));
1205
1205
  }
1206
- Ee.getJSONTypes = hd;
1206
+ $e.getJSONTypes = hd;
1207
1207
  function ly(n, e) {
1208
1208
  const { gen: t, data: i, opts: r } = n, s = ay(e, r.coerceTypes), o = e.length > 0 && !(s.length === 0 && e.length === 1 && (0, ry.schemaHasRulesForType)(n, e[0]));
1209
1209
  if (o) {
@@ -1214,7 +1214,7 @@ function ly(n, e) {
1214
1214
  }
1215
1215
  return o;
1216
1216
  }
1217
- Ee.coerceAndCheckDataType = ly;
1217
+ $e.coerceAndCheckDataType = ly;
1218
1218
  const fd = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1219
1219
  function ay(n, e) {
1220
1220
  return e ? n.filter((t) => fd.has(t) || e === "array" && t === "array") : [];
@@ -1281,7 +1281,7 @@ function Ll(n, e, t, i = dn.Correct) {
1281
1281
  return (0, se.and)((0, se._)`typeof ${e} == "number"`, l, t ? (0, se._)`isFinite(${e})` : se.nil);
1282
1282
  }
1283
1283
  }
1284
- Ee.checkDataType = Ll;
1284
+ $e.checkDataType = Ll;
1285
1285
  function Ha(n, e, t, i) {
1286
1286
  if (n.length === 1)
1287
1287
  return Ll(n[0], e, t, i);
@@ -1297,7 +1297,7 @@ function Ha(n, e, t, i) {
1297
1297
  r = (0, se.and)(r, Ll(o, e, t, i));
1298
1298
  return r;
1299
1299
  }
1300
- Ee.checkDataTypes = Ha;
1300
+ $e.checkDataTypes = Ha;
1301
1301
  const fy = {
1302
1302
  message: ({ schema: n }) => `must be ${n}`,
1303
1303
  params: ({ schema: n, schemaValue: e }) => typeof n == "string" ? (0, se._)`{type: ${n}}` : (0, se._)`{type: ${e}}`
@@ -1306,7 +1306,7 @@ function Wa(n) {
1306
1306
  const e = uy(n);
1307
1307
  (0, sy.reportError)(e, fy);
1308
1308
  }
1309
- Ee.reportTypeError = Wa;
1309
+ $e.reportTypeError = Wa;
1310
1310
  function uy(n) {
1311
1311
  const { gen: e, data: t, schema: i } = n, r = (0, cd.schemaRefOrVal)(n, i, "type");
1312
1312
  return {
@@ -1348,7 +1348,7 @@ function ph(n, e, t) {
1348
1348
  var Ut = {}, le = {};
1349
1349
  Object.defineProperty(le, "__esModule", { value: !0 });
1350
1350
  le.validateUnion = le.validateArray = le.usePattern = le.callValidateCode = le.schemaProperties = le.allSchemaProperties = le.noPropertyInData = le.propertyInData = le.isOwnProperty = le.hasPropFunc = le.reportMissingProp = le.checkMissingProp = le.checkReportMissingProp = void 0;
1351
- const Se = oe, Ua = U, pi = ei, py = U;
1351
+ const Se = oe, Ua = U, gi = ei, py = U;
1352
1352
  function gy(n, e) {
1353
1353
  const { gen: t, data: i, it: r } = n;
1354
1354
  t.if(Ga(t, i, e, r.opts.ownProperties), () => {
@@ -1396,12 +1396,12 @@ function wy(n, e) {
1396
1396
  le.schemaProperties = wy;
1397
1397
  function ky({ schemaCode: n, data: e, it: { gen: t, topSchemaRef: i, schemaPath: r, errorPath: s }, it: o }, l, a, c) {
1398
1398
  const h = c ? (0, Se._)`${n}, ${e}, ${i}${r}` : e, f = [
1399
- [pi.default.instancePath, (0, Se.strConcat)(pi.default.instancePath, s)],
1400
- [pi.default.parentData, o.parentData],
1401
- [pi.default.parentDataProperty, o.parentDataProperty],
1402
- [pi.default.rootData, pi.default.rootData]
1399
+ [gi.default.instancePath, (0, Se.strConcat)(gi.default.instancePath, s)],
1400
+ [gi.default.parentData, o.parentData],
1401
+ [gi.default.parentDataProperty, o.parentDataProperty],
1402
+ [gi.default.rootData, gi.default.rootData]
1403
1403
  ];
1404
- o.opts.dynamicRef && f.push([pi.default.dynamicAnchors, pi.default.dynamicAnchors]);
1404
+ o.opts.dynamicRef && f.push([gi.default.dynamicAnchors, gi.default.dynamicAnchors]);
1405
1405
  const u = (0, Se._)`${h}, ${t.object(...f)}`;
1406
1406
  return a !== Se.nil ? (0, Se._)`${l}.call(${a}, ${u})` : (0, Se._)`${l}(${u})`;
1407
1407
  }
@@ -1797,7 +1797,7 @@ function Gy(n, e) {
1797
1797
  Ve.getSchemaRefs = Gy;
1798
1798
  Object.defineProperty(Pt, "__esModule", { value: !0 });
1799
1799
  Pt.getData = Pt.KeywordCxt = Pt.validateFunctionCode = void 0;
1800
- const kd = Sn, yh = Ee, Ja = oi, js = Ee, Jy = wo, er = Ut, tl = _i, Y = oe, ie = ei, Yy = Ve, li = U, jn = Or;
1800
+ const kd = Sn, yh = $e, Ja = li, js = $e, Jy = wo, er = Ut, tl = _i, Y = oe, ie = ei, Yy = Ve, ai = U, jn = Or;
1801
1801
  function Qy(n) {
1802
1802
  if (Cd(n) && (_d(n), xd(n))) {
1803
1803
  eb(n);
@@ -1860,7 +1860,7 @@ function nb(n, e) {
1860
1860
  Md(n, s), i.var(e, (0, Y._)`${s} === ${ie.default.errors}`);
1861
1861
  }
1862
1862
  function _d(n) {
1863
- (0, li.checkUnknownRules)(n), rb(n);
1863
+ (0, ai.checkUnknownRules)(n), rb(n);
1864
1864
  }
1865
1865
  function Md(n, e) {
1866
1866
  if (n.opts.jtd)
@@ -1870,11 +1870,11 @@ function Md(n, e) {
1870
1870
  }
1871
1871
  function rb(n) {
1872
1872
  const { schema: e, errSchemaPath: t, opts: i, self: r } = n;
1873
- e.$ref && i.ignoreKeywordsWithRef && (0, li.schemaHasRulesButRef)(e, r.RULES) && r.logger.warn(`$ref: keywords ignored in schema at path "${t}"`);
1873
+ e.$ref && i.ignoreKeywordsWithRef && (0, ai.schemaHasRulesButRef)(e, r.RULES) && r.logger.warn(`$ref: keywords ignored in schema at path "${t}"`);
1874
1874
  }
1875
1875
  function sb(n) {
1876
1876
  const { schema: e, opts: t } = n;
1877
- e.default !== void 0 && t.useDefaults && t.strictSchema && (0, li.checkStrictMode)(n, "default is ignored in the schema root");
1877
+ e.default !== void 0 && t.useDefaults && t.strictSchema && (0, ai.checkStrictMode)(n, "default is ignored in the schema root");
1878
1878
  }
1879
1879
  function ob(n) {
1880
1880
  const e = n.schema[n.opts.schemaId];
@@ -1902,7 +1902,7 @@ function cb({ gen: n, evaluated: e, props: t, items: i }) {
1902
1902
  }
1903
1903
  function vh(n, e, t, i) {
1904
1904
  const { gen: r, schema: s, data: o, allErrors: l, opts: a, self: c } = n, { RULES: h } = c;
1905
- if (s.$ref && (a.ignoreKeywordsWithRef || !(0, li.schemaHasRulesButRef)(s, h))) {
1905
+ if (s.$ref && (a.ignoreKeywordsWithRef || !(0, ai.schemaHasRulesButRef)(s, h))) {
1906
1906
  r.block(() => Td(n, "$ref", h.all.$ref.definition));
1907
1907
  return;
1908
1908
  }
@@ -1963,11 +1963,11 @@ function pb(n, e) {
1963
1963
  }
1964
1964
  function Ya(n, e) {
1965
1965
  const t = n.schemaEnv.baseId + n.errSchemaPath;
1966
- e += ` at "${t}" (strictTypes)`, (0, li.checkStrictMode)(n, e, n.opts.strictTypes);
1966
+ e += ` at "${t}" (strictTypes)`, (0, ai.checkStrictMode)(n, e, n.opts.strictTypes);
1967
1967
  }
1968
1968
  class Pd {
1969
1969
  constructor(e, t, i) {
1970
- if ((0, er.validateKeywordUsage)(e, t, i), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = i, this.data = e.data, this.schema = e.schema[i], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, li.schemaRefOrVal)(e, this.schema, i, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data)
1970
+ if ((0, er.validateKeywordUsage)(e, t, i), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = i, this.data = e.data, this.schema = e.schema[i], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, ai.schemaRefOrVal)(e, this.schema, i, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data)
1971
1971
  this.schemaCode = e.gen.const("vSchema", Ed(this.$data, e));
1972
1972
  else if (this.schemaCode = this.schemaValue, !(0, er.validSchemaType)(this.schema, t.schemaType, t.allowUndefined))
1973
1973
  throw new Error(`${i} value must be ${JSON.stringify(t.schemaType)}`);
@@ -2058,7 +2058,7 @@ class Pd {
2058
2058
  }
2059
2059
  mergeEvaluated(e, t) {
2060
2060
  const { it: i, gen: r } = this;
2061
- i.opts.unevaluated && (i.props !== !0 && e.props !== void 0 && (i.props = li.mergeEvaluated.props(r, e.props, i.props, t)), i.items !== !0 && e.items !== void 0 && (i.items = li.mergeEvaluated.items(r, e.items, i.items, t)));
2061
+ i.opts.unevaluated && (i.props !== !0 && e.props !== void 0 && (i.props = ai.mergeEvaluated.props(r, e.props, i.props, t)), i.items !== !0 && e.items !== void 0 && (i.items = ai.mergeEvaluated.items(r, e.items, i.items, t)));
2062
2062
  }
2063
2063
  mergeValidEvaluated(e, t) {
2064
2064
  const { it: i, gen: r } = this;
@@ -2098,7 +2098,7 @@ function Ed(n, { dataLevel: e, dataNames: t, dataPathArr: i }) {
2098
2098
  let o = s;
2099
2099
  const l = r.split("/");
2100
2100
  for (const c of l)
2101
- c && (s = (0, Y._)`${s}${(0, Y.getProperty)((0, li.unescapeJsonPointer)(c))}`, o = (0, Y._)`${o} && ${s}`);
2101
+ c && (s = (0, Y._)`${s}${(0, Y.getProperty)((0, ai.unescapeJsonPointer)(c))}`, o = (0, Y._)`${o} && ${s}`);
2102
2102
  return o;
2103
2103
  function a(c, h) {
2104
2104
  return `Cannot access ${c} ${h} levels up, current level is ${e}`;
@@ -2585,19 +2585,19 @@ var ev = {
2585
2585
  const { normalizeIPv6: tv, removeDotSegments: Gn, recomposeAuthority: iv, normalizeComponentEncoding: Hr, isIPv4: nv, nonSimpleDomain: rv } = Nd, { SCHEMES: sv, getSchemeHandler: qd } = ev;
2586
2586
  function ov(n, e) {
2587
2587
  return typeof n == "string" ? n = /** @type {T} */
2588
- Kt(hi(n, e), e) : typeof n == "object" && (n = /** @type {T} */
2589
- hi(Kt(n, e), e)), n;
2588
+ Kt(fi(n, e), e) : typeof n == "object" && (n = /** @type {T} */
2589
+ fi(Kt(n, e), e)), n;
2590
2590
  }
2591
2591
  function lv(n, e, t) {
2592
- const i = t ? Object.assign({ scheme: "null" }, t) : { scheme: "null" }, r = Vd(hi(n, i), hi(e, i), i, !0);
2592
+ const i = t ? Object.assign({ scheme: "null" }, t) : { scheme: "null" }, r = Vd(fi(n, i), fi(e, i), i, !0);
2593
2593
  return i.skipEscape = !0, Kt(r, i);
2594
2594
  }
2595
2595
  function Vd(n, e, t, i) {
2596
2596
  const r = {};
2597
- return i || (n = hi(Kt(n, t), t), e = hi(Kt(e, t), t)), t = t || {}, !t.tolerant && e.scheme ? (r.scheme = e.scheme, r.userinfo = e.userinfo, r.host = e.host, r.port = e.port, r.path = Gn(e.path || ""), r.query = e.query) : (e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0 ? (r.userinfo = e.userinfo, r.host = e.host, r.port = e.port, r.path = Gn(e.path || ""), r.query = e.query) : (e.path ? (e.path[0] === "/" ? r.path = Gn(e.path) : ((n.userinfo !== void 0 || n.host !== void 0 || n.port !== void 0) && !n.path ? r.path = "/" + e.path : n.path ? r.path = n.path.slice(0, n.path.lastIndexOf("/") + 1) + e.path : r.path = e.path, r.path = Gn(r.path)), r.query = e.query) : (r.path = n.path, e.query !== void 0 ? r.query = e.query : r.query = n.query), r.userinfo = n.userinfo, r.host = n.host, r.port = n.port), r.scheme = n.scheme), r.fragment = e.fragment, r;
2597
+ return i || (n = fi(Kt(n, t), t), e = fi(Kt(e, t), t)), t = t || {}, !t.tolerant && e.scheme ? (r.scheme = e.scheme, r.userinfo = e.userinfo, r.host = e.host, r.port = e.port, r.path = Gn(e.path || ""), r.query = e.query) : (e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0 ? (r.userinfo = e.userinfo, r.host = e.host, r.port = e.port, r.path = Gn(e.path || ""), r.query = e.query) : (e.path ? (e.path[0] === "/" ? r.path = Gn(e.path) : ((n.userinfo !== void 0 || n.host !== void 0 || n.port !== void 0) && !n.path ? r.path = "/" + e.path : n.path ? r.path = n.path.slice(0, n.path.lastIndexOf("/") + 1) + e.path : r.path = e.path, r.path = Gn(r.path)), r.query = e.query) : (r.path = n.path, e.query !== void 0 ? r.query = e.query : r.query = n.query), r.userinfo = n.userinfo, r.host = n.host, r.port = n.port), r.scheme = n.scheme), r.fragment = e.fragment, r;
2598
2598
  }
2599
2599
  function av(n, e, t) {
2600
- return typeof n == "string" ? (n = unescape(n), n = Kt(Hr(hi(n, t), !0), { ...t, skipEscape: !0 })) : typeof n == "object" && (n = Kt(Hr(n, !0), { ...t, skipEscape: !0 })), typeof e == "string" ? (e = unescape(e), e = Kt(Hr(hi(e, t), !0), { ...t, skipEscape: !0 })) : typeof e == "object" && (e = Kt(Hr(e, !0), { ...t, skipEscape: !0 })), n.toLowerCase() === e.toLowerCase();
2600
+ return typeof n == "string" ? (n = unescape(n), n = Kt(Hr(fi(n, t), !0), { ...t, skipEscape: !0 })) : typeof n == "object" && (n = Kt(Hr(n, !0), { ...t, skipEscape: !0 })), typeof e == "string" ? (e = unescape(e), e = Kt(Hr(fi(e, t), !0), { ...t, skipEscape: !0 })) : typeof e == "object" && (e = Kt(Hr(e, !0), { ...t, skipEscape: !0 })), n.toLowerCase() === e.toLowerCase();
2601
2601
  }
2602
2602
  function Kt(n, e) {
2603
2603
  const t = {
@@ -2625,7 +2625,7 @@ function Kt(n, e) {
2625
2625
  return t.query !== void 0 && r.push("?", t.query), t.fragment !== void 0 && r.push("#", t.fragment), r.join("");
2626
2626
  }
2627
2627
  const cv = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2628
- function hi(n, e) {
2628
+ function fi(n, e) {
2629
2629
  const t = Object.assign({}, e), i = {
2630
2630
  scheme: void 0,
2631
2631
  userinfo: void 0,
@@ -2665,7 +2665,7 @@ const ec = {
2665
2665
  resolveComponent: Vd,
2666
2666
  equal: av,
2667
2667
  serialize: Kt,
2668
- parse: hi
2668
+ parse: fi
2669
2669
  };
2670
2670
  xo.exports = ec;
2671
2671
  xo.exports.default = ec;
@@ -2695,7 +2695,7 @@ Xa.default = zd;
2695
2695
  } }), Object.defineProperty(n, "CodeGen", { enumerable: !0, get: function() {
2696
2696
  return t.CodeGen;
2697
2697
  } });
2698
- const i = Pr, r = Dn, s = Ki, o = lt, l = oe, a = Ve, c = Ee, h = U, f = Db, u = Xa, d = (N, C) => new RegExp(N, C);
2698
+ const i = Pr, r = Dn, s = Ki, o = lt, l = oe, a = Ve, c = $e, h = U, f = Db, u = Xa, d = (N, C) => new RegExp(N, C);
2699
2699
  d.code = "new RegExp";
2700
2700
  const m = ["removeAdditional", "useDefaults", "coerceTypes"], y = /* @__PURE__ */ new Set([
2701
2701
  "validate",
@@ -2733,13 +2733,13 @@ Xa.default = zd;
2733
2733
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2734
2734
  }, b = 200;
2735
2735
  function w(N) {
2736
- var C, E, _, v, k, O, K, Q, me, ue, Ie, tn, jo, qo, Vo, zo, Ho, Wo, Uo, Ko, Go, Jo, Yo, Qo, Xo;
2736
+ var C, E, _, v, k, O, K, X, me, ue, Ne, tn, jo, qo, Vo, zo, Ho, Wo, Uo, Ko, Go, Jo, Yo, Qo, Xo;
2737
2737
  const Fn = N.strict, Zo = (C = N.code) === null || C === void 0 ? void 0 : C.optimize, hh = Zo === !0 || Zo === void 0 ? 1 : Zo || 0, fh = (_ = (E = N.code) === null || E === void 0 ? void 0 : E.regExp) !== null && _ !== void 0 ? _ : d, f0 = (v = N.uriResolver) !== null && v !== void 0 ? v : u.default;
2738
2738
  return {
2739
2739
  strictSchema: (O = (k = N.strictSchema) !== null && k !== void 0 ? k : Fn) !== null && O !== void 0 ? O : !0,
2740
- strictNumbers: (Q = (K = N.strictNumbers) !== null && K !== void 0 ? K : Fn) !== null && Q !== void 0 ? Q : !0,
2740
+ strictNumbers: (X = (K = N.strictNumbers) !== null && K !== void 0 ? K : Fn) !== null && X !== void 0 ? X : !0,
2741
2741
  strictTypes: (ue = (me = N.strictTypes) !== null && me !== void 0 ? me : Fn) !== null && ue !== void 0 ? ue : "log",
2742
- strictTuples: (tn = (Ie = N.strictTuples) !== null && Ie !== void 0 ? Ie : Fn) !== null && tn !== void 0 ? tn : "log",
2742
+ strictTuples: (tn = (Ne = N.strictTuples) !== null && Ne !== void 0 ? Ne : Fn) !== null && tn !== void 0 ? tn : "log",
2743
2743
  strictRequired: (qo = (jo = N.strictRequired) !== null && jo !== void 0 ? jo : Fn) !== null && qo !== void 0 ? qo : !1,
2744
2744
  code: N.code ? { ...N.code, optimize: hh, regExp: fh } : { optimize: hh, regExp: fh },
2745
2745
  loopRequired: (Vo = N.loopRequired) !== null && Vo !== void 0 ? Vo : b,
@@ -2795,9 +2795,9 @@ Xa.default = zd;
2795
2795
  throw new Error("options.loadSchema should be a function");
2796
2796
  const { loadSchema: _ } = this.opts;
2797
2797
  return v.call(this, C, E);
2798
- async function v(ue, Ie) {
2798
+ async function v(ue, Ne) {
2799
2799
  await k.call(this, ue.$schema);
2800
- const tn = this._addSchema(ue, Ie);
2800
+ const tn = this._addSchema(ue, Ne);
2801
2801
  return tn.validate || O.call(this, tn);
2802
2802
  }
2803
2803
  async function k(ue) {
@@ -2806,24 +2806,24 @@ Xa.default = zd;
2806
2806
  async function O(ue) {
2807
2807
  try {
2808
2808
  return this._compileSchemaEnv(ue);
2809
- } catch (Ie) {
2810
- if (!(Ie instanceof r.default))
2811
- throw Ie;
2812
- return K.call(this, Ie), await Q.call(this, Ie.missingSchema), O.call(this, ue);
2809
+ } catch (Ne) {
2810
+ if (!(Ne instanceof r.default))
2811
+ throw Ne;
2812
+ return K.call(this, Ne), await X.call(this, Ne.missingSchema), O.call(this, ue);
2813
2813
  }
2814
2814
  }
2815
- function K({ missingSchema: ue, missingRef: Ie }) {
2815
+ function K({ missingSchema: ue, missingRef: Ne }) {
2816
2816
  if (this.refs[ue])
2817
- throw new Error(`AnySchema ${ue} is loaded but ${Ie} cannot be resolved`);
2817
+ throw new Error(`AnySchema ${ue} is loaded but ${Ne} cannot be resolved`);
2818
2818
  }
2819
- async function Q(ue) {
2820
- const Ie = await me.call(this, ue);
2821
- this.refs[ue] || await k.call(this, Ie.$schema), this.refs[ue] || this.addSchema(Ie, ue, E);
2819
+ async function X(ue) {
2820
+ const Ne = await me.call(this, ue);
2821
+ this.refs[ue] || await k.call(this, Ne.$schema), this.refs[ue] || this.addSchema(Ne, ue, E);
2822
2822
  }
2823
2823
  async function me(ue) {
2824
- const Ie = this._loading[ue];
2825
- if (Ie)
2826
- return Ie;
2824
+ const Ne = this._loading[ue];
2825
+ if (Ne)
2826
+ return Ne;
2827
2827
  try {
2828
2828
  return await (this._loading[ue] = _(ue));
2829
2829
  } finally {
@@ -2963,10 +2963,10 @@ Xa.default = zd;
2963
2963
  for (const K of k)
2964
2964
  O = O[K];
2965
2965
  for (const K in _) {
2966
- const Q = _[K];
2967
- if (typeof Q != "object")
2966
+ const X = _[K];
2967
+ if (typeof X != "object")
2968
2968
  continue;
2969
- const { $data: me } = Q.definition, ue = O[K];
2969
+ const { $data: me } = X.definition, ue = O[K];
2970
2970
  me && ue && (O[K] = ye(ue));
2971
2971
  }
2972
2972
  }
@@ -2989,12 +2989,12 @@ Xa.default = zd;
2989
2989
  if (typeof C != "boolean")
2990
2990
  throw new Error("schema must be object or boolean");
2991
2991
  }
2992
- let Q = this._cache.get(C);
2993
- if (Q !== void 0)
2994
- return Q;
2992
+ let X = this._cache.get(C);
2993
+ if (X !== void 0)
2994
+ return X;
2995
2995
  _ = (0, a.normalizeId)(O || _);
2996
2996
  const me = a.getSchemaRefs.call(this, C, _);
2997
- return Q = new o.SchemaEnv({ schema: C, schemaId: K, meta: E, baseId: _, localRefs: me }), this._cache.set(Q.schema, Q), k && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = Q), v && this.validateSchema(C, !0), Q;
2997
+ return X = new o.SchemaEnv({ schema: C, schemaId: K, meta: E, baseId: _, localRefs: me }), this._cache.set(X.schema, X), k && !_.startsWith("#") && (_ && this._checkUnique(_), this.refs[_] = X), v && this.validateSchema(C, !0), X;
2998
2998
  }
2999
2999
  _checkUnique(C) {
3000
3000
  if (this.schemas[C] || this.refs[C])
@@ -3087,7 +3087,7 @@ Xa.default = zd;
3087
3087
  if (E && v)
3088
3088
  throw new Error('keyword with "post" flag cannot have "type"');
3089
3089
  const { RULES: k } = this;
3090
- let O = v ? k.post : k.rules.find(({ type: Q }) => Q === E);
3090
+ let O = v ? k.post : k.rules.find(({ type: X }) => X === E);
3091
3091
  if (O || (O = { type: E, rules: [] }, k.rules.push(O)), k.keywords[N] = !0, !C)
3092
3092
  return;
3093
3093
  const K = {
@@ -3098,9 +3098,9 @@ Xa.default = zd;
3098
3098
  schemaType: (0, c.getJSONTypes)(C.schemaType)
3099
3099
  }
3100
3100
  };
3101
- C.before ? re.call(this, O, K, C.before) : O.rules.push(K), k.all[N] = K, (_ = C.implements) === null || _ === void 0 || _.forEach((Q) => this.addKeyword(Q));
3101
+ C.before ? ne.call(this, O, K, C.before) : O.rules.push(K), k.all[N] = K, (_ = C.implements) === null || _ === void 0 || _.forEach((X) => this.addKeyword(X));
3102
3102
  }
3103
- function re(N, C, E) {
3103
+ function ne(N, C, E) {
3104
3104
  const _ = N.rules.findIndex((v) => v.keyword === E);
3105
3105
  _ >= 0 ? N.rules.splice(_, 0, C) : (N.rules.push(C), this.logger.warn(`rule ${E} is not defined`));
3106
3106
  }
@@ -3224,11 +3224,11 @@ const mv = nc, pv = Gi, gv = [
3224
3224
  ic.default = gv;
3225
3225
  var rc = {}, sc = {};
3226
3226
  Object.defineProperty(sc, "__esModule", { value: !0 });
3227
- const Vs = oe, gi = Vs.operators, zs = {
3228
- maximum: { okStr: "<=", ok: gi.LTE, fail: gi.GT },
3229
- minimum: { okStr: ">=", ok: gi.GTE, fail: gi.LT },
3230
- exclusiveMaximum: { okStr: "<", ok: gi.LT, fail: gi.GTE },
3231
- exclusiveMinimum: { okStr: ">", ok: gi.GT, fail: gi.LTE }
3227
+ const Vs = oe, yi = Vs.operators, zs = {
3228
+ maximum: { okStr: "<=", ok: yi.LTE, fail: yi.GT },
3229
+ minimum: { okStr: ">=", ok: yi.GTE, fail: yi.LT },
3230
+ exclusiveMaximum: { okStr: "<", ok: yi.LT, fail: yi.GTE },
3231
+ exclusiveMinimum: { okStr: ">", ok: yi.GT, fail: yi.LTE }
3232
3232
  }, yv = {
3233
3233
  message: ({ keyword: n, schemaCode: e }) => (0, Vs.str)`must be ${zs[n].okStr} ${e}`,
3234
3234
  params: ({ keyword: n, schemaCode: e }) => (0, Vs._)`{comparison: ${zs[n].okStr}, limit: ${e}}`
@@ -3408,7 +3408,7 @@ const Ud = gd;
3408
3408
  Ud.code = 'require("ajv/dist/runtime/equal").default';
3409
3409
  Tr.default = Ud;
3410
3410
  Object.defineProperty(dc, "__esModule", { value: !0 });
3411
- const rl = Ee, je = oe, Iv = U, Nv = Tr, Lv = {
3411
+ const rl = $e, je = oe, Iv = U, Nv = Tr, Lv = {
3412
3412
  message: ({ params: { i: n, j: e } }) => (0, je.str)`must NOT have duplicate items (items ## ${e} and ${n} are identical)`,
3413
3413
  params: ({ params: { i: n, j: e } }) => (0, je._)`{i: ${n}, j: ${e}}`
3414
3414
  }, Bv = {
@@ -4921,7 +4921,7 @@ function Z2(n) {
4921
4921
  function eT(...n) {
4922
4922
  return n.filter(Boolean).join(".");
4923
4923
  }
4924
- const ri = new _w();
4924
+ const si = new _w();
4925
4925
  function Nh(n) {
4926
4926
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n);
4927
4927
  }
@@ -4959,7 +4959,7 @@ function xt(n, e, t = {}) {
4959
4959
  if (r === "NoValidation")
4960
4960
  return !0;
4961
4961
  const I = i == null ? void 0 : i.schema;
4962
- if (I && ri.isRequired(I, n) && ($ == null || $ === "")) {
4962
+ if (I && si.isRequired(I, n) && ($ == null || $ === "")) {
4963
4963
  const G = e.title || ((R = n.split(".").pop()) == null ? void 0 : R.replace(/\[\d+\]$/, "")) || n;
4964
4964
  return a(
4965
4965
  "required",
@@ -5101,10 +5101,10 @@ function xt(n, e, t = {}) {
5101
5101
  }
5102
5102
  );
5103
5103
  e.type === "string" && d.value === void 0 && g("", !1);
5104
- const w = ee(() => {
5104
+ const w = Q(() => {
5105
5105
  var $;
5106
5106
  return t.label !== void 0 ? t.label : n === "__root__" ? e.title || "" : e.title || (($ = n.split(".").pop()) == null ? void 0 : $.replace(/\[\d+\]$/, "")) || n;
5107
- }), S = ee(() => {
5107
+ }), S = Q(() => {
5108
5108
  const $ = Aw(e);
5109
5109
  if ($)
5110
5110
  return i != null && i.hintRenderer ? i.hintRenderer($, {
@@ -5112,14 +5112,14 @@ function xt(n, e, t = {}) {
5112
5112
  path: n,
5113
5113
  value: d.value
5114
5114
  }) : $;
5115
- }), x = ee(() => {
5115
+ }), x = Q(() => {
5116
5116
  var I, F;
5117
5117
  const $ = e["x-hint-mode"];
5118
5118
  return $ || ((F = (I = i == null ? void 0 : i.componentDefaults) == null ? void 0 : I.hints) == null ? void 0 : F.showMode) || "always";
5119
- }), A = ee(() => {
5119
+ }), A = Q(() => {
5120
5120
  const $ = i == null ? void 0 : i.schema;
5121
- return $ ? ri.isRequired($, n) : !1;
5122
- }), P = ee(() => r === "ValidateAndHide" || r === "NoValidation" ? null : m.value);
5121
+ return $ ? si.isRequired($, n) : !1;
5122
+ }), P = Q(() => r === "ValidateAndHide" || r === "NoValidation" ? null : m.value);
5123
5123
  return {
5124
5124
  value: d,
5125
5125
  errorMessage: P,
@@ -5150,9 +5150,9 @@ const Pw = /* @__PURE__ */ nt({
5150
5150
  t.path,
5151
5151
  t.schema,
5152
5152
  { label: t.label }
5153
- ), h = Dt(t.path), f = Fe(!1), u = Fe(!1), d = Fe(!1), m = ee(() => t.schema.format === "password"), y = ee(() => t.schema.format === "email" ? "email" : t.schema.format === "url" || t.schema.format === "uri" ? "url" : t.schema.format === "password" ? f.value ? "text" : "password" : "text"), g = ee(() => t.schema.format === "textarea" || t.schema.maxLength && t.schema.maxLength > 200), p = () => {
5153
+ ), h = Dt(t.path), f = Fe(!1), u = Fe(!1), d = Fe(!1), m = Q(() => t.schema.format === "password"), y = Q(() => t.schema.format === "email" ? "email" : t.schema.format === "url" || t.schema.format === "uri" ? "url" : t.schema.format === "password" ? f.value ? "text" : "password" : "text"), g = Q(() => t.schema.format === "textarea" || t.schema.maxLength && t.schema.maxLength > 200), p = () => {
5154
5154
  f.value = !f.value;
5155
- }, b = ee(() => !a.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? u.value : c.value === "hover" ? d.value : !0), w = { props: t, formContext: i, validationMode: r, value: s, errorMessage: o, label: l, hint: a, hintMode: c, fieldId: h, showPassword: f, isFocused: u, isHovered: d, isPassword: m, inputType: y, isTextarea: g, togglePasswordVisibility: p, showHint: b };
5155
+ }, b = Q(() => !a.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? u.value : c.value === "hover" ? d.value : !0), w = { props: t, formContext: i, validationMode: r, value: s, errorMessage: o, label: l, hint: a, hintMode: c, fieldId: h, showPassword: f, isFocused: u, isHovered: d, isPassword: m, inputType: y, isTextarea: g, togglePasswordVisibility: p, showHint: b };
5156
5156
  return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
5157
5157
  }
5158
5158
  }), ht = (n, e) => {
@@ -5204,9 +5204,9 @@ function Vw(n, e, t, i, r, s) {
5204
5204
  1
5205
5205
  /* TEXT */
5206
5206
  ),
5207
- i.props.schema.required ? (j(), V("span", $w, "*")) : Z("v-if", !0)
5207
+ i.props.schema.required ? (j(), V("span", $w, "*")) : ee("v-if", !0)
5208
5208
  ], 8, Ew),
5209
- i.isTextarea ? ci((j(), V("textarea", {
5209
+ i.isTextarea ? hi((j(), V("textarea", {
5210
5210
  key: 0,
5211
5211
  id: i.fieldId,
5212
5212
  "onUpdate:modelValue": e[0] || (e[0] = (a) => i.value = a),
@@ -5225,7 +5225,7 @@ function Vw(n, e, t, i, r, s) {
5225
5225
  }, null, 40, Dw)), [
5226
5226
  [Fs, i.value]
5227
5227
  ]) : (j(), V("div", Rw, [
5228
- ci(J("input", {
5228
+ hi(J("input", {
5229
5229
  id: i.fieldId,
5230
5230
  "onUpdate:modelValue": e[5] || (e[5] = (a) => i.value = a),
5231
5231
  type: i.inputType,
@@ -5292,7 +5292,7 @@ function Vw(n, e, t, i, r, s) {
5292
5292
  /* CACHED */
5293
5293
  )
5294
5294
  ])]))
5295
- ], 8, Nw)) : Z("v-if", !0)
5295
+ ], 8, Nw)) : ee("v-if", !0)
5296
5296
  ])),
5297
5297
  i.showHint ? (j(), V("div", {
5298
5298
  key: 2,
@@ -5300,14 +5300,14 @@ function Vw(n, e, t, i, r, s) {
5300
5300
  class: "quickform-hint"
5301
5301
  }, [
5302
5302
  J("span", { innerHTML: i.hint }, null, 8, jw)
5303
- ], 8, Fw)) : Z("v-if", !0),
5303
+ ], 8, Fw)) : ee("v-if", !0),
5304
5304
  i.errorMessage ? (j(), V(
5305
5305
  "div",
5306
5306
  qw,
5307
5307
  pe(i.errorMessage),
5308
5308
  1
5309
5309
  /* TEXT */
5310
- )) : Z("v-if", !0)
5310
+ )) : ee("v-if", !0)
5311
5311
  ]);
5312
5312
  }
5313
5313
  const Fh = /* @__PURE__ */ ht(Pw, [["render", Vw], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), zw = /* @__PURE__ */ nt({
@@ -5323,7 +5323,7 @@ const Fh = /* @__PURE__ */ ht(Pw, [["render", Vw], ["__scopeId", "data-v-ad9ab1f
5323
5323
  },
5324
5324
  setup(n, { expose: e }) {
5325
5325
  e();
5326
- const t = n, i = ti(), r = (i == null ? void 0 : i.validationMode) || "ValidateAndShow", { value: s, errorMessage: o, label: l, hint: a, hintMode: c } = xt(t.path, t.schema, { label: t.label }), h = Dt(t.path), f = Fe(!1), u = Fe(!1), d = ee(() => (t.schema.type === "integer", "number")), m = ee(() => t.schema.multipleOf ? t.schema.multipleOf : t.schema.type === "integer" ? 1 : "any"), y = ee(() => !a.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? f.value : c.value === "hover" ? u.value : !0), g = { props: t, formContext: i, validationMode: r, value: s, errorMessage: o, label: l, hint: a, hintMode: c, fieldId: h, isFocused: f, isHovered: u, inputType: d, step: m, showHint: y };
5326
+ const t = n, i = ti(), r = (i == null ? void 0 : i.validationMode) || "ValidateAndShow", { value: s, errorMessage: o, label: l, hint: a, hintMode: c } = xt(t.path, t.schema, { label: t.label }), h = Dt(t.path), f = Fe(!1), u = Fe(!1), d = Q(() => (t.schema.type === "integer", "number")), m = Q(() => t.schema.multipleOf ? t.schema.multipleOf : t.schema.type === "integer" ? 1 : "any"), y = Q(() => !a.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? f.value : c.value === "hover" ? u.value : !0), g = { props: t, formContext: i, validationMode: r, value: s, errorMessage: o, label: l, hint: a, hintMode: c, fieldId: h, isFocused: f, isHovered: u, inputType: d, step: m, showHint: y };
5327
5327
  return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
5328
5328
  }
5329
5329
  }), Hw = { class: "quickform-field quickform-number-field" }, Ww = ["for"], Uw = {
@@ -5344,9 +5344,9 @@ function Qw(n, e, t, i, r, s) {
5344
5344
  1
5345
5345
  /* TEXT */
5346
5346
  ),
5347
- i.props.schema.required ? (j(), V("span", Uw, "*")) : Z("v-if", !0)
5347
+ i.props.schema.required ? (j(), V("span", Uw, "*")) : ee("v-if", !0)
5348
5348
  ], 8, Ww),
5349
- ci(J("input", {
5349
+ hi(J("input", {
5350
5350
  id: i.fieldId,
5351
5351
  "onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
5352
5352
  type: i.inputType,
@@ -5377,14 +5377,14 @@ function Qw(n, e, t, i, r, s) {
5377
5377
  class: "quickform-hint"
5378
5378
  }, [
5379
5379
  J("span", { innerHTML: i.hint }, null, 8, Jw)
5380
- ], 8, Gw)) : Z("v-if", !0),
5380
+ ], 8, Gw)) : ee("v-if", !0),
5381
5381
  i.errorMessage ? (j(), V(
5382
5382
  "div",
5383
5383
  Yw,
5384
5384
  pe(i.errorMessage),
5385
5385
  1
5386
5386
  /* TEXT */
5387
- )) : Z("v-if", !0)
5387
+ )) : ee("v-if", !0)
5388
5388
  ]);
5389
5389
  }
5390
5390
  const jh = /* @__PURE__ */ ht(zw, [["render", Qw], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Xw = /* @__PURE__ */ nt({
@@ -5400,7 +5400,7 @@ const jh = /* @__PURE__ */ ht(zw, [["render", Qw], ["__scopeId", "data-v-7def4a8
5400
5400
  },
5401
5401
  setup(n, { expose: e }) {
5402
5402
  e();
5403
- const t = n, { value: i, errorMessage: r, label: s, hint: o, hintMode: l } = xt(t.path, t.schema, { label: t.label }), a = Dt(t.path), c = Fe(!1), h = Fe(!1), f = ee(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? c.value : l.value === "hover" ? h.value : !0), u = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, fieldId: a, isFocused: c, isHovered: h, showHint: f };
5403
+ const t = n, { value: i, errorMessage: r, label: s, hint: o, hintMode: l } = xt(t.path, t.schema, { label: t.label }), a = Dt(t.path), c = Fe(!1), h = Fe(!1), f = Q(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? c.value : l.value === "hover" ? h.value : !0), u = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, fieldId: a, isFocused: c, isHovered: h, showHint: f };
5404
5404
  return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
5405
5405
  }
5406
5406
  }), Zw = { class: "quickform-field quickform-boolean-field" }, ek = ["for"], tk = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], ik = { class: "quickform-checkbox-text" }, nk = {
@@ -5418,7 +5418,7 @@ function lk(n, e, t, i, r, s) {
5418
5418
  onMouseenter: e[3] || (e[3] = (o) => i.isHovered = !0),
5419
5419
  onMouseleave: e[4] || (e[4] = (o) => i.isHovered = !1)
5420
5420
  }, [
5421
- ci(J("input", {
5421
+ hi(J("input", {
5422
5422
  id: i.fieldId,
5423
5423
  "onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
5424
5424
  type: "checkbox",
@@ -5438,7 +5438,7 @@ function lk(n, e, t, i, r, s) {
5438
5438
  1
5439
5439
  /* TEXT */
5440
5440
  ),
5441
- i.props.schema.required ? (j(), V("span", nk, "*")) : Z("v-if", !0)
5441
+ i.props.schema.required ? (j(), V("span", nk, "*")) : ee("v-if", !0)
5442
5442
  ])
5443
5443
  ], 40, ek),
5444
5444
  i.showHint ? (j(), V("div", {
@@ -5447,14 +5447,14 @@ function lk(n, e, t, i, r, s) {
5447
5447
  class: "quickform-hint"
5448
5448
  }, [
5449
5449
  J("span", { innerHTML: i.hint }, null, 8, sk)
5450
- ], 8, rk)) : Z("v-if", !0),
5450
+ ], 8, rk)) : ee("v-if", !0),
5451
5451
  i.errorMessage ? (j(), V(
5452
5452
  "div",
5453
5453
  ok,
5454
5454
  pe(i.errorMessage),
5455
5455
  1
5456
5456
  /* TEXT */
5457
- )) : Z("v-if", !0)
5457
+ )) : ee("v-if", !0)
5458
5458
  ]);
5459
5459
  }
5460
5460
  const qh = /* @__PURE__ */ ht(Xw, [["render", lk], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), ak = /* @__PURE__ */ nt({
@@ -5474,7 +5474,7 @@ const qh = /* @__PURE__ */ ht(Xw, [["render", lk], ["__scopeId", "data-v-1ff012c
5474
5474
  t.path,
5475
5475
  t.schema,
5476
5476
  { label: t.label }
5477
- ), a = ti(), c = Dt(t.path), h = `${c}-datalist`, f = Fe(!1), u = Fe(!1), d = ee(() => {
5477
+ ), a = ti(), c = Dt(t.path), h = `${c}-datalist`, f = Fe(!1), u = Fe(!1), d = Q(() => {
5478
5478
  if (!t.schema.enum) return [];
5479
5479
  const b = t.schema["x-enum-labels"];
5480
5480
  return t.schema.enum.map((w) => {
@@ -5484,17 +5484,17 @@ const qh = /* @__PURE__ */ ht(Xw, [["render", lk], ["__scopeId", "data-v-1ff012c
5484
5484
  label: S
5485
5485
  };
5486
5486
  });
5487
- }), m = ee(() => {
5487
+ }), m = Q(() => {
5488
5488
  var x, A, P, $;
5489
5489
  const b = t.schema["x-component-props"];
5490
5490
  if ((b == null ? void 0 : b.autocomplete) !== void 0)
5491
5491
  return b.autocomplete;
5492
5492
  const w = ((A = (x = a == null ? void 0 : a.componentDefaults) == null ? void 0 : x.select) == null ? void 0 : A.autocomplete) || !1, S = (($ = (P = a == null ? void 0 : a.componentDefaults) == null ? void 0 : P.select) == null ? void 0 : $.autocompleteThreshold) || 5;
5493
5493
  return w || d.value.length >= S;
5494
- }), y = ee(() => {
5494
+ }), y = Q(() => {
5495
5495
  var b;
5496
5496
  return ((b = a == null ? void 0 : a.labels) == null ? void 0 : b.selectPlaceholder) || "Select an option...";
5497
- }), g = ee(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? f.value : l.value === "hover" ? u.value : !0), p = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, formContext: a, fieldId: c, datalistId: h, isFocused: f, isHovered: u, options: d, useAutocomplete: m, placeholder: y, showHint: g };
5497
+ }), g = Q(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? f.value : l.value === "hover" ? u.value : !0), p = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, formContext: a, fieldId: c, datalistId: h, isFocused: f, isHovered: u, options: d, useAutocomplete: m, placeholder: y, showHint: g };
5498
5498
  return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
5499
5499
  }
5500
5500
  }), ck = { class: "quickform-field quickform-enum-field" }, hk = ["for"], fk = {
@@ -5515,10 +5515,10 @@ function wk(n, e, t, i, r, s) {
5515
5515
  1
5516
5516
  /* TEXT */
5517
5517
  ),
5518
- i.props.schema.required ? (j(), V("span", fk, "*")) : Z("v-if", !0)
5518
+ i.props.schema.required ? (j(), V("span", fk, "*")) : ee("v-if", !0)
5519
5519
  ], 8, hk),
5520
- Z(" Use datalist for autocomplete when enabled "),
5521
- i.useAutocomplete ? ci((j(), V("input", {
5520
+ ee(" Use datalist for autocomplete when enabled "),
5521
+ i.useAutocomplete ? hi((j(), V("input", {
5522
5522
  key: 0,
5523
5523
  id: i.fieldId,
5524
5524
  "onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
@@ -5534,7 +5534,7 @@ function wk(n, e, t, i, r, s) {
5534
5534
  onMouseleave: e[4] || (e[4] = (o) => i.isHovered = !1)
5535
5535
  }, null, 40, uk)), [
5536
5536
  [Fs, i.value]
5537
- ]) : Z("v-if", !0),
5537
+ ]) : ee("v-if", !0),
5538
5538
  J("datalist", { id: i.datalistId }, [
5539
5539
  (j(!0), V(
5540
5540
  Tt,
@@ -5547,8 +5547,8 @@ function wk(n, e, t, i, r, s) {
5547
5547
  /* KEYED_FRAGMENT */
5548
5548
  ))
5549
5549
  ]),
5550
- Z(" Use regular select when autocomplete disabled "),
5551
- i.useAutocomplete ? Z("v-if", !0) : ci((j(), V("select", {
5550
+ ee(" Use regular select when autocomplete disabled "),
5551
+ i.useAutocomplete ? ee("v-if", !0) : hi((j(), V("select", {
5552
5552
  key: 1,
5553
5553
  id: i.fieldId,
5554
5554
  "onUpdate:modelValue": e[5] || (e[5] = (o) => i.value = o),
@@ -5587,14 +5587,14 @@ function wk(n, e, t, i, r, s) {
5587
5587
  class: "quickform-hint"
5588
5588
  }, [
5589
5589
  J("span", { innerHTML: i.hint }, null, 8, bk)
5590
- ], 8, yk)) : Z("v-if", !0),
5590
+ ], 8, yk)) : ee("v-if", !0),
5591
5591
  i.errorMessage ? (j(), V(
5592
5592
  "div",
5593
5593
  vk,
5594
5594
  pe(i.errorMessage),
5595
5595
  1
5596
5596
  /* TEXT */
5597
- )) : Z("v-if", !0)
5597
+ )) : ee("v-if", !0)
5598
5598
  ]);
5599
5599
  }
5600
5600
  const Vh = /* @__PURE__ */ ht(ak, [["render", wk], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), kk = /* @__PURE__ */ nt({
@@ -5610,7 +5610,7 @@ const Vh = /* @__PURE__ */ ht(ak, [["render", wk], ["__scopeId", "data-v-666cc49
5610
5610
  },
5611
5611
  setup(n, { expose: e }) {
5612
5612
  e();
5613
- const t = n, { value: i, errorMessage: r, label: s, hint: o, hintMode: l } = xt(t.path, t.schema, { label: t.label }), a = Dt(t.path), c = Fe(!1), h = Fe(!1), f = ee(() => t.schema.format === "time" ? "time" : t.schema.format === "date-time" ? "datetime-local" : "date"), u = ee(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? c.value : l.value === "hover" ? h.value : !0), d = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, fieldId: a, isFocused: c, isHovered: h, inputType: f, showHint: u };
5613
+ const t = n, { value: i, errorMessage: r, label: s, hint: o, hintMode: l } = xt(t.path, t.schema, { label: t.label }), a = Dt(t.path), c = Fe(!1), h = Fe(!1), f = Q(() => t.schema.format === "time" ? "time" : t.schema.format === "date-time" ? "datetime-local" : "date"), u = Q(() => !o.value || r.value ? !1 : l.value === "always" ? !0 : l.value === "focus" ? c.value : l.value === "hover" ? h.value : !0), d = { props: t, value: i, errorMessage: r, label: s, hint: o, hintMode: l, fieldId: a, isFocused: c, isHovered: h, inputType: f, showHint: u };
5614
5614
  return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
5615
5615
  }
5616
5616
  }), Sk = { class: "quickform-field quickform-date-field" }, xk = ["for"], Ck = {
@@ -5631,9 +5631,9 @@ function Pk(n, e, t, i, r, s) {
5631
5631
  1
5632
5632
  /* TEXT */
5633
5633
  ),
5634
- i.props.schema.required ? (j(), V("span", Ck, "*")) : Z("v-if", !0)
5634
+ i.props.schema.required ? (j(), V("span", Ck, "*")) : ee("v-if", !0)
5635
5635
  ], 8, xk),
5636
- ci(J("input", {
5636
+ hi(J("input", {
5637
5637
  id: i.fieldId,
5638
5638
  "onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
5639
5639
  type: i.inputType,
@@ -5655,14 +5655,14 @@ function Pk(n, e, t, i, r, s) {
5655
5655
  class: "quickform-hint"
5656
5656
  }, [
5657
5657
  J("span", { innerHTML: i.hint }, null, 8, Ak)
5658
- ], 8, Mk)) : Z("v-if", !0),
5658
+ ], 8, Mk)) : ee("v-if", !0),
5659
5659
  i.errorMessage ? (j(), V(
5660
5660
  "div",
5661
5661
  Ok,
5662
5662
  pe(i.errorMessage),
5663
5663
  1
5664
5664
  /* TEXT */
5665
- )) : Z("v-if", !0)
5665
+ )) : ee("v-if", !0)
5666
5666
  ]);
5667
5667
  }
5668
5668
  const zh = /* @__PURE__ */ ht(kk, [["render", Pk], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), Tk = /* @__PURE__ */ nt({
@@ -5680,34 +5680,100 @@ const zh = /* @__PURE__ */ ht(kk, [["render", Pk], ["__scopeId", "data-v-e0ddab6
5680
5680
  const t = n, i = ti();
5681
5681
  if (!i)
5682
5682
  throw new Error("FieldRenderer must be used within a DynamicForm");
5683
- const r = ee(() => t.schema.const !== void 0 || t.schema.default !== void 0), s = ee(() => {
5684
- const c = t.schema;
5685
- if (c["x-hidden"] === !0)
5683
+ const r = Q(() => t.schema.const !== void 0 || t.schema.default !== void 0);
5684
+ function s(p, b) {
5685
+ const { operator: w, value: S } = p;
5686
+ switch (w) {
5687
+ case "eq":
5688
+ case "==":
5689
+ case "===":
5690
+ return b === S;
5691
+ case "neq":
5692
+ case "!=":
5693
+ case "!==":
5694
+ return b !== S;
5695
+ case "in":
5696
+ return Array.isArray(S) && S.includes(b);
5697
+ case "notIn":
5698
+ case "!in":
5699
+ return Array.isArray(S) && !S.includes(b);
5700
+ case "gt":
5701
+ case ">":
5702
+ return typeof b == "number" && typeof S == "number" && b > S;
5703
+ case "gte":
5704
+ case ">=":
5705
+ return typeof b == "number" && typeof S == "number" && b >= S;
5706
+ case "lt":
5707
+ case "<":
5708
+ return typeof b == "number" && typeof S == "number" && b < S;
5709
+ case "lte":
5710
+ case "<=":
5711
+ return typeof b == "number" && typeof S == "number" && b <= S;
5712
+ case "truthy":
5713
+ return !!b;
5714
+ case "falsy":
5715
+ return !b;
5716
+ case "like":
5717
+ case "ilike": {
5718
+ if (typeof b != "string" || typeof S != "string") return !1;
5719
+ const A = S.replace(/[.*+?^${}()|\\]/g, "\\$&").replace(/%/g, ".*").replace(/_/g, "."), P = w === "ilike" ? "i" : "";
5720
+ return new RegExp(`^${A}$`, P).test(b);
5721
+ }
5722
+ default:
5723
+ return console.warn(`Unknown x-visible-when operator: ${w}`), !0;
5724
+ }
5725
+ }
5726
+ const o = Q(() => t.schema["x-visible-when"]), l = Q(() => {
5727
+ var p;
5728
+ if ((p = o.value) != null && p.field)
5729
+ return i.useFieldValue(o.value.field).value;
5730
+ }), a = Q(() => {
5731
+ const p = o.value;
5732
+ return p ? s(p, l.value) : !0;
5733
+ }), c = Q(() => {
5734
+ const p = t.schema;
5735
+ return p["x-clear-on-hide"] !== void 0 ? p["x-clear-on-hide"] === !0 : o.value !== void 0;
5736
+ });
5737
+ Ee(a, (p, b) => {
5738
+ b === !0 && p === !1 && c.value && i.setFieldValue(t.path, void 0);
5739
+ });
5740
+ const h = Q(() => t.schema["x-readonly-when"]), f = Q(() => {
5741
+ var p;
5742
+ if ((p = h.value) != null && p.field)
5743
+ return i.useFieldValue(h.value.field).value;
5744
+ }), u = Q(() => {
5745
+ const p = h.value;
5746
+ return p ? s(p, f.value) : !1;
5747
+ }), d = Q(() => {
5748
+ const p = t.schema;
5749
+ if (p["x-hidden"] === !0)
5686
5750
  return r.value;
5687
- if (c["x-roles"]) {
5688
- const h = i.context.roles || [], f = c["x-roles"];
5689
- if (!Array.isArray(h) || h.length === 0 || !h.some(
5690
- (d) => f[d] && f[d].includes("view")
5751
+ if (!a.value)
5752
+ return !1;
5753
+ if (p["x-roles"]) {
5754
+ const b = i.context.roles || [], w = p["x-roles"];
5755
+ if (!Array.isArray(b) || b.length === 0 || !b.some(
5756
+ (x) => w[x] && w[x].includes("view")
5691
5757
  )) return !1;
5692
5758
  }
5693
5759
  return !0;
5694
- }), o = ee(() => {
5760
+ }), m = Q(() => {
5695
5761
  if (t.readonly || i.readonly) return !0;
5696
- const c = t.schema;
5697
- if (c["x-readonly"] === !0) return !0;
5698
- if (c["x-roles"]) {
5699
- const h = i.context.roles || [], f = c["x-roles"];
5700
- if (!h.some(
5701
- (d) => f[d] && f[d].includes("edit")
5762
+ const p = t.schema;
5763
+ if (p["x-readonly"] === !0 || u.value) return !0;
5764
+ if (p["x-roles"]) {
5765
+ const b = i.context.roles || [], w = p["x-roles"];
5766
+ if (!b.some(
5767
+ (x) => w[x] && w[x].includes("edit")
5702
5768
  )) return !0;
5703
5769
  }
5704
5770
  return !1;
5705
- }), l = ee(() => {
5706
- if (!s.value) return null;
5707
- const c = i.registry.getComponent(t.schema, t.uischema);
5708
- return c || (console.warn("No renderer found for schema:", t.schema), null);
5709
- }), a = { props: t, context: i, hasConstOrDefault: r, isVisible: s, isFieldReadonly: o, component: l };
5710
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
5771
+ }), y = Q(() => {
5772
+ if (!d.value) return null;
5773
+ const p = i.registry.getComponent(t.schema, t.uischema);
5774
+ return p || (console.warn("No renderer found for schema:", t.schema), null);
5775
+ }), g = { props: t, context: i, hasConstOrDefault: r, evaluateCondition: s, visibleWhenConfig: o, visibleWhenFieldValue: l, visibleWhenResult: a, shouldClearOnHide: c, readonlyWhenConfig: h, readonlyWhenFieldValue: f, readonlyWhenResult: u, isVisible: d, isFieldReadonly: m, component: y };
5776
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
5711
5777
  }
5712
5778
  }), Ek = {
5713
5779
  key: 1,
@@ -5718,7 +5784,7 @@ function $k(n, e, t, i, r, s) {
5718
5784
  Tt,
5719
5785
  null,
5720
5786
  [
5721
- Z(" Only render if visible "),
5787
+ ee(" Only render if visible "),
5722
5788
  i.isVisible ? (j(), V(
5723
5789
  Tt,
5724
5790
  { key: 0 },
@@ -5750,7 +5816,7 @@ function $k(n, e, t, i, r, s) {
5750
5816
  ],
5751
5817
  64
5752
5818
  /* STABLE_FRAGMENT */
5753
- )) : Z("v-if", !0)
5819
+ )) : ee("v-if", !0)
5754
5820
  ],
5755
5821
  2112
5756
5822
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
@@ -5769,7 +5835,7 @@ const Er = /* @__PURE__ */ ht(Tk, [["render", $k], ["__scopeId", "data-v-abf28e2
5769
5835
  },
5770
5836
  setup(n, { expose: e }) {
5771
5837
  e();
5772
- const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = ee(() => {
5838
+ const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = Q(() => {
5773
5839
  if (!t.schema.properties) return [];
5774
5840
  const c = t.schema["x-field-order"];
5775
5841
  if (c && Array.isArray(c) && c.length > 0)
@@ -5816,15 +5882,15 @@ function Vk(n, e, t, i, r, s) {
5816
5882
  1
5817
5883
  /* TEXT */
5818
5884
  ),
5819
- i.props.schema.required ? (j(), V("span", Lk, "*")) : Z("v-if", !0)
5820
- ])) : Z("v-if", !0),
5885
+ i.props.schema.required ? (j(), V("span", Lk, "*")) : ee("v-if", !0)
5886
+ ])) : ee("v-if", !0),
5821
5887
  i.hint ? (j(), V("div", {
5822
5888
  key: 1,
5823
5889
  id: `${i.fieldId}-hint`,
5824
5890
  class: "quickform-hint quickform-object-hint"
5825
5891
  }, [
5826
5892
  J("span", { innerHTML: i.hint }, null, 8, Fk)
5827
- ], 8, Bk)) : Z("v-if", !0),
5893
+ ], 8, Bk)) : ee("v-if", !0),
5828
5894
  J("div", jk, [
5829
5895
  (j(!0), V(
5830
5896
  Tt,
@@ -5846,7 +5912,7 @@ function Vk(n, e, t, i, r, s) {
5846
5912
  pe(i.errorMessage),
5847
5913
  1
5848
5914
  /* TEXT */
5849
- )) : Z("v-if", !0)
5915
+ )) : ee("v-if", !0)
5850
5916
  ], 8, Ik)
5851
5917
  ]);
5852
5918
  }
@@ -5867,12 +5933,12 @@ const Hh = /* @__PURE__ */ ht(Dk, [["render", Vk], ["__scopeId", "data-v-8012fc1
5867
5933
  t.path,
5868
5934
  t.schema,
5869
5935
  { label: t.label }
5870
- ), l = ti(), a = Dt(t.path), c = ee({
5936
+ ), l = ti(), a = Dt(t.path), c = Q({
5871
5937
  get: () => Array.isArray(i.value) ? i.value : [],
5872
5938
  set: (b) => i.value = b
5873
- }), h = ee(() => Array.isArray(t.schema.items) ? t.schema.items[0] : t.schema.items), f = () => {
5939
+ }), h = Q(() => Array.isArray(t.schema.items) ? t.schema.items[0] : t.schema.items), f = () => {
5874
5940
  if (!h.value) return;
5875
- const b = ri.getDefaultValue(h.value);
5941
+ const b = si.getDefaultValue(h.value);
5876
5942
  i.value = [...c.value, b];
5877
5943
  }, u = (b) => {
5878
5944
  const w = [...c.value];
@@ -5881,7 +5947,7 @@ const Hh = /* @__PURE__ */ ht(Dk, [["render", Vk], ["__scopeId", "data-v-8012fc1
5881
5947
  if (w === "up" && b === 0 || w === "down" && b === c.value.length - 1) return;
5882
5948
  const S = [...c.value], x = w === "up" ? b - 1 : b + 1, A = S[b];
5883
5949
  S[b] = S[x], S[x] = A, i.value = S;
5884
- }, m = ee(() => !(t.disabled || t.readonly || t.schema.maxItems && c.value.length >= t.schema.maxItems)), y = ee(() => !(t.disabled || t.readonly || t.schema.minItems && c.value.length <= t.schema.minItems)), p = { props: t, value: i, errorMessage: r, label: s, hint: o, formContext: l, fieldId: a, arrayValue: c, itemsSchema: h, addItem: f, removeItem: u, moveItem: d, canAdd: m, canRemove: y, getItemLabel: (b) => {
5950
+ }, m = Q(() => !(t.disabled || t.readonly || t.schema.maxItems && c.value.length >= t.schema.maxItems)), y = Q(() => !(t.disabled || t.readonly || t.schema.minItems && c.value.length <= t.schema.minItems)), p = { props: t, value: i, errorMessage: r, label: s, hint: o, formContext: l, fieldId: a, arrayValue: c, itemsSchema: h, addItem: f, removeItem: u, moveItem: d, canAdd: m, canRemove: y, getItemLabel: (b) => {
5885
5951
  var x;
5886
5952
  const w = t.schema["x-item-label"];
5887
5953
  if (w === "none" || w === !1)
@@ -5927,15 +5993,15 @@ function oS(n, e, t, i, r, s) {
5927
5993
  1
5928
5994
  /* TEXT */
5929
5995
  ),
5930
- i.props.schema.required ? (j(), V("span", Kk, "*")) : Z("v-if", !0)
5931
- ])) : Z("v-if", !0),
5996
+ i.props.schema.required ? (j(), V("span", Kk, "*")) : ee("v-if", !0)
5997
+ ])) : ee("v-if", !0),
5932
5998
  i.hint ? (j(), V("div", {
5933
5999
  key: 1,
5934
6000
  id: `${i.fieldId}-hint`,
5935
6001
  class: "quickform-hint quickform-array-hint"
5936
6002
  }, [
5937
6003
  J("span", { innerHTML: i.hint }, null, 8, Jk)
5938
- ], 8, Gk)) : Z("v-if", !0),
6004
+ ], 8, Gk)) : ee("v-if", !0),
5939
6005
  J("div", Yk, [
5940
6006
  (j(!0), V(
5941
6007
  Tt,
@@ -5980,7 +6046,7 @@ function oS(n, e, t, i, r, s) {
5980
6046
  128
5981
6047
  /* KEYED_FRAGMENT */
5982
6048
  )),
5983
- i.arrayValue.length === 0 ? (j(), V("div", iS, " No items ")) : Z("v-if", !0)
6049
+ i.arrayValue.length === 0 ? (j(), V("div", iS, " No items ")) : ee("v-if", !0)
5984
6050
  ]),
5985
6051
  J("div", nS, [
5986
6052
  J("button", {
@@ -5996,7 +6062,7 @@ function oS(n, e, t, i, r, s) {
5996
6062
  pe(i.errorMessage),
5997
6063
  1
5998
6064
  /* TEXT */
5999
- )) : Z("v-if", !0)
6065
+ )) : ee("v-if", !0)
6000
6066
  ], 8, Wk)
6001
6067
  ]);
6002
6068
  }
@@ -6020,7 +6086,7 @@ const Wh = /* @__PURE__ */ ht(zk, [["render", oS], ["__scopeId", "data-v-a078389
6020
6086
  ), c = Dt(t.path);
6021
6087
  let h = 0;
6022
6088
  const f = Fe([]), u = Fe(!1);
6023
- Ne(
6089
+ Ee(
6024
6090
  () => i.value,
6025
6091
  (g) => {
6026
6092
  if (u.value) {
@@ -6034,7 +6100,7 @@ const Wh = /* @__PURE__ */ ht(zk, [["render", oS], ["__scopeId", "data-v-a078389
6034
6100
  })) : f.value.length || (f.value = []);
6035
6101
  },
6036
6102
  { immediate: !0 }
6037
- ), Ne(
6103
+ ), Ee(
6038
6104
  f,
6039
6105
  (g) => {
6040
6106
  const p = {};
@@ -6079,15 +6145,15 @@ function wS(n, e, t, i, r, s) {
6079
6145
  1
6080
6146
  /* TEXT */
6081
6147
  ),
6082
- i.required ? (j(), V("span", hS, "*")) : Z("v-if", !0)
6083
- ], 8, cS)) : Z("v-if", !0),
6148
+ i.required ? (j(), V("span", hS, "*")) : ee("v-if", !0)
6149
+ ], 8, cS)) : ee("v-if", !0),
6084
6150
  i.hint ? (j(), V("div", {
6085
6151
  key: 1,
6086
6152
  id: `${i.fieldId}-hint`,
6087
6153
  class: "quickform-hint"
6088
6154
  }, [
6089
6155
  J("span", { innerHTML: i.hint }, null, 8, uS)
6090
- ], 8, fS)) : Z("v-if", !0),
6156
+ ], 8, fS)) : ee("v-if", !0),
6091
6157
  J("div", dS, [
6092
6158
  i.pairs.length ? (j(), V("div", mS, [...e[0] || (e[0] = [
6093
6159
  J(
@@ -6111,7 +6177,7 @@ function wS(n, e, t, i, r, s) {
6111
6177
  -1
6112
6178
  /* CACHED */
6113
6179
  )
6114
- ])])) : Z("v-if", !0),
6180
+ ])])) : ee("v-if", !0),
6115
6181
  (j(!0), V(
6116
6182
  Tt,
6117
6183
  null,
@@ -6119,7 +6185,7 @@ function wS(n, e, t, i, r, s) {
6119
6185
  key: o.id,
6120
6186
  class: "quickform-keyvalue-row"
6121
6187
  }, [
6122
- ci(J("input", {
6188
+ hi(J("input", {
6123
6189
  "onUpdate:modelValue": (l) => o.key = l,
6124
6190
  type: "text",
6125
6191
  placeholder: "key",
@@ -6129,7 +6195,7 @@ function wS(n, e, t, i, r, s) {
6129
6195
  }, null, 8, pS), [
6130
6196
  [Fs, o.key]
6131
6197
  ]),
6132
- ci(J("input", {
6198
+ hi(J("input", {
6133
6199
  "onUpdate:modelValue": (l) => o.value = l,
6134
6200
  type: "text",
6135
6201
  placeholder: "value",
@@ -6162,7 +6228,7 @@ function wS(n, e, t, i, r, s) {
6162
6228
  pe(i.errorMessage),
6163
6229
  1
6164
6230
  /* TEXT */
6165
- )) : Z("v-if", !0)
6231
+ )) : ee("v-if", !0)
6166
6232
  ]);
6167
6233
  }
6168
6234
  const Uh = /* @__PURE__ */ ht(lS, [["render", wS], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]);
@@ -6813,7 +6879,7 @@ class Qt {
6813
6879
  return new Qt(e);
6814
6880
  }
6815
6881
  }
6816
- class $e extends Qt {
6882
+ class De extends Qt {
6817
6883
  constructor(e, t) {
6818
6884
  super(e), this.inserted = t;
6819
6885
  }
@@ -6848,7 +6914,7 @@ class $e extends Qt {
6848
6914
  }
6849
6915
  s += o;
6850
6916
  }
6851
- return new $e(t, i);
6917
+ return new De(t, i);
6852
6918
  }
6853
6919
  /**
6854
6920
  Combine two subsequent change sets into a single set. `other`
@@ -6918,7 +6984,7 @@ class $e extends Qt {
6918
6984
  }
6919
6985
  }
6920
6986
  return {
6921
- changes: new $e(t, i),
6987
+ changes: new De(t, i),
6922
6988
  filtered: Qt.create(r)
6923
6989
  };
6924
6990
  }
@@ -6943,14 +7009,14 @@ class $e extends Qt {
6943
7009
  if (!h && !r.length)
6944
7010
  return;
6945
7011
  o < t && Ue(r, t - o, -1);
6946
- let f = new $e(r, s);
7012
+ let f = new De(r, s);
6947
7013
  l = l ? l.compose(f.map(l)) : f, r = [], s = [], o = 0;
6948
7014
  }
6949
7015
  function c(h) {
6950
7016
  if (Array.isArray(h))
6951
7017
  for (let f of h)
6952
7018
  c(f);
6953
- else if (h instanceof $e) {
7019
+ else if (h instanceof De) {
6954
7020
  if (h.length != t)
6955
7021
  throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);
6956
7022
  a(), l = l ? l.compose(h.map(l)) : h;
@@ -6970,7 +7036,7 @@ class $e extends Qt {
6970
7036
  Create an empty changeset of the given length.
6971
7037
  */
6972
7038
  static empty(e) {
6973
- return new $e(e ? [e, -1] : [], []);
7039
+ return new De(e ? [e, -1] : [], []);
6974
7040
  }
6975
7041
  /**
6976
7042
  Create a changeset from its JSON representation (as produced by
@@ -6996,13 +7062,13 @@ class $e extends Qt {
6996
7062
  }
6997
7063
  }
6998
7064
  }
6999
- return new $e(t, i);
7065
+ return new De(t, i);
7000
7066
  }
7001
7067
  /**
7002
7068
  @internal
7003
7069
  */
7004
7070
  static createSet(e, t) {
7005
- return new $e(e, t);
7071
+ return new De(e, t);
7006
7072
  }
7007
7073
  }
7008
7074
  function Ue(n, e, t, i = !1) {
@@ -7065,7 +7131,7 @@ function Ul(n, e, t, i = !1) {
7065
7131
  Ue(r, c, a < o.i ? o.ins : 0), s && a < o.i && Si(s, r, o.text), a = o.i, o.forward(o.len - h);
7066
7132
  } else {
7067
7133
  if (o.done && l.done)
7068
- return s ? $e.createSet(r, s) : Qt.create(r);
7134
+ return s ? De.createSet(r, s) : Qt.create(r);
7069
7135
  throw new Error("Mismatched change set lengths");
7070
7136
  }
7071
7137
  }
@@ -7074,7 +7140,7 @@ function am(n, e, t = !1) {
7074
7140
  let i = [], r = t ? [] : null, s = new dr(n), o = new dr(e);
7075
7141
  for (let l = !1; ; ) {
7076
7142
  if (s.done && o.done)
7077
- return r ? $e.createSet(i, r) : Qt.create(i);
7143
+ return r ? De.createSet(i, r) : Qt.create(i);
7078
7144
  if (s.ins == 0)
7079
7145
  Ue(i, s.len, 0, l), s.next();
7080
7146
  else if (o.len == 0 && !o.done)
@@ -7422,7 +7488,7 @@ class Os {
7422
7488
  let d, m = u.config.address[s];
7423
7489
  if (m != null) {
7424
7490
  let y = Ks(u, m);
7425
- if (this.dependencies.every((g) => g instanceof W ? u.facet(g) === f.facet(g) : g instanceof Re ? u.field(g, !1) == f.field(g, !1) : !0) || (l ? Qh(d = i(f), y, r) : r(d = i(f), y)))
7491
+ if (this.dependencies.every((g) => g instanceof W ? u.facet(g) === f.facet(g) : g instanceof Ie ? u.field(g, !1) == f.field(g, !1) : !0) || (l ? Qh(d = i(f), y, r) : r(d = i(f), y)))
7426
7492
  return f.values[o] = y, 0;
7427
7493
  } else
7428
7494
  d = i(f);
@@ -7481,7 +7547,7 @@ function OS(n, e, t) {
7481
7547
  };
7482
7548
  }
7483
7549
  const Yr = /* @__PURE__ */ W.define({ static: !0 });
7484
- class Re {
7550
+ class Ie {
7485
7551
  constructor(e, t, i, r, s) {
7486
7552
  this.id = e, this.createF = t, this.updateF = i, this.compareF = r, this.spec = s, this.provides = void 0;
7487
7553
  }
@@ -7489,7 +7555,7 @@ class Re {
7489
7555
  Define a state field.
7490
7556
  */
7491
7557
  static define(e) {
7492
- let t = new Re(Dc++, e.create, e.update, e.compare || ((i, r) => i === r), e);
7558
+ let t = new Ie(Dc++, e.create, e.update, e.compare || ((i, r) => i === r), e);
7493
7559
  return e.provide && (t.provides = e.provide(t)), t;
7494
7560
  }
7495
7561
  create(e) {
@@ -7608,7 +7674,7 @@ class Us {
7608
7674
  static resolve(e, t, i) {
7609
7675
  let r = [], s = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map();
7610
7676
  for (let u of PS(e, t, o))
7611
- u instanceof Re ? r.push(u) : (s[u.facet.id] || (s[u.facet.id] = [])).push(u);
7677
+ u instanceof Ie ? r.push(u) : (s[u.facet.id] || (s[u.facet.id] = [])).push(u);
7612
7678
  let l = /* @__PURE__ */ Object.create(null), a = [], c = [];
7613
7679
  for (let u of r)
7614
7680
  l[u.id] = c.length << 1, c.push((d) => u.slot(d));
@@ -7655,7 +7721,7 @@ function PS(n, e, t) {
7655
7721
  t.set(o.compartment, c), s(c, l);
7656
7722
  } else if (o instanceof hm)
7657
7723
  s(o.inner, o.prec);
7658
- else if (o instanceof Re)
7724
+ else if (o instanceof Ie)
7659
7725
  i[l].push(o), o.provides && s(o.provides, l);
7660
7726
  else if (o instanceof Os)
7661
7727
  i[l].push(o), o.facet.extensions && s(o.facet.extensions, Fi.default);
@@ -7692,7 +7758,7 @@ const fm = /* @__PURE__ */ W.define(), Jl = /* @__PURE__ */ W.define({
7692
7758
  }), dm = /* @__PURE__ */ W.define(), mm = /* @__PURE__ */ W.define(), pm = /* @__PURE__ */ W.define(), gm = /* @__PURE__ */ W.define({
7693
7759
  combine: (n) => n.length ? n[0] : !1
7694
7760
  });
7695
- class di {
7761
+ class mi {
7696
7762
  /**
7697
7763
  @internal
7698
7764
  */
@@ -7711,7 +7777,7 @@ class TS {
7711
7777
  Create an instance of this annotation.
7712
7778
  */
7713
7779
  of(e) {
7714
- return new di(this, e);
7780
+ return new mi(this, e);
7715
7781
  }
7716
7782
  }
7717
7783
  class ES {
@@ -7726,10 +7792,10 @@ class ES {
7726
7792
  type.
7727
7793
  */
7728
7794
  of(e) {
7729
- return new ne(this, e);
7795
+ return new re(this, e);
7730
7796
  }
7731
7797
  }
7732
- class ne {
7798
+ class re {
7733
7799
  /**
7734
7800
  @internal
7735
7801
  */
@@ -7742,7 +7808,7 @@ class ne {
7742
7808
  */
7743
7809
  map(e) {
7744
7810
  let t = this.type.map(this.value, e);
7745
- return t === void 0 ? void 0 : t == this.value ? this : new ne(this.type, t);
7811
+ return t === void 0 ? void 0 : t == this.value ? this : new re(this.type, t);
7746
7812
  }
7747
7813
  /**
7748
7814
  Tells you whether this effect object is of a given
@@ -7775,17 +7841,17 @@ class ne {
7775
7841
  return i;
7776
7842
  }
7777
7843
  }
7778
- ne.reconfigure = /* @__PURE__ */ ne.define();
7779
- ne.appendConfig = /* @__PURE__ */ ne.define();
7780
- class De {
7844
+ re.reconfigure = /* @__PURE__ */ re.define();
7845
+ re.appendConfig = /* @__PURE__ */ re.define();
7846
+ class Re {
7781
7847
  constructor(e, t, i, r, s, o) {
7782
- this.startState = e, this.changes = t, this.selection = i, this.effects = r, this.annotations = s, this.scrollIntoView = o, this._doc = null, this._state = null, i && cm(i, t.newLength), s.some((l) => l.type == De.time) || (this.annotations = s.concat(De.time.of(Date.now())));
7848
+ this.startState = e, this.changes = t, this.selection = i, this.effects = r, this.annotations = s, this.scrollIntoView = o, this._doc = null, this._state = null, i && cm(i, t.newLength), s.some((l) => l.type == Re.time) || (this.annotations = s.concat(Re.time.of(Date.now())));
7783
7849
  }
7784
7850
  /**
7785
7851
  @internal
7786
7852
  */
7787
7853
  static create(e, t, i, r, s, o) {
7788
- return new De(e, t, i, r, s, o);
7854
+ return new Re(e, t, i, r, s, o);
7789
7855
  }
7790
7856
  /**
7791
7857
  The new document produced by the transaction. Contrary to
@@ -7847,14 +7913,14 @@ class De {
7847
7913
  `"select.pointer"` will match it.
7848
7914
  */
7849
7915
  isUserEvent(e) {
7850
- let t = this.annotation(De.userEvent);
7916
+ let t = this.annotation(Re.userEvent);
7851
7917
  return !!(t && (t == e || t.length > e.length && t.slice(0, e.length) == e && t[e.length] == "."));
7852
7918
  }
7853
7919
  }
7854
- De.time = /* @__PURE__ */ di.define();
7855
- De.userEvent = /* @__PURE__ */ di.define();
7856
- De.addToHistory = /* @__PURE__ */ di.define();
7857
- De.remote = /* @__PURE__ */ di.define();
7920
+ Re.time = /* @__PURE__ */ mi.define();
7921
+ Re.userEvent = /* @__PURE__ */ mi.define();
7922
+ Re.addToHistory = /* @__PURE__ */ mi.define();
7923
+ Re.remote = /* @__PURE__ */ mi.define();
7858
7924
  function $S(n, e) {
7859
7925
  let t = [];
7860
7926
  for (let i = 0, r = 0; ; ) {
@@ -7871,18 +7937,18 @@ function $S(n, e) {
7871
7937
  function ym(n, e, t) {
7872
7938
  var i;
7873
7939
  let r, s, o;
7874
- return t ? (r = e.changes, s = $e.empty(e.changes.length), o = n.changes.compose(e.changes)) : (r = e.changes.map(n.changes), s = n.changes.mapDesc(e.changes, !0), o = n.changes.compose(r)), {
7940
+ return t ? (r = e.changes, s = De.empty(e.changes.length), o = n.changes.compose(e.changes)) : (r = e.changes.map(n.changes), s = n.changes.mapDesc(e.changes, !0), o = n.changes.compose(r)), {
7875
7941
  changes: o,
7876
7942
  selection: e.selection ? e.selection.map(s) : (i = n.selection) === null || i === void 0 ? void 0 : i.map(r),
7877
- effects: ne.mapEffects(n.effects, r).concat(ne.mapEffects(e.effects, s)),
7943
+ effects: re.mapEffects(n.effects, r).concat(re.mapEffects(e.effects, s)),
7878
7944
  annotations: n.annotations.length ? n.annotations.concat(e.annotations) : e.annotations,
7879
7945
  scrollIntoView: n.scrollIntoView || e.scrollIntoView
7880
7946
  };
7881
7947
  }
7882
7948
  function Yl(n, e, t) {
7883
7949
  let i = e.selection, r = pn(e.annotations);
7884
- return e.userEvent && (r = r.concat(De.userEvent.of(e.userEvent))), {
7885
- changes: e.changes instanceof $e ? e.changes : $e.of(e.changes || [], t, n.facet(um)),
7950
+ return e.userEvent && (r = r.concat(Re.userEvent.of(e.userEvent))), {
7951
+ changes: e.changes instanceof De ? e.changes : De.of(e.changes || [], t, n.facet(um)),
7886
7952
  selection: i && (i instanceof T ? i : T.single(i.anchor, i.head)),
7887
7953
  effects: pn(e.effects),
7888
7954
  annotations: r,
@@ -7897,7 +7963,7 @@ function bm(n, e, t) {
7897
7963
  let o = !!e[s].sequential;
7898
7964
  i = ym(i, Yl(n, e[s], o ? i.changes.newLength : n.doc.length), o);
7899
7965
  }
7900
- let r = De.create(n, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView);
7966
+ let r = Re.create(n, i.changes, i.selection, i.effects, i.annotations, i.scrollIntoView);
7901
7967
  return RS(t ? DS(r) : r);
7902
7968
  }
7903
7969
  function DS(n) {
@@ -7913,17 +7979,17 @@ function DS(n) {
7913
7979
  if (t !== !0) {
7914
7980
  let r, s;
7915
7981
  if (t === !1)
7916
- s = n.changes.invertedDesc, r = $e.empty(e.doc.length);
7982
+ s = n.changes.invertedDesc, r = De.empty(e.doc.length);
7917
7983
  else {
7918
7984
  let o = n.changes.filter(t);
7919
7985
  r = o.changes, s = o.filtered.mapDesc(o.changes).invertedDesc;
7920
7986
  }
7921
- n = De.create(e, r, n.selection && n.selection.map(s), ne.mapEffects(n.effects, s), n.annotations, n.scrollIntoView);
7987
+ n = Re.create(e, r, n.selection && n.selection.map(s), re.mapEffects(n.effects, s), n.annotations, n.scrollIntoView);
7922
7988
  }
7923
7989
  let i = e.facet(mm);
7924
7990
  for (let r = i.length - 1; r >= 0; r--) {
7925
7991
  let s = i[r](n);
7926
- s instanceof De ? n = s : Array.isArray(s) && s.length == 1 && s[0] instanceof De ? n = s[0] : n = bm(e, pn(s), !1);
7992
+ s instanceof Re ? n = s : Array.isArray(s) && s.length == 1 && s[0] instanceof Re ? n = s[0] : n = bm(e, pn(s), !1);
7927
7993
  }
7928
7994
  return n;
7929
7995
  }
@@ -7933,7 +7999,7 @@ function RS(n) {
7933
7999
  let s = t[r](n);
7934
8000
  s && Object.keys(s).length && (i = ym(i, Yl(e, s, n.changes.newLength), !0));
7935
8001
  }
7936
- return i == n ? n : De.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
8002
+ return i == n ? n : Re.create(e, n.changes, n.selection, i.effects, i.annotations, i.scrollIntoView);
7937
8003
  }
7938
8004
  const IS = [];
7939
8005
  function pn(n) {
@@ -8010,7 +8076,7 @@ class ce {
8010
8076
  applyTransaction(e) {
8011
8077
  let t = this.config, { base: i, compartments: r } = t;
8012
8078
  for (let l of e.effects)
8013
- l.is($r.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, c) => r.set(c, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(ne.reconfigure) ? (t = null, i = l.value) : l.is(ne.appendConfig) && (t = null, i = pn(i).concat(l.value));
8079
+ l.is($r.reconfigure) ? (t && (r = /* @__PURE__ */ new Map(), t.compartments.forEach((a, c) => r.set(c, a)), t = null), r.set(l.value.compartment, l.value.extension)) : l.is(re.reconfigure) ? (t = null, i = l.value) : l.is(re.appendConfig) && (t = null, i = pn(i).concat(l.value));
8014
8080
  let s;
8015
8081
  t ? s = e.startState.values.slice() : (t = Us.resolve(i, r, this), s = new ce(t, this.doc, this.selection, t.dynamicSlots.map(() => null), (a, c) => c.reconfigure(a, this), null).values);
8016
8082
  let o = e.startState.facet(Jl) ? e.newSelection : e.newSelection.asSingle();
@@ -8044,7 +8110,7 @@ class ce {
8044
8110
  for (let u = 0; u < l; u++)
8045
8111
  s[u] = s[u].map(h);
8046
8112
  let f = r.mapDesc(c, !0);
8047
- s.push(a.range.map(f)), r = r.compose(h), o = ne.mapEffects(o, h).concat(ne.mapEffects(pn(a.effects), f));
8113
+ s.push(a.range.map(f)), r = r.compose(h), o = re.mapEffects(o, h).concat(re.mapEffects(pn(a.effects), f));
8048
8114
  }
8049
8115
  return {
8050
8116
  changes: r,
@@ -8058,7 +8124,7 @@ class ce {
8058
8124
  separator into account.
8059
8125
  */
8060
8126
  changes(e = []) {
8061
- return e instanceof $e ? e : $e.of(e, this.doc.length, this.facet(ce.lineSeparator));
8127
+ return e instanceof De ? e : De.of(e, this.doc.length, this.facet(ce.lineSeparator));
8062
8128
  }
8063
8129
  /**
8064
8130
  Using the state's [line
@@ -8095,7 +8161,7 @@ class ce {
8095
8161
  if (e)
8096
8162
  for (let i in e) {
8097
8163
  let r = e[i];
8098
- r instanceof Re && this.config.address[r.id] != null && (t[i] = r.spec.toJSON(this.field(e[i]), this));
8164
+ r instanceof Ie && this.config.address[r.id] != null && (t[i] = r.spec.toJSON(this.field(e[i]), this));
8099
8165
  }
8100
8166
  return t;
8101
8167
  }
@@ -8252,7 +8318,7 @@ ce.languageData = fm;
8252
8318
  ce.changeFilter = dm;
8253
8319
  ce.transactionFilter = mm;
8254
8320
  ce.transactionExtender = pm;
8255
- $r.reconfigure = /* @__PURE__ */ ne.define();
8321
+ $r.reconfigure = /* @__PURE__ */ re.define();
8256
8322
  function Rt(n, e, t = {}) {
8257
8323
  let i = {};
8258
8324
  for (let r of n)
@@ -8393,7 +8459,7 @@ class he {
8393
8459
  return this;
8394
8460
  if (i && (t = t.slice().sort(Zl)), this.isEmpty)
8395
8461
  return t.length ? he.of(t) : this;
8396
- let l = new wm(this, null, -1).goto(0), a = 0, c = [], h = new fi();
8462
+ let l = new wm(this, null, -1).goto(0), a = 0, c = [], h = new ui();
8397
8463
  for (; l.value || a < t.length; )
8398
8464
  if (a < t.length && (l.from - t[a].from || l.startSide - t[a].value.startSide) >= 0) {
8399
8465
  let f = t[a++];
@@ -8512,7 +8578,7 @@ class he {
8512
8578
  cause the method to sort them.
8513
8579
  */
8514
8580
  static of(e, t = !1) {
8515
- let i = new fi();
8581
+ let i = new ui();
8516
8582
  for (let r of e instanceof Xl ? [e] : t ? FS(e) : e)
8517
8583
  i.add(r.from, r.to, r.value);
8518
8584
  return i.finish();
@@ -8542,7 +8608,7 @@ function FS(n) {
8542
8608
  return n;
8543
8609
  }
8544
8610
  he.empty.nextLayer = he.empty;
8545
- class fi {
8611
+ class ui {
8546
8612
  finishChunk(e) {
8547
8613
  this.chunks.push(new Ic(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
8548
8614
  }
@@ -8557,7 +8623,7 @@ class fi {
8557
8623
  `value.startSide`) order.
8558
8624
  */
8559
8625
  add(e, t, i) {
8560
- this.addInner(e, t, i) || (this.nextLayer || (this.nextLayer = new fi())).add(e, t, i);
8626
+ this.addInner(e, t, i) || (this.nextLayer || (this.nextLayer = new ui())).add(e, t, i);
8561
8627
  }
8562
8628
  /**
8563
8629
  @internal
@@ -9599,7 +9665,7 @@ class Et extends ge {
9599
9665
  return XS(this.dom, e, t);
9600
9666
  }
9601
9667
  }
9602
- class ui extends ge {
9668
+ class di extends ge {
9603
9669
  constructor(e, t = [], i = 0) {
9604
9670
  super(), this.mark = e, this.children = t, this.length = i;
9605
9671
  for (let r of t)
@@ -9621,7 +9687,7 @@ class ui extends ge {
9621
9687
  this.dom ? this.flags & 4 && this.setAttrs(this.dom) : this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))), super.sync(e, t);
9622
9688
  }
9623
9689
  merge(e, t, i, r, s, o) {
9624
- return i && (!(i instanceof ui && i.mark.eq(this.mark)) || e && s <= 0 || t < this.length && o <= 0) ? !1 : (Em(this, e, t, i ? i.children.slice() : [], s - 1, o - 1), this.markDirty(), !0);
9690
+ return i && (!(i instanceof di && i.mark.eq(this.mark)) || e && s <= 0 || t < this.length && o <= 0) ? !1 : (Em(this, e, t, i ? i.children.slice() : [], s - 1, o - 1), this.markDirty(), !0);
9625
9691
  }
9626
9692
  split(e) {
9627
9693
  let t = [], i = 0, r = -1, s = 0;
@@ -9630,7 +9696,7 @@ class ui extends ge {
9630
9696
  a > e && t.push(i < e ? l.split(e - i) : l), r < 0 && i >= e && (r = s), i = a, s++;
9631
9697
  }
9632
9698
  let o = this.length - e;
9633
- return this.length = e, r > -1 && (this.children.length = r, this.markDirty()), new ui(this.mark, t, o);
9699
+ return this.length = e, r > -1 && (this.children.length = r, this.markDirty()), new di(this.mark, t, o);
9634
9700
  }
9635
9701
  domAtPos(e) {
9636
9702
  return $m(this, e);
@@ -9650,15 +9716,15 @@ function XS(n, e, t) {
9650
9716
  let a = l[(o ? o < 0 : t >= 0) ? 0 : l.length - 1];
9651
9717
  return z.safari && !o && a.width == 0 && (a = Array.prototype.find.call(l, (c) => c.width) || a), o ? Dr(a, o < 0) : a || null;
9652
9718
  }
9653
- class si extends ge {
9719
+ class oi extends ge {
9654
9720
  static create(e, t, i) {
9655
- return new si(e, t, i);
9721
+ return new oi(e, t, i);
9656
9722
  }
9657
9723
  constructor(e, t, i) {
9658
9724
  super(), this.widget = e, this.length = t, this.side = i, this.prevWidget = null;
9659
9725
  }
9660
9726
  split(e) {
9661
- let t = si.create(this.widget, this.length - e, this.side);
9727
+ let t = oi.create(this.widget, this.length - e, this.side);
9662
9728
  return this.length -= e, t;
9663
9729
  }
9664
9730
  sync(e) {
@@ -9668,10 +9734,10 @@ class si extends ge {
9668
9734
  return this.side;
9669
9735
  }
9670
9736
  merge(e, t, i, r, s, o) {
9671
- return i && (!(i instanceof si) || !this.widget.compare(i.widget) || e > 0 && s <= 0 || t < this.length && o <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
9737
+ return i && (!(i instanceof oi) || !this.widget.compare(i.widget) || e > 0 && s <= 0 || t < this.length && o <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
9672
9738
  }
9673
9739
  become(e) {
9674
- return e instanceof si && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1;
9740
+ return e instanceof oi && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1;
9675
9741
  }
9676
9742
  ignoreMutation() {
9677
9743
  return !0;
@@ -9763,7 +9829,7 @@ class Mn extends ge {
9763
9829
  return !0;
9764
9830
  }
9765
9831
  }
9766
- Et.prototype.children = si.prototype.children = Mn.prototype.children = Nc;
9832
+ Et.prototype.children = oi.prototype.children = Mn.prototype.children = Nc;
9767
9833
  function $m(n, e) {
9768
9834
  let t = n.dom, { children: i } = n, r = 0;
9769
9835
  for (let s = 0; r < i.length; r++) {
@@ -9790,7 +9856,7 @@ function $m(n, e) {
9790
9856
  }
9791
9857
  function Dm(n, e, t) {
9792
9858
  let i, { children: r } = n;
9793
- t > 0 && e instanceof ui && r.length && (i = r[r.length - 1]) instanceof ui && i.mark.eq(e.mark) ? Dm(i, e.children[0], t - 1) : (r.push(e), e.setParent(n)), n.length += e.length;
9859
+ t > 0 && e instanceof di && r.length && (i = r[r.length - 1]) instanceof di && i.mark.eq(e.mark) ? Dm(i, e.children[0], t - 1) : (r.push(e), e.setParent(n)), n.length += e.length;
9794
9860
  }
9795
9861
  function Rm(n, e, t) {
9796
9862
  let i = null, r = -1, s = null, o = -1;
@@ -9851,7 +9917,7 @@ function tx(n) {
9851
9917
  }
9852
9918
  return e;
9853
9919
  }
9854
- class mi {
9920
+ class pi {
9855
9921
  /**
9856
9922
  Compare this instance to another instance of the same type.
9857
9923
  (TypeScript can't express this, but only instances of the same
@@ -9938,7 +10004,7 @@ class mi {
9938
10004
  var tt = /* @__PURE__ */ function(n) {
9939
10005
  return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
9940
10006
  }(tt || (tt = {}));
9941
- class X extends Ji {
10007
+ class Z extends Ji {
9942
10008
  constructor(e, t, i, r) {
9943
10009
  super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = r;
9944
10010
  }
@@ -10004,8 +10070,8 @@ class X extends Ji {
10004
10070
  return this.widget ? this.widget.estimatedHeight > -1 : !1;
10005
10071
  }
10006
10072
  }
10007
- X.none = he.empty;
10008
- class Rr extends X {
10073
+ Z.none = he.empty;
10074
+ class Rr extends Z {
10009
10075
  constructor(e) {
10010
10076
  let { start: t, end: i } = Im(e);
10011
10077
  super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
@@ -10021,7 +10087,7 @@ class Rr extends X {
10021
10087
  }
10022
10088
  }
10023
10089
  Rr.prototype.point = !1;
10024
- class Ir extends X {
10090
+ class Ir extends Z {
10025
10091
  constructor(e) {
10026
10092
  super(-2e8, -2e8, null, e);
10027
10093
  }
@@ -10036,7 +10102,7 @@ class Ir extends X {
10036
10102
  }
10037
10103
  Ir.prototype.mapMode = Ze.TrackBefore;
10038
10104
  Ir.prototype.point = !0;
10039
- class Pi extends X {
10105
+ class Pi extends Z {
10040
10106
  constructor(e, t, i, r, s, o) {
10041
10107
  super(t, i, s, e), this.block = r, this.isReplace = o, this.mapMode = r ? t <= 0 ? Ze.TrackBefore : Ze.TrackAfter : Ze.TrackDel;
10042
10108
  }
@@ -10119,7 +10185,7 @@ class Pe extends ge {
10119
10185
  var i;
10120
10186
  this.dom ? this.flags & 4 && (_m(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (ha(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
10121
10187
  let r = this.dom.lastChild;
10122
- for (; r && ge.get(r) instanceof ui; )
10188
+ for (; r && ge.get(r) instanceof di; )
10123
10189
  r = r.lastChild;
10124
10190
  if (!r || !this.length || r.nodeName != "BR" && ((i = ge.get(r)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!z.ios || !this.children.some((s) => s instanceof Et))) {
10125
10191
  let s = document.createElement("BR");
@@ -10175,12 +10241,12 @@ class Pe extends ge {
10175
10241
  return null;
10176
10242
  }
10177
10243
  }
10178
- class ai extends ge {
10244
+ class ci extends ge {
10179
10245
  constructor(e, t, i) {
10180
10246
  super(), this.widget = e, this.length = t, this.deco = i, this.breakAfter = 0, this.prevWidget = null;
10181
10247
  }
10182
10248
  merge(e, t, i, r, s, o) {
10183
- return i && (!(i instanceof ai) || !this.widget.compare(i.widget) || e > 0 && s <= 0 || t < this.length && o <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
10249
+ return i && (!(i instanceof ci) || !this.widget.compare(i.widget) || e > 0 && s <= 0 || t < this.length && o <= 0) ? !1 : (this.length = e + (i ? i.length : 0) + (this.length - t), !0);
10184
10250
  }
10185
10251
  domAtPos(e) {
10186
10252
  return e == 0 ? Ke.before(this.dom) : Ke.after(this.dom, e == this.length);
@@ -10188,7 +10254,7 @@ class ai extends ge {
10188
10254
  split(e) {
10189
10255
  let t = this.length - e;
10190
10256
  this.length = e;
10191
- let i = new ai(this.widget, t, this.deco);
10257
+ let i = new ci(this.widget, t, this.deco);
10192
10258
  return i.breakAfter = this.breakAfter, i;
10193
10259
  }
10194
10260
  get children() {
@@ -10204,7 +10270,7 @@ class ai extends ge {
10204
10270
  return null;
10205
10271
  }
10206
10272
  become(e) {
10207
- return e instanceof ai && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1;
10273
+ return e instanceof ci && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1;
10208
10274
  }
10209
10275
  ignoreMutation() {
10210
10276
  return !0;
@@ -10230,7 +10296,7 @@ class ai extends ge {
10230
10296
  return t == i ? !1 : e < 0 ? t < 0 : i > 0;
10231
10297
  }
10232
10298
  }
10233
- class fa extends mi {
10299
+ class fa extends pi {
10234
10300
  constructor(e) {
10235
10301
  super(), this.height = e;
10236
10302
  }
@@ -10262,7 +10328,7 @@ class ar {
10262
10328
  if (this.content.length == 0)
10263
10329
  return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos;
10264
10330
  let e = this.content[this.content.length - 1];
10265
- return !(e.breakAfter || e instanceof ai && e.deco.endSide < 0);
10331
+ return !(e.breakAfter || e instanceof ci && e.deco.endSide < 0);
10266
10332
  }
10267
10333
  getLine() {
10268
10334
  return this.curLine || (this.content.push(this.curLine = new Pe()), this.atCursorPos = !0), this.curLine;
@@ -10274,7 +10340,7 @@ class ar {
10274
10340
  this.flushBuffer(), this.curLine = null, this.content.push(e);
10275
10341
  }
10276
10342
  finish(e) {
10277
- this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof ai) && this.getLine();
10343
+ this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof ci) && this.getLine();
10278
10344
  }
10279
10345
  buildText(e, t, i) {
10280
10346
  for (; e > 0; ) {
@@ -10309,9 +10375,9 @@ class ar {
10309
10375
  let l = t - e;
10310
10376
  if (i instanceof Pi)
10311
10377
  if (i.block)
10312
- i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new ai(i.widget || An.block, l, i));
10378
+ i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new ci(i.widget || An.block, l, i));
10313
10379
  else {
10314
- let a = si.create(i.widget || An.inline, l, l ? 0 : i.startSide), c = this.atCursorPos && !a.isEditable && s <= r.length && (e < t || i.startSide > 0), h = !a.isEditable && (e < t || s > r.length || i.startSide <= 0), f = this.getLine();
10380
+ let a = oi.create(i.widget || An.inline, l, l ? 0 : i.startSide), c = this.atCursorPos && !a.isEditable && s <= r.length && (e < t || i.startSide > 0), h = !a.isEditable && (e < t || s > r.length || i.startSide <= 0), f = this.getLine();
10315
10381
  this.pendingBuffer == 2 && !c && !a.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), c && (f.append(Zr(new Mn(1), r), s), s = r.length + Math.max(0, s - r.length)), f.append(Zr(a, r), s), this.atCursorPos = h, this.pendingBuffer = h ? e < t || s > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
10316
10382
  }
10317
10383
  else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(i);
@@ -10324,10 +10390,10 @@ class ar {
10324
10390
  }
10325
10391
  function Zr(n, e) {
10326
10392
  for (let t of e)
10327
- n = new ui(t, [n], n.length);
10393
+ n = new di(t, [n], n.length);
10328
10394
  return n;
10329
10395
  }
10330
- class An extends mi {
10396
+ class An extends pi {
10331
10397
  constructor(e) {
10332
10398
  super(), this.tag = e;
10333
10399
  }
@@ -10646,12 +10712,12 @@ class yn {
10646
10712
  return this.range.to <= e.doc.length ? this : new yn(T.cursor(e.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
10647
10713
  }
10648
10714
  }
10649
- const es = /* @__PURE__ */ ne.define({ map: (n, e) => n.map(e) }), Ym = /* @__PURE__ */ ne.define();
10715
+ const es = /* @__PURE__ */ re.define({ map: (n, e) => n.map(e) }), Ym = /* @__PURE__ */ re.define();
10650
10716
  function et(n, e, t) {
10651
10717
  let i = n.facet(Hm);
10652
10718
  i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
10653
10719
  }
10654
- const ni = /* @__PURE__ */ W.define({ combine: (n) => n.length ? n[0] : !0 });
10720
+ const ri = /* @__PURE__ */ W.define({ combine: (n) => n.length ? n[0] : !0 });
10655
10721
  let ux = 0;
10656
10722
  const cn = /* @__PURE__ */ W.define({
10657
10723
  combine(n) {
@@ -10683,7 +10749,7 @@ class Me {
10683
10749
  let a = [];
10684
10750
  return o && a.push(yr.of((c) => {
10685
10751
  let h = c.plugin(l);
10686
- return h ? o(h) : X.none;
10752
+ return h ? o(h) : Z.none;
10687
10753
  })), s && a.push(s(l)), a;
10688
10754
  });
10689
10755
  }
@@ -10811,7 +10877,7 @@ class wt {
10811
10877
  }
10812
10878
  class Ys {
10813
10879
  constructor(e, t, i) {
10814
- this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes = $e.empty(this.startState.doc.length);
10880
+ this.view = e, this.state = t, this.transactions = i, this.flags = 0, this.startState = e.state, this.changes = De.empty(this.startState.doc.length);
10815
10881
  for (let s of i)
10816
10882
  this.changes = this.changes.compose(s.changes);
10817
10883
  let r = [];
@@ -10884,7 +10950,7 @@ class uf extends ge {
10884
10950
  return this.view.state.doc.length;
10885
10951
  }
10886
10952
  constructor(e) {
10887
- super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = X.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Pe()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new wt(0, 0, 0, e.state.doc.length)], 0, null);
10953
+ super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = Z.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Pe()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new wt(0, 0, 0, e.state.doc.length)], 0, null);
10888
10954
  }
10889
10955
  // Update the document view to a given state.
10890
10956
  update(e) {
@@ -10919,7 +10985,7 @@ class uf extends ge {
10919
10985
  let s = [];
10920
10986
  if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length)
10921
10987
  for (let o of this.children)
10922
- o instanceof ai && o.widget instanceof fa && s.push(o.dom);
10988
+ o instanceof ci && o.widget instanceof fa && s.push(o.dom);
10923
10989
  r.updateGaps(s);
10924
10990
  }
10925
10991
  updateChildren(e, t, i) {
@@ -10951,7 +11017,7 @@ class uf extends ge {
10951
11017
  let t = new Et(e.text.nodeValue);
10952
11018
  t.flags |= 8;
10953
11019
  for (let { deco: r } of e.marks)
10954
- t = new ui(r, [t], t.length);
11020
+ t = new di(r, [t], t.length);
10955
11021
  let i = new Pe();
10956
11022
  return i.append(t, 0), i;
10957
11023
  }
@@ -10971,7 +11037,7 @@ class uf extends ge {
10971
11037
  // Sync the DOM selection to this.state.selection
10972
11038
  updateSelection(e = !1, t = !1) {
10973
11039
  (e || !this.view.observer.selectionRange.focusNode) && this.view.observer.readSelectionRange();
10974
- let i = this.view.root.activeElement, r = i == this.dom, s = !r && !(this.view.state.facet(ni) || this.dom.tabIndex > -1) && Ps(this.dom, this.view.observer.selectionRange) && !(i && this.dom.contains(i));
11040
+ let i = this.view.root.activeElement, r = i == this.dom, s = !r && !(this.view.state.facet(ri) || this.dom.tabIndex > -1) && Ps(this.dom, this.view.observer.selectionRange) && !(i && this.dom.contains(i));
10975
11041
  if (!(r || t || s))
10976
11042
  return;
10977
11043
  let o = this.forceSelection;
@@ -11082,7 +11148,7 @@ class uf extends ge {
11082
11148
  break;
11083
11149
  if (c <= e && (c < e || l.covers(-1)) && (a > e || l.covers(1)) && (!i || l instanceof Pe && !(i instanceof Pe && t >= 0)))
11084
11150
  i = l, r = c;
11085
- else if (i && c == e && a == e && l instanceof ai && Math.abs(t) < 2) {
11151
+ else if (i && c == e && a == e && l instanceof ci && Math.abs(t) < 2) {
11086
11152
  if (l.deco.startSide < 0)
11087
11153
  break;
11088
11154
  o && (i = null);
@@ -11166,7 +11232,7 @@ class uf extends ge {
11166
11232
  let s = r == t.viewports.length ? null : t.viewports[r], o = s ? s.from - 1 : this.length;
11167
11233
  if (o > i) {
11168
11234
  let l = (t.lineBlockAt(o).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
11169
- e.push(X.replace({
11235
+ e.push(Z.replace({
11170
11236
  widget: new fa(l),
11171
11237
  block: !0,
11172
11238
  inclusive: !0,
@@ -11177,7 +11243,7 @@ class uf extends ge {
11177
11243
  break;
11178
11244
  i = s.to + 1;
11179
11245
  }
11180
- return X.set(e);
11246
+ return Z.set(e);
11181
11247
  }
11182
11248
  updateDeco() {
11183
11249
  let e = 1, t = this.view.state.facet(yr).map((s) => (this.dynamicDecorationMap[e++] = typeof s == "function") ? s(this.view) : s), i = !1, r = this.view.state.facet(Xm).map((s, o) => {
@@ -11227,7 +11293,7 @@ class uf extends ge {
11227
11293
  let { i: t } = this.childCursor().findPos(e);
11228
11294
  if (t == this.children.length)
11229
11295
  return !1;
11230
- let i = (r) => r instanceof si || r.children.some(i);
11296
+ let i = (r) => r instanceof oi || r.children.some(i);
11231
11297
  return i(this.children[t]);
11232
11298
  }
11233
11299
  }
@@ -11263,7 +11329,7 @@ function mx(n, e, t) {
11263
11329
  let a = e.invertedDesc, c = new wt(a.mapPos(s), a.mapPos(o), s, o), h = [];
11264
11330
  for (let f = r.parentNode; ; f = f.parentNode) {
11265
11331
  let u = ge.get(f);
11266
- if (u instanceof ui)
11332
+ if (u instanceof di)
11267
11333
  h.push({ node: f, deco: u.mark });
11268
11334
  else {
11269
11335
  if (u instanceof Pe || f.nodeName == "DIV" && f.parentNode == n.contentDOM)
@@ -11718,7 +11784,7 @@ function sp(n, e) {
11718
11784
  to: o + h.toA,
11719
11785
  insert: fe.of(e.text.slice(h.from, h.toB).split(Qn))
11720
11786
  });
11721
- } else i && (!n.hasFocus && n.state.facet(ni) || i.main.eq(r)) && (i = null);
11787
+ } else i && (!n.hasFocus && n.state.facet(ri) || i.main.eq(r)) && (i = null);
11722
11788
  if (!t && !i)
11723
11789
  return !1;
11724
11790
  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) } : (z.mac || z.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 = T.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: fe.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 = {
@@ -12246,7 +12312,7 @@ $t.copy = $t.cut = (n, e) => {
12246
12312
  let s = cp ? null : e.clipboardData;
12247
12313
  return s ? (s.clearData(), s.setData("text/plain", t), !0) : (Jx(n, t), !1);
12248
12314
  };
12249
- const up = /* @__PURE__ */ di.define();
12315
+ const up = /* @__PURE__ */ mi.define();
12250
12316
  function dp(n, e) {
12251
12317
  let t = [];
12252
12318
  for (let i of n.facet(Um)) {
@@ -12809,12 +12875,12 @@ class dl {
12809
12875
  return !0;
12810
12876
  }
12811
12877
  draw(e, t) {
12812
- return X.replace({
12878
+ return Z.replace({
12813
12879
  widget: new lC(this.displaySize * (t ? e.scaleY : e.scaleX), t)
12814
12880
  }).range(this.from, this.to);
12815
12881
  }
12816
12882
  }
12817
- class lC extends mi {
12883
+ class lC extends pi {
12818
12884
  constructor(e, t) {
12819
12885
  super(), this.size = e, this.vertical = t;
12820
12886
  }
@@ -12836,7 +12902,7 @@ class Ef {
12836
12902
  this.heightOracle = new Xx(t), this.stateDeco = e.facet(yr).filter((i) => typeof i != "function"), this.heightMap = it.empty().applyChanges(this.stateDeco, fe.empty, this.heightOracle.setDoc(e.doc), [new wt(0, 0, 0, e.doc.length)]);
12837
12903
  for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
12838
12904
  ;
12839
- this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = X.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
12905
+ this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = Z.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
12840
12906
  }
12841
12907
  updateForViewport() {
12842
12908
  let e = [this.viewport], { main: t } = this.state.selection;
@@ -12862,7 +12928,7 @@ class Ef {
12862
12928
  this.state = e.state;
12863
12929
  let i = this.stateDeco;
12864
12930
  this.stateDeco = this.state.facet(yr).filter((h) => typeof h != "function");
12865
- let r = e.changedRanges, s = wt.extendWithRanges(r, iC(i, this.stateDeco, e ? e.changes : $e.empty(this.state.doc.length))), o = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
12931
+ let r = e.changedRanges, s = wt.extendWithRanges(r, iC(i, this.stateDeco, e ? e.changes : De.empty(this.state.doc.length))), o = this.heightMap.height, l = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
12866
12932
  Pf(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), (this.heightMap.height != o || On) && (e.flags |= 2), l ? (this.scrollAnchorPos = e.changes.mapPos(l.from, -1), this.scrollAnchorHeight = l.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = o);
12867
12933
  let a = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
12868
12934
  (t && (t.range.head < a.from || t.range.head > a.to) || !this.viewportIsAppropriate(a)) && (a = this.getViewport(0, t));
@@ -13020,7 +13086,7 @@ class Ef {
13020
13086
  return this.heightOracle.lineWrapping ? e.height * s : r.total * this.heightOracle.charWidth * s;
13021
13087
  }
13022
13088
  updateLineGaps(e) {
13023
- dl.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = X.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
13089
+ dl.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = Z.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
13024
13090
  }
13025
13091
  computeVisibleRanges(e) {
13026
13092
  let t = this.stateDeco;
@@ -13455,7 +13521,7 @@ class uC {
13455
13521
  this.queue.push(i);
13456
13522
  (z.ie && z.ie_version <= 11 || z.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
13457
13523
  }), window.EditContext && z.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
13458
- !(z.chrome && z.chrome_version < 126) && (this.editContext = new mC(e), e.state.facet(ni) && (e.contentDOM.editContext = this.editContext.editContext)), ml && (this.onCharData = (t) => {
13524
+ !(z.chrome && z.chrome_version < 126) && (this.editContext = new mC(e), e.state.facet(ri) && (e.contentDOM.editContext = this.editContext.editContext)), ml && (this.onCharData = (t) => {
13459
13525
  this.queue.push({
13460
13526
  target: t.target,
13461
13527
  type: "characterData",
@@ -13499,7 +13565,7 @@ class uC {
13499
13565
  if (!this.readSelectionRange() || this.delayedAndroidKey)
13500
13566
  return;
13501
13567
  let { view: i } = this, r = this.selectionRange;
13502
- if (i.state.facet(ni) ? i.root.activeElement != this.dom : !Ps(this.dom, r))
13568
+ if (i.state.facet(ri) ? i.root.activeElement != this.dom : !Ps(this.dom, r))
13503
13569
  return;
13504
13570
  let s = r.anchorNode && i.docView.nearest(r.anchorNode);
13505
13571
  if (s && s.ignoreEvent(e)) {
@@ -13656,7 +13722,7 @@ class uC {
13656
13722
  e.removeEventListener("scroll", this.onScroll), e.removeEventListener("resize", this.onResize), this.printQuery ? this.printQuery.removeEventListener ? this.printQuery.removeEventListener("change", this.onPrint) : this.printQuery.removeListener(this.onPrint) : e.removeEventListener("beforeprint", this.onPrint), e.document.removeEventListener("selectionchange", this.onSelectionChange);
13657
13723
  }
13658
13724
  update(e) {
13659
- this.editContext && (this.editContext.update(e), e.startState.facet(ni) != e.state.facet(ni) && (e.view.contentDOM.editContext = e.state.facet(ni) ? this.editContext.editContext : null));
13725
+ this.editContext && (this.editContext.update(e), e.startState.facet(ri) != e.state.facet(ri) && (e.view.contentDOM.editContext = e.state.facet(ri) ? this.editContext.editContext : null));
13660
13726
  }
13661
13727
  destroy() {
13662
13728
  var e, t, i;
@@ -13737,11 +13803,11 @@ class mC {
13737
13803
  let a = this.toEditorPos(s.rangeStart), c = this.toEditorPos(s.rangeEnd);
13738
13804
  if (a < c) {
13739
13805
  let h = `text-decoration: underline ${/^[a-z]/.test(o) ? o + " " : o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${/thin/i.test(l) ? 1 : 2}px`;
13740
- r.push(X.mark({ attributes: { style: h } }).range(a, c));
13806
+ r.push(Z.mark({ attributes: { style: h } }).range(a, c));
13741
13807
  }
13742
13808
  }
13743
13809
  }
13744
- e.dispatch({ effects: Ym.of(X.set(r)) });
13810
+ e.dispatch({ effects: Ym.of(Z.set(r)) });
13745
13811
  }, this.handlers.compositionstart = () => {
13746
13812
  e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
13747
13813
  }, this.handlers.compositionend = () => {
@@ -13906,7 +13972,7 @@ class H {
13906
13972
  this.observer = new uC(this), this.inputState = new Ix(this), this.inputState.ensureHandlers(this.plugins), this.docView = new uf(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
13907
13973
  }
13908
13974
  dispatch(...e) {
13909
- let t = e.length == 1 && e[0] instanceof De ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
13975
+ let t = e.length == 1 && e[0] instanceof Re ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)];
13910
13976
  this.dispatchTransactions(t, this);
13911
13977
  }
13912
13978
  /**
@@ -14109,7 +14175,7 @@ class H {
14109
14175
  autocapitalize: "off",
14110
14176
  writingsuggestions: "false",
14111
14177
  translate: "no",
14112
- contenteditable: this.state.facet(ni) ? "true" : "false",
14178
+ contenteditable: this.state.facet(ri) ? "true" : "false",
14113
14179
  class: "cm-content",
14114
14180
  style: `${z.tabSize}: ${this.state.tabSize}`,
14115
14181
  role: "textbox",
@@ -14569,7 +14635,7 @@ H.focusChangeEffect = Um;
14569
14635
  H.perLineTextDirection = Km;
14570
14636
  H.exceptionSink = Hm;
14571
14637
  H.updateListener = pa;
14572
- H.editable = ni;
14638
+ H.editable = ri;
14573
14639
  H.mouseSelectionStyle = zm;
14574
14640
  H.dragMovesSelection = Vm;
14575
14641
  H.clickAddsSelectionRange = qm;
@@ -14583,7 +14649,7 @@ H.cspNonce = /* @__PURE__ */ W.define({ combine: (n) => n.length ? n[0] : "" });
14583
14649
  H.contentAttributes = jc;
14584
14650
  H.editorAttributes = Qm;
14585
14651
  H.lineWrapping = /* @__PURE__ */ H.contentAttributes.of({ class: "cm-lineWrapping" });
14586
- H.announce = /* @__PURE__ */ ne.define();
14652
+ H.announce = /* @__PURE__ */ re.define();
14587
14653
  const pC = 4096, If = {};
14588
14654
  class Xs {
14589
14655
  constructor(e, t, i, r, s, o) {
@@ -14785,22 +14851,22 @@ function SC(n, e, t) {
14785
14851
  }
14786
14852
  function w(x, A, P) {
14787
14853
  let $ = 1e9, I = -1e9, F = [];
14788
- function R(G, D, re, te, de) {
14789
- let ye = n.coordsAtPos(G, G == P.to ? -2 : 2), N = n.coordsAtPos(re, re == P.from ? 2 : -2);
14854
+ function R(G, D, ne, te, de) {
14855
+ let ye = n.coordsAtPos(G, G == P.to ? -2 : 2), N = n.coordsAtPos(ne, ne == P.from ? 2 : -2);
14790
14856
  !ye || !N || ($ = Math.min(ye.top, N.top, $), I = Math.max(ye.bottom, N.bottom, I), de == xe.LTR ? F.push(s && D ? f : ye.left, s && te ? u : N.right) : F.push(!s && te ? f : N.left, !s && D ? u : ye.right));
14791
14857
  }
14792
14858
  let L = x ?? P.from, B = A ?? P.to;
14793
14859
  for (let G of n.visibleRanges)
14794
14860
  if (G.to > L && G.from < B)
14795
- for (let D = Math.max(G.from, L), re = Math.min(G.to, B); ; ) {
14861
+ for (let D = Math.max(G.from, L), ne = Math.min(G.to, B); ; ) {
14796
14862
  let te = n.state.doc.lineAt(D);
14797
14863
  for (let de of n.bidiSpans(te)) {
14798
14864
  let ye = de.from + te.from, N = de.to + te.from;
14799
- if (ye >= re)
14865
+ if (ye >= ne)
14800
14866
  break;
14801
- N > D && R(Math.max(ye, D), x == null && ye <= L, Math.min(N, re), A == null && N >= B, de.dir);
14867
+ N > D && R(Math.max(ye, D), x == null && ye <= L, Math.min(N, ne), A == null && N >= B, de.dir);
14802
14868
  }
14803
- if (D = te.to + 1, D >= re)
14869
+ if (D = te.to + 1, D >= ne)
14804
14870
  break;
14805
14871
  }
14806
14872
  return F.length == 0 && R(L, x == null, B, A == null, n.textDirection), { top: $, bottom: I, horizontal: F };
@@ -14932,11 +14998,11 @@ const AC = /* @__PURE__ */ Sp({
14932
14998
  }
14933
14999
  }
14934
15000
  }
14935
- })), Cp = /* @__PURE__ */ ne.define({
15001
+ })), Cp = /* @__PURE__ */ re.define({
14936
15002
  map(n, e) {
14937
15003
  return n == null ? null : e.mapPos(n);
14938
15004
  }
14939
- }), Zn = /* @__PURE__ */ Re.define({
15005
+ }), Zn = /* @__PURE__ */ Ie.define({
14940
15006
  create() {
14941
15007
  return null;
14942
15008
  },
@@ -15037,7 +15103,7 @@ class $C {
15037
15103
  plugin.
15038
15104
  */
15039
15105
  createDeco(e) {
15040
- let t = new fi(), i = t.add.bind(t);
15106
+ let t = new ui(), i = t.add.bind(t);
15041
15107
  for (let { from: r, to: s } of EC(e, this.maxLength))
15042
15108
  jf(e.state.doc, this.regexp, r, s, (o, l) => this.addMatch(l, e, o, i));
15043
15109
  return t.finish();
@@ -15132,7 +15198,7 @@ let qf = null;
15132
15198
  function LC() {
15133
15199
  return qf || (qf = Me.fromClass(class {
15134
15200
  constructor(n) {
15135
- this.view = n, this.decorations = X.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(Ds)), this.decorations = this.decorator.createDeco(n);
15201
+ this.view = n, this.decorations = Z.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(Ds)), this.decorations = this.decorator.createDeco(n);
15136
15202
  }
15137
15203
  makeDecorator(n) {
15138
15204
  return new $C({
@@ -15141,11 +15207,11 @@ function LC() {
15141
15207
  let { doc: r } = t.state, s = st(e[0], 0);
15142
15208
  if (s == 9) {
15143
15209
  let o = r.lineAt(i), l = t.state.tabSize, a = Nn(o.text, l, i - o.from);
15144
- return X.replace({
15210
+ return Z.replace({
15145
15211
  widget: new qC((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX)
15146
15212
  });
15147
15213
  }
15148
- return this.decorationCache[s] || (this.decorationCache[s] = X.replace({ widget: new jC(n, s) }));
15214
+ return this.decorationCache[s] || (this.decorationCache[s] = Z.replace({ widget: new jC(n, s) }));
15149
15215
  },
15150
15216
  boundary: n.replaceTabs ? void 0 : /[^]/
15151
15217
  });
@@ -15162,7 +15228,7 @@ const BC = "•";
15162
15228
  function FC(n) {
15163
15229
  return n >= 32 ? BC : n == 10 ? "␤" : String.fromCharCode(9216 + n);
15164
15230
  }
15165
- class jC extends mi {
15231
+ class jC extends pi {
15166
15232
  constructor(e, t) {
15167
15233
  super(), this.options = e, this.code = t;
15168
15234
  }
@@ -15180,7 +15246,7 @@ class jC extends mi {
15180
15246
  return !1;
15181
15247
  }
15182
15248
  }
15183
- class qC extends mi {
15249
+ class qC extends pi {
15184
15250
  constructor(e) {
15185
15251
  super(), this.width = e;
15186
15252
  }
@@ -15198,7 +15264,7 @@ class qC extends mi {
15198
15264
  function VC() {
15199
15265
  return HC;
15200
15266
  }
15201
- const zC = /* @__PURE__ */ X.line({ class: "cm-activeLine" }), HC = /* @__PURE__ */ Me.fromClass(class {
15267
+ const zC = /* @__PURE__ */ Z.line({ class: "cm-activeLine" }), HC = /* @__PURE__ */ Me.fromClass(class {
15202
15268
  constructor(n) {
15203
15269
  this.decorations = this.getDeco(n);
15204
15270
  }
@@ -15211,12 +15277,12 @@ const zC = /* @__PURE__ */ X.line({ class: "cm-activeLine" }), HC = /* @__PURE__
15211
15277
  let r = n.lineBlockAt(i.head);
15212
15278
  r.from > e && (t.push(zC.range(r.from)), e = r.from);
15213
15279
  }
15214
- return X.set(t);
15280
+ return Z.set(t);
15215
15281
  }
15216
15282
  }, {
15217
15283
  decorations: (n) => n.decorations
15218
15284
  });
15219
- class WC extends mi {
15285
+ class WC extends pi {
15220
15286
  constructor(e) {
15221
15287
  super(), this.content = e;
15222
15288
  }
@@ -15238,10 +15304,10 @@ class WC extends mi {
15238
15304
  function UC(n) {
15239
15305
  let e = Me.fromClass(class {
15240
15306
  constructor(t) {
15241
- this.view = t, this.placeholder = n ? X.set([X.widget({ widget: new WC(n), side: 1 }).range(0)]) : X.none;
15307
+ this.view = t, this.placeholder = n ? Z.set([Z.widget({ widget: new WC(n), side: 1 }).range(0)]) : Z.none;
15242
15308
  }
15243
15309
  get decorations() {
15244
- return this.view.state.doc.length ? X.none : this.placeholder;
15310
+ return this.view.state.doc.length ? Z.none : this.placeholder;
15245
15311
  }
15246
15312
  }, { decorations: (t) => t.decorations });
15247
15313
  return typeof n == "string" ? [
@@ -15688,7 +15754,7 @@ class r_ {
15688
15754
  if (!i)
15689
15755
  return;
15690
15756
  let r, s = 1;
15691
- if (i instanceof si)
15757
+ if (i instanceof oi)
15692
15758
  r = i.posAtStart;
15693
15759
  else {
15694
15760
  if (r = e.posAtCoords(t), r == null)
@@ -15755,7 +15821,7 @@ function o_(n, e, t, i, r, s) {
15755
15821
  return a >= e && a <= t;
15756
15822
  }
15757
15823
  function l_(n, e = {}) {
15758
- let t = ne.define(), i = Re.define({
15824
+ let t = re.define(), i = Ie.define({
15759
15825
  create() {
15760
15826
  return [];
15761
15827
  },
@@ -15800,7 +15866,7 @@ function Mp(n, e) {
15800
15866
  let i = t.manager.tooltips.indexOf(e);
15801
15867
  return i < 0 ? null : t.manager.tooltipViews[i];
15802
15868
  }
15803
- const a_ = /* @__PURE__ */ ne.define(), Wf = /* @__PURE__ */ W.define({
15869
+ const a_ = /* @__PURE__ */ re.define(), Wf = /* @__PURE__ */ W.define({
15804
15870
  combine(n) {
15805
15871
  let e, t;
15806
15872
  for (let i of n)
@@ -17316,7 +17382,7 @@ function __(n) {
17316
17382
  var e;
17317
17383
  let { buffer: t, nodeSet: i, maxBufferLength: r = $p, reused: s = [], minRepeatType: o = i.types.length } = n, l = Array.isArray(t) ? new Kc(t, t.length) : t, a = i.types, c = 0, h = 0;
17318
17384
  function f(x, A, P, $, I, F) {
17319
- let { id: R, start: L, end: B, size: G } = l, D = h, re = c;
17385
+ let { id: R, start: L, end: B, size: G } = l, D = h, ne = c;
17320
17386
  if (G < 0)
17321
17387
  if (l.next(), G == -1) {
17322
17388
  let C = s[R];
@@ -17341,12 +17407,12 @@ function __(n) {
17341
17407
  l.next();
17342
17408
  let E = [], _ = [], v = R >= o ? R : -1, k = 0, O = B;
17343
17409
  for (; l.pos > C; )
17344
- v >= 0 && l.id == v && l.size >= 0 ? (l.end <= O - r && (m(E, _, L, k, l.end, O, v, D, re), k = E.length, O = l.end), l.next()) : F > 2500 ? u(L, C, E, _) : f(L, C, E, _, v, F + 1);
17345
- if (v >= 0 && k > 0 && k < E.length && m(E, _, L, k, L, O, v, D, re), E.reverse(), _.reverse(), v > -1 && k > 0) {
17346
- let K = d(te, re);
17410
+ v >= 0 && l.id == v && l.size >= 0 ? (l.end <= O - r && (m(E, _, L, k, l.end, O, v, D, ne), k = E.length, O = l.end), l.next()) : F > 2500 ? u(L, C, E, _) : f(L, C, E, _, v, F + 1);
17411
+ if (v >= 0 && k > 0 && k < E.length && m(E, _, L, k, L, O, v, D, ne), E.reverse(), _.reverse(), v > -1 && k > 0) {
17412
+ let K = d(te, ne);
17347
17413
  de = Jc(te, E, _, 0, E.length, 0, B - L, K, K);
17348
17414
  } else
17349
- de = y(te, E, _, B - L, D - B, re);
17415
+ de = y(te, E, _, B - L, D - B, ne);
17350
17416
  }
17351
17417
  P.push(de), $.push(N);
17352
17418
  }
@@ -17408,17 +17474,17 @@ function __(n) {
17408
17474
  let D = P.pos - G;
17409
17475
  if (G < 0 || D < B || P.start < R)
17410
17476
  break;
17411
- let re = P.id >= o ? 4 : 0, te = P.start;
17477
+ let ne = P.id >= o ? 4 : 0, te = P.start;
17412
17478
  for (P.next(); P.pos > D; ) {
17413
17479
  if (P.size < 0)
17414
17480
  if (P.size == -3)
17415
- re += 4;
17481
+ ne += 4;
17416
17482
  else
17417
17483
  break e;
17418
- else P.id >= o && (re += 4);
17484
+ else P.id >= o && (ne += 4);
17419
17485
  P.next();
17420
17486
  }
17421
- I = te, $ += G, F += re;
17487
+ I = te, $ += G, F += ne;
17422
17488
  }
17423
17489
  return (A < 0 || $ == x) && (L.size = $, L.start = I, L.skip = F), L.size > 4 ? L : void 0;
17424
17490
  }
@@ -18323,7 +18389,7 @@ class Ot {
18323
18389
  return !0;
18324
18390
  }
18325
18391
  }
18326
- Ot.setState = /* @__PURE__ */ ne.define();
18392
+ Ot.setState = /* @__PURE__ */ re.define();
18327
18393
  function iu(n, e, t) {
18328
18394
  let i = n.facet(Ei), r = Ge(n).topNode;
18329
18395
  if (!i || i.allowsNesting)
@@ -18553,7 +18619,7 @@ class Pn {
18553
18619
  return i.work(20, t) || i.takeTree(), new Pn(i);
18554
18620
  }
18555
18621
  }
18556
- Ot.state = /* @__PURE__ */ Re.define({
18622
+ Ot.state = /* @__PURE__ */ Ie.define({
18557
18623
  create: Pn.init,
18558
18624
  update(n, e) {
18559
18625
  for (let t of e.effects)
@@ -18942,22 +19008,22 @@ function Hp(n, e) {
18942
19008
  let t = e.mapPos(n.from, 1), i = e.mapPos(n.to, -1);
18943
19009
  return t >= i ? void 0 : { from: t, to: i };
18944
19010
  }
18945
- const $o = /* @__PURE__ */ ne.define({ map: Hp }), Fr = /* @__PURE__ */ ne.define({ map: Hp });
19011
+ const $o = /* @__PURE__ */ re.define({ map: Hp }), Fr = /* @__PURE__ */ re.define({ map: Hp });
18946
19012
  function Wp(n) {
18947
19013
  let e = [];
18948
19014
  for (let { head: t } of n.state.selection.ranges)
18949
19015
  e.some((i) => i.from <= t && i.to >= t) || e.push(n.lineBlockAt(t));
18950
19016
  return e;
18951
19017
  }
18952
- const Zi = /* @__PURE__ */ Re.define({
19018
+ const Zi = /* @__PURE__ */ Ie.define({
18953
19019
  create() {
18954
- return X.none;
19020
+ return Z.none;
18955
19021
  },
18956
19022
  update(n, e) {
18957
19023
  e.isUserEvent("delete") && e.changes.iterChangedRanges((t, i) => n = su(n, t, i)), n = n.map(e.changes);
18958
19024
  for (let t of e.effects)
18959
19025
  if (t.is($o) && !eM(n, t.value.from, t.value.to)) {
18960
- let { preparePlaceholder: i } = e.state.facet(Gp), r = i ? X.replace({ widget: new lM(i(e.state, t.value)) }) : ou;
19026
+ let { preparePlaceholder: i } = e.state.facet(Gp), r = i ? Z.replace({ widget: new lM(i(e.state, t.value)) }) : ou;
18961
19027
  n = n.update({ add: [r.range(t.value.from, t.value.to)] });
18962
19028
  } else t.is(Fr) && (n = n.update({
18963
19029
  filter: (i, r) => t.value.from != i || t.value.to != r,
@@ -18983,7 +19049,7 @@ const Zi = /* @__PURE__ */ Re.define({
18983
19049
  throw new RangeError("Invalid JSON for fold state");
18984
19050
  e.push(ou.range(i, r));
18985
19051
  }
18986
- return X.set(e, !0);
19052
+ return Z.set(e, !0);
18987
19053
  }
18988
19054
  });
18989
19055
  function su(n, e, t = e) {
@@ -19010,7 +19076,7 @@ function eM(n, e, t) {
19010
19076
  }), i;
19011
19077
  }
19012
19078
  function Up(n, e) {
19013
- return n.field(Zi, !1) ? e : e.concat(ne.appendConfig.of(Jp()));
19079
+ return n.field(Zi, !1) ? e : e.concat(re.appendConfig.of(Jp()));
19014
19080
  }
19015
19081
  const tM = (n) => {
19016
19082
  for (let e of Wp(n)) {
@@ -19075,12 +19141,12 @@ function Yp(n, e) {
19075
19141
  let s = document.createElement("span");
19076
19142
  return s.textContent = i.placeholderText, s.setAttribute("aria-label", t.phrase("folded code")), s.title = t.phrase("unfold"), s.className = "cm-foldPlaceholder", s.onclick = r, s;
19077
19143
  }
19078
- const ou = /* @__PURE__ */ X.replace({ widget: /* @__PURE__ */ new class extends mi {
19144
+ const ou = /* @__PURE__ */ Z.replace({ widget: /* @__PURE__ */ new class extends pi {
19079
19145
  toDOM(n) {
19080
19146
  return Yp(n, null);
19081
19147
  }
19082
19148
  }() });
19083
- class lM extends mi {
19149
+ class lM extends pi {
19084
19150
  constructor(e) {
19085
19151
  super(), this.value = e;
19086
19152
  }
@@ -19121,7 +19187,7 @@ function cM(n = {}) {
19121
19187
  (o.docChanged || o.viewportChanged || o.startState.facet(Ei) != o.state.facet(Ei) || o.startState.field(Zi, !1) != o.state.field(Zi, !1) || Ge(o.startState) != Ge(o.state) || e.foldingChanged(o)) && (this.markers = this.buildMarkers(o.view));
19122
19188
  }
19123
19189
  buildMarkers(o) {
19124
- let l = new fi();
19190
+ let l = new ui();
19125
19191
  for (let a of o.viewportLineBlocks) {
19126
19192
  let c = oo(o.state, a.from, a.to) ? i : so(o.state, a.from, a.to) ? t : null;
19127
19193
  c && l.add(a.from, a.from, c);
@@ -19229,11 +19295,11 @@ class fM {
19229
19295
  }
19230
19296
  buildDeco(e, t) {
19231
19297
  if (!t || !this.tree.length)
19232
- return X.none;
19233
- let i = new fi();
19298
+ return Z.none;
19299
+ let i = new ui();
19234
19300
  for (let { from: r, to: s } of e.visibleRanges)
19235
19301
  $_(this.tree, t, (o, l, a) => {
19236
- i.add(o, l, this.markCache[a] || (this.markCache[a] = X.mark({ class: a })));
19302
+ i.add(o, l, this.markCache[a] || (this.markCache[a] = Z.mark({ class: a })));
19237
19303
  }, r, s);
19238
19304
  return i.finish();
19239
19305
  }
@@ -19330,14 +19396,14 @@ const uM = /* @__PURE__ */ en.high(/* @__PURE__ */ Me.fromClass(fM, {
19330
19396
  renderMatch: yM
19331
19397
  });
19332
19398
  }
19333
- }), pM = /* @__PURE__ */ X.mark({ class: "cm-matchingBracket" }), gM = /* @__PURE__ */ X.mark({ class: "cm-nonmatchingBracket" });
19399
+ }), pM = /* @__PURE__ */ Z.mark({ class: "cm-matchingBracket" }), gM = /* @__PURE__ */ Z.mark({ class: "cm-nonmatchingBracket" });
19334
19400
  function yM(n) {
19335
19401
  let e = [], t = n.matched ? pM : gM;
19336
19402
  return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
19337
19403
  }
19338
- const bM = /* @__PURE__ */ Re.define({
19404
+ const bM = /* @__PURE__ */ Ie.define({
19339
19405
  create() {
19340
- return X.none;
19406
+ return Z.none;
19341
19407
  },
19342
19408
  update(n, e) {
19343
19409
  if (!e.docChanged && !e.selection)
@@ -19349,7 +19415,7 @@ const bM = /* @__PURE__ */ Re.define({
19349
19415
  let s = Gt(e.state, r.head, -1, i) || r.head > 0 && Gt(e.state, r.head - 1, 1, i) || i.afterCursor && (Gt(e.state, r.head, 1, i) || r.head < e.state.doc.length && Gt(e.state, r.head + 1, -1, i));
19350
19416
  s && (t = t.concat(i.renderMatch(s, e.state)));
19351
19417
  }
19352
- return X.set(t, !0);
19418
+ return Z.set(t, !0);
19353
19419
  },
19354
19420
  provide: (n) => H.decorations.from(n)
19355
19421
  }), vM = [
@@ -19595,7 +19661,7 @@ function DM(n, e, t = e.selection.ranges) {
19595
19661
  }
19596
19662
  return null;
19597
19663
  }
19598
- const $a = /* @__PURE__ */ di.define(), RM = /* @__PURE__ */ di.define(), IM = /* @__PURE__ */ W.define(), ng = /* @__PURE__ */ W.define({
19664
+ const $a = /* @__PURE__ */ mi.define(), RM = /* @__PURE__ */ mi.define(), IM = /* @__PURE__ */ W.define(), ng = /* @__PURE__ */ W.define({
19599
19665
  combine(n) {
19600
19666
  return Rt(n, {
19601
19667
  minDepth: 100,
@@ -19607,7 +19673,7 @@ const $a = /* @__PURE__ */ di.define(), RM = /* @__PURE__ */ di.define(), IM = /
19607
19673
  joinToEvent: (e, t) => (i, r) => e(i, r) || t(i, r)
19608
19674
  });
19609
19675
  }
19610
- }), rg = /* @__PURE__ */ Re.define({
19676
+ }), rg = /* @__PURE__ */ Ie.define({
19611
19677
  create() {
19612
19678
  return Jt.empty;
19613
19679
  },
@@ -19618,9 +19684,9 @@ const $a = /* @__PURE__ */ di.define(), RM = /* @__PURE__ */ di.define(), IM = /
19618
19684
  return a ? h = lo(h, h.length, t.minDepth, a) : h = lg(h, e.startState.selection), new Jt(c == 0 ? i.rest : h, c == 0 ? h : i.rest);
19619
19685
  }
19620
19686
  let r = e.annotation(RM);
19621
- if ((r == "full" || r == "before") && (n = n.isolate()), e.annotation(De.addToHistory) === !1)
19687
+ if ((r == "full" || r == "before") && (n = n.isolate()), e.annotation(Re.addToHistory) === !1)
19622
19688
  return e.changes.empty ? n : n.addMapping(e.changes.desc);
19623
- let s = at.fromTransaction(e), o = e.annotation(De.time), l = e.annotation(De.userEvent);
19689
+ let s = at.fromTransaction(e), o = e.annotation(Re.time), l = e.annotation(Re.userEvent);
19624
19690
  return s ? n = n.addChanges(s, o, l, t, e) : e.selection && (n = n.addSelection(e.startState.selection, o, l, t.newGroupDelay)), (r == "full" || r == "after") && (n = n.isolate()), n;
19625
19691
  },
19626
19692
  toJSON(n) {
@@ -19671,7 +19737,7 @@ class at {
19671
19737
  };
19672
19738
  }
19673
19739
  static fromJSON(e) {
19674
- return new at(e.changes && $e.fromJSON(e.changes), [], e.mapped && Qt.fromJSON(e.mapped), e.startSelection && T.fromJSON(e.startSelection), e.selectionsAfter.map(T.fromJSON));
19740
+ return new at(e.changes && De.fromJSON(e.changes), [], e.mapped && Qt.fromJSON(e.mapped), e.startSelection && T.fromJSON(e.startSelection), e.selectionsAfter.map(T.fromJSON));
19675
19741
  }
19676
19742
  // This does not check `addToHistory` and such, it assumes the
19677
19743
  // transaction needs to be converted to an item. Returns null when
@@ -19738,7 +19804,7 @@ function zM(n, e, t) {
19738
19804
  if (!n.changes)
19739
19805
  return at.selection(i);
19740
19806
  let r = n.changes.map(e), s = e.mapDesc(n.changes, !0), o = n.mapped ? n.mapped.composeDesc(s) : s;
19741
- return new at(r, ne.mapEffects(n.effects, e), o, n.startSelection.map(s), i);
19807
+ return new at(r, re.mapEffects(n.effects, e), o, n.startSelection.map(s), i);
19742
19808
  }
19743
19809
  const HM = /^(input\.type|delete)($|\.)/;
19744
19810
  class Jt {
@@ -19751,7 +19817,7 @@ class Jt {
19751
19817
  addChanges(e, t, i, r, s) {
19752
19818
  let o = this.done, l = o[o.length - 1];
19753
19819
  return l && l.changes && !l.changes.empty && e.changes && (!i || HM.test(i)) && (!l.selectionsAfter.length && t - this.prevTime < r.newGroupDelay && r.joinToEvent(s, FM(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
19754
- i == "input.type.compose") ? o = lo(o, o.length - 1, r.minDepth, new at(e.changes.compose(l.changes), og(ne.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, yt)) : o = lo(o, o.length, r.minDepth, e), new Jt(o, yt, t, i);
19820
+ i == "input.type.compose") ? o = lo(o, o.length - 1, r.minDepth, new at(e.changes.compose(l.changes), og(re.mapEffects(e.effects, l.changes), l.effects), l.mapped, l.startSelection, yt)) : o = lo(o, o.length, r.minDepth, e), new Jt(o, yt, t, i);
19755
19821
  }
19756
19822
  addSelection(e, t, i, r) {
19757
19823
  let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : yt;
@@ -20440,7 +20506,7 @@ function Na(n) {
20440
20506
  }
20441
20507
  return { dom: i };
20442
20508
  }
20443
- const fr = /* @__PURE__ */ ne.define(), vu = /* @__PURE__ */ Re.define({
20509
+ const fr = /* @__PURE__ */ re.define(), vu = /* @__PURE__ */ Ie.define({
20444
20510
  create() {
20445
20511
  return !0;
20446
20512
  },
@@ -20454,7 +20520,7 @@ const fr = /* @__PURE__ */ ne.define(), vu = /* @__PURE__ */ Re.define({
20454
20520
  let e = vr(n, Na);
20455
20521
  if (!e) {
20456
20522
  let t = [fr.of(!0)];
20457
- n.state.field(vu, !1) == null && t.push(ne.appendConfig.of([vu, VA])), n.dispatch({ effects: t }), e = vr(n, Na);
20523
+ n.state.field(vu, !1) == null && t.push(re.appendConfig.of([vu, VA])), n.dispatch({ effects: t }), e = vr(n, Na);
20458
20524
  }
20459
20525
  return e && e.dom.querySelector("input").select(), !0;
20460
20526
  }, VA = /* @__PURE__ */ H.baseTheme({
@@ -20490,7 +20556,7 @@ const fr = /* @__PURE__ */ ne.define(), vu = /* @__PURE__ */ Re.define({
20490
20556
  function WA(n) {
20491
20557
  return [YA, JA];
20492
20558
  }
20493
- const UA = /* @__PURE__ */ X.mark({ class: "cm-selectionMatch" }), KA = /* @__PURE__ */ X.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
20559
+ const UA = /* @__PURE__ */ Z.mark({ class: "cm-selectionMatch" }), KA = /* @__PURE__ */ Z.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
20494
20560
  function wu(n, e, t, i) {
20495
20561
  return (t == 0 || n(e.sliceDoc(t - 1, t)) != Ce.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Ce.Word);
20496
20562
  }
@@ -20507,24 +20573,24 @@ const JA = /* @__PURE__ */ Me.fromClass(class {
20507
20573
  getDeco(n) {
20508
20574
  let e = n.state.facet(HA), { state: t } = n, i = t.selection;
20509
20575
  if (i.ranges.length > 1)
20510
- return X.none;
20576
+ return Z.none;
20511
20577
  let r = i.main, s, o = null;
20512
20578
  if (r.empty) {
20513
20579
  if (!e.highlightWordAroundCursor)
20514
- return X.none;
20580
+ return Z.none;
20515
20581
  let a = t.wordAt(r.head);
20516
20582
  if (!a)
20517
- return X.none;
20583
+ return Z.none;
20518
20584
  o = t.charCategorizer(r.head), s = t.sliceDoc(a.from, a.to);
20519
20585
  } else {
20520
20586
  let a = r.to - r.from;
20521
20587
  if (a < e.minSelectionLength || a > 200)
20522
- return X.none;
20588
+ return Z.none;
20523
20589
  if (e.wholeWords) {
20524
20590
  if (s = t.sliceDoc(r.from, r.to), o = t.charCategorizer(r.head), !(wu(o, t, r.from, r.to) && GA(o, t, r.from, r.to)))
20525
- return X.none;
20591
+ return Z.none;
20526
20592
  } else if (s = t.sliceDoc(r.from, r.to), !s)
20527
- return X.none;
20593
+ return Z.none;
20528
20594
  }
20529
20595
  let l = [];
20530
20596
  for (let a of n.visibleRanges) {
@@ -20532,10 +20598,10 @@ const JA = /* @__PURE__ */ Me.fromClass(class {
20532
20598
  for (; !c.next().done; ) {
20533
20599
  let { from: h, to: f } = c.value;
20534
20600
  if ((!o || wu(o, t, h, f)) && (r.empty && h <= r.from && f >= r.to ? l.push(KA.range(h, f)) : (h >= r.to || f <= r.from) && l.push(UA.range(h, f)), l.length > e.maxMatches))
20535
- return X.none;
20601
+ return Z.none;
20536
20602
  }
20537
20603
  }
20538
- return X.set(l);
20604
+ return Z.set(l);
20539
20605
  }
20540
20606
  }, {
20541
20607
  decorations: (n) => n.decorations
@@ -20754,7 +20820,7 @@ class nO extends Fg {
20754
20820
  r(s.value.from, s.value.to);
20755
20821
  }
20756
20822
  }
20757
- const Cr = /* @__PURE__ */ ne.define(), ih = /* @__PURE__ */ ne.define(), Mi = /* @__PURE__ */ Re.define({
20823
+ const Cr = /* @__PURE__ */ re.define(), ih = /* @__PURE__ */ re.define(), Mi = /* @__PURE__ */ Ie.define({
20758
20824
  create(n) {
20759
20825
  return new Ol(La(n).create(), null);
20760
20826
  },
@@ -20770,7 +20836,7 @@ class Ol {
20770
20836
  this.query = e, this.panel = t;
20771
20837
  }
20772
20838
  }
20773
- const rO = /* @__PURE__ */ X.mark({ class: "cm-searchMatch" }), sO = /* @__PURE__ */ X.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), oO = /* @__PURE__ */ Me.fromClass(class {
20839
+ const rO = /* @__PURE__ */ Z.mark({ class: "cm-searchMatch" }), sO = /* @__PURE__ */ Z.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), oO = /* @__PURE__ */ Me.fromClass(class {
20774
20840
  constructor(n) {
20775
20841
  this.view = n, this.decorations = this.highlight(n.state.field(Mi));
20776
20842
  }
@@ -20780,8 +20846,8 @@ const rO = /* @__PURE__ */ X.mark({ class: "cm-searchMatch" }), sO = /* @__PURE_
20780
20846
  }
20781
20847
  highlight({ query: n, panel: e }) {
20782
20848
  if (!e || !n.spec.valid)
20783
- return X.none;
20784
- let { view: t } = this, i = new fi();
20849
+ return Z.none;
20850
+ let { view: t } = this, i = new ui();
20785
20851
  for (let r = 0, s = t.visibleRanges, o = s.length; r < o; r++) {
20786
20852
  let { from: l, to: a } = s[r];
20787
20853
  for (; r < o - 1 && a > s[r + 1].from - 2 * 250; )
@@ -20910,7 +20976,7 @@ const Vg = (n) => {
20910
20976
  } else
20911
20977
  n.dispatch({ effects: [
20912
20978
  ih.of(!0),
20913
- e ? Cr.of(La(n.state, e.query.spec)) : ne.appendConfig.of(dO)
20979
+ e ? Cr.of(La(n.state, e.query.spec)) : re.appendConfig.of(dO)
20914
20980
  ] });
20915
20981
  return !0;
20916
20982
  }, zg = (n) => {
@@ -21172,7 +21238,7 @@ function Wg(n, e) {
21172
21238
  let { source: i } = n, r = e && i[0] != "^", s = i[i.length - 1] != "$";
21173
21239
  return !r && !s ? n : new RegExp(`${r ? "^" : ""}(?:${i})${s ? "$" : ""}`, (t = n.flags) !== null && t !== void 0 ? t : n.ignoreCase ? "i" : "");
21174
21240
  }
21175
- const Ug = /* @__PURE__ */ di.define();
21241
+ const Ug = /* @__PURE__ */ mi.define();
21176
21242
  function gO(n, e, t, i) {
21177
21243
  let { main: r } = n.selection, s = t - r.from, o = i - r.from;
21178
21244
  return {
@@ -21196,7 +21262,7 @@ function yO(n) {
21196
21262
  let e = Cu.get(n);
21197
21263
  return e || Cu.set(n, e = pO(n)), e;
21198
21264
  }
21199
- const mo = /* @__PURE__ */ ne.define(), _r = /* @__PURE__ */ ne.define();
21265
+ const mo = /* @__PURE__ */ re.define(), _r = /* @__PURE__ */ re.define();
21200
21266
  class bO {
21201
21267
  constructor(e) {
21202
21268
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
@@ -21746,11 +21812,11 @@ function TO(n, e, t, i) {
21746
21812
  let r = e.sliceDoc(t, i);
21747
21813
  return typeof n == "function" ? n(r, t, i, e) : Wg(n, !0).test(r);
21748
21814
  }
21749
- const sh = /* @__PURE__ */ ne.define({
21815
+ const sh = /* @__PURE__ */ re.define({
21750
21816
  map(n, e) {
21751
21817
  return n.map((t) => t.map(e));
21752
21818
  }
21753
- }), Gg = /* @__PURE__ */ ne.define(), ot = /* @__PURE__ */ Re.define({
21819
+ }), Gg = /* @__PURE__ */ re.define(), ot = /* @__PURE__ */ Ie.define({
21754
21820
  create() {
21755
21821
  return po.start();
21756
21822
  },
@@ -22034,7 +22100,7 @@ const IO = 50, NO = 1e3, LO = /* @__PURE__ */ Me.fromClass(class {
22034
22100
  brackets: ["(", "[", "{", "'", '"'],
22035
22101
  before: ")]}:;>",
22036
22102
  stringPrefixes: []
22037
- }, zi = /* @__PURE__ */ ne.define({
22103
+ }, zi = /* @__PURE__ */ re.define({
22038
22104
  map(n, e) {
22039
22105
  let t = e.mapPos(n, -1, Ze.TrackAfter);
22040
22106
  return t ?? void 0;
@@ -22043,7 +22109,7 @@ const IO = 50, NO = 1e3, LO = /* @__PURE__ */ Me.fromClass(class {
22043
22109
  }();
22044
22110
  lh.startSide = 1;
22045
22111
  lh.endSide = -1;
22046
- const Jg = /* @__PURE__ */ Re.define({
22112
+ const Jg = /* @__PURE__ */ Ie.define({
22047
22113
  create() {
22048
22114
  return he.empty;
22049
22115
  },
@@ -22264,7 +22330,7 @@ class ji {
22264
22330
  static init(e, t, i) {
22265
22331
  let r = i.facet(Yt).markerFilter;
22266
22332
  r && (e = r(e, i));
22267
- let s = e.slice().sort((d, m) => d.from - m.from || d.to - m.to), o = new fi(), l = [], a = 0, c = i.doc.iter(), h = 0, f = i.doc.length;
22333
+ let s = e.slice().sort((d, m) => d.from - m.from || d.to - m.to), o = new ui(), l = [], a = 0, c = i.doc.iter(), h = 0, f = i.doc.length;
22268
22334
  for (let d = 0; ; ) {
22269
22335
  let m = d == s.length ? null : s[d];
22270
22336
  if (!m && !l.length)
@@ -22303,13 +22369,13 @@ class ji {
22303
22369
  }
22304
22370
  let b = o0(l);
22305
22371
  if (p)
22306
- o.add(y, y, X.widget({
22372
+ o.add(y, y, Z.widget({
22307
22373
  widget: new cP(b),
22308
22374
  diagnostics: l.slice()
22309
22375
  }));
22310
22376
  else {
22311
22377
  let w = l.reduce((S, x) => x.markClass ? S + " " + x.markClass : S, "");
22312
- o.add(y, g, X.mark({
22378
+ o.add(y, g, Z.mark({
22313
22379
  class: "cm-lintRange cm-lintRange-" + b + w,
22314
22380
  diagnostics: l.slice(),
22315
22381
  inclusiveEnd: l.some((S) => S.to > g)
@@ -22345,16 +22411,16 @@ function e0(n, e) {
22345
22411
  return !!(n.effects.some((o) => o.is(Bo)) || n.changes.touchesRange(s.from, Math.max(s.to, i)));
22346
22412
  }
22347
22413
  function t0(n, e) {
22348
- return n.field(mt, !1) ? e : e.concat(ne.appendConfig.of(c0));
22414
+ return n.field(mt, !1) ? e : e.concat(re.appendConfig.of(c0));
22349
22415
  }
22350
22416
  function eP(n, e) {
22351
22417
  return {
22352
22418
  effects: t0(n, [Bo.of(e)])
22353
22419
  };
22354
22420
  }
22355
- const Bo = /* @__PURE__ */ ne.define(), ah = /* @__PURE__ */ ne.define(), i0 = /* @__PURE__ */ ne.define(), mt = /* @__PURE__ */ Re.define({
22421
+ const Bo = /* @__PURE__ */ re.define(), ah = /* @__PURE__ */ re.define(), i0 = /* @__PURE__ */ re.define(), mt = /* @__PURE__ */ Ie.define({
22356
22422
  create() {
22357
- return new ji(X.none, null, null);
22423
+ return new ji(Z.none, null, null);
22358
22424
  },
22359
22425
  update(n, e) {
22360
22426
  if (e.docChanged && n.diagnostics.size) {
@@ -22376,7 +22442,7 @@ const Bo = /* @__PURE__ */ ne.define(), ah = /* @__PURE__ */ ne.define(), i0 = /
22376
22442
  wr.from(n, (e) => e.panel),
22377
22443
  H.decorations.from(n, (e) => e.diagnostics)
22378
22444
  ]
22379
- }), tP = /* @__PURE__ */ X.mark({ class: "cm-lintRange cm-lintRange-active" });
22445
+ }), tP = /* @__PURE__ */ Z.mark({ class: "cm-lintRange cm-lintRange-active" });
22380
22446
  function iP(n, e, t) {
22381
22447
  let { diagnostics: i } = n.state.field(mt), r, s = -1, o = -1;
22382
22448
  i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, c, { spec: h }) => {
@@ -22522,7 +22588,7 @@ function s0(n, e, t) {
22522
22588
  }, f);
22523
22589
  }), e.source && be("div", { class: "cm-diagnosticSource" }, e.source));
22524
22590
  }
22525
- class cP extends mi {
22591
+ class cP extends pi {
22526
22592
  constructor(e) {
22527
22593
  super(), this.sev = e;
22528
22594
  }
@@ -22824,7 +22890,7 @@ const pP = /* @__PURE__ */ Op({
22824
22890
  r > t.from && r < t.to && i.push(...o.diagnostics);
22825
22891
  }), i.length ? new l0(i) : null;
22826
22892
  }
22827
- }), Ba = /* @__PURE__ */ Re.define({
22893
+ }), Ba = /* @__PURE__ */ Ie.define({
22828
22894
  create() {
22829
22895
  return he.empty;
22830
22896
  },
@@ -22838,7 +22904,7 @@ const pP = /* @__PURE__ */ Op({
22838
22904
  }
22839
22905
  return n;
22840
22906
  }
22841
- }), ch = /* @__PURE__ */ ne.define(), a0 = /* @__PURE__ */ Re.define({
22907
+ }), ch = /* @__PURE__ */ re.define(), a0 = /* @__PURE__ */ Ie.define({
22842
22908
  create() {
22843
22909
  return null;
22844
22910
  },
@@ -22870,7 +22936,7 @@ const pP = /* @__PURE__ */ Op({
22870
22936
  mt,
22871
22937
  /* @__PURE__ */ H.decorations.compute([mt], (n) => {
22872
22938
  let { selected: e, panel: t } = n.field(mt);
22873
- return !e || !t || e.from == e.to ? X.none : X.set([
22939
+ return !e || !t || e.from == e.to ? Z.none : Z.set([
22874
22940
  tP.range(e.from, e.to)
22875
22941
  ]);
22876
22942
  }),
@@ -22938,7 +23004,7 @@ var vP = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
22938
23004
  }, an = function(n) {
22939
23005
  var e = new $r();
22940
23006
  return { compartment: e, run: function(t) {
22941
- e.get(n.state) ? n.dispatch({ effects: e.reconfigure(t) }) : n.dispatch({ effects: ne.appendConfig.of(e.of(t)) });
23007
+ e.get(n.state) ? n.dispatch({ effects: e.reconfigure(t) }) : n.dispatch({ effects: re.appendConfig.of(e.of(t)) });
22942
23008
  } };
22943
23009
  }, Ru = function(n, e) {
22944
23010
  var t = an(n), i = t.compartment, r = t.run;
@@ -22965,7 +23031,7 @@ qi[Xe.Change] = function(n, e) {
22965
23031
  var h0 = {};
22966
23032
  h0[Xe.ModelUpdate] = qi[Xe.Change];
22967
23033
  var _P = Object.assign(Object.assign({}, qi), h0), MP = nt({ name: "VueCodemirror", props: Object.assign({}, CP), emits: Object.assign({}, _P), setup: function(n, e) {
22968
- var t = el(), i = el(), r = el(), s = Object.assign(Object.assign({}, vP), Gu(wP, {})), o = ee(function() {
23034
+ var t = el(), i = el(), r = el(), s = Object.assign(Object.assign({}, vP), Gu(wP, {})), o = Q(function() {
22969
23035
  var l = {};
22970
23036
  return Object.keys(Kn(n)).forEach(function(a) {
22971
23037
  var c;
@@ -23003,35 +23069,35 @@ var _P = Object.assign(Object.assign({}, qi), h0), MP = nt({ name: "VueCodemirro
23003
23069
  b === void 0 && (b = {}), p(H.theme({ "&": Object.assign({}, b) }));
23004
23070
  } };
23005
23071
  }(r.value);
23006
- Ne(function() {
23072
+ Ee(function() {
23007
23073
  return n.modelValue;
23008
23074
  }, function(c) {
23009
23075
  c !== a.getDoc() && a.setDoc(c);
23010
- }), Ne(function() {
23076
+ }), Ee(function() {
23011
23077
  return n.extensions;
23012
23078
  }, function(c) {
23013
23079
  return a.reExtensions(c || []);
23014
- }, { immediate: !0 }), Ne(function() {
23080
+ }, { immediate: !0 }), Ee(function() {
23015
23081
  return o.value.disabled;
23016
23082
  }, function(c) {
23017
23083
  return a.toggleDisabled(c);
23018
- }, { immediate: !0 }), Ne(function() {
23084
+ }, { immediate: !0 }), Ee(function() {
23019
23085
  return o.value.indentWithTab;
23020
23086
  }, function(c) {
23021
23087
  return a.toggleIndentWithTab(c);
23022
- }, { immediate: !0 }), Ne(function() {
23088
+ }, { immediate: !0 }), Ee(function() {
23023
23089
  return o.value.tabSize;
23024
23090
  }, function(c) {
23025
23091
  return a.setTabSize(c);
23026
- }, { immediate: !0 }), Ne(function() {
23092
+ }, { immediate: !0 }), Ee(function() {
23027
23093
  return o.value.phrases;
23028
23094
  }, function(c) {
23029
23095
  return a.setPhrases(c || {});
23030
- }, { immediate: !0 }), Ne(function() {
23096
+ }, { immediate: !0 }), Ee(function() {
23031
23097
  return o.value.placeholder;
23032
23098
  }, function(c) {
23033
23099
  return a.setPlaceholder(c);
23034
- }, { immediate: !0 }), Ne(function() {
23100
+ }, { immediate: !0 }), Ee(function() {
23035
23101
  return o.value.style;
23036
23102
  }, function(c) {
23037
23103
  return a.setStyle(c);
@@ -23825,12 +23891,12 @@ class DP {
23825
23891
  ); ; c += 3) {
23826
23892
  if (l[c] == 65535)
23827
23893
  if (l[c + 1] == 1)
23828
- c = ii(l, c + 2);
23894
+ c = ni(l, c + 2);
23829
23895
  else {
23830
- r == 0 && l[c + 1] == 2 && (r = this.putAction(ii(l, c + 2), t, i, r));
23896
+ r == 0 && l[c + 1] == 2 && (r = this.putAction(ni(l, c + 2), t, i, r));
23831
23897
  break;
23832
23898
  }
23833
- l[c] == t && (r = this.putAction(ii(l, c + 1), t, i, r));
23899
+ l[c] == t && (r = this.putAction(ni(l, c + 1), t, i, r));
23834
23900
  }
23835
23901
  return r;
23836
23902
  }
@@ -24119,14 +24185,14 @@ class bo extends Np {
24119
24185
  ), o; ; s += 3) {
24120
24186
  if ((o = i[s]) == 65535)
24121
24187
  if (i[s + 1] == 1)
24122
- o = i[s = ii(i, s + 2)];
24188
+ o = i[s = ni(i, s + 2)];
24123
24189
  else {
24124
24190
  if (i[s + 1] == 2)
24125
- return ii(i, s + 2);
24191
+ return ni(i, s + 2);
24126
24192
  break;
24127
24193
  }
24128
24194
  if (o == t || o == 0)
24129
- return ii(i, s + 1);
24195
+ return ni(i, s + 1);
24130
24196
  }
24131
24197
  return 0;
24132
24198
  }
@@ -24168,10 +24234,10 @@ class bo extends Np {
24168
24234
  ); r == null; s += 3) {
24169
24235
  if (this.data[s] == 65535)
24170
24236
  if (this.data[s + 1] == 1)
24171
- s = ii(this.data, s + 2);
24237
+ s = ni(this.data, s + 2);
24172
24238
  else
24173
24239
  break;
24174
- r = t(ii(this.data, s + 1));
24240
+ r = t(ni(this.data, s + 1));
24175
24241
  }
24176
24242
  return r;
24177
24243
  }
@@ -24188,7 +24254,7 @@ class bo extends Np {
24188
24254
  ); ; i += 3) {
24189
24255
  if (this.data[i] == 65535)
24190
24256
  if (this.data[i + 1] == 1)
24191
- i = ii(this.data, i + 2);
24257
+ i = ni(this.data, i + 2);
24192
24258
  else
24193
24259
  break;
24194
24260
  if (!(this.data[i + 2] & 1)) {
@@ -24283,7 +24349,7 @@ class bo extends Np {
24283
24349
  return new bo(e);
24284
24350
  }
24285
24351
  }
24286
- function ii(n, e) {
24352
+ function ni(n, e) {
24287
24353
  return n[e] | n[e + 1] << 16;
24288
24354
  }
24289
24355
  function NP(n) {
@@ -24515,7 +24581,7 @@ const zP = "#e5c07b", qu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Bs = "#abb
24515
24581
  t.schema,
24516
24582
  { label: t.label }
24517
24583
  ), c = ti(), h = Dt(t.path), f = Fe(""), u = Fe(null), d = Fe(!0);
24518
- Ne(
24584
+ Ee(
24519
24585
  () => i.value,
24520
24586
  (R) => {
24521
24587
  if (d.value) {
@@ -24529,12 +24595,12 @@ const zP = "#e5c07b", qu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Bs = "#abb
24529
24595
  },
24530
24596
  { immediate: !0 }
24531
24597
  );
24532
- const m = ee(() => t.schema["x-json-height"] || "300px"), y = ee(() => t.schema["x-json-dark-theme"] === !0);
24598
+ const m = Q(() => t.schema["x-json-height"] || "300px"), y = Q(() => t.schema["x-json-dark-theme"] === !0);
24533
24599
  function g(R) {
24534
24600
  const L = R.state.doc.toString(), B = R.state.selection.main.head;
24535
24601
  try {
24536
- const G = JSON.parse(L), D = JSON.stringify(G, null, 2), re = L.length > 0 ? B / L.length : 0, te = Math.min(
24537
- Math.round(re * D.length),
24602
+ const G = JSON.parse(L), D = JSON.stringify(G, null, 2), ne = L.length > 0 ? B / L.length : 0, te = Math.min(
24603
+ Math.round(ne * D.length),
24538
24604
  D.length
24539
24605
  );
24540
24606
  return R.dispatch({
@@ -24545,11 +24611,11 @@ const zP = "#e5c07b", qu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Bs = "#abb
24545
24611
  return !1;
24546
24612
  }
24547
24613
  }
24548
- 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(() => {
24614
+ const p = Q(() => t.schema["x-json-line-numbers"] ?? !0), b = Q(() => t.schema["x-json-lint-gutter"] ?? !0), w = Q(() => t.schema["x-json-tab-size"] ?? 2), S = Q(() => t.schema["x-json-indent-with-tab"] ?? !0), x = Q(() => {
24549
24615
  var L, B;
24550
24616
  const R = t.schema["x-json-format-key"];
24551
24617
  return R !== void 0 ? R : ((B = (L = c == null ? void 0 : c.componentDefaults) == null ? void 0 : L.jsonEditor) == null ? void 0 : B.formatKey) ?? "Ctrl-.";
24552
- }), A = ee(() => {
24618
+ }), A = Q(() => {
24553
24619
  const R = [
24554
24620
  VP(),
24555
24621
  // Add keyboard shortcut for formatting
@@ -24563,7 +24629,7 @@ const zP = "#e5c07b", qu = "#e06c75", HP = "#56b6c2", WP = "#ffffff", Bs = "#abb
24563
24629
  display: "none !important"
24564
24630
  }
24565
24631
  })), b.value && (R.push(aP(FP())), R.push(yP())), y.value && R.push(ZP), R;
24566
- }), P = ee(() => u.value || l.value), $ = ee(
24632
+ }), P = Q(() => u.value || l.value), $ = Q(
24567
24633
  () => `${p.value}-${b.value}-${y.value}-${x.value}`
24568
24634
  );
24569
24635
  function I(R, L) {
@@ -24602,16 +24668,16 @@ function h2(n, e, t, i, r, s) {
24602
24668
  1
24603
24669
  /* TEXT */
24604
24670
  ),
24605
- i.required ? (j(), V("span", r2, "*")) : Z("v-if", !0)
24671
+ i.required ? (j(), V("span", r2, "*")) : ee("v-if", !0)
24606
24672
  ], 8, n2)
24607
- ])) : Z("v-if", !0),
24673
+ ])) : ee("v-if", !0),
24608
24674
  i.hint ? (j(), V("div", {
24609
24675
  key: 1,
24610
24676
  id: `${i.fieldId}-hint`,
24611
24677
  class: "quickform-hint"
24612
24678
  }, [
24613
24679
  J("span", { innerHTML: i.hint }, null, 8, o2)
24614
- ], 8, s2)) : Z("v-if", !0),
24680
+ ], 8, s2)) : ee("v-if", !0),
24615
24681
  J("div", l2, [
24616
24682
  e[1] || (e[1] = vt(
24617
24683
  " Press ",
@@ -24654,7 +24720,7 @@ function h2(n, e, t, i, r, s) {
24654
24720
  pe(i.displayError),
24655
24721
  1
24656
24722
  /* TEXT */
24657
- )) : Z("v-if", !0)
24723
+ )) : ee("v-if", !0)
24658
24724
  ]);
24659
24725
  }
24660
24726
  const Uu = /* @__PURE__ */ ht(e2, [["render", h2], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), f2 = /* @__PURE__ */ nt({
@@ -24670,17 +24736,17 @@ const Uu = /* @__PURE__ */ ht(e2, [["render", h2], ["__file", "/Users/zachsherbo
24670
24736
  },
24671
24737
  setup(n, { expose: e }) {
24672
24738
  e();
24673
- const t = n, { value: i, label: r, hint: s, errorMessage: o } = xt(t.path, t.schema, { label: t.label }), l = Dt(t.path), a = ti(), c = ee(() => t.schema.oneOf || t.schema.anyOf || []), h = Fe(0);
24739
+ const t = n, { value: i, label: r, hint: s, errorMessage: o } = xt(t.path, t.schema, { label: t.label }), l = Dt(t.path), a = ti(), c = Q(() => t.schema.oneOf || t.schema.anyOf || []), h = Fe(0);
24674
24740
  vo(() => {
24675
24741
  if (i.value) {
24676
- const p = c.value.findIndex((b) => ri.validate(b, i.value).valid);
24742
+ const p = c.value.findIndex((b) => si.validate(b, i.value).valid);
24677
24743
  p !== -1 && (h.value = p);
24678
24744
  }
24679
24745
  });
24680
- const f = ee(() => c.value[h.value]), u = (p, b) => {
24746
+ const f = Q(() => c.value[h.value]), u = (p, b) => {
24681
24747
  const w = t.schema["x-oneof-labels"];
24682
24748
  return w && w[b] ? w[b] : p.title || `Option ${b + 1}`;
24683
- }, d = ee(() => c.value.map((p, b) => u(p, b))), m = ee(() => {
24749
+ }, d = Q(() => c.value.map((p, b) => u(p, b))), m = Q(() => {
24684
24750
  var b, w;
24685
24751
  const p = t.schema["x-oneof-select-label"];
24686
24752
  return p || ((w = (b = a == null ? void 0 : a.componentDefaults) == null ? void 0 : b.oneOf) == null ? void 0 : w.selectLabel) || "Select Option";
@@ -24713,21 +24779,21 @@ function C2(n, e, t, i, r, s) {
24713
24779
  1
24714
24780
  /* TEXT */
24715
24781
  ),
24716
- i.props.schema.required ? (j(), V("span", p2, "*")) : Z("v-if", !0)
24717
- ])) : Z("v-if", !0),
24782
+ i.props.schema.required ? (j(), V("span", p2, "*")) : ee("v-if", !0)
24783
+ ])) : ee("v-if", !0),
24718
24784
  i.hint ? (j(), V("div", {
24719
24785
  key: 1,
24720
24786
  id: `${i.fieldId}-hint`,
24721
24787
  class: "quickform-hint quickform-oneof-hint"
24722
24788
  }, [
24723
24789
  J("span", { innerHTML: i.hint }, null, 8, y2)
24724
- ], 8, g2)) : Z("v-if", !0),
24790
+ ], 8, g2)) : ee("v-if", !0),
24725
24791
  J("div", b2, [
24726
24792
  i.selectLabel ? (j(), V("label", {
24727
24793
  key: 0,
24728
24794
  for: `${i.fieldId}-select`,
24729
24795
  class: "quickform-select-label"
24730
- }, pe(i.selectLabel), 9, v2)) : Z("v-if", !0),
24796
+ }, pe(i.selectLabel), 9, v2)) : ee("v-if", !0),
24731
24797
  J("select", {
24732
24798
  id: `${i.fieldId}-select`,
24733
24799
  value: i.selectedIndex,
@@ -24754,7 +24820,7 @@ function C2(n, e, t, i, r, s) {
24754
24820
  path: t.path,
24755
24821
  disabled: t.disabled,
24756
24822
  readonly: t.readonly
24757
- }, null, 8, ["schema", "path", "disabled", "readonly"])) : Z("v-if", !0)
24823
+ }, null, 8, ["schema", "path", "disabled", "readonly"])) : ee("v-if", !0)
24758
24824
  ]),
24759
24825
  i.errorMessage ? (j(), V(
24760
24826
  "div",
@@ -24762,7 +24828,7 @@ function C2(n, e, t, i, r, s) {
24762
24828
  pe(i.errorMessage),
24763
24829
  1
24764
24830
  /* TEXT */
24765
- )) : Z("v-if", !0)
24831
+ )) : ee("v-if", !0)
24766
24832
  ], 8, d2)
24767
24833
  ]);
24768
24834
  }
@@ -24779,17 +24845,17 @@ const Ku = /* @__PURE__ */ ht(f2, [["render", C2], ["__scopeId", "data-v-dab625e
24779
24845
  },
24780
24846
  setup(n, { expose: e }) {
24781
24847
  e();
24782
- const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = ee(() => {
24848
+ const t = n, { label: i, hint: r, errorMessage: s } = xt(t.path, t.schema, { label: t.label }), o = Dt(t.path), l = Q(() => {
24783
24849
  if (!t.schema.allOf) return t.schema;
24784
24850
  const c = { ...t.schema };
24785
- return delete c.allOf, ri.mergeSchemas(c, ...t.schema.allOf);
24851
+ return delete c.allOf, si.mergeSchemas(c, ...t.schema.allOf);
24786
24852
  }), a = { props: t, label: i, hint: r, errorMessage: s, fieldId: o, mergedSchema: l, FieldRenderer: Er };
24787
24853
  return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
24788
24854
  }
24789
24855
  }), M2 = { class: "quickform-field quickform-allof-field" };
24790
24856
  function A2(n, e, t, i, r, s) {
24791
24857
  return j(), V("div", M2, [
24792
- Z(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
24858
+ ee(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
24793
24859
  Yu(i.FieldRenderer, {
24794
24860
  schema: i.mergedSchema,
24795
24861
  path: t.path,
@@ -24825,7 +24891,7 @@ function E2(n, e, t, i, r, s) {
24825
24891
  Tt,
24826
24892
  null,
24827
24893
  [
24828
- Z(" Hidden field - renders nothing visible to the user "),
24894
+ ee(" Hidden field - renders nothing visible to the user "),
24829
24895
  J("input", {
24830
24896
  type: "hidden",
24831
24897
  value: i.value
@@ -24928,7 +24994,7 @@ function D2() {
24928
24994
  (e) => _e(10, R0(e))
24929
24995
  ), n;
24930
24996
  }
24931
- const yi = "__root__", R2 = /* @__PURE__ */ nt({
24997
+ const ii = "__root__", R2 = /* @__PURE__ */ nt({
24932
24998
  __name: "DynamicForm",
24933
24999
  props: /* @__PURE__ */ uh({
24934
25000
  schema: { type: Object, required: !0 },
@@ -24942,12 +25008,12 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
24942
25008
  setup(n, { expose: e, emit: t }) {
24943
25009
  var F, R, L, B, G;
24944
25010
  e();
24945
- const i = n, r = y0(n, "modelValue"), s = t, o = i.options.registry || D2(), l = ee(() => {
25011
+ const i = n, r = y0(n, "modelValue"), s = t, o = i.options.registry || D2(), l = Q(() => {
24946
25012
  const D = i.schema;
24947
25013
  return D["x-render"] || D.oneOf || D.anyOf ? !0 : i.schema.type === "object" && !i.schema.properties;
24948
25014
  }), a = l.value ? {
24949
- [yi]: r.value && typeof r.value == "object" && Object.keys(r.value).length > 0 ? r.value : i.options.useDefaults !== !1 ? ri.getDefaultValue(i.schema) : {}
24950
- } : i.options.useDefaults !== !1 ? { ...ri.getDefaultValue(i.schema), ...r.value } : { ...r.value }, { handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m } = S0({
25015
+ [ii]: r.value && typeof r.value == "object" && Object.keys(r.value).length > 0 ? r.value : i.options.useDefaults !== !1 ? si.getDefaultValue(i.schema) : {}
25016
+ } : i.options.useDefaults !== !1 ? { ...si.getDefaultValue(i.schema), ...r.value } : { ...r.value }, { handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m } = S0({
24951
25017
  initialValues: a,
24952
25018
  validateOnMount: i.options.validateOnMount ?? !1
24953
25019
  }), y = {
@@ -24975,42 +25041,49 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
24975
25041
  showMode: "always"
24976
25042
  }
24977
25043
  };
24978
- function p(D, re) {
24979
- return re ? re.split(".").reduce((te, de) => {
25044
+ function p(D, ne) {
25045
+ return ne ? ne.split(".").reduce((te, de) => {
24980
25046
  if (te && typeof te == "object" && de in te)
24981
25047
  return te[de];
24982
25048
  }, D) : D;
24983
25049
  }
24984
25050
  const b = b0({
24985
- readonly: ee(() => i.options.readonly || !1),
24986
- disabled: ee(() => i.options.disabled || !1),
25051
+ readonly: Q(() => i.options.readonly || !1),
25052
+ disabled: Q(() => i.options.disabled || !1),
24987
25053
  schema: i.schema,
24988
25054
  // Schema usually doesn't change, but if it does, we might need computed
24989
25055
  rootPath: "",
24990
25056
  registry: v0(o),
24991
25057
  // markRaw prevents Vue from making components reactive
24992
- context: ee(() => i.options.context || {}),
25058
+ context: Q(() => i.options.context || {}),
24993
25059
  validationMode: i.options.validationMode || "ValidateAndShow",
24994
25060
  errorMessages: i.options.errorMessages,
24995
25061
  validators: i.options.validators,
24996
25062
  validatorDebounce: i.options.validatorDebounce,
24997
- formValues: () => l.value ? Kn(h[yi]) : Kn(h),
25063
+ formValues: () => l.value ? Kn(h[ii]) : Kn(h),
24998
25064
  /**
24999
25065
  * Get a reactive computed ref for a specific field value.
25000
25066
  * Supports dot notation for nested paths.
25001
25067
  */
25002
- useFieldValue: (D) => ee(() => {
25003
- const re = l.value ? h[yi] : h;
25004
- return p(re, D);
25068
+ useFieldValue: (D) => Q(() => {
25069
+ const ne = l.value ? h[ii] : h;
25070
+ return p(ne, D);
25005
25071
  }),
25072
+ /**
25073
+ * Set a field value by path.
25074
+ * Supports dot notation for nested paths.
25075
+ */
25076
+ setFieldValue: (D, ne) => {
25077
+ l.value ? u(`${ii}.${D}`, ne) : u(D, ne);
25078
+ },
25006
25079
  /**
25007
25080
  * Watch all form values and call callback when they change.
25008
25081
  * Returns a stop function to unsubscribe.
25009
25082
  */
25010
25083
  watchFormValues: (D) => {
25011
- const re = l.value ? () => h[yi] : () => h;
25012
- return Ne(
25013
- re,
25084
+ const ne = l.value ? () => h[ii] : () => h;
25085
+ return Ee(
25086
+ ne,
25014
25087
  (te, de) => {
25015
25088
  D(
25016
25089
  Kn(te),
@@ -25057,26 +25130,26 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
25057
25130
  });
25058
25131
  });
25059
25132
  let S = !1, x = !1;
25060
- Ne(r, (D) => {
25133
+ Ee(r, (D) => {
25061
25134
  if (!x) {
25062
25135
  if (S = !0, l.value) {
25063
- const re = D && typeof D == "object" && Object.keys(D).length > 0 ? D : i.options.useDefaults !== !1 ? ri.getDefaultValue(i.schema) : {};
25064
- u(yi, re);
25136
+ const ne = D && typeof D == "object" && Object.keys(D).length > 0 ? D : i.options.useDefaults !== !1 ? si.getDefaultValue(i.schema) : {};
25137
+ u(ii, ne);
25065
25138
  } else
25066
25139
  D && f(D);
25067
25140
  zr(() => {
25068
25141
  S = !1;
25069
25142
  });
25070
25143
  }
25071
- }), l.value ? Ne(
25072
- () => h[yi],
25144
+ }), l.value ? Ee(
25145
+ () => h[ii],
25073
25146
  (D) => {
25074
25147
  S || (x = !0, r.value = D, zr(() => {
25075
25148
  x = !1;
25076
25149
  }));
25077
25150
  },
25078
25151
  { deep: !0, immediate: !0 }
25079
- ) : Ne(
25152
+ ) : Ee(
25080
25153
  h,
25081
25154
  (D) => {
25082
25155
  S || (x = !0, r.value = D, zr(() => {
@@ -25084,20 +25157,20 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
25084
25157
  }));
25085
25158
  },
25086
25159
  { deep: !0, immediate: !0 }
25087
- ), Ne(
25160
+ ), Ee(
25088
25161
  [d, m],
25089
- ([D, re]) => {
25162
+ ([D, ne]) => {
25090
25163
  s("validation", {
25091
- valid: re.valid,
25164
+ valid: ne.valid,
25092
25165
  errors: D
25093
25166
  });
25094
25167
  },
25095
25168
  { immediate: !0 }
25096
25169
  );
25097
25170
  const A = c((D) => {
25098
- const re = l.value ? D[yi] : D, te = ri.validate(i.schema, re);
25099
- te.valid ? s("submit", re) : console.error("Form validation failed:", te.errors);
25100
- }), P = ee(() => {
25171
+ const ne = l.value ? D[ii] : D, te = si.validate(i.schema, ne);
25172
+ te.valid ? s("submit", ne) : console.error("Form validation failed:", te.errors);
25173
+ }), P = Q(() => {
25101
25174
  if (i.schema.type !== "object" || !i.schema.properties)
25102
25175
  return [];
25103
25176
  const D = i.schema["x-field-order"];
@@ -25107,19 +25180,19 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
25107
25180
  schema: i.schema.properties[te],
25108
25181
  path: te
25109
25182
  }));
25110
- const re = Object.entries(i.schema.properties).map(
25183
+ const ne = Object.entries(i.schema.properties).map(
25111
25184
  ([te, de], ye) => ({ key: te, schema: de, originalIndex: ye })
25112
25185
  );
25113
- return re.sort((te, de) => {
25186
+ return ne.sort((te, de) => {
25114
25187
  var C, E;
25115
25188
  const ye = ((C = te.schema) == null ? void 0 : C["x-field-order"]) ?? 999, N = ((E = de.schema) == null ? void 0 : E["x-field-order"]) ?? 999;
25116
25189
  return ye !== N ? ye - N : te.originalIndex - de.originalIndex;
25117
- }), re.map(({ key: te, schema: de }) => ({
25190
+ }), ne.map(({ key: te, schema: de }) => ({
25118
25191
  key: te,
25119
25192
  schema: de,
25120
25193
  path: te
25121
25194
  }));
25122
- }), $ = ee(() => {
25195
+ }), $ = Q(() => {
25123
25196
  var te, de;
25124
25197
  const D = ((de = (te = i.options.componentDefaults) == null ? void 0 : te.layout) == null ? void 0 : de.fieldGap) ?? "1rem";
25125
25198
  return {
@@ -25129,7 +25202,7 @@ const yi = "__root__", R2 = /* @__PURE__ */ nt({
25129
25202
  lg: "24px",
25130
25203
  xl: "32px"
25131
25204
  }[D] ?? D;
25132
- }), I = { props: i, model: r, emit: s, registry: o, SINGLE_FIELD_PATH: yi, isSingleField: l, initialValues: a, handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m, defaultLabels: y, defaultComponentDefaults: g, getNestedValue: p, formContext: b, isReady: w, get isUpdatingFromModel() {
25205
+ }), I = { props: i, model: r, emit: s, registry: o, SINGLE_FIELD_PATH: ii, isSingleField: l, initialValues: a, handleSubmit: c, values: h, setValues: f, setFieldValue: u, errors: d, meta: m, defaultLabels: y, defaultComponentDefaults: g, getNestedValue: p, formContext: b, isReady: w, get isUpdatingFromModel() {
25133
25206
  return S;
25134
25207
  }, set isUpdatingFromModel(D) {
25135
25208
  S = D;
@@ -25153,7 +25226,7 @@ function N2(n, e, t, i, r, s) {
25153
25226
  onSubmit: e[0] || (e[0] = (...o) => i.onSubmit && i.onSubmit(...o))
25154
25227
  },
25155
25228
  [
25156
- Z(" Loading overlay (shown until form is ready) "),
25229
+ ee(" Loading overlay (shown until form is ready) "),
25157
25230
  t.showLoadingOverlay && !i.isReady ? (j(), V("div", I2, [
25158
25231
  w0(n.$slots, "loading", {}, () => [
25159
25232
  e[1] || (e[1] = J(
@@ -25166,15 +25239,15 @@ function N2(n, e, t, i, r, s) {
25166
25239
  /* CACHED */
25167
25240
  ))
25168
25241
  ], !0)
25169
- ])) : Z("v-if", !0),
25170
- Z(" Form content (always rendered, but hidden until ready if overlay is enabled) "),
25242
+ ])) : ee("v-if", !0),
25243
+ ee(" Form content (always rendered, but hidden until ready if overlay is enabled) "),
25171
25244
  J(
25172
25245
  "div",
25173
25246
  {
25174
25247
  class: Ju(["quickform-content", { "quickform-content-hidden": t.showLoadingOverlay && !i.isReady }])
25175
25248
  },
25176
25249
  [
25177
- Z(" Single field schema (e.g., JSON editor, single object field) "),
25250
+ ee(" Single field schema (e.g., JSON editor, single object field) "),
25178
25251
  i.isSingleField ? (j(), kn(i.FieldRenderer, {
25179
25252
  key: 0,
25180
25253
  schema: t.schema,
@@ -25185,7 +25258,7 @@ function N2(n, e, t, i, r, s) {
25185
25258
  Tt,
25186
25259
  { key: 1 },
25187
25260
  [
25188
- Z(" Multiple fields (normal form) "),
25261
+ ee(" Multiple fields (normal form) "),
25189
25262
  (j(!0), V(
25190
25263
  Tt,
25191
25264
  null,
@@ -25226,7 +25299,7 @@ function rT(n, e, t = {}) {
25226
25299
  const r = i.useFieldValue(n);
25227
25300
  let s = () => {
25228
25301
  };
25229
- return e && (s = Ne(
25302
+ return e && (s = Ee(
25230
25303
  r,
25231
25304
  (o, l) => {
25232
25305
  e(o, l);
@@ -25255,7 +25328,7 @@ function sT(n, e, t = {}) {
25255
25328
  const r = n.map((o) => i.useFieldValue(o));
25256
25329
  let s = () => {
25257
25330
  };
25258
- return e && (s = Ne(
25331
+ return e && (s = Ee(
25259
25332
  r,
25260
25333
  (o, l) => {
25261
25334
  e(