@golemui/core 0.16.2 → 1.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,42 +1,42 @@
1
- import { BehaviorSubject as Yr, distinctUntilChanged as W, Subject as sr, pipe as k, map as O, filter as Se, combineLatest as Zr, startWith as xr } from "rxjs";
1
+ import { BehaviorSubject as Zr, distinctUntilChanged as T, Subject as ur, pipe as k, map as D, filter as $e, combineLatest as br, startWith as xr } from "rxjs";
2
2
  import "@standard-schema/spec";
3
- function br(e, r) {
3
+ function et(e, r) {
4
4
  const t = e["~standard"].validate(r);
5
5
  if (t instanceof Promise)
6
6
  throw new TypeError("Schema validation must be synchronous");
7
7
  return t;
8
8
  }
9
- function et(e) {
9
+ function rt(e) {
10
10
  return e.issues === void 0;
11
11
  }
12
- var rt = class {
12
+ var tt = class {
13
13
  constructor(e) {
14
14
  this.value = e;
15
15
  }
16
16
  map(e) {
17
- return F(e(this.value));
17
+ return W(e(this.value));
18
18
  }
19
19
  isOk() {
20
20
  return !0;
21
21
  }
22
- }, tt = class {
22
+ }, nt = class {
23
23
  constructor(e) {
24
24
  this.error = e;
25
25
  }
26
26
  map(e) {
27
- return E(this.error);
27
+ return w(this.error);
28
28
  }
29
29
  isOk() {
30
30
  return !1;
31
31
  }
32
32
  };
33
- function F(e) {
34
- return new rt(e);
35
- }
36
- function E(e) {
33
+ function W(e) {
37
34
  return new tt(e);
38
35
  }
39
- var T = class ke {
36
+ function w(e) {
37
+ return new nt(e);
38
+ }
39
+ var F = class ke {
40
40
  constructor(r) {
41
41
  this.decodeFn = r, this["~standard"] = { version: 1, vendor: "ts.data.json", validate: (t) => {
42
42
  let n = this.decode(t);
@@ -60,186 +60,189 @@ var T = class ke {
60
60
  map(r) {
61
61
  return new ke((t) => {
62
62
  let n = this.decodeFn(t);
63
- return n.isOk() ? F(r(n.value)) : E(n.error);
63
+ return n.isOk() ? W(r(n.value)) : w(n.error);
64
64
  });
65
65
  }
66
66
  flatMap(r) {
67
67
  return new ke((t) => {
68
68
  let n = this.decodeFn(t);
69
- return n.isOk() ? r(n.value).decode(t) : E(n.error);
69
+ return n.isOk() ? r(n.value).decode(t) : w(n.error);
70
70
  });
71
71
  }
72
- }, nt = (e, r, t) => `<${e}> decoder failed at index "${r}" with error: ${t}`, Y = (e, r) => `${JSON.stringify(e)} is not a valid ${r}`;
73
- function Re(e, r) {
74
- return new T((t) => {
72
+ }, ot = (e, r, t) => `<${e}> decoder failed at index "${r}" with error: ${t}`, Y = (e, r) => `${JSON.stringify(e)} is not a valid ${r}`;
73
+ function Ue(e, r) {
74
+ return new F((t) => {
75
75
  if (t instanceof Array) {
76
76
  let n = [];
77
77
  for (let o = 0; o < t.length; o++) {
78
78
  let i = e.decode(t[o]);
79
79
  if (i.isOk()) n.push(i.value);
80
- else return E(nt(r, o, i.error));
80
+ else return w(ot(r, o, i.error));
81
81
  }
82
- return F(n);
83
- } else return E(Y(t, "array"));
82
+ return W(n);
83
+ } else return w(Y(t, "array"));
84
84
  });
85
85
  }
86
- function ot() {
87
- return new T((e) => typeof e == "boolean" ? F(e) : E(Y(e, "boolean")));
86
+ function it() {
87
+ return new F((e) => typeof e == "boolean" ? W(e) : w(Y(e, "boolean")));
88
88
  }
89
89
  function mr(e) {
90
- return new T((r) => e().decode(r));
90
+ return new F((r) => e().decode(r));
91
91
  }
92
- var it = (e, r) => `${JSON.stringify(e)} is not exactly ${JSON.stringify(r)}`;
92
+ var st = (e, r) => `${JSON.stringify(e)} is not exactly ${JSON.stringify(r)}`;
93
93
  function q(e) {
94
- return new T((r) => r === e ? F(e) : E(it(r, e)));
94
+ return new F((r) => r === e ? W(e) : w(st(r, e)));
95
95
  }
96
- function ve() {
97
- return new T((e) => typeof e == "number" ? F(e) : E(Y(e, "number")));
96
+ function Se() {
97
+ return new F((e) => typeof e == "number" ? W(e) : w(Y(e, "number")));
98
98
  }
99
- var st = (e, r, t) => `<${e}> decoder failed at key "${r}" with error: ${t}`;
99
+ var dt = (e, r, t) => `<${e}> decoder failed at key "${r}" with error: ${t}`;
100
100
  function oe(e, r) {
101
- return new T((t) => {
101
+ return new F((t) => {
102
102
  if (t !== null && typeof t == "object") {
103
103
  let n = {};
104
104
  for (let o in e) if (Object.prototype.hasOwnProperty.call(e, o)) {
105
105
  let i, s = e[o];
106
- if (s instanceof T ? i = s.decode(t[o]) : i = s.decoder.decode(t[s.fromKey]), i.isOk()) n[o] = i.value;
107
- else return E(st(r, o, i.error));
106
+ if (s instanceof F ? i = s.decode(t[o]) : i = s.decoder.decode(t[s.fromKey]), i.isOk()) n[o] = i.value;
107
+ else return w(dt(r, o, i.error));
108
108
  }
109
- return F(n);
110
- } else return E(Y(t, r));
109
+ return W(n);
110
+ } else return w(Y(t, r));
111
111
  });
112
112
  }
113
- var dt = (e, r) => `<${e}> decoder failed because ${JSON.stringify(r)} can't be decoded with any of the provided oneOf decoders`;
113
+ var ut = (e, r) => `<${e}> decoder failed because ${JSON.stringify(r)} can't be decoded with any of the provided oneOf decoders`;
114
114
  function z(e, r) {
115
- return new T((t) => {
115
+ return new F((t) => {
116
116
  for (let n = 0; n < e.length; n++) {
117
117
  let o = e[n].decode(t);
118
118
  if (o.isOk()) return o;
119
119
  }
120
- return E(dt(r, t));
120
+ return w(ut(r, t));
121
121
  });
122
122
  }
123
- function y(e) {
124
- return new T((r) => r === void 0 ? F(void 0) : e.decode(r));
123
+ function m(e) {
124
+ return new F((r) => r === void 0 ? W(void 0) : e.decode(r));
125
125
  }
126
- var ut = (e, r, t) => `<${e}> record decoder failed at key "${r}" with error: ${t}`;
127
- function ct(e, r) {
128
- return new T((t) => {
126
+ var ct = (e, r, t) => `<${e}> record decoder failed at key "${r}" with error: ${t}`;
127
+ function lt(e, r) {
128
+ return new F((t) => {
129
129
  if (t !== null && typeof t == "object") {
130
130
  let n = {};
131
131
  for (let o in t) if (Object.prototype.hasOwnProperty.call(t, o)) {
132
132
  let i = e.decode(t[o]);
133
133
  if (i.isOk()) n[o] = i.value;
134
- else return E(ut(r, o, i.error));
134
+ else return w(ct(r, o, i.error));
135
135
  }
136
- return F(n);
137
- } else return E(Y(t, r));
136
+ return W(n);
137
+ } else return w(Y(t, r));
138
138
  });
139
139
  }
140
- function w() {
141
- return new T((e) => typeof e == "string" ? F(e) : E(Y(e, "string")));
140
+ function E() {
141
+ return new F((e) => typeof e == "string" ? W(e) : w(Y(e, "string")));
142
142
  }
143
143
  function X() {
144
- return new T((e) => F(e));
144
+ return new F((e) => W(e));
145
145
  }
146
146
  function ie(e, r) {
147
- return new T((t) => {
147
+ return new F((t) => {
148
148
  if (typeof t != "object" || t === null)
149
- return E(`<${r}> failed. Expected object literal, got "${typeof t}"`);
149
+ return w(`<${r}> failed. Expected object literal, got "${typeof t}"`);
150
150
  const n = {};
151
151
  for (const [o, i] of Object.entries(e)) {
152
152
  const s = i.decoder.decode(t[o]);
153
153
  if (!s.isOk())
154
- return E(`<${r}> failed at "${o}" with ${s.error}`);
154
+ return w(`<${r}> failed at "${o}" with ${s.error}`);
155
155
  if (n[o] = s.value, i.suffixed) {
156
156
  for (const [u, c] of Object.entries(t))
157
157
  if (u.startsWith(o + ".")) {
158
- const h = i.decoder.decode(c);
159
- if (!h.isOk())
160
- return E(`<${r}> failed at "${u}" with ${h.error}`);
161
- n[u] = h.value;
158
+ const a = i.decoder.decode(c);
159
+ if (!a.isOk())
160
+ return w(`<${r}> failed at "${u}" with ${a.error}`);
161
+ n[u] = a.value;
162
162
  }
163
163
  }
164
164
  }
165
- return F(n);
165
+ return W(n);
166
166
  });
167
167
  }
168
- const gr = () => crypto.randomUUID().slice(0, 8), lt = (e) => typeof e != "function" && e.kind === "display", re = (e) => typeof e != "function" && e.kind === "action", D = (e) => typeof e != "function" && e.kind === "input", Pe = (e) => typeof e != "function" && e.kind === "layout", se = (e) => typeof e == "function", at = oe({ in: Re(w(), "In[]") }, "In"), Ue = oe({ when: w() }, "When"), Ee = z([at, Ue], "In | When"), ft = oe({ from: Re(w(), "From[]") }, "From"), we = z([ft, Ue], "Exclude"), _e = z([ot(), Ue], "Bool | When"), ht = new T((e) => {
168
+ const yr = () => crypto.randomUUID().slice(0, 8), at = (e) => typeof e != "function" && e.kind === "display", re = (e) => typeof e != "function" && e.kind === "action", C = (e) => typeof e != "function" && e.kind === "input", Pe = (e) => typeof e != "function" && e.kind === "layout", se = (e) => typeof e == "function", ft = oe({ in: Ue(E(), "In[]") }, "In"), Me = oe({ when: E() }, "When"), ve = z([ft, Me], "In | When"), ht = oe({ from: Ue(E(), "From[]") }, "From"), Ee = z([ht, Me], "Exclude"), _e = z([it(), Me], "Bool | When"), pt = new F((e) => {
169
169
  const r = typeof e;
170
- return r === "function" ? F(e) : E(`Expected a function, got '${r}'`);
171
- }), U = (e) => z([e, ht], ""), Me = ie(
170
+ return r === "function" ? W(e) : w(`Expected a function, got '${r}'`);
171
+ }), U = (e) => z([e, pt], ""), He = ie(
172
172
  {
173
- load: { suffixed: !0, decoder: U(y(w())) },
174
- click: { suffixed: !0, decoder: U(y(w())) },
175
- change: { suffixed: !0, decoder: U(y(w())) },
176
- filter: { suffixed: !0, decoder: U(y(w())) },
177
- blur: { suffixed: !0, decoder: U(y(w())) }
173
+ load: { suffixed: !0, decoder: U(m(E())) },
174
+ click: { suffixed: !0, decoder: U(m(E())) },
175
+ change: { suffixed: !0, decoder: U(m(E())) },
176
+ filter: { suffixed: !0, decoder: U(m(E())) },
177
+ blur: { suffixed: !0, decoder: U(m(E())) }
178
178
  },
179
179
  "On"
180
- ), pt = oe(
180
+ ), gt = oe(
181
181
  {
182
- key: w(),
183
- default: y(w()),
184
- params: X()
182
+ key: E(),
183
+ default: m(E()),
184
+ params: m(X())
185
185
  },
186
186
  "TranslationConfig"
187
- ), yr = z([w(), pt], "Localizable"), Ie = y(w()).map((e) => e || gr()), mt = ie(
187
+ ), Ar = z([E(), gt], "Localizable"), Be = m(E()).map((e) => e || yr()), mt = ie(
188
188
  {
189
189
  kind: { decoder: q("display") },
190
- uid: { decoder: Ie },
191
- type: { decoder: w() },
192
- size: { suffixed: !0, decoder: y(ve()) },
193
- include: { decoder: y(Ee) },
194
- exclude: { decoder: y(we) },
195
- props: { decoder: y(X()) }
190
+ uid: { decoder: Be },
191
+ type: { decoder: E() },
192
+ size: { suffixed: !0, decoder: m(Se()) },
193
+ include: { decoder: m(ve) },
194
+ exclude: { decoder: m(Ee) },
195
+ props: { decoder: m(X()) }
196
196
  },
197
197
  "DisplayWidget"
198
- ), gt = ie(
198
+ ), yt = ie(
199
199
  {
200
200
  kind: { decoder: q("action") },
201
- uid: { decoder: Ie },
202
- type: { decoder: w() },
201
+ uid: { decoder: Be },
202
+ type: { decoder: E() },
203
203
  actionType: {
204
- decoder: y(z([q("button"), q("submit")], "button | submit "))
204
+ decoder: m(z([q("button"), q("submit")], "button | submit "))
205
205
  },
206
- size: { suffixed: !0, decoder: y(ve()) },
207
- include: { decoder: y(Ee) },
208
- exclude: { decoder: y(we) },
209
- label: { suffixed: !0, decoder: U(yr) },
210
- disabled: { suffixed: !0, decoder: y(_e) },
211
- on: { decoder: y(Me) },
212
- props: { decoder: y(X()) }
206
+ size: { suffixed: !0, decoder: m(Se()) },
207
+ include: { decoder: m(ve) },
208
+ exclude: { decoder: m(Ee) },
209
+ label: {
210
+ suffixed: !0,
211
+ decoder: U(m(Ar))
212
+ },
213
+ disabled: { suffixed: !0, decoder: m(_e) },
214
+ on: { decoder: m(He) },
215
+ props: { decoder: m(X()) }
213
216
  },
214
217
  "ActionWidget"
215
- ), yt = new T((e) => {
218
+ ), At = new F((e) => {
216
219
  const r = typeof e;
217
220
  if (r === "function") {
218
221
  const t = e, n = t(void 0);
219
- return t.uid = n.uid || gr(), t.type = n.type, t.path = n.path, F(t);
222
+ return t.uid = n.uid || yr(), t.type = n.type, t.path = n.path, W(t);
220
223
  } else
221
- return E(`Expected a function, got '${r}'`);
224
+ return w(`Expected a function, got '${r}'`);
222
225
  }), $t = ie(
223
226
  {
224
227
  kind: { decoder: q("input") },
225
- uid: { decoder: Ie },
226
- type: { decoder: w() },
227
- size: { suffixed: !0, decoder: y(ve()) },
228
- include: { decoder: y(Ee) },
229
- exclude: { decoder: y(we) },
230
- disabled: { suffixed: !0, decoder: y(_e) },
231
- readonly: { suffixed: !0, decoder: y(_e) },
232
- on: { decoder: y(Me) },
233
- props: { decoder: y(X()) },
228
+ uid: { decoder: m(E()) },
229
+ type: { decoder: E() },
230
+ size: { suffixed: !0, decoder: m(Se()) },
231
+ include: { decoder: m(ve) },
232
+ exclude: { decoder: m(Ee) },
233
+ disabled: { suffixed: !0, decoder: m(_e) },
234
+ readonly: { suffixed: !0, decoder: m(_e) },
235
+ on: { decoder: m(He) },
236
+ props: { decoder: m(X()) },
234
237
  label: {
235
238
  suffixed: !0,
236
- decoder: U(y(yr))
239
+ decoder: U(m(Ar))
237
240
  },
238
- path: { decoder: w() },
239
- defaultValue: { decoder: y(X()) },
241
+ path: { decoder: E() },
242
+ defaultValue: { decoder: m(X()) },
240
243
  validator: {
241
244
  suffixed: !0,
242
- decoder: U(y(X()))
245
+ decoder: U(m(X()))
243
246
  }
244
247
  },
245
248
  "InputWidget"
@@ -247,31 +250,31 @@ const gr = () => crypto.randomUUID().slice(0, 8), lt = (e) => typeof e != "funct
247
250
  const r = { ...e };
248
251
  if (e.uid || (r.uid = `${e.path}-${e.type}`), e.type === "repeater") {
249
252
  const t = e.props;
250
- t.template = He.parse(t.template);
253
+ t.template = Ge.parse(t.template);
251
254
  }
252
255
  return r;
253
- }), At = mr(
256
+ }), St = mr(
254
257
  () => z(
255
258
  [
256
- yt,
259
+ At,
257
260
  $t,
258
- He,
261
+ Ge,
259
262
  mt,
260
- gt
263
+ yt
261
264
  ],
262
265
  "FormWidget"
263
266
  )
264
- ), He = ie(
267
+ ), Ge = ie(
265
268
  {
266
269
  kind: { decoder: q("layout") },
267
- uid: { decoder: Ie },
268
- type: { decoder: w() },
269
- size: { suffixed: !0, decoder: y(ve()) },
270
- include: { decoder: y(Ee) },
271
- exclude: { decoder: y(we) },
272
- props: { decoder: y(X()) },
273
- on: { decoder: y(Me) },
274
- children: { decoder: Re(At, "FormWidget[]") }
270
+ uid: { decoder: Be },
271
+ type: { decoder: E() },
272
+ size: { suffixed: !0, decoder: m(Se()) },
273
+ include: { decoder: m(ve) },
274
+ exclude: { decoder: m(Ee) },
275
+ props: { decoder: m(X()) },
276
+ on: { decoder: m(He) },
277
+ children: { decoder: Ue(St, "FormWidget[]") }
275
278
  },
276
279
  "LayoutWidget"
277
280
  ), G = class G {
@@ -297,8 +300,8 @@ const gr = () => crypto.randomUUID().slice(0, 8), lt = (e) => typeof e != "funct
297
300
  }
298
301
  };
299
302
  G.sharedCache = /* @__PURE__ */ new Map();
300
- let Ne = G;
301
- function Ao(e) {
303
+ let je = G;
304
+ function Oo(e) {
302
305
  return {
303
306
  ...e,
304
307
  form: {
@@ -311,11 +314,11 @@ function Ao(e) {
311
314
  }
312
315
  const $r = oe(
313
316
  {
314
- states: y(ct(w(), "states")),
315
- form: mr(() => He)
317
+ states: m(lt(E(), "states")),
318
+ form: mr(() => Ge)
316
319
  },
317
320
  "FormDef"
318
- ), Ar = (e) => ({
321
+ ), Sr = (e) => ({
319
322
  formName: "",
320
323
  formDef: $r.parse({
321
324
  form: {
@@ -338,12 +341,12 @@ const $r = oe(
338
341
  formHealth: { status: "ok" },
339
342
  touched: !1,
340
343
  lang: e
341
- }), St = (e) => !(typeof e != "object" || e === null || typeof e.key != "string");
342
- function So(e) {
344
+ }), vt = (e) => !(typeof e != "object" || e === null || typeof e.key != "string");
345
+ function Do(e) {
343
346
  const r = new Intl.Locale(e).maximize().script;
344
347
  return ["Arab", "Hebr", "Thaa", "Syrc", "Tfng", "Adlm", "Rohg"].includes(r || "") ? "rtl" : "ltr";
345
348
  }
346
- const vt = (e = navigator.language || "en-US") => {
349
+ const Et = (e = navigator.language || "en-US") => {
347
350
  const r = /* @__PURE__ */ new Set();
348
351
  return {
349
352
  get lang() {
@@ -361,22 +364,24 @@ const vt = (e = navigator.language || "en-US") => {
361
364
  e = n, r.forEach((o) => o(e));
362
365
  }
363
366
  };
364
- }, Et = (e) => {
367
+ }, wt = (e) => {
365
368
  throw new Error(`Unhandled case: ${JSON.stringify(e)}`);
366
369
  };
367
- function N(e, ...r) {
370
+ function j(e, ...r) {
368
371
  return r.reduce((t, n) => n(t), e);
369
372
  }
370
- function wt(e, r) {
373
+ function It(e, r) {
371
374
  const t = r.payload.widget.uid;
372
375
  if (!t)
373
376
  throw new Error("addWidget: widget must have a uid");
377
+ const n = r.payload.widget, o = e.touched && C(n) ? { ...e.touchedControls, [n.path]: !0 } : e.touchedControls;
374
378
  return {
375
379
  ...e,
380
+ touchedControls: o,
376
381
  calculatedWidgets: {
377
382
  ...e.calculatedWidgets,
378
383
  [t]: {
379
- source: r.payload.widget,
384
+ source: n,
380
385
  current: {}
381
386
  }
382
387
  }
@@ -393,7 +398,7 @@ const ee = {
393
398
  if (e === void 0)
394
399
  throw new Error("obj is undefined");
395
400
  return r.split(".").reduce((t, n) => t === void 0 || n === "" ? t : Array.isArray(t) ? t[parseInt(n, 10)] : t[n], e);
396
- }, Be = (e, r, t) => {
401
+ }, Ke = (e, r, t) => {
397
402
  if (e === null)
398
403
  throw new Error("object is null");
399
404
  if (e === void 0)
@@ -404,118 +409,155 @@ const ee = {
404
409
  let o = e;
405
410
  for (let s = 0; s < n.length - 1; s++) {
406
411
  const u = n[s], c = n[s + 1];
407
- (o[u] == null || typeof o[u] != "object") && (o[u] = It(c) ? [] : {}), o = o[u];
412
+ (o[u] == null || typeof o[u] != "object") && (o[u] = Ot(c) ? [] : {}), o = o[u];
408
413
  }
409
414
  const i = n[n.length - 1];
410
415
  return o[i] = t, e;
416
+ }, Ct = (e, r) => {
417
+ if (r === "")
418
+ return e;
419
+ const t = r.split("."), n = [e];
420
+ for (let s = 0; s < t.length - 1; s++) {
421
+ const u = n[s];
422
+ if (u == null || typeof u != "object")
423
+ return e;
424
+ const c = t[s], a = Array.isArray(u) ? u[parseInt(c, 10)] : u[c];
425
+ if (a == null || typeof a != "object")
426
+ return e;
427
+ n.push(a);
428
+ }
429
+ const o = n[n.length - 1], i = t[t.length - 1];
430
+ Array.isArray(o) ? o.splice(parseInt(i, 10), 1) : delete o[i];
431
+ for (let s = n.length - 1; s >= 1; s--) {
432
+ const u = n[s];
433
+ if (Array.isArray(u) || !Dt(u))
434
+ break;
435
+ const c = n[s - 1], a = t[s - 1];
436
+ if (Array.isArray(c))
437
+ break;
438
+ delete c[a];
439
+ }
440
+ return e;
411
441
  };
412
- function It(e) {
442
+ function Ot(e) {
413
443
  const r = Number(e);
414
444
  return Number.isInteger(r) && r >= 0 && r.toString() === e;
415
445
  }
416
- const le = (e, r) => (delete e[r], e);
417
- function dr(e) {
446
+ function Dt(e) {
447
+ return e != null && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0;
448
+ }
449
+ const we = (e, r) => (delete e[r], e);
450
+ function Ne(e) {
418
451
  if (e === null || typeof e != "object")
419
452
  return e;
420
453
  if (Array.isArray(e))
421
- return e.map((t) => dr(t));
454
+ return e.map((t) => Ne(t));
422
455
  const r = {};
423
456
  for (const t of Object.keys(e))
424
- r[t] = dr(e[t]);
457
+ r[t] = Ne(e[t]);
425
458
  return r;
426
459
  }
427
- function Ge(e) {
460
+ function Xe(e) {
428
461
  return e.flatMap((r) => [
429
462
  r,
430
- ...Pe(r) ? Ge(r.children) : []
463
+ ...Pe(r) ? Xe(r.children) : []
431
464
  ]);
432
465
  }
433
- function Ke(e) {
466
+ function ze(e) {
434
467
  return Object.entries(e.validations).reduce(
435
- (t, [n, o]) => (o !== null && (t.$formIsInvalid = !0, Be(t.$errors, n, [...o])), t),
468
+ (t, [n, o]) => (o !== null && (t.$formIsInvalid = !0, Ke(t.$errors, n, [...o])), t),
436
469
  { $formIsInvalid: !1, $errors: {} }
437
470
  );
438
471
  }
439
- const Xe = 32;
440
- let je, f, p, g = (e) => (f = 0, p = e, g.newline = !1, e = S(), p[f] ? J() : e || ""), J = (e = "Unexpected token", r = f, t = p.slice(0, r).split(`
472
+ function Oe(e) {
473
+ const r = Ne(e.data);
474
+ for (const [t, n] of Object.entries(e.widgetFlags))
475
+ if (n.hidden === !0) {
476
+ const o = e.flatForm[t];
477
+ o && C(o) && Ct(r, o.path);
478
+ }
479
+ return r;
480
+ }
481
+ const Je = 32;
482
+ let Le, h, p, y = (e) => (h = 0, p = e, y.newline = !1, e = S(), p[h] ? J() : e || ""), J = (e = "Unexpected token", r = h, t = p.slice(0, r).split(`
441
483
  `), n = t.pop(), o = p.slice(Math.max(0, r - 40), r), i = "̭", s = (p[r] || " ") + i, u = p.slice(r + 1, r + 20)) => {
442
484
  throw SyntaxError(`${e} at ${t.length + 1}:${n.length + 1}
443
485
  ${p[r - 41] !== `
444
486
  `, "" + o}${s}${u}`);
445
- }, Sr = (e, r = f) => (Array.isArray(e) && (e.loc = r), e), Z = (e, r = f, t) => {
446
- for (; t = e(p.charCodeAt(f)); ) f += t;
447
- return p.slice(r, f);
448
- }, I = (e = 1) => p[f += e], Le = (e) => f = e, S = (e = 0, r) => {
487
+ }, vr = (e, r = h) => (Array.isArray(e) && (e.loc = r), e), Z = (e, r = h, t) => {
488
+ for (; t = e(p.charCodeAt(h)); ) h += t;
489
+ return p.slice(r, h);
490
+ }, I = (e = 1) => p[h += e], Ve = (e) => h = e, S = (e = 0, r) => {
449
491
  let t, n, o, i, s;
450
- for (r && g.asi && (g.newline = !1); (t = g.space()) && (s = g.newline, 1) && t !== r && (o = // ASI before [ on new line (access handler would consume it; lineBreak distinguishes real \n from synthetic } flag)
451
- (n && t === 91 && je && g.asi?.(n, e, S) || null) ?? ((i = _[t]) && i(n, e)) ?? (n && s && g.asi?.(n, e, S)) ?? (!n && Z(g.id))); ) n = o;
452
- return r && (t == r ? (f++, r === 125 && g.asi && (g.newline = !0)) : J("Unclosed " + String.fromCharCode(r - (r > 42 ? 2 : 1)))), n;
453
- }, H = (e, r = f) => {
454
- for (je = !1; (e = p.charCodeAt(f)) <= Xe; )
455
- g.asi && e === 10 && (g.newline = je = !0), f++;
492
+ for (r && y.asi && (y.newline = !1); (t = y.space()) && (s = y.newline, 1) && t !== r && (o = // ASI before [ on new line (access handler would consume it; lineBreak distinguishes real \n from synthetic } flag)
493
+ (n && t === 91 && Le && y.asi?.(n, e, S) || null) ?? ((i = _[t]) && i(n, e)) ?? (n && s && y.asi?.(n, e, S)) ?? (!n && Z(y.id))); ) n = o;
494
+ return r && (t == r ? (h++, r === 125 && y.asi && (y.newline = !0)) : J("Unclosed " + String.fromCharCode(r - (r > 42 ? 2 : 1)))), n;
495
+ }, H = (e, r = h) => {
496
+ for (Le = !1; (e = p.charCodeAt(h)) <= Je; )
497
+ y.asi && e === 10 && (y.newline = Le = !0), h++;
456
498
  return e;
457
- }, Ct = (e = f) => {
458
- for (; p.charCodeAt(e) <= Xe; ) e++;
499
+ }, Ft = (e = h) => {
500
+ for (; p.charCodeAt(e) <= Je; ) e++;
459
501
  return p.charCodeAt(e);
460
502
  };
461
- g.id = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e == 36 || e == 95 || e >= 192 && e != 215 && e != 247;
462
- let Ot = (e, r = e.length) => p.substr(f, r) === e && !g.id(p.charCodeAt(f + r)), _ = [], ur = {}, P = (e, r = Xe, t, n = e.charCodeAt(0), o = e.length, i = _[n], s = e.toUpperCase() !== e, u, c) => (r = ur[e] = !i && ur[e] || r, _[n] = (h, A, m, a = f) => (u = m, (m ? e == m : (o < 2 || e.charCodeAt(1) === p.charCodeAt(f + 1) && (o < 3 || p.substr(f, o) == e)) && (!s || !g.id(p.charCodeAt(f + o))) && (u = m = e)) && A < r && (f += o, (c = t(h)) ? Sr(c, a) : (f = a, u = 0, !s && !i && !h && J()), c) || i?.(h, A, u))), $ = (e, r, t = !1) => P(e, r, (n) => n && /* @__PURE__ */ ((o) => o && [e, n, o])(S(r - (t ? 0.5 : 0)))), B = (e, r, t) => P(e, r, (n) => !n && (n = S(r - 0.5)) && [e, n]), ue = (e, r) => P(e, 200, (t) => !t && [, r]), vr = (e, r, t) => P(
503
+ y.id = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e == 36 || e == 95 || e >= 192 && e != 215 && e != 247;
504
+ let Tt = (e, r = e.length) => p.substr(h, r) === e && !y.id(p.charCodeAt(h + r)), _ = [], cr = {}, P = (e, r = Je, t, n = e.charCodeAt(0), o = e.length, i = _[n], s = e.toUpperCase() !== e, u, c) => (r = cr[e] = !i && cr[e] || r, _[n] = (a, $, g, f = h) => (u = g, (g ? e == g : (o < 2 || e.charCodeAt(1) === p.charCodeAt(h + 1) && (o < 3 || p.substr(h, o) == e)) && (!s || !y.id(p.charCodeAt(h + o))) && (u = g = e)) && $ < r && (h += o, (c = t(a)) ? vr(c, f) : (h = f, u = 0, !s && !i && !a && J()), c) || i?.(a, $, u))), A = (e, r, t = !1) => P(e, r, (n) => n && /* @__PURE__ */ ((o) => o && [e, n, o])(S(r - (t ? 0.5 : 0)))), B = (e, r, t) => P(e, r, (n) => !n && (n = S(r - 0.5)) && [e, n]), ue = (e, r) => P(e, 200, (t) => !t && [, r]), Er = (e, r, t) => P(
463
505
  e,
464
506
  r,
465
507
  (n, o) => (o = S(r - (t ? 0.5 : 0)), n?.[0] !== e && (n = [e, n || null]), o?.[0] === e ? n.push(...o.slice(1)) : n.push(o || null), n)
466
- ), ze = (e, r) => P(e[0], r, (t) => !t && [e, S(0, e.charCodeAt(1)) || null]), Er = (e, r) => P(e[0], r, (t) => t && [e, t, S(0, e.charCodeAt(1)) || null]), ce = (e, r, t, n = e.charCodeAt(0), o = e.length, i = _[n], s) => _[n] = (u, c, h, A = f) => !u && (h ? e == h : (o < 2 || p.substr(f, o) == e) && (h = e)) && c < r && !g.id(p.charCodeAt(f + o)) && (!g.prop || g.prop(f + o)) && (Le(f + o), (s = t()) ? Sr(s, A) : Le(A), s) || i?.(u, c, h);
467
- Object.defineProperty(g, "space", {
508
+ ), Qe = (e, r) => P(e[0], r, (t) => !t && [e, S(0, e.charCodeAt(1)) || null]), wr = (e, r) => P(e[0], r, (t) => t && [e, t, S(0, e.charCodeAt(1)) || null]), ce = (e, r, t, n = e.charCodeAt(0), o = e.length, i = _[n], s) => _[n] = (u, c, a, $ = h) => !u && (a ? e == a : (o < 2 || p.substr(h, o) == e) && (a = e)) && c < r && !y.id(p.charCodeAt(h + o)) && (!y.prop || y.prop(h + o)) && (Ve(h + o), (s = t()) ? vr(s, $) : Ve($), s) || i?.(u, c, a);
509
+ Object.defineProperty(y, "space", {
468
510
  configurable: !0,
469
511
  enumerable: !0,
470
512
  get: () => H,
471
513
  set: (e) => H = e
472
514
  });
473
- const Ve = {}, l = (e, r, t = Ve[e]) => Ve[e] = (...n) => r(...n) || t?.(...n), d = (e) => Array.isArray(e) ? e[0] == null ? /* @__PURE__ */ ((r) => () => r)(e[1]) : (
515
+ const Re = {}, l = (e, r, t = Re[e]) => Re[e] = (...n) => r(...n) || t?.(...n), d = (e) => Array.isArray(e) ? e[0] == null ? /* @__PURE__ */ ((r) => () => r)(e[1]) : (
474
516
  // == catches both undefined and null
475
- Ve[e[0]]?.(...e.slice(1)) ?? J(`Unknown operator: ${e[0]}`, e?.loc)
517
+ Re[e[0]]?.(...e.slice(1)) ?? J(`Unknown operator: ${e[0]}`, e?.loc)
476
518
  ) : e === void 0 ? () => {
477
- } : (r) => r?.[e], pe = 46, te = 48, me = 57, Dt = 69, Tt = 101, Wt = 43, Ft = 45, he = 95, wr = 110, kt = 97, Pt = 102, _t = 65, Nt = 70, Ir = (e) => e.indexOf("_") < 0 ? e : e.replaceAll("_", ""), Je = (e) => {
478
- let r = Ir(Z(
519
+ } : (r) => r?.[e], he = 46, te = 48, pe = 57, Wt = 69, kt = 101, Pt = 43, _t = 45, fe = 95, Ir = 110, jt = 97, Nt = 102, Lt = 65, Vt = 70, Cr = (e) => e.indexOf("_") < 0 ? e : e.replaceAll("_", ""), qe = (e) => {
520
+ let r = Cr(Z(
479
521
  (t) => (
480
522
  // . is decimal only if NOT followed by another . (range operator)
481
- t === pe && p.charCodeAt(f + 1) !== pe || t >= te && t <= me || t === he || ((t === Dt || t === Tt) && ((t = p.charCodeAt(f + 1)) >= te && t <= me || t === Wt || t === Ft) ? 2 : 0)
523
+ t === he && p.charCodeAt(h + 1) !== he || t >= te && t <= pe || t === fe || ((t === Wt || t === kt) && ((t = p.charCodeAt(h + 1)) >= te && t <= pe || t === Pt || t === _t) ? 2 : 0)
482
524
  )
483
525
  ));
484
- return p.charCodeAt(f) === wr ? (I(), [, BigInt(r)]) : (e = +r) != e ? J() : [, e];
485
- }, jt = {
486
- 2: (e) => e === 48 || e === 49 || e === he,
487
- 8: (e) => e >= 48 && e <= 55 || e === he,
488
- 16: (e) => e >= te && e <= me || e >= kt && e <= Pt || e >= _t && e <= Nt || e === he
526
+ return p.charCodeAt(h) === Ir ? (I(), [, BigInt(r)]) : (e = +r) != e ? J() : [, e];
527
+ }, Rt = {
528
+ 2: (e) => e === 48 || e === 49 || e === fe,
529
+ 8: (e) => e >= 48 && e <= 55 || e === fe,
530
+ 16: (e) => e >= te && e <= pe || e >= jt && e <= Nt || e >= Lt && e <= Vt || e === fe
489
531
  };
490
- g.number = null;
491
- _[pe] = (e) => !e && p.charCodeAt(f + 1) !== pe && Je();
492
- for (let e = te; e <= me; e++) _[e] = (r) => r ? void 0 : Je();
532
+ y.number = null;
533
+ _[he] = (e) => !e && p.charCodeAt(h + 1) !== he && qe();
534
+ for (let e = te; e <= pe; e++) _[e] = (r) => r ? void 0 : qe();
493
535
  _[te] = (e) => {
494
536
  if (e) return;
495
- const r = g.number;
537
+ const r = y.number;
496
538
  if (r) {
497
539
  for (const [t, n] of Object.entries(r))
498
- if (t[0] === "0" && p[f + 1]?.toLowerCase() === t[1]) {
540
+ if (t[0] === "0" && p[h + 1]?.toLowerCase() === t[1]) {
499
541
  I(2);
500
- const o = Ir(Z(jt[n]));
501
- return p.charCodeAt(f) === wr ? (I(), [, BigInt("0" + t[1] + o)]) : [, parseInt(o, n)];
542
+ const o = Cr(Z(Rt[n]));
543
+ return p.charCodeAt(h) === Ir ? (I(), [, BigInt("0" + t[1] + o)]) : [, parseInt(o, n)];
502
544
  }
503
545
  }
504
- return Je();
546
+ return qe();
505
547
  };
506
- const Lt = 92, cr = 34, lr = 39, Vt = { n: `
507
- `, r: "\r", t: " ", b: "\b", f: "\f", v: "\v" }, Cr = (e) => (r, t, n = "") => {
508
- if (!(r || !g.string?.[String.fromCharCode(e)]))
509
- return I(), Z((o) => o - e && (o === Lt ? (n += Vt[p[f + 1]] || p[f + 1], 2) : (n += p[f], 1))), p[f] === String.fromCharCode(e) ? I() : J("Bad string"), [, n];
548
+ const Ut = 92, lr = 34, ar = 39, Mt = { n: `
549
+ `, r: "\r", t: " ", b: "\b", f: "\f", v: "\v" }, Or = (e) => (r, t, n = "") => {
550
+ if (!(r || !y.string?.[String.fromCharCode(e)]))
551
+ return I(), Z((o) => o - e && (o === Ut ? (n += Mt[p[h + 1]] || p[h + 1], 2) : (n += p[h], 1))), p[h] === String.fromCharCode(e) ? I() : J("Bad string"), [, n];
510
552
  };
511
- _[cr] = Cr(cr);
512
- _[lr] = Cr(lr);
513
- g.string = { '"': !0 };
514
- const Rt = 20;
515
- "= += -= *= /= %= |= &= ^= >>= <<=".split(" ").map((e) => $(e, Rt, !0));
516
- const Or = (e, r, t, n) => typeof e == "string" ? (o) => r(o, e, o) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n, o)) : e[0] === "[]" && e.length === 3 ? (t = d(e[1]), n = d(e[2]), (o) => r(t(o), n(o), o)) : e[0] === "()" && e.length === 2 ? Or(e[1], r) : (() => {
553
+ _[lr] = Or(lr);
554
+ _[ar] = Or(ar);
555
+ y.string = { '"': !0 };
556
+ const Ht = 20;
557
+ "= += -= *= /= %= |= &= ^= >>= <<=".split(" ").map((e) => A(e, Ht, !0));
558
+ const Dr = (e, r, t, n) => typeof e == "string" ? (o) => r(o, e, o) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n, o)) : e[0] === "[]" && e.length === 3 ? (t = d(e[1]), n = d(e[2]), (o) => r(t(o), n(o), o)) : e[0] === "()" && e.length === 2 ? Dr(e[1], r) : (() => {
517
559
  throw Error("Invalid assignment target");
518
- })(), ar = {
560
+ })(), fr = {
519
561
  "=": (e, r, t) => e[r] = t,
520
562
  "+=": (e, r, t) => e[r] += t,
521
563
  "-=": (e, r, t) => e[r] -= t,
@@ -528,49 +570,49 @@ const Or = (e, r, t, n) => typeof e == "string" ? (o) => r(o, e, o) : e[0] === "
528
570
  ">>=": (e, r, t) => e[r] >>= t,
529
571
  "<<=": (e, r, t) => e[r] <<= t
530
572
  };
531
- for (const e in ar) l(e, (r, t) => (t = d(t), Or(r, (n, o, i) => ar[e](n, o, t(i)))));
532
- const Ut = 30, Mt = 40, Ht = 140;
533
- B("!", Ht);
534
- $("||", Ut);
535
- $("&&", Mt);
573
+ for (const e in fr) l(e, (r, t) => (t = d(t), Dr(r, (n, o, i) => fr[e](n, o, t(i)))));
574
+ const Bt = 30, Gt = 40, Kt = 140;
575
+ B("!", Kt);
576
+ A("||", Bt);
577
+ A("&&", Gt);
536
578
  l("!", (e) => (e = d(e), (r) => !e(r)));
537
579
  l("||", (e, r) => (e = d(e), r = d(r), (t) => e(t) || r(t)));
538
580
  l("&&", (e, r) => (e = d(e), r = d(r), (t) => e(t) && r(t)));
539
- const Bt = 50, Gt = 60, Kt = 70, Dr = 100, Xt = 140;
540
- $("|", Bt);
541
- $("&", Kt);
542
- $("^", Gt);
543
- $(">>", Dr);
544
- $("<<", Dr);
545
- B("~", Xt);
581
+ const Xt = 50, zt = 60, Jt = 70, Fr = 100, Qt = 140;
582
+ A("|", Xt);
583
+ A("&", Jt);
584
+ A("^", zt);
585
+ A(">>", Fr);
586
+ A("<<", Fr);
587
+ B("~", Qt);
546
588
  l("~", (e) => (e = d(e), (r) => ~e(r)));
547
589
  l("|", (e, r) => (e = d(e), r = d(r), (t) => e(t) | r(t)));
548
590
  l("&", (e, r) => (e = d(e), r = d(r), (t) => e(t) & r(t)));
549
591
  l("^", (e, r) => (e = d(e), r = d(r), (t) => e(t) ^ r(t)));
550
592
  l(">>", (e, r) => (e = d(e), r = d(r), (t) => e(t) >> r(t)));
551
593
  l("<<", (e, r) => (e = d(e), r = d(r), (t) => e(t) << r(t)));
552
- const Ce = 90;
553
- $("<", Ce);
554
- $(">", Ce);
555
- $("<=", Ce);
556
- $(">=", Ce);
594
+ const Ie = 90;
595
+ A("<", Ie);
596
+ A(">", Ie);
597
+ A("<=", Ie);
598
+ A(">=", Ie);
557
599
  l(">", (e, r) => (e = d(e), r = d(r), (t) => e(t) > r(t)));
558
600
  l("<", (e, r) => (e = d(e), r = d(r), (t) => e(t) < r(t)));
559
601
  l(">=", (e, r) => (e = d(e), r = d(r), (t) => e(t) >= r(t)));
560
602
  l("<=", (e, r) => (e = d(e), r = d(r), (t) => e(t) <= r(t)));
561
603
  const Tr = 80;
562
- $("==", Tr);
563
- $("!=", Tr);
604
+ A("==", Tr);
605
+ A("!=", Tr);
564
606
  l("==", (e, r) => (e = d(e), r = d(r), (t) => e(t) == r(t)));
565
607
  l("!=", (e, r) => (e = d(e), r = d(r), (t) => e(t) != r(t)));
566
- const Wr = 110, Qe = 120, Fr = 140;
567
- $("+", Wr);
568
- $("-", Wr);
569
- $("*", Qe);
570
- $("/", Qe);
571
- $("%", Qe);
572
- B("+", Fr);
573
- B("-", Fr);
608
+ const Wr = 110, Ye = 120, kr = 140;
609
+ A("+", Wr);
610
+ A("-", Wr);
611
+ A("*", Ye);
612
+ A("/", Ye);
613
+ A("%", Ye);
614
+ B("+", kr);
615
+ B("-", kr);
574
616
  l("+", (e, r) => r !== void 0 ? (e = d(e), r = d(r), (t) => e(t) + r(t)) : (e = d(e), (t) => +e(t)));
575
617
  l("-", (e, r) => r !== void 0 ? (e = d(e), r = d(r), (t) => e(t) - r(t)) : (e = d(e), (t) => -e(t)));
576
618
  l("*", (e, r) => (e = d(e), r = d(r), (t) => e(t) * r(t)));
@@ -579,122 +621,122 @@ l("%", (e, r) => (e = d(e), r = d(r), (t) => e(t) % r(t)));
579
621
  const ge = 150;
580
622
  P("++", ge, (e) => e ? ["++", e, null] : ["++", S(ge - 1)]);
581
623
  P("--", ge, (e) => e ? ["--", e, null] : ["--", S(ge - 1)]);
582
- const qe = (e, r, t, n) => typeof e == "string" ? (o) => r(o, e) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n)) : e[0] === "[]" && e.length === 3 ? (t = d(e[1]), n = d(e[2]), (o) => r(t(o), n(o))) : e[0] === "()" && e.length === 2 ? qe(e[1], r) : (
624
+ const Ze = (e, r, t, n) => typeof e == "string" ? (o) => r(o, e) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n)) : e[0] === "[]" && e.length === 3 ? (t = d(e[1]), n = d(e[2]), (o) => r(t(o), n(o))) : e[0] === "()" && e.length === 2 ? Ze(e[1], r) : (
583
625
  // unwrap parens: (x)++
584
626
  (() => {
585
627
  throw Error("Invalid increment target");
586
628
  })()
587
629
  );
588
- l("++", (e, r) => qe(e, r === null ? (t, n) => t[n]++ : (t, n) => ++t[n]));
589
- l("--", (e, r) => qe(e, r === null ? (t, n) => t[n]-- : (t, n) => --t[n]));
590
- const zt = 5, Jt = 10;
591
- vr(",", Jt);
592
- vr(";", zt, !0);
593
- const kr = (...e) => (e = e.map(d), (r) => {
630
+ l("++", (e, r) => Ze(e, r === null ? (t, n) => t[n]++ : (t, n) => ++t[n]));
631
+ l("--", (e, r) => Ze(e, r === null ? (t, n) => t[n]-- : (t, n) => --t[n]));
632
+ const qt = 5, Yt = 10;
633
+ Er(",", Yt);
634
+ Er(";", qt, !0);
635
+ const Pr = (...e) => (e = e.map(d), (r) => {
594
636
  let t;
595
637
  for (const n of e) t = n(r);
596
638
  return t;
597
639
  });
598
- l(",", kr);
599
- l(";", kr);
600
- const Qt = 170;
601
- ze("()", Qt);
602
- const M = (e) => e?.[0] === "_" && e[1] === "_" || e === "constructor" || e === "prototype", Ye = 170;
603
- Er("[]", Ye);
604
- $(".", Ye);
605
- Er("()", Ye);
606
- const ye = (e) => {
640
+ l(",", Pr);
641
+ l(";", Pr);
642
+ const Zt = 170;
643
+ Qe("()", Zt);
644
+ const M = (e) => e?.[0] === "_" && e[1] === "_" || e === "constructor" || e === "prototype", be = 170;
645
+ wr("[]", be);
646
+ A(".", be);
647
+ wr("()", be);
648
+ const me = (e) => {
607
649
  throw Error(e);
608
650
  };
609
651
  l("[]", (e, r) => r === void 0 ? (e = e ? e[0] === "," ? e.slice(1) : [e] : [], e = e.map((t) => t == null ? (() => {
610
- }) : t[0] === "..." ? (t = d(t[1]), (n) => t(n)) : (t = d(t), (n) => [t(n)])), (t) => e.flatMap((n) => n(t))) : (r == null && ye("Missing index"), e = d(e), r = d(r), (t) => {
652
+ }) : t[0] === "..." ? (t = d(t[1]), (n) => t(n)) : (t = d(t), (n) => [t(n)])), (t) => e.flatMap((n) => n(t))) : (r == null && me("Missing index"), e = d(e), r = d(r), (t) => {
611
653
  const n = r(t);
612
654
  return M(n) ? void 0 : e(t)[n];
613
655
  }));
614
656
  l(".", (e, r) => (e = d(e), r = r[0] ? r : r[1], M(r) ? () => {
615
657
  } : (t) => e(t)[r]));
616
658
  l("()", (e, r) => {
617
- if (r === void 0) return e == null ? ye("Empty ()") : d(e);
659
+ if (r === void 0) return e == null ? me("Empty ()") : d(e);
618
660
  const t = (o) => o?.[0] === "," && o.slice(1).some((i) => i == null || t(i));
619
- t(r) && ye("Empty argument");
661
+ t(r) && me("Empty argument");
620
662
  const n = r ? r[0] === "," ? (r = r.slice(1).map(d), (o) => r.map((i) => i(o))) : (r = d(r), (o) => [r(o)]) : () => [];
621
- return Ze(e, (o, i, s) => o[i](...n(s)));
663
+ return xe(e, (o, i, s) => o[i](...n(s)));
622
664
  });
623
- const Q = (e) => typeof e == "string" || Array.isArray(e) && (e[0] === "." || e[0] === "?." || e[0] === "[]" && e.length === 3 || e[0] === "?.[]" || e[0] === "()" && e.length === 2 && Q(e[1]) || e[0] === "{}"), Ze = (e, r, t, n) => e == null ? ye("Empty ()") : e[0] === "()" && e.length == 2 ? Ze(e[1], r) : typeof e == "string" ? (o) => r(o, e, o) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n, o)) : e[0] === "?." ? (t = d(e[1]), n = e[2], (o) => {
665
+ const Q = (e) => typeof e == "string" || Array.isArray(e) && (e[0] === "." || e[0] === "?." || e[0] === "[]" && e.length === 3 || e[0] === "?.[]" || e[0] === "()" && e.length === 2 && Q(e[1]) || e[0] === "{}"), xe = (e, r, t, n) => e == null ? me("Empty ()") : e[0] === "()" && e.length == 2 ? xe(e[1], r) : typeof e == "string" ? (o) => r(o, e, o) : e[0] === "." ? (t = d(e[1]), n = e[2], (o) => r(t(o), n, o)) : e[0] === "?." ? (t = d(e[1]), n = e[2], (o) => {
624
666
  const i = t(o);
625
667
  return i == null ? void 0 : r(i, n, o);
626
668
  }) : e[0] === "[]" && e.length === 3 ? (t = d(e[1]), n = d(e[2]), (o) => r(t(o), n(o), o)) : e[0] === "?.[]" ? (t = d(e[1]), n = d(e[2]), (o) => {
627
669
  const i = t(o);
628
670
  return i == null ? void 0 : r(i, n(o), o);
629
- }) : (e = d(e), (o) => r([e(o)], 0, o)), x = Ze, qt = 32, Yt = g.space;
630
- g.comment ??= { "//": `
671
+ }) : (e = d(e), (o) => r([e(o)], 0, o)), b = xe, bt = 32, xt = y.space;
672
+ y.comment ??= { "//": `
631
673
  `, "/*": "*/" };
632
674
  let De;
633
- g.space = () => {
634
- De || (De = Object.entries(g.comment).map(([o, i]) => [o, i, o.charCodeAt(0)]));
635
- for (var e; e = Yt(); ) {
675
+ y.space = () => {
676
+ De || (De = Object.entries(y.comment).map(([o, i]) => [o, i, o.charCodeAt(0)]));
677
+ for (var e; e = xt(); ) {
636
678
  for (var r = 0, t; t = De[r++]; )
637
- if (e === t[2] && p.substr(f, t[0].length) === t[0]) {
638
- var n = f + t[0].length;
679
+ if (e === t[2] && p.substr(h, t[0].length) === t[0]) {
680
+ var n = h + t[0].length;
639
681
  if (t[1] === `
640
- `) for (; p.charCodeAt(n) >= qt; ) n++;
682
+ `) for (; p.charCodeAt(n) >= bt; ) n++;
641
683
  else {
642
684
  for (; p[n] && p.substr(n, t[1].length) !== t[1]; ) n++;
643
685
  p[n] && (n += t[1].length);
644
686
  }
645
- Le(n), e = 0;
687
+ Ve(n), e = 0;
646
688
  break;
647
689
  }
648
690
  if (e) return e;
649
691
  }
650
692
  return e;
651
693
  };
652
- const Pr = 80;
653
- $("===", Pr);
654
- $("!==", Pr);
694
+ const _r = 80;
695
+ A("===", _r);
696
+ A("!==", _r);
655
697
  l("===", (e, r) => (e = d(e), r = d(r), (t) => e(t) === r(t)));
656
698
  l("!==", (e, r) => (e = d(e), r = d(r), (t) => e(t) !== r(t)));
657
- const Zt = 30;
658
- $("??", Zt);
699
+ const en = 30;
700
+ A("??", en);
659
701
  l("??", (e, r) => (e = d(e), r = d(r), (t) => e(t) ?? r(t)));
660
- const xt = 130, bt = 20;
661
- $("**", xt, !0);
662
- $("**=", bt, !0);
702
+ const rn = 130, tn = 20;
703
+ A("**", rn, !0);
704
+ A("**=", tn, !0);
663
705
  l("**", (e, r) => (e = d(e), r = d(r), (t) => e(t) ** r(t)));
664
- const en = (e) => {
706
+ const nn = (e) => {
665
707
  throw Error(e);
666
708
  };
667
- l("**=", (e, r) => (Q(e) || en("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] **= r(o))));
668
- const _r = 90;
669
- $("in", _r);
670
- $("of", _r);
709
+ l("**=", (e, r) => (Q(e) || nn("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] **= r(o))));
710
+ const jr = 90;
711
+ A("in", jr);
712
+ A("of", jr);
671
713
  l("in", (e, r) => (e = d(e), r = d(r), (t) => e(t) in r(t)));
672
- const rn = 20, tn = 100, nn = (e) => {
714
+ const on = 20, sn = 100, dn = (e) => {
673
715
  throw Error(e);
674
716
  };
675
- $(">>>", tn);
676
- $(">>>=", rn, !0);
717
+ A(">>>", sn);
718
+ A(">>>=", on, !0);
677
719
  l(">>>", (e, r) => (e = d(e), r = d(r), (t) => e(t) >>> r(t)));
678
- l(">>>=", (e, r) => (Q(e) || nn("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] >>>= r(o))));
679
- const xe = 5, on = 10, sn = 20, dn = (e) => e[0]?.[0] === "," ? e[0].slice(1) : e, $e = (e, r, t) => {
720
+ l(">>>=", (e, r) => (Q(e) || dn("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] >>>= r(o))));
721
+ const er = 5, un = 10, cn = 20, ln = (e) => e[0]?.[0] === "," ? e[0].slice(1) : e, ye = (e, r, t) => {
680
722
  if (typeof e == "string") {
681
723
  t[e] = r;
682
724
  return;
683
725
  }
684
- const [n, ...o] = e, i = dn(o);
726
+ const [n, ...o] = e, i = ln(o);
685
727
  if (n === "{}") {
686
728
  const s = [];
687
729
  for (const u of i) {
688
730
  if (Array.isArray(u) && u[0] === "...") {
689
- const a = {};
690
- for (const C in r) s.includes(C) || (a[C] = r[C]);
691
- t[u[1]] = a;
731
+ const f = {};
732
+ for (const O in r) s.includes(O) || (f[O] = r[O]);
733
+ t[u[1]] = f;
692
734
  break;
693
735
  }
694
- let c, h, A;
695
- typeof u == "string" ? c = h = u : u[0] === "=" ? (typeof u[1] == "string" ? c = h = u[1] : [, c, h] = u[1], A = u[2]) : [, c, h] = u, s.push(c);
696
- let m = r[c];
697
- m === void 0 && A && (m = d(A)(t)), $e(h, m, t);
736
+ let c, a, $;
737
+ typeof u == "string" ? c = a = u : u[0] === "=" ? (typeof u[1] == "string" ? c = a = u[1] : [, c, a] = u[1], $ = u[2]) : [, c, a] = u, s.push(c);
738
+ let g = r[c];
739
+ g === void 0 && $ && (g = d($)(t)), ye(a, g, t);
698
740
  }
699
741
  } else if (n === "[]") {
700
742
  let s = 0;
@@ -707,20 +749,20 @@ const xe = 5, on = 10, sn = 20, dn = (e) => e[0]?.[0] === "," ? e[0].slice(1) :
707
749
  t[u[1]] = r.slice(s);
708
750
  break;
709
751
  }
710
- let c = u, h;
711
- Array.isArray(u) && u[0] === "=" && ([, c, h] = u);
712
- let A = r[s++];
713
- A === void 0 && h && (A = d(h)(t)), $e(c, A, t);
752
+ let c = u, a;
753
+ Array.isArray(u) && u[0] === "=" && ([, c, a] = u);
754
+ let $ = r[s++];
755
+ $ === void 0 && a && ($ = d(a)(t)), ye(c, $, t);
714
756
  }
715
757
  }
716
758
  }, Nr = (e) => {
717
- let r = S(on - 1);
759
+ let r = S(un - 1);
718
760
  return r?.[0] === "in" || r?.[0] === "of" ? [r[0], [e, r[1]], r[2]] : r?.[0] === "," ? [e, ...r.slice(1)] : [e, r];
719
761
  };
720
- ce("let", xe + 1, () => Nr("let"));
721
- ce("const", xe + 1, () => Nr("const"));
722
- ce("var", xe, () => (H(), ["var", S(sn)]));
723
- const jr = (...e) => (e = e.map((r) => {
762
+ ce("let", er + 1, () => Nr("let"));
763
+ ce("const", er + 1, () => Nr("const"));
764
+ ce("var", er, () => (H(), ["var", S(cn)]));
765
+ const Lr = (...e) => (e = e.map((r) => {
724
766
  if (typeof r == "string") return (t) => {
725
767
  t[r] = void 0;
726
768
  };
@@ -728,47 +770,47 @@ const jr = (...e) => (e = e.map((r) => {
728
770
  const [, t, n] = r, o = d(n);
729
771
  return typeof t == "string" ? (i) => {
730
772
  i[t] = o(i);
731
- } : (i) => $e(t, o(i), i);
773
+ } : (i) => ye(t, o(i), i);
732
774
  }
733
775
  return d(r);
734
776
  }), (r) => {
735
777
  for (const t of e) t(r);
736
778
  });
737
- l("let", jr);
738
- l("const", jr);
779
+ l("let", Lr);
780
+ l("const", Lr);
739
781
  l("var", (e) => typeof e == "string" ? (r) => {
740
782
  r[e] = void 0;
741
783
  } : () => {
742
784
  });
743
- const be = 20, Oe = (e) => {
785
+ const rr = 20, Ce = (e) => {
744
786
  throw Error(e);
745
787
  };
746
- $("||=", be, !0);
747
- $("&&=", be, !0);
748
- $("??=", be, !0);
788
+ A("||=", rr, !0);
789
+ A("&&=", rr, !0);
790
+ A("??=", rr, !0);
749
791
  l("=", (e, r) => {
750
792
  if (Array.isArray(e) && (e[0] === "let" || e[0] === "const" || e[0] === "var")) {
751
793
  const t = e[1];
752
794
  return r = d(r), typeof t == "string" ? (n) => {
753
795
  n[t] = r(n);
754
- } : (n) => $e(t, r(n), n);
796
+ } : (n) => ye(t, r(n), n);
755
797
  }
756
- return Q(e) || Oe("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] = r(o));
798
+ return Q(e) || Ce("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] = r(o));
757
799
  });
758
- l("||=", (e, r) => (Q(e) || Oe("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] ||= r(o))));
759
- l("&&=", (e, r) => (Q(e) || Oe("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] &&= r(o))));
760
- l("??=", (e, r) => (Q(e) || Oe("Invalid assignment target"), r = d(r), x(e, (t, n, o) => t[n] ??= r(o))));
800
+ l("||=", (e, r) => (Q(e) || Ce("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] ||= r(o))));
801
+ l("&&=", (e, r) => (Q(e) || Ce("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] &&= r(o))));
802
+ l("??=", (e, r) => (Q(e) || Ce("Invalid assignment target"), r = d(r), b(e, (t, n, o) => t[n] ??= r(o))));
761
803
  ue("true", !0);
762
804
  ue("false", !1);
763
805
  ue("null", null);
764
806
  ce("undefined", 200, () => []);
765
807
  ue("NaN", NaN);
766
808
  ue("Infinity", 1 / 0);
767
- const Te = 20;
768
- P("?", Te, (e, r, t) => e && (r = S(Te - 1)) && Z((n) => n === 58) && (t = S(Te - 1), ["?", e, r, t]));
809
+ const Fe = 20;
810
+ P("?", Fe, (e, r, t) => e && (r = S(Fe - 1)) && Z((n) => n === 58) && (t = S(Fe - 1), ["?", e, r, t]));
769
811
  l("?", (e, r, t) => (e = d(e), r = d(r), t = d(t), (n) => e(n) ? r(n) : t(n)));
770
- const un = [], cn = 20;
771
- $("=>", cn, !0);
812
+ const an = [], fn = 20;
813
+ A("=>", fn, !0);
772
814
  l("=>", (e, r) => {
773
815
  e = e?.[0] === "()" ? e[1] : e;
774
816
  const t = e ? e[0] === "," ? e.slice(1) : [e] : [];
@@ -777,30 +819,30 @@ l("=>", (e, r) => {
777
819
  Array.isArray(i) && i[0] === "..." && (n = t.length - 1, o = i[1], t.length--);
778
820
  const s = r?.[0] === "{}";
779
821
  return r = d(s ? ["{", r[1]] : r), (u) => (...c) => {
780
- const h = {};
781
- t.forEach((m, a) => h[m] = c[a]), o && (h[o] = c.slice(n));
782
- const A = new Proxy(h, {
783
- get: (m, a) => a in m ? m[a] : u?.[a],
784
- set: (m, a, C) => ((a in m ? m : u)[a] = C, !0),
785
- has: (m, a) => a in m || (u ? a in u : !1)
822
+ const a = {};
823
+ t.forEach((g, f) => a[g] = c[f]), o && (a[o] = c.slice(n));
824
+ const $ = new Proxy(a, {
825
+ get: (g, f) => f in g ? g[f] : u?.[f],
826
+ set: (g, f, O) => ((f in g ? g : u)[f] = O, !0),
827
+ has: (g, f) => f in g || (u ? f in u : !1)
786
828
  });
787
829
  try {
788
- const m = r(A);
789
- return s ? void 0 : m;
790
- } catch (m) {
791
- if (m === un) return m[0];
792
- throw m;
830
+ const g = r($);
831
+ return s ? void 0 : g;
832
+ } catch (g) {
833
+ if (g === an) return g[0];
834
+ throw g;
793
835
  }
794
836
  };
795
837
  });
796
- const ln = 140;
797
- B("...", ln);
838
+ const hn = 140;
839
+ B("...", hn);
798
840
  l("...", (e) => (e = d(e), (r) => Object.entries(e(r))));
799
- const fr = 170;
800
- P("?.", fr, (e, r) => {
841
+ const hr = 170;
842
+ P("?.", hr, (e, r) => {
801
843
  if (!e) return;
802
844
  const t = H();
803
- return t === 40 ? (I(), ["?.()", e, S(0, 41) || null]) : t === 91 ? (I(), ["?.[]", e, S(0, 93)]) : (r = S(fr), r ? ["?.", e, r] : void 0);
845
+ return t === 40 ? (I(), ["?.()", e, S(0, 41) || null]) : t === 91 ? (I(), ["?.[]", e, S(0, 93)]) : (r = S(hr), r ? ["?.", e, r] : void 0);
804
846
  });
805
847
  l("?.", (e, r) => (e = d(e), M(r) ? () => {
806
848
  } : (t) => e(t)?.[r]));
@@ -844,7 +886,7 @@ B("delete", ne);
844
886
  ce(
845
887
  "new",
846
888
  ne,
847
- () => Ot(".target") ? (I(7), ["new.target"]) : ["new", S(ne)]
889
+ () => Tt(".target") ? (I(7), ["new.target"]) : ["new", S(ne)]
848
890
  );
849
891
  l("typeof", (e) => (e = d(e), (r) => typeof e(r)));
850
892
  l("void", (e) => (e = d(e), (r) => (e(r), void 0)));
@@ -863,52 +905,52 @@ l("new", (e) => {
863
905
  const r = d(e?.[0] === "()" ? e[1] : e), t = e?.[0] === "()" ? e[2] : null, n = t ? t[0] === "," ? /* @__PURE__ */ ((o) => (i) => o.map((s) => s(i)))(t.slice(1).map(d)) : /* @__PURE__ */ ((o) => (i) => [o(i)])(d(t)) : () => [];
864
906
  return (o) => new (r(o))(...n(o));
865
907
  });
866
- const er = Symbol("accessor"), rr = 20, an = 40, Lr = 41, Vr = 123, Rr = 125, Ur = (e) => (r) => {
908
+ const tr = Symbol("accessor"), nr = 20, pn = 40, Vr = 41, Rr = 123, Ur = 125, Mr = (e) => (r) => {
867
909
  if (r) return;
868
910
  H();
869
- const t = Z(g.id);
870
- if (!t || (H(), p.charCodeAt(f) !== an)) return !1;
911
+ const t = Z(y.id);
912
+ if (!t || (H(), p.charCodeAt(h) !== pn)) return !1;
871
913
  I();
872
- const n = S(0, Lr);
873
- return H(), p.charCodeAt(f) !== Vr ? !1 : (I(), [e, t, n, S(0, Rr)]);
914
+ const n = S(0, Vr);
915
+ return H(), p.charCodeAt(h) !== Rr ? !1 : (I(), [e, t, n, S(0, Ur)]);
874
916
  };
875
- P("get", rr - 1, Ur("get"));
876
- P("set", rr - 1, Ur("set"));
877
- P("(", rr - 1, (e) => {
917
+ P("get", nr - 1, Mr("get"));
918
+ P("set", nr - 1, Mr("set"));
919
+ P("(", nr - 1, (e) => {
878
920
  if (!e || typeof e != "string") return;
879
- const r = S(0, Lr) || null;
880
- if (H(), p.charCodeAt(f) === Vr)
881
- return I(), [":", e, ["=>", ["()", r], S(0, Rr) || null]];
921
+ const r = S(0, Vr) || null;
922
+ if (H(), p.charCodeAt(h) === Rr)
923
+ return I(), [":", e, ["=>", ["()", r], S(0, Ur) || null]];
882
924
  });
883
925
  l("get", (e, r) => (r = r ? d(r) : () => {
884
- }, (t) => [[er, e, {
926
+ }, (t) => [[tr, e, {
885
927
  get: function() {
886
928
  const n = Object.create(t || {});
887
929
  return n.this = this, r(n);
888
930
  }
889
931
  }]]));
890
932
  l("set", (e, r, t) => (t = t ? d(t) : () => {
891
- }, (n) => [[er, e, {
933
+ }, (n) => [[tr, e, {
892
934
  set: function(o) {
893
935
  const i = Object.create(n || {});
894
936
  i.this = this, i[r] = o, t(i);
895
937
  }
896
938
  }]]));
897
- const fn = 20, Mr = 200;
898
- g.prop = (e) => Ct(e) !== 58;
899
- const hn = (e) => e == null || typeof e == "string" || [":", ",", "...", "get", "set"].includes(e[0]);
900
- ze("[]", Mr);
901
- ze("{}", Mr);
902
- $(":", fn - 1, !0);
939
+ const gn = 20, Hr = 200;
940
+ y.prop = (e) => Ft(e) !== 58;
941
+ const mn = (e) => e == null || typeof e == "string" || [":", ",", "...", "get", "set"].includes(e[0]);
942
+ Qe("[]", Hr);
943
+ Qe("{}", Hr);
944
+ A(":", gn - 1, !0);
903
945
  l("{}", (e, r) => {
904
946
  if (r !== void 0) return;
905
- if (!hn(e)) return d(["{", e]);
947
+ if (!mn(e)) return d(["{", e]);
906
948
  e = e ? e[0] !== "," ? [e] : e.slice(1) : [];
907
949
  const t = e.map((n) => d(typeof n == "string" ? [":", n, n] : n));
908
950
  return (n) => {
909
951
  const o = {}, i = {};
910
952
  for (const s of t.flatMap((u) => u(n)))
911
- if (s[0] === er) {
953
+ if (s[0] === tr) {
912
954
  const [, u, c] = s;
913
955
  i[u] = { ...i[u], ...c, configurable: !0, enumerable: !0 };
914
956
  } else o[s[0]] = s[1];
@@ -919,19 +961,19 @@ l("{}", (e, r) => {
919
961
  l("{", (e) => (e = e ? d(e) : () => {
920
962
  }, (r) => e(Object.create(r))));
921
963
  l(":", (e, r) => (r = d(r), Array.isArray(e) ? (e = d(e), (t) => [[e(t), r(t)]]) : (t) => [[e, r(t)]]));
922
- const pn = 170, Ae = 96, mn = 36, gn = 123, yn = 92, $n = { n: `
923
- `, r: "\r", t: " ", b: "\b", f: "\f", v: "\v" }, hr = () => {
964
+ const yn = 170, Ae = 96, An = 36, $n = 123, Sn = 92, vn = { n: `
965
+ `, r: "\r", t: " ", b: "\b", f: "\f", v: "\v" }, pr = () => {
924
966
  const e = [];
925
- for (let r = "", t; (t = p.charCodeAt(f)) !== Ae; )
926
- t ? t === yn ? (I(), r += $n[p[f]] || p[f], I()) : t === mn && p.charCodeAt(f + 1) === gn ? (r && e.push([, r]), r = "", I(2), e.push(S(0, 125))) : (r += p[f], I(), t = p.charCodeAt(f), t === Ae && r && e.push([, r])) : J("Unterminated template");
967
+ for (let r = "", t; (t = p.charCodeAt(h)) !== Ae; )
968
+ t ? t === Sn ? (I(), r += vn[p[h]] || p[h], I()) : t === An && p.charCodeAt(h + 1) === $n ? (r && e.push([, r]), r = "", I(2), e.push(S(0, 125))) : (r += p[h], I(), t = p.charCodeAt(h), t === Ae && r && e.push([, r])) : J("Unterminated template");
927
969
  return I(), e;
928
- }, An = _[Ae];
929
- _[Ae] = (e, r) => e && r < pn ? g.asi && g.newline ? void 0 : (I(), ["``", e, ...hr()]) : (
970
+ }, En = _[Ae];
971
+ _[Ae] = (e, r) => e && r < yn ? y.asi && y.newline ? void 0 : (I(), ["``", e, ...pr()]) : (
930
972
  // tagged
931
973
  e ? (
932
974
  // plain
933
- An?.(e, r)
934
- ) : (I(), ((t) => t.length < 2 && t[0]?.[0] === void 0 ? t[0] || [, ""] : ["`", ...t])(hr()))
975
+ En?.(e, r)
976
+ ) : (I(), ((t) => t.length < 2 && t[0]?.[0] === void 0 ? t[0] || [, ""] : ["`", ...t])(pr()))
935
977
  );
936
978
  l("`", (...e) => (e = e.map(d), (r) => e.map((t) => t(r)).join("")));
937
979
  l("``", (e, ...r) => {
@@ -942,30 +984,30 @@ l("``", (e, ...r) => {
942
984
  const o = Object.assign([...t], { raw: t });
943
985
  return (i) => e(i)(o, ...n.map((s) => s(i)));
944
986
  });
945
- g.string["'"] = !0;
946
- g.number = { "0x": 16, "0b": 2, "0o": 8 };
947
- const Sn = {
987
+ y.string["'"] = !0;
988
+ y.number = { "0x": 16, "0b": 2, "0o": 8 };
989
+ const wn = {
948
990
  log: (e, r) => (r ? console.log(r, e) : console.log(e), e)
949
991
  };
950
992
  function L(e, r, t, n, o) {
951
- const i = g(tr(e));
993
+ const i = y(or(e));
952
994
  return d(i)({
953
995
  $form: r,
954
996
  $meta: t,
955
997
  $errors: n,
956
998
  $formIsInvalid: o,
957
- $log: Sn.log
999
+ $log: wn.log
958
1000
  }) === !0;
959
1001
  }
960
- function tr(e) {
1002
+ function or(e) {
961
1003
  return e.replace(/\?\.(\d+)/g, "?.[$1]").replace(/\.(\d+)/g, "[$1]");
962
1004
  }
963
1005
  const V = (e) => {
964
1006
  let r = e.formDef.states;
965
1007
  if (!r || Object.keys(r).length === 0 || e.formHealth.status === "errored")
966
1008
  return e;
967
- const { $formIsInvalid: t, $errors: n } = Ke(e);
968
- r = vn(r);
1009
+ const { $formIsInvalid: t, $errors: n } = ze(e);
1010
+ r = In(r);
969
1011
  let o = [], i = { status: "ok" };
970
1012
  try {
971
1013
  o = Object.keys(r).map((s) => {
@@ -988,7 +1030,7 @@ const V = (e) => {
988
1030
  }
989
1031
  return { ...e, currentStates: o, formHealth: i };
990
1032
  };
991
- function vn(e) {
1033
+ function In(e) {
992
1034
  const r = {};
993
1035
  function t(n) {
994
1036
  const o = n.split(":"), i = [];
@@ -1004,26 +1046,26 @@ function vn(e) {
1004
1046
  }
1005
1047
  return r;
1006
1048
  }
1007
- const nr = Symbol("filterMap.skip");
1008
- function Hr(e, r) {
1049
+ const ir = Symbol("filterMap.skip");
1050
+ function Br(e, r) {
1009
1051
  const t = [];
1010
1052
  for (let n = 0; n < e.length; n++) {
1011
1053
  const o = r(e[n], n, e);
1012
- o !== nr && t.push(o);
1054
+ o !== ir && t.push(o);
1013
1055
  }
1014
1056
  return t;
1015
1057
  }
1016
- function vo(e, r, t) {
1058
+ function Fo(e, r, t) {
1017
1059
  for (let n = 0; n < e.length; n++)
1018
1060
  r(e[n], n, e) && t(e[n], n, e);
1019
1061
  }
1020
- function En(e, r, t, n) {
1062
+ function Cn(e, r, t, n) {
1021
1063
  let o = n;
1022
1064
  for (let i = 0; i < e.length; i++)
1023
1065
  r(e[i], i, e) && (o = t(o, e[i], i, e));
1024
1066
  return o;
1025
1067
  }
1026
- function wn(e, r, t) {
1068
+ function On(e, r, t) {
1027
1069
  if (e.length !== r.length)
1028
1070
  return !1;
1029
1071
  for (let n = 0; n < e.length; n++)
@@ -1031,24 +1073,24 @@ function wn(e, r, t) {
1031
1073
  return !1;
1032
1074
  return !0;
1033
1075
  }
1034
- function In(e, r) {
1035
- const t = Br(e.uid, r);
1036
- return D(e) ? {
1076
+ function Dn(e, r) {
1077
+ const t = Gr(e.uid, r);
1078
+ return C(e) ? {
1037
1079
  ...e,
1038
1080
  uid: t,
1039
- path: Cn(e.path, r)
1081
+ path: Fn(e.path, r)
1040
1082
  } : {
1041
1083
  ...e,
1042
1084
  uid: t
1043
1085
  };
1044
1086
  }
1045
- function Br(e, r) {
1087
+ function Gr(e, r) {
1046
1088
  if (r.length === 0)
1047
1089
  throw new Error("Repeater indexes cannot be an empty array");
1048
1090
  const t = r.reduce((n, o) => `${n}[${o}]`, "");
1049
1091
  return `${e}${t}`;
1050
1092
  }
1051
- function Cn(e, r) {
1093
+ function Fn(e, r) {
1052
1094
  if (r.length === 0)
1053
1095
  throw new Error("Repeater indexes cannot be an empty array");
1054
1096
  const t = "items", n = e.split(`.${t}`), o = n.length - 1;
@@ -1058,27 +1100,27 @@ function Cn(e, r) {
1058
1100
  );
1059
1101
  return n.reduce((i, s, u) => u === 0 ? s : `${i}.${r[u - 1]}${s}`);
1060
1102
  }
1061
- function ae(e, r) {
1103
+ function le(e, r) {
1062
1104
  let t = 0;
1063
1105
  return e.replace(/\.items(\??)\./g, (n, o) => {
1064
1106
  const i = r[t++];
1065
1107
  return i === void 0 ? n : `.${i}${o}.`;
1066
1108
  });
1067
1109
  }
1068
- const fe = (e, r) => (t) => e(t) ? r(t) : t, K = (e) => e !== void 0 && typeof e == "object" && e !== null && "when" in e, R = (e) => {
1069
- const { $formIsInvalid: r, $errors: t } = Ke(e);
1110
+ const ae = (e, r) => (t) => e(t) ? r(t) : t, K = (e) => e !== void 0 && typeof e == "object" && e !== null && "when" in e, R = (e) => {
1111
+ const { $formIsInvalid: r, $errors: t } = ze(e);
1070
1112
  return {
1071
1113
  ...e,
1072
1114
  widgetFlags: {
1073
- ...On(e, t, r),
1074
- ...Dn(e, t, r)
1115
+ ...Tn(e, t, r),
1116
+ ...Wn(e, t, r)
1075
1117
  }
1076
1118
  };
1077
1119
  };
1078
- function On(e, r, t) {
1079
- return Hr(Object.values(e.flatForm), (n) => {
1120
+ function Tn(e, r, t) {
1121
+ return Br(Object.values(e.flatForm), (n) => {
1080
1122
  if (n.uid?.includes("["))
1081
- return nr;
1123
+ return ir;
1082
1124
  if (se(n)) {
1083
1125
  const o = n({
1084
1126
  $form: e.data,
@@ -1089,7 +1131,7 @@ function On(e, r, t) {
1089
1131
  return o.uid = n.uid, o;
1090
1132
  }
1091
1133
  return n;
1092
- }).filter((n) => !!(n.include && ("in" in n.include || "when" in n.include) || n.exclude && ("from" in n.exclude || "when" in n.exclude) || (D(n) || re(n)) && K(n.disabled) || D(n) && K(n.readonly))).reduce(
1134
+ }).filter((n) => !!(n.include && ("in" in n.include || "when" in n.include) || n.exclude && ("from" in n.exclude || "when" in n.exclude) || (C(n) || re(n)) && K(n.disabled) || C(n) && K(n.readonly))).reduce(
1093
1135
  (n, o) => (n[o.uid] = n[o.uid] || {}, o.include && "in" in o.include ? n[o.uid].hidden = !o.include.in.some(
1094
1136
  (i) => e.currentStates.includes(i)
1095
1137
  ) : o.include && "when" in o.include && (n[o.uid].hidden = !L(
@@ -1106,13 +1148,13 @@ function On(e, r, t) {
1106
1148
  e.meta,
1107
1149
  r,
1108
1150
  t
1109
- )), (D(o) || re(o)) && K(o.disabled) && (n[o.uid].disabled = L(
1151
+ )), (C(o) || re(o)) && K(o.disabled) && (n[o.uid].disabled = L(
1110
1152
  o.disabled.when,
1111
1153
  e.data,
1112
1154
  e.meta,
1113
1155
  r,
1114
1156
  t
1115
- )), D(o) && K(o.readonly) && (n[o.uid].readonly = L(
1157
+ )), C(o) && K(o.readonly) && (n[o.uid].readonly = L(
1116
1158
  o.readonly.when,
1117
1159
  e.data,
1118
1160
  e.meta,
@@ -1122,74 +1164,74 @@ function On(e, r, t) {
1122
1164
  {}
1123
1165
  );
1124
1166
  }
1125
- function Dn(e, r, t) {
1126
- return En(
1167
+ function Wn(e, r, t) {
1168
+ return Cn(
1127
1169
  Object.values(e.flatForm),
1128
1170
  (n) => !se(n) && n.type === "repeater",
1129
1171
  (n, o) => ({
1130
1172
  ...n,
1131
- ...Gr(e, o, [], r, t)
1173
+ ...Kr(e, o, [], r, t)
1132
1174
  }),
1133
1175
  {}
1134
1176
  );
1135
1177
  }
1136
- function Gr(e, r, t, n, o) {
1178
+ function Kr(e, r, t, n, o) {
1137
1179
  const i = r.props.template, s = de(e.data, r.path);
1138
1180
  if (!Array.isArray(s))
1139
1181
  return {};
1140
1182
  const u = {};
1141
- return s.forEach((c, h) => {
1142
- const A = [...t, h];
1143
- Ge([i]).forEach((m) => {
1144
- let a;
1145
- if (se(m) ? (a = m({
1183
+ return s.forEach((c, a) => {
1184
+ const $ = [...t, a];
1185
+ Xe([i]).forEach((g) => {
1186
+ let f;
1187
+ if (se(g) ? (f = g({
1146
1188
  $form: e.data,
1147
1189
  errors: void 0,
1148
1190
  touched: void 0,
1149
1191
  translate: void 0
1150
- }), a.uid = m.uid) : a = m, a.type === "repeater") {
1151
- const b = In(
1152
- a,
1153
- A
1192
+ }), f.uid = g.uid) : f = g, f.type === "repeater") {
1193
+ const x = Dn(
1194
+ f,
1195
+ $
1154
1196
  );
1155
1197
  Object.assign(
1156
1198
  u,
1157
- Gr(
1199
+ Kr(
1158
1200
  e,
1159
- b,
1160
- A,
1201
+ x,
1202
+ $,
1161
1203
  n,
1162
1204
  o
1163
1205
  )
1164
1206
  );
1165
1207
  return;
1166
1208
  }
1167
- const C = Br(a.uid, A);
1168
- u[C] = u[C] || {}, a.include && "in" in a.include ? u[C].hidden = !a.include.in.some((b) => e.currentStates.includes(b)) : a.include && "when" in a.include && (u[C].hidden = !L(
1169
- ae(a.include.when, A),
1209
+ const O = Gr(f.uid, $);
1210
+ u[O] = u[O] || {}, f.include && "in" in f.include ? u[O].hidden = !f.include.in.some((x) => e.currentStates.includes(x)) : f.include && "when" in f.include && (u[O].hidden = !L(
1211
+ le(f.include.when, $),
1170
1212
  e.data,
1171
1213
  e.meta,
1172
1214
  n,
1173
1215
  o
1174
- )), a.exclude && "from" in a.exclude ? u[C].hidden = a.exclude.from.some((b) => e.currentStates.includes(b)) : a.exclude && "when" in a.exclude && (u[C].hidden = L(
1175
- ae(a.exclude.when, A),
1216
+ )), f.exclude && "from" in f.exclude ? u[O].hidden = f.exclude.from.some((x) => e.currentStates.includes(x)) : f.exclude && "when" in f.exclude && (u[O].hidden = L(
1217
+ le(f.exclude.when, $),
1176
1218
  e.data,
1177
1219
  e.meta,
1178
1220
  n,
1179
1221
  o
1180
- )), (D(a) || re(a)) && K(a.disabled) && (u[C].disabled = L(
1181
- ae(
1182
- a.disabled.when,
1183
- A
1222
+ )), (C(f) || re(f)) && K(f.disabled) && (u[O].disabled = L(
1223
+ le(
1224
+ f.disabled.when,
1225
+ $
1184
1226
  ),
1185
1227
  e.data,
1186
1228
  e.meta,
1187
1229
  n,
1188
1230
  o
1189
- )), D(a) && K(a.readonly) && (u[C].readonly = L(
1190
- ae(
1191
- a.readonly.when,
1192
- A
1231
+ )), C(f) && K(f.readonly) && (u[O].readonly = L(
1232
+ le(
1233
+ f.readonly.when,
1234
+ $
1193
1235
  ),
1194
1236
  e.data,
1195
1237
  e.meta,
@@ -1199,9 +1241,9 @@ function Gr(e, r, t, n, o) {
1199
1241
  });
1200
1242
  }), u;
1201
1243
  }
1202
- const j = (e) => (r) => {
1244
+ const N = (e) => (r) => {
1203
1245
  try {
1204
- return { ...r, calculatedWidgets: Tn(r, e) };
1246
+ return { ...r, calculatedWidgets: kn(r, e) };
1205
1247
  } catch (t) {
1206
1248
  const n = t;
1207
1249
  return {
@@ -1214,17 +1256,17 @@ const j = (e) => (r) => {
1214
1256
  };
1215
1257
  }
1216
1258
  };
1217
- function Tn(e, r) {
1218
- const { $formIsInvalid: t, $errors: n } = Ke(e), o = Jn(e, r, t, n), i = {};
1259
+ function kn(e, r) {
1260
+ const { $formIsInvalid: t, $errors: n } = ze(e), o = Yn(e, r, t, n), i = {};
1219
1261
  for (const s of Object.keys(e.calculatedWidgets)) {
1220
1262
  if (e.widgetFlags[s]?.hidden)
1221
1263
  continue;
1222
1264
  const u = e.calculatedWidgets[s], c = u.source;
1223
1265
  if (se(c)) {
1224
- i[s] = Wn(s, c, e, r);
1266
+ i[s] = Pn(s, c, e, r);
1225
1267
  continue;
1226
1268
  }
1227
- i[s] = Fn(
1269
+ i[s] = _n(
1228
1270
  u,
1229
1271
  c,
1230
1272
  e,
@@ -1233,7 +1275,7 @@ function Tn(e, r) {
1233
1275
  }
1234
1276
  return i;
1235
1277
  }
1236
- function Wn(e, r, t, n) {
1278
+ function Pn(e, r, t, n) {
1237
1279
  const o = r({
1238
1280
  $form: t.data,
1239
1281
  errors: r.path ? t.validations[r.path] : void 0,
@@ -1242,79 +1284,79 @@ function Wn(e, r, t, n) {
1242
1284
  });
1243
1285
  return o.uid = e, { source: r, current: o };
1244
1286
  }
1245
- function Fn(e, r, t, n) {
1246
- const o = new zn(r, e.current);
1247
- return o.write("uid", r.uid), o.write("type", r.type), o.write("kind", r.kind), lt(r) ? kn(o, n) : re(r) ? Pn(o, n) : D(r) ? _n(o, n) : Pe(r) && Nn(o, n), jn(r, o, n, t), (re(r) || D(r)) && Ln(r, o, n), Pe(r) && Vn(r, o, t), o.changed ? { source: e.source, current: o.current } : e;
1287
+ function _n(e, r, t, n) {
1288
+ const o = new qn(r, e.current);
1289
+ return o.write("uid", r.uid), o.write("type", r.type), o.write("kind", r.kind), at(r) ? jn(o, n) : re(r) ? Nn(o, n) : C(r) ? Ln(o, n) : Pe(r) && Vn(o, n), Rn(r, o, n, t), (re(r) || C(r)) && Un(r, o, n), Pe(r) && Mn(r, o, t), o.changed ? { source: e.source, current: o.current } : e;
1248
1290
  }
1249
- function kn(e, r) {
1291
+ function jn(e, r) {
1250
1292
  v(e, r, "size"), v(e, r, "include"), v(e, r, "exclude");
1251
1293
  }
1252
- function Pn(e, r) {
1294
+ function Nn(e, r) {
1253
1295
  v(e, r, "size"), v(e, r, "include"), v(e, r, "exclude"), v(e, r, "label"), v(e, r, "disabled"), v(e, r, "actionType");
1254
1296
  }
1255
- function _n(e, r) {
1297
+ function Ln(e, r) {
1256
1298
  v(e, r, "size"), v(e, r, "include"), v(e, r, "exclude"), v(e, r, "label"), v(e, r, "disabled"), v(e, r, "readonly"), v(e, r, "validator"), v(e, r, "path"), v(e, r, "defaultValue");
1257
1299
  }
1258
- function Nn(e, r) {
1300
+ function Vn(e, r) {
1259
1301
  v(e, r, "size"), v(e, r, "include"), v(e, r, "exclude");
1260
1302
  }
1261
- function jn(e, r, t, n) {
1303
+ function Rn(e, r, t, n) {
1262
1304
  const o = n.widgetPropOverrides[e.uid] ?? {}, i = { ...e.props ?? {}, ...o };
1263
- for (const s of zr(Object.keys(i)))
1264
- Rn(r, t, s);
1305
+ for (const s of Jr(Object.keys(i)))
1306
+ Hn(r, t, s);
1265
1307
  }
1266
- function Ln(e, r, t) {
1308
+ function Un(e, r, t) {
1267
1309
  const n = e.on ?? {};
1268
- for (const o of zr(Object.keys(n)))
1269
- Un(r, t, o);
1310
+ for (const o of Jr(Object.keys(n)))
1311
+ Bn(r, t, o);
1270
1312
  }
1271
- function Vn(e, r, t) {
1272
- const n = Yn(e.uid), o = qn(e.children, n, t.widgetFlags);
1313
+ function Mn(e, r, t) {
1314
+ const n = xn(e.uid), o = bn(e.children, n, t.widgetFlags);
1273
1315
  r.current.children = o;
1274
1316
  const i = r.previous.children ?? [];
1275
1317
  i.length === o.length && o.every((u, c) => i[c] && i[c].uid === o[c].uid) || r.markChanged();
1276
1318
  }
1277
1319
  function v(e, r, t) {
1278
1320
  const n = e.source;
1279
- if (!Qn(n, t))
1321
+ if (!Zn(n, t))
1280
1322
  return;
1281
- const o = ir(n, t, r.sortedStates);
1323
+ const o = dr(n, t, r.sortedStates);
1282
1324
  let i;
1283
1325
  switch (t) {
1284
1326
  case "disabled":
1285
1327
  case "readonly":
1286
- i = Bn(o, r, e.source.uid, t);
1328
+ i = Xn(o, r, e.source.uid, t);
1287
1329
  break;
1288
1330
  case "defaultValue":
1289
1331
  i = o;
1290
1332
  break;
1291
1333
  default:
1292
- i = Xr(o, r);
1334
+ i = zr(o, r);
1293
1335
  }
1294
1336
  e.write(t, i);
1295
1337
  }
1296
- function Rn(e, r, t) {
1297
- const n = e.source.props, o = ir(n, t, r.sortedStates);
1298
- let i = Xr(o, r);
1338
+ function Hn(e, r, t) {
1339
+ const n = e.source.props, o = dr(n, t, r.sortedStates);
1340
+ let i = zr(o, r);
1299
1341
  const s = r.widgetPropOverrides[e.source.uid]?.[t];
1300
1342
  s !== void 0 && (i = s), e.write(`props.${t}`, i);
1301
1343
  }
1302
- function Un(e, r, t) {
1303
- const n = e.source.on, o = ir(n, t, r.sortedStates);
1304
- e.write(`on.${t}`, Gn(o, r));
1344
+ function Bn(e, r, t) {
1345
+ const n = e.source.on, o = dr(n, t, r.sortedStates);
1346
+ e.write(`on.${t}`, zn(o, r));
1305
1347
  }
1306
- function or(e, r) {
1348
+ function sr(e, r) {
1307
1349
  return e({ $form: r.$form, translate: r.localization.translate });
1308
1350
  }
1309
- function Mn(e, r) {
1310
- return r.localization.translate(e.key, Xn(e.params, r), e.default);
1351
+ function Gn(e, r) {
1352
+ return r.localization.translate(e.key, Qn(e.params, r), e.default);
1311
1353
  }
1312
- const Hn = /\{\{([^}]+)\}\}/g;
1313
- function Kr(e, r) {
1314
- return e.includes("{{") ? e.replace(Hn, (t, n) => {
1315
- const o = tr(n.trim());
1354
+ const Kn = /\{\{([^}]+)\}\}/g;
1355
+ function Xr(e, r) {
1356
+ return e.includes("{{") ? e.replace(Kn, (t, n) => {
1357
+ const o = or(n.trim());
1316
1358
  try {
1317
- const i = d(g(o))({
1359
+ const i = d(y(o))({
1318
1360
  $form: r.$form,
1319
1361
  $meta: r.$meta,
1320
1362
  $errors: r.$errors,
@@ -1323,20 +1365,20 @@ function Kr(e, r) {
1323
1365
  return i == null ? "" : String(i);
1324
1366
  } catch (i) {
1325
1367
  const s = i instanceof Error ? i.message : String(i);
1326
- throw new Jr(`Failed to evaluate '{{${n.trim()}}}': ${s}`);
1368
+ throw new Qr(`Failed to evaluate '{{${n.trim()}}}': ${s}`);
1327
1369
  }
1328
1370
  }) : e;
1329
1371
  }
1330
- function Xr(e, r) {
1331
- return typeof e == "function" ? or(e, r) : St(e) ? Mn(e, r) : typeof e == "string" ? Kr(e, r) : e;
1372
+ function zr(e, r) {
1373
+ return typeof e == "function" ? sr(e, r) : vt(e) ? Gn(e, r) : typeof e == "string" ? Xr(e, r) : e;
1332
1374
  }
1333
- function Bn(e, r, t, n) {
1334
- return typeof e == "function" ? or(e, r) : K(e) ? r.widgetFlags[t]?.[n] : typeof e == "string" ? Kr(e, r) : e;
1375
+ function Xn(e, r, t, n) {
1376
+ return typeof e == "function" ? sr(e, r) : K(e) ? r.widgetFlags[t]?.[n] : typeof e == "string" ? Xr(e, r) : e;
1335
1377
  }
1336
- function Gn(e, r) {
1337
- return typeof e == "function" ? or(e, r) : e;
1378
+ function zn(e, r) {
1379
+ return typeof e == "function" ? sr(e, r) : e;
1338
1380
  }
1339
- function ir(e, r, t) {
1381
+ function dr(e, r, t) {
1340
1382
  if (e) {
1341
1383
  for (const n of t) {
1342
1384
  const o = e[`${r}.${n}`];
@@ -1346,15 +1388,15 @@ function ir(e, r, t) {
1346
1388
  return e[r];
1347
1389
  }
1348
1390
  }
1349
- function Kn(e) {
1391
+ function Jn(e) {
1350
1392
  return e.startsWith("$form") || e.startsWith("$meta") || e.startsWith("$errors") || e === "$formIsInvalid";
1351
1393
  }
1352
- function Xn(e, r) {
1394
+ function Qn(e, r) {
1353
1395
  return e && Object.keys(e).reduce((t, n) => {
1354
1396
  const o = String(e[n]);
1355
- if (Kn(o))
1397
+ if (Jn(o))
1356
1398
  try {
1357
- const i = d(g(tr(o)))({
1399
+ const i = d(y(or(o)))({
1358
1400
  $form: r.$form,
1359
1401
  $meta: r.$meta,
1360
1402
  $errors: r.$errors,
@@ -1363,14 +1405,14 @@ function Xn(e, r) {
1363
1405
  t[n] = i ?? o;
1364
1406
  } catch (i) {
1365
1407
  const s = i instanceof Error ? i.message : String(i);
1366
- throw new Jr(`Failed to evaluate i18n param '${o}': ${s}`);
1408
+ throw new Qr(`Failed to evaluate i18n param '${o}': ${s}`);
1367
1409
  }
1368
1410
  else
1369
1411
  t[n] = o;
1370
1412
  return t;
1371
1413
  }, {});
1372
1414
  }
1373
- class zn {
1415
+ class qn {
1374
1416
  constructor(r, t) {
1375
1417
  this._changed = !1, this.source = r, this.previous = t, this.current = {};
1376
1418
  }
@@ -1381,10 +1423,10 @@ class zn {
1381
1423
  this._changed = !0;
1382
1424
  }
1383
1425
  write(r, t) {
1384
- Be(this.current, r, t), de(this.previous, r) !== t && (this._changed = !0);
1426
+ Ke(this.current, r, t), de(this.previous, r) !== t && (this._changed = !0);
1385
1427
  }
1386
1428
  }
1387
- function Jn(e, r, t, n) {
1429
+ function Yn(e, r, t, n) {
1388
1430
  return {
1389
1431
  sortedStates: [...e.currentStates].sort((o, i) => i.length - o.length),
1390
1432
  widgetPropOverrides: e.widgetPropOverrides,
@@ -1396,31 +1438,31 @@ function Jn(e, r, t, n) {
1396
1438
  localization: r
1397
1439
  };
1398
1440
  }
1399
- function Qn(e, r) {
1441
+ function Zn(e, r) {
1400
1442
  if (r in e)
1401
1443
  return !0;
1402
1444
  const t = `${r}.`;
1403
1445
  return Object.keys(e).some((n) => n.startsWith(t));
1404
1446
  }
1405
- function zr(e) {
1447
+ function Jr(e) {
1406
1448
  return Array.from(new Set(e.map((r) => r.split(".")[0])));
1407
1449
  }
1408
- function qn(e, r, t) {
1450
+ function bn(e, r, t) {
1409
1451
  const n = r.map((o) => `[${o}]`).join("");
1410
1452
  return e.filter((o) => {
1411
1453
  const i = o.uid + n, s = t[i];
1412
1454
  return !s || s.hidden !== !0;
1413
1455
  });
1414
1456
  }
1415
- const Yn = (e) => [...e.matchAll(/\[(\d+)\]/g)].map((r) => parseInt(r[1], 10));
1416
- class Jr extends Error {
1457
+ const xn = (e) => [...e.matchAll(/\[(\d+)\]/g)].map((r) => parseInt(r[1], 10));
1458
+ class Qr extends Error {
1417
1459
  constructor() {
1418
1460
  super(...arguments), this.code = ee.resolveStringInterpolationError, this.name = "StringInterpolationError";
1419
1461
  }
1420
1462
  }
1421
- const Zn = ({ lang: e }, r) => {
1463
+ const eo = ({ lang: e }, r) => {
1422
1464
  const t = {
1423
- ...Ar(e),
1465
+ ...Sr(e),
1424
1466
  formName: r.payload.formName
1425
1467
  };
1426
1468
  let n = r.payload.formDef, o = { status: "ok" };
@@ -1428,11 +1470,11 @@ const Zn = ({ lang: e }, r) => {
1428
1470
  try {
1429
1471
  n = JSON.parse(n);
1430
1472
  } catch (u) {
1431
- const c = u, h = ee.initializeParseError;
1473
+ const c = u, a = ee.initializeParseError;
1432
1474
  o = {
1433
1475
  status: "errored",
1434
- message: `[${h}] ${c.message}`,
1435
- code: h
1476
+ message: `[${a}] ${c.message}`,
1477
+ code: a
1436
1478
  };
1437
1479
  }
1438
1480
  if (o.status === "errored")
@@ -1452,21 +1494,21 @@ const Zn = ({ lang: e }, r) => {
1452
1494
  o = { status: "ok" };
1453
1495
  let u = {};
1454
1496
  try {
1455
- u = Ge([i.value.form]).reduce(
1456
- (c, h) => {
1457
- const A = h.uid;
1458
- if (c[A])
1459
- throw { existingWidget: c[A], newWidget: h };
1460
- return c[A] = h, c;
1497
+ u = Xe([i.value.form]).reduce(
1498
+ (c, a) => {
1499
+ const $ = a.uid;
1500
+ if (c[$])
1501
+ throw { existingWidget: c[$], newWidget: a };
1502
+ return c[$] = a, c;
1461
1503
  },
1462
1504
  {}
1463
1505
  );
1464
1506
  } catch (c) {
1465
- const h = ee.initializeUidCollisionError;
1507
+ const a = ee.initializeUidCollisionError;
1466
1508
  o = {
1467
1509
  status: "errored",
1468
- message: `[${h}] ${xn(c.existingWidget, c.newWidget)}`,
1469
- code: h
1510
+ message: `[${a}] ${ro(c.existingWidget, c.newWidget)}`,
1511
+ code: a
1470
1512
  }, u = {};
1471
1513
  }
1472
1514
  return {
@@ -1486,11 +1528,11 @@ const Zn = ({ lang: e }, r) => {
1486
1528
  }
1487
1529
  };
1488
1530
  };
1489
- function xn(e, r) {
1490
- const t = (n) => D(n) ? ` at "${n.path}"` : "";
1531
+ function ro(e, r) {
1532
+ const t = (n) => C(n) ? ` at "${n.path}"` : "";
1491
1533
  return `Duplicate UID "${r.uid}": Assigned to widget "${e.type}"${t(e)} and "${r.type}"${t(r)}.`;
1492
1534
  }
1493
- function bn(e, r) {
1535
+ function to(e, r) {
1494
1536
  return {
1495
1537
  ...e,
1496
1538
  injectedValidations: {
@@ -1499,11 +1541,11 @@ function bn(e, r) {
1499
1541
  }
1500
1542
  };
1501
1543
  }
1502
- const eo = (e, { payload: r }) => {
1544
+ const no = (e, { payload: r }) => {
1503
1545
  let t;
1504
1546
  if ("path" in r) {
1505
1547
  if (t = Object.values(e.calculatedWidgets).find(
1506
- ({ source: i }) => D(i) && i.path === r.path
1548
+ ({ source: i }) => C(i) && i.path === r.path
1507
1549
  ), !t)
1508
1550
  return console.warn(`Input with path "${r.path}" not found`), e;
1509
1551
  } else if (t = e.calculatedWidgets[r.uid], !t)
@@ -1517,63 +1559,72 @@ const eo = (e, { payload: r }) => {
1517
1559
  }
1518
1560
  };
1519
1561
  };
1520
- function ro(e, r) {
1521
- return {
1522
- ...e,
1523
- widgetFlags: {
1524
- ...le(e.widgetFlags, r.payload.uid)
1525
- },
1526
- // TODO: has this already been removed in calculate-widget-props??? Do we need this at all?
1527
- calculatedWidgets: {
1528
- ...le(e.calculatedWidgets, r.payload.uid)
1529
- },
1530
- widgetPropOverrides: {
1531
- ...le(e.widgetPropOverrides, r.payload.uid)
1532
- },
1533
- touchedControls: {
1534
- ...N(e.touchedControls, (t) => {
1535
- const n = e.flatForm[r.payload.uid];
1536
- return n && D(n) ? le(t, n.path) : t;
1537
- })
1538
- }
1539
- // TODO: clear widget from injectedValidations
1540
- };
1562
+ function oo(e, r) {
1563
+ return j(
1564
+ e,
1565
+ io(r),
1566
+ so(r),
1567
+ uo(r),
1568
+ co(r)
1569
+ );
1541
1570
  }
1542
- const to = (e, r) => ({
1571
+ const io = (e) => (r) => ({
1572
+ ...r,
1573
+ widgetFlags: {
1574
+ ...we(r.widgetFlags, e.payload.uid)
1575
+ }
1576
+ }), so = (e) => (r) => ({
1577
+ ...r,
1578
+ // TODO: has this already been removed in calculate-widget-props??? Do we need this at all?
1579
+ calculatedWidgets: {
1580
+ ...we(r.calculatedWidgets, e.payload.uid)
1581
+ }
1582
+ }), uo = (e) => (r) => ({
1583
+ ...r,
1584
+ widgetPropOverrides: {
1585
+ ...we(r.widgetPropOverrides, e.payload.uid)
1586
+ }
1587
+ }), co = (e) => (r) => ({
1588
+ ...r,
1589
+ touchedControls: j(r.touchedControls, (t) => {
1590
+ const n = r.flatForm[e.payload.uid];
1591
+ return n && C(n) ? we(t, n.path) : t;
1592
+ })
1593
+ }), lo = (e, r) => ({
1543
1594
  ...e,
1544
1595
  data: { ...r.payload.data }
1545
- }), no = (e, r) => ({
1596
+ }), ao = (e, r) => ({
1546
1597
  ...e,
1547
1598
  formHealth: r.payload.formHealth
1548
- }), oo = (e, r) => ({
1599
+ }), fo = (e, r) => ({
1549
1600
  ...e,
1550
1601
  lang: r.payload.lang
1551
- }), io = (e, r) => ({
1602
+ }), ho = (e, r) => ({
1552
1603
  ...e,
1553
1604
  meta: { ...r.payload.meta }
1554
- }), so = (e, r) => {
1605
+ }), po = (e, r) => {
1555
1606
  const t = de(e.data, r.payload.path);
1556
1607
  return r.type === "SET_WIDGET_DATA" || r.type === "SET_WIDGET_INITIAL_DATA" && t === void 0 ? {
1557
1608
  ...e,
1558
- data: { ...Be(e.data, r.payload.path, r.payload.data) }
1609
+ data: { ...Ke(e.data, r.payload.path, r.payload.data) }
1559
1610
  } : e;
1560
- }, We = (e, r) => (t) => {
1561
- const n = Hr(
1611
+ }, Te = (e, r) => (t) => {
1612
+ const n = Br(
1562
1613
  Object.values(t.calculatedWidgets),
1563
- ({ current: i }) => D(i) ? i : nr
1614
+ ({ current: i }) => C(i) ? i : ir
1564
1615
  ), o = t.validations;
1565
1616
  return {
1566
1617
  ...t,
1567
1618
  validations: n.reduce(
1568
1619
  (i, s) => {
1569
1620
  if (i[s.path] = null, s.validator) {
1570
- const u = e(s.validator, r), c = de(t.data, s.path), h = br(
1621
+ const u = e(s.validator, r), c = de(t.data, s.path), a = et(
1571
1622
  u,
1572
1623
  c
1573
1624
  );
1574
- i[s.path] = et(h) ? null : h.issues.map((A) => A.message);
1625
+ i[s.path] = rt(a) ? null : a.issues.map(($) => $.message);
1575
1626
  }
1576
- return Array.isArray(i[s.path]) && Array.isArray(o[s.path]) && wn(
1627
+ return Array.isArray(i[s.path]) && Array.isArray(o[s.path]) && On(
1577
1628
  i[s.path],
1578
1629
  o[s.path],
1579
1630
  (u, c) => u === c
@@ -1582,111 +1633,111 @@ const to = (e, r) => ({
1582
1633
  {}
1583
1634
  )
1584
1635
  };
1585
- }, uo = ({
1636
+ }, go = ({
1586
1637
  validators: e,
1587
1638
  validateOn: r,
1588
1639
  localization: t
1589
1640
  }) => (n, o) => {
1590
1641
  switch (o.type) {
1591
1642
  case "INITIALIZE":
1592
- return Zn(n, o);
1643
+ return eo(n, o);
1593
1644
  case "SET_DATA":
1594
- return N(
1595
- to(n, o),
1645
+ return j(
1646
+ lo(n, o),
1596
1647
  V,
1597
1648
  R,
1598
- j(t)
1649
+ N(t)
1599
1650
  );
1600
1651
  case "SET_META":
1601
- return N(
1602
- io(n, o),
1652
+ return j(
1653
+ ho(n, o),
1603
1654
  V,
1604
1655
  R,
1605
- j(t)
1656
+ N(t)
1606
1657
  );
1607
1658
  case "SET_LANGUAGE":
1608
- return N(oo(n, o), j(t));
1659
+ return j(fo(n, o), N(t));
1609
1660
  case "ADD_WIDGET":
1610
- return N(
1611
- wt(n, o),
1612
- fe(Fe, V),
1613
- fe(Fe, R),
1614
- fe(Fe, j(t))
1661
+ return j(
1662
+ It(n, o),
1663
+ ae(We, V),
1664
+ ae(We, R),
1665
+ ae(We, N(t))
1615
1666
  );
1616
1667
  case "REMOVE_WIDGET":
1617
- return N(
1618
- ro(n, o),
1668
+ return j(
1669
+ oo(n, o),
1619
1670
  V,
1620
1671
  R,
1621
- j(t)
1672
+ N(t)
1622
1673
  );
1623
1674
  case "SET_WIDGET_INITIAL_DATA":
1624
1675
  case "SET_WIDGET_DATA":
1625
- return N(
1626
- so(n, o),
1676
+ return j(
1677
+ po(n, o),
1627
1678
  V,
1628
1679
  R,
1629
- j(t)
1680
+ N(t)
1630
1681
  );
1631
1682
  case "OVERRIDE_WIDGET_PROP":
1632
- return N(
1633
- eo(n, o),
1683
+ return j(
1684
+ no(n, o),
1634
1685
  V,
1635
1686
  R,
1636
- j(t),
1687
+ N(t),
1637
1688
  // Apply validation here because this action can be dispatched from the form's event handlers callback
1638
1689
  // Apply only when the action is related to an input
1639
- fe(
1690
+ ae(
1640
1691
  (i) => {
1641
1692
  let s = !1, u = "";
1642
- "path" in o.payload ? (s = !0, u = o.payload.path) : D(i.calculatedWidgets[o.payload.uid].current) && (s = !0, u = i.calculatedWidgets[o.payload.uid].current.path);
1693
+ "path" in o.payload ? (s = !0, u = o.payload.path) : C(i.calculatedWidgets[o.payload.uid].current) && (s = !0, u = i.calculatedWidgets[o.payload.uid].current.path);
1643
1694
  const c = s && i.touchedControls[u];
1644
1695
  return i.touched && c;
1645
1696
  },
1646
- We(e, t)
1697
+ Te(e, t)
1647
1698
  )
1648
1699
  );
1649
1700
  case "SET_FORM_HEALTH":
1650
- return no(n, o);
1701
+ return ao(n, o);
1651
1702
  case "VALIDATE_ALL":
1652
- return N(
1703
+ return j(
1653
1704
  {
1654
1705
  ...n,
1655
1706
  touched: !0,
1656
1707
  touchedControls: Object.keys(n.calculatedWidgets).reduce(
1657
1708
  (i, s) => {
1658
1709
  const u = n.calculatedWidgets[s].source;
1659
- return D(u) && (i[u.path] = !0), i;
1710
+ return C(u) && (i[u.path] = !0), i;
1660
1711
  },
1661
1712
  {}
1662
1713
  )
1663
1714
  },
1664
- We(e, t),
1715
+ Te(e, t),
1665
1716
  // This handles $errors and $formIsValid expressions variables
1666
1717
  V,
1667
1718
  R,
1668
- j(t),
1669
- pr
1719
+ N(t),
1720
+ gr
1670
1721
  );
1671
1722
  case "ATTEMPT_VALIDATION": {
1672
1723
  const i = o.payload.reason, s = o.payload.path;
1673
- return r === "eager" || i === r || r.includes(i) ? N(
1724
+ return r === "eager" || i === r || r.includes(i) ? j(
1674
1725
  {
1675
1726
  ...n,
1676
1727
  touched: !0,
1677
1728
  touchedControls: { ...n.touchedControls, [s]: !0 }
1678
1729
  },
1679
- We(e, t),
1730
+ Te(e, t),
1680
1731
  // This handles $errors and $formIsValid expressions variables
1681
1732
  V,
1682
1733
  R,
1683
- j(t),
1734
+ N(t),
1684
1735
  // TODO: extract this into a separate function
1685
1736
  // When the widget is a Widget Function, we propagate the validation result immediately
1686
1737
  (c) => {
1687
- const h = o.payload.uid, A = c.calculatedWidgets[h], m = A.source;
1688
- if (se(m)) {
1689
- const a = m({
1738
+ const a = o.payload.uid, $ = c.calculatedWidgets[a], g = $.source;
1739
+ if (se(g)) {
1740
+ const f = g({
1690
1741
  $form: c.data,
1691
1742
  errors: c.validations[s],
1692
1743
  touched: !0,
@@ -1696,25 +1747,25 @@ const to = (e, r) => ({
1696
1747
  ...c,
1697
1748
  calculatedWidgets: {
1698
1749
  ...c.calculatedWidgets,
1699
- [h]: {
1700
- source: A.source,
1701
- current: a
1750
+ [a]: {
1751
+ source: $.source,
1752
+ current: f
1702
1753
  }
1703
1754
  }
1704
1755
  };
1705
1756
  }
1706
1757
  return c;
1707
1758
  },
1708
- pr
1759
+ gr
1709
1760
  ) : n;
1710
1761
  }
1711
1762
  case "INJECT_VALIDATION_ISSUES":
1712
- return bn(n, o);
1763
+ return to(n, o);
1713
1764
  default:
1714
- return Et(o);
1765
+ return wt(o);
1715
1766
  }
1716
- }, Fe = (e) => e.formHealth.status === "ok";
1717
- function pr(e) {
1767
+ }, We = (e) => e.formHealth.status === "ok";
1768
+ function gr(e) {
1718
1769
  const r = Object.keys(e.injectedValidations), t = Object.keys(e.validations);
1719
1770
  if (r.length === 0 && t.length === 0)
1720
1771
  return { ...e, isFormValid: !0 };
@@ -1725,30 +1776,30 @@ function pr(e) {
1725
1776
  (o) => e.validations[o] !== null && Array.isArray(e.validations[o])
1726
1777
  ), n !== void 0 ? { ...e, isFormValid: !1 } : { ...e, isFormValid: !0 });
1727
1778
  }
1728
- function co(e = [], r, t, n) {
1729
- const o = new Yr(Ar(n.lang)), i = o.asObservable().pipe(W()), s = uo({ validators: r, validateOn: t, localization: n });
1730
- function u(m) {
1731
- const a = o.getValue(), C = s(a, m);
1732
- o.next(C);
1779
+ function mo(e = [], r, t, n) {
1780
+ const o = new Zr(Sr(n.lang)), i = o.asObservable().pipe(T()), s = go({ validators: r, validateOn: t, localization: n });
1781
+ function u(g) {
1782
+ const f = o.getValue(), O = s(f, g);
1783
+ o.next(O);
1733
1784
  }
1734
1785
  let c = u;
1735
- const h = {
1786
+ const a = {
1736
1787
  getState: () => o.getValue(),
1737
- dispatch: (m) => c(m)
1788
+ dispatch: (g) => c(g)
1738
1789
  // reference is updated later
1739
1790
  };
1740
- return c = e.map((m) => m(h)).reduceRight((m, a) => a(m), u), {
1791
+ return c = e.map((g) => g(a)).reduceRight((g, f) => f(g), u), {
1741
1792
  state$: i,
1742
1793
  dispatch: c,
1743
1794
  getState: () => o.getValue()
1744
1795
  };
1745
1796
  }
1746
- class Eo {
1797
+ class To {
1747
1798
  constructor() {
1748
- this.widgetRegistry = new Ne(), this.store = {}, this.events$ = new sr(), this.submit$ = new sr(), this.uuid = crypto.randomUUID(), this.itemRenderers = {}, this.dependencies = {};
1799
+ this.widgetRegistry = new je(), this.store = {}, this.events$ = new ur(), this.submit$ = new ur(), this.uuid = crypto.randomUUID(), this.itemRenderers = {}, this.dependencies = {};
1749
1800
  }
1750
- initialize(r, t = [], n, o, i, s = vt(), u) {
1751
- this.localization = s, this.dependencies = u, this.widgetRegistry.setWidgetLoaders(r), this.itemRenderers = i, this.store = co(t, n, o, s);
1801
+ initialize(r, t = [], n, o, i, s = Et(), u) {
1802
+ this.localization = s, this.dependencies = u, this.widgetRegistry.setWidgetLoaders(r), this.itemRenderers = i, this.store = mo(t, n, o, s);
1752
1803
  }
1753
1804
  emitEvent(r, t, n) {
1754
1805
  const i = this.store.getState().currentStates.filter((s) => t.on?.[`${r}.${s}`] !== void 0);
@@ -1757,7 +1808,7 @@ class Eo {
1757
1808
  const u = t.on?.[`${r}.${s}`];
1758
1809
  this.attemptValidation(r, t), u && this.events$.next({
1759
1810
  name: u,
1760
- data: this.store.getState().data,
1811
+ data: Oe(this.store.getState()),
1761
1812
  detail: n ?? void 0,
1762
1813
  callback: (c) => {
1763
1814
  this.store.dispatch(c);
@@ -1768,7 +1819,7 @@ class Eo {
1768
1819
  const s = t.on?.[r];
1769
1820
  this.attemptValidation(r, t), s && this.events$.next({
1770
1821
  name: s,
1771
- data: this.store.getState().data,
1822
+ data: Oe(this.store.getState()),
1772
1823
  detail: n,
1773
1824
  callback: (u) => {
1774
1825
  this.store.dispatch(u);
@@ -1780,7 +1831,7 @@ class Eo {
1780
1831
  this.store.dispatch({
1781
1832
  type: "VALIDATE_ALL"
1782
1833
  }), this.store.getState().isFormValid && this.submit$.next({
1783
- data: this.store.getState().data,
1834
+ data: Oe(this.store.getState()),
1784
1835
  callback: (r) => {
1785
1836
  this.store.dispatch(r);
1786
1837
  }
@@ -1799,7 +1850,7 @@ class Eo {
1799
1850
  }));
1800
1851
  }
1801
1852
  }
1802
- function wo(e = "GolemUI Form Store") {
1853
+ function Wo(e = "GolemUI Form Store") {
1803
1854
  return (r) => {
1804
1855
  const n = (typeof window < "u" ? window.__REDUX_DEVTOOLS_EXTENSION__ : void 0)?.connect({ name: e });
1805
1856
  return n?.init(r.getState()), (o) => (i) => {
@@ -1807,73 +1858,73 @@ function wo(e = "GolemUI Form Store") {
1807
1858
  };
1808
1859
  };
1809
1860
  }
1810
- const lo = k(
1811
- O((e) => e.data),
1812
- W()
1813
- ), Io = (e) => k(
1814
- lo,
1815
- O((r) => de(r, e)),
1816
- W()
1817
- ), ao = k(
1818
- Se((e) => e.touched === !0),
1819
- O((e) => e.validations),
1820
- W()
1821
- ), Co = (e) => k(
1822
- ao,
1823
- O((r) => r[e]),
1824
- W()
1825
- ), fo = k(
1826
- Se((e) => e.touched === !0),
1827
- O((e) => e.injectedValidations),
1828
- W()
1829
- ), Oo = (e) => k(
1830
- fo,
1831
- O((r) => r[e]),
1832
- W(),
1861
+ const yo = k(
1862
+ D((e) => e.data),
1863
+ T()
1864
+ ), ko = (e) => k(
1865
+ yo,
1866
+ D((r) => de(r, e)),
1867
+ T()
1868
+ ), Ao = k(
1869
+ $e((e) => e.touched === !0),
1870
+ D((e) => e.validations),
1871
+ T()
1872
+ ), Po = (e) => k(
1873
+ Ao,
1874
+ D((r) => r[e]),
1875
+ T()
1876
+ ), $o = k(
1877
+ $e((e) => e.touched === !0),
1878
+ D((e) => e.injectedValidations),
1879
+ T()
1880
+ ), _o = (e) => k(
1881
+ $o,
1882
+ D((r) => r[e]),
1883
+ T(),
1833
1884
  // we want to make sure combineLatest([validation$, injectedValidation$]) triggers
1834
1885
  xr(null)
1835
- ), ho = k(
1836
- O((e) => e.lang),
1837
- W()
1838
- ), Qr = k(
1839
- O((e) => e.calculatedWidgets),
1840
- W()
1841
- ), Do = (e) => (r) => Zr([r.pipe(ho), r.pipe(Qr)]).pipe(
1842
- O(([t, n]) => ({ lang: t, widget: n[e] })),
1843
- Se((t) => t.widget !== void 0),
1844
- W((t, n) => t.lang === n.lang && t.widget === n.widget),
1845
- O((t) => t.widget.current)
1846
- ), To = (e) => k(
1847
- Qr,
1848
- O((r) => r[e]),
1849
- Se((r) => r !== void 0),
1850
- O((r) => r.current.children),
1851
- W()
1886
+ ), So = k(
1887
+ D((e) => e.lang),
1888
+ T()
1889
+ ), qr = k(
1890
+ D((e) => e.calculatedWidgets),
1891
+ T()
1892
+ ), jo = (e) => (r) => br([r.pipe(So), r.pipe(qr)]).pipe(
1893
+ D(([t, n]) => ({ lang: t, widget: n[e] })),
1894
+ $e((t) => t.widget !== void 0),
1895
+ T((t, n) => t.lang === n.lang && t.widget === n.widget),
1896
+ D((t) => t.widget.current)
1897
+ ), No = (e) => k(
1898
+ qr,
1899
+ D((r) => r[e]),
1900
+ $e((r) => r !== void 0),
1901
+ D((r) => r.current.children),
1902
+ T()
1852
1903
  );
1853
1904
  k(
1854
- O((e) => e.widgetFlags),
1855
- W()
1905
+ D((e) => e.widgetFlags),
1906
+ T()
1856
1907
  );
1857
- const po = k(
1858
- O((e) => e.touchedControls),
1859
- W()
1860
- ), Wo = (e) => k(
1861
- po,
1862
- O((r) => r[e]),
1863
- W()
1864
- ), mo = k(
1865
- O((e) => e.formHealth),
1866
- W((e, r) => e.status !== r.status ? !1 : e.status === "errored" && r.status === "errored" ? e.message === r.message && e.code === r.code : !0)
1867
- ), Fo = (e) => e.pipe(mo);
1868
- let qr = !1;
1869
- function ko() {
1870
- qr = !0;
1871
- }
1872
- function go() {
1873
- return qr;
1874
- }
1875
- function Po(e, r, t) {
1876
- if (!go())
1908
+ const vo = k(
1909
+ D((e) => e.touchedControls),
1910
+ T()
1911
+ ), Lo = (e) => k(
1912
+ vo,
1913
+ D((r) => r[e]),
1914
+ T()
1915
+ ), Eo = k(
1916
+ D((e) => e.formHealth),
1917
+ T((e, r) => e.status !== r.status ? !1 : e.status === "errored" && r.status === "errored" ? e.message === r.message && e.code === r.code : !0)
1918
+ ), Vo = (e) => e.pipe(Eo);
1919
+ let Yr = !1;
1920
+ function Ro() {
1921
+ Yr = !0;
1922
+ }
1923
+ function wo() {
1924
+ return Yr;
1925
+ }
1926
+ function Uo(e, r, t) {
1927
+ if (!wo())
1877
1928
  return;
1878
1929
  const n = Object.keys(r ?? {}).filter((o) => o in t);
1879
1930
  if (n.length > 0)
@@ -1882,25 +1933,25 @@ function Po(e, r, t) {
1882
1933
  );
1883
1934
  }
1884
1935
  export {
1885
- Eo as FormContext,
1886
- Po as assertNoPropCollisions,
1887
- To as calculatedLayoutChildrenByUid$,
1888
- Do as calculatedWidgetsByUid$,
1889
- dr as cloneObject,
1890
- Io as dataByPath$,
1891
- Ao as defineForm,
1892
- wo as devToolsMiddleware,
1893
- ko as enableDevMode,
1936
+ To as FormContext,
1937
+ Uo as assertNoPropCollisions,
1938
+ No as calculatedLayoutChildrenByUid$,
1939
+ jo as calculatedWidgetsByUid$,
1940
+ Ne as cloneObject,
1941
+ ko as dataByPath$,
1942
+ Oo as defineForm,
1943
+ Wo as devToolsMiddleware,
1944
+ Ro as enableDevMode,
1894
1945
  ee as errorCodes,
1895
- vo as filterTap,
1896
- Fo as formHealth,
1897
- So as getDirectionFromLanguage,
1898
- vt as identityTranslator,
1899
- Oo as injectedValidationByPath$,
1900
- et as isStandardValidateSuccess,
1901
- In as makeRepeaterItemConfig,
1902
- gr as shortUUID,
1903
- br as standardValidate,
1904
- Wo as touchedControlsByPath$,
1905
- Co as validationByPath$
1946
+ Fo as filterTap,
1947
+ Vo as formHealth,
1948
+ Do as getDirectionFromLanguage,
1949
+ Et as identityTranslator,
1950
+ _o as injectedValidationByPath$,
1951
+ rt as isStandardValidateSuccess,
1952
+ Dn as makeRepeaterItemConfig,
1953
+ yr as shortUUID,
1954
+ et as standardValidate,
1955
+ Lo as touchedControlsByPath$,
1956
+ Po as validationByPath$
1906
1957
  };