@stonecrop/stonecrop 0.11.10 → 0.12.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/dist/stonecrop.js CHANGED
@@ -1,4 +1,4 @@
1
- import { watch as Mt, onMounted as An, nextTick as br, readonly as kn, getCurrentInstance as Mn, toRef as $i, customRef as zi, ref as F, reactive as lr, computed as G, toValue as It, shallowRef as $n, unref as Ti, inject as xe, provide as Xr } from "vue";
1
+ import { watch as Mt, onMounted as An, nextTick as br, readonly as kn, getCurrentInstance as Mn, toRef as $i, customRef as zi, ref as j, reactive as lr, computed as G, toValue as It, shallowRef as $n, unref as Ti, inject as xe, provide as Xr } from "vue";
2
2
  import { defineStore as Li, storeToRefs as zn } from "pinia";
3
3
  const Di = typeof window < "u" && typeof document < "u";
4
4
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -10,7 +10,7 @@ function Ni(...e) {
10
10
  return typeof t == "function" ? kn(zi(() => ({
11
11
  get: t,
12
12
  set: Tn
13
- }))) : F(t);
13
+ }))) : j(t);
14
14
  }
15
15
  function Pi(e, t) {
16
16
  function r(...n) {
@@ -25,7 +25,7 @@ function Pi(e, t) {
25
25
  return r;
26
26
  }
27
27
  const Ln = (e) => e();
28
- function ji(e = Ln, t = {}) {
28
+ function Fi(e = Ln, t = {}) {
29
29
  const { initialState: r = "active" } = t, n = Ni(r === "active");
30
30
  function i() {
31
31
  n.value = !1;
@@ -46,7 +46,7 @@ function ji(e = Ln, t = {}) {
46
46
  function nr(e) {
47
47
  return Array.isArray(e) ? e : [e];
48
48
  }
49
- function Fi(e) {
49
+ function ji(e) {
50
50
  return Mn();
51
51
  }
52
52
  function Bi(e, t, r = {}) {
@@ -54,7 +54,7 @@ function Bi(e, t, r = {}) {
54
54
  return Mt(e, Pi(n, t), i);
55
55
  }
56
56
  function xi(e, t, r = {}) {
57
- const { eventFilter: n, initialState: i = "active", ...o } = r, { eventFilter: s, pause: a, resume: u, isActive: c } = ji(n, { initialState: i });
57
+ const { eventFilter: n, initialState: i = "active", ...o } = r, { eventFilter: s, pause: a, resume: u, isActive: c } = Fi(n, { initialState: i });
58
58
  return {
59
59
  stop: Bi(e, t, {
60
60
  ...o,
@@ -66,7 +66,7 @@ function xi(e, t, r = {}) {
66
66
  };
67
67
  }
68
68
  function Ui(e, t = !0, r) {
69
- Fi() ? An(e, r) : t ? e() : br(e);
69
+ ji() ? An(e, r) : t ? e() : br(e);
70
70
  }
71
71
  function Wi(e, t, r) {
72
72
  return Mt(e, t, {
@@ -103,7 +103,7 @@ function Wt(...e) {
103
103
  ];
104
104
  }, ([n, i, o, s], a, u) => {
105
105
  if (!n?.length || !i?.length || !o?.length) return;
106
- const c = qi(s) ? { ...s } : s, f = n.flatMap((h) => i.flatMap((l) => o.map((g) => t(h, l, g, c))));
106
+ const c = qi(s) ? { ...s } : s, f = n.flatMap((h) => i.flatMap((l) => o.map((_) => t(h, l, _, c))));
107
107
  u(() => {
108
108
  f.forEach((h) => h());
109
109
  });
@@ -155,13 +155,13 @@ const Gi = {
155
155
  }, Qr = "vueuse-storage";
156
156
  function Zi(e, t, r, n = {}) {
157
157
  var i;
158
- const { flush: o = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: f, window: h = Nt, eventFilter: l, onError: g = (R) => {
158
+ const { flush: o = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: f, window: h = Nt, eventFilter: l, onError: _ = (R) => {
159
159
  console.error(R);
160
- }, initOnMounted: p } = n, d = (f ? $n : F)(t), S = G(() => It(e));
160
+ }, initOnMounted: p } = n, d = (f ? $n : j)(t), S = G(() => It(e));
161
161
  if (!r) try {
162
162
  r = Yi("getDefaultStorage", () => Nt?.localStorage)();
163
163
  } catch (R) {
164
- g(R);
164
+ _(R);
165
165
  }
166
166
  if (!r) return d;
167
167
  const I = It(t), O = Ji(I), w = (i = n.serializer) !== null && i !== void 0 ? i : Gi[O], { pause: K, resume: k } = xi(d, (R) => ae(R), {
@@ -179,12 +179,12 @@ function Zi(e, t, r, n = {}) {
179
179
  h && a && (r instanceof Storage ? Wt(h, "storage", H, { passive: !0 }) : Wt(h, Qr, J)), p ? Ui(() => {
180
180
  $ = !0, wt();
181
181
  }) : wt();
182
- function W(R, j) {
182
+ function W(R, F) {
183
183
  if (h) {
184
184
  const Q = {
185
185
  key: S.value,
186
186
  oldValue: R,
187
- newValue: j,
187
+ newValue: F,
188
188
  storageArea: r
189
189
  };
190
190
  h.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", Q) : new CustomEvent(Qr, { detail: Q }));
@@ -192,28 +192,28 @@ function Zi(e, t, r, n = {}) {
192
192
  }
193
193
  function ae(R) {
194
194
  try {
195
- const j = r.getItem(S.value);
195
+ const F = r.getItem(S.value);
196
196
  if (R == null)
197
- W(j, null), r.removeItem(S.value);
197
+ W(F, null), r.removeItem(S.value);
198
198
  else {
199
199
  const Q = w.write(R);
200
- j !== Q && (r.setItem(S.value, Q), W(j, Q));
200
+ F !== Q && (r.setItem(S.value, Q), W(F, Q));
201
201
  }
202
- } catch (j) {
203
- g(j);
202
+ } catch (F) {
203
+ _(F);
204
204
  }
205
205
  }
206
206
  function ue(R) {
207
- const j = R ? R.newValue : r.getItem(S.value);
208
- if (j == null)
207
+ const F = R ? R.newValue : r.getItem(S.value);
208
+ if (F == null)
209
209
  return u && I != null && r.setItem(S.value, w.write(I)), I;
210
210
  if (!R && c) {
211
- const Q = w.read(j);
211
+ const Q = w.read(F);
212
212
  return typeof c == "function" ? c(Q, I) : O === "object" && !Array.isArray(Q) ? {
213
213
  ...I,
214
214
  ...Q
215
215
  } : Q;
216
- } else return typeof j != "string" ? j : w.read(j);
216
+ } else return typeof F != "string" ? F : w.read(F);
217
217
  }
218
218
  function wt(R) {
219
219
  if (!(R && R.storageArea !== r)) {
@@ -224,10 +224,10 @@ function Zi(e, t, r, n = {}) {
224
224
  if (!(R && R.key !== S.value)) {
225
225
  K();
226
226
  try {
227
- const j = w.write(d.value);
228
- (R === void 0 || R?.newValue !== j) && (d.value = ue(R));
229
- } catch (j) {
230
- g(j);
227
+ const F = w.write(d.value);
228
+ (R === void 0 || R?.newValue !== F) && (d.value = ue(R));
229
+ } catch (F) {
230
+ _(F);
231
231
  } finally {
232
232
  R ? br(k) : k();
233
233
  }
@@ -267,7 +267,7 @@ function to(e = {}) {
267
267
  function l(O, w) {
268
268
  O in u && (t ? u[O] = w : u[O].value = w);
269
269
  }
270
- function g() {
270
+ function _() {
271
271
  s.clear();
272
272
  for (const O of h) l(O, !1);
273
273
  }
@@ -300,7 +300,7 @@ function to(e = {}) {
300
300
  }), c.clear());
301
301
  }
302
302
  }
303
- Wt(r, "keydown", (O) => (S(O, !0), o(O)), { passive: i }), Wt(r, "keyup", (O) => (S(O, !1), o(O)), { passive: i }), Wt("blur", g, { passive: i }), Wt("focus", g, { passive: i });
303
+ Wt(r, "keydown", (O) => (S(O, !0), o(O)), { passive: i }), Wt(r, "keyup", (O) => (S(O, !1), o(O)), { passive: i }), Wt("blur", _, { passive: i }), Wt("focus", _, { passive: i });
304
304
  const I = new Proxy(u, { get(O, w, K) {
305
305
  if (typeof w != "string") return Reflect.get(O, w, K);
306
306
  if (w = w.toLowerCase(), w in n && (w = n[w]), !(w in u)) if (/[+_-]/.test(w)) {
@@ -344,17 +344,17 @@ function eo(e) {
344
344
  }))), t;
345
345
  }
346
346
  const Ie = Li("hst-operation-log", () => {
347
- const e = F({
347
+ const e = j({
348
348
  maxOperations: 100,
349
349
  enableCrossTabSync: !0,
350
350
  autoSyncInterval: 3e4,
351
351
  enablePersistence: !1,
352
352
  persistenceKeyPrefix: "stonecrop-ops"
353
- }), t = F([]), r = F(-1), n = F(ir()), i = F(!1), o = F([]), s = G(() => r.value < 0 ? !1 : t.value[r.value]?.reversible ?? !1), a = G(() => r.value < t.value.length - 1), u = G(() => {
354
- let _ = 0;
353
+ }), t = j([]), r = j(-1), n = j(ir()), i = j(!1), o = j([]), s = G(() => r.value < 0 ? !1 : t.value[r.value]?.reversible ?? !1), a = G(() => r.value < t.value.length - 1), u = G(() => {
354
+ let g = 0;
355
355
  for (let v = r.value; v >= 0 && t.value[v]?.reversible; v--)
356
- _++;
357
- return _;
356
+ g++;
357
+ return g;
358
358
  }), c = G(() => t.value.length - 1 - r.value), f = G(
359
359
  () => ({
360
360
  canUndo: s.value,
@@ -364,12 +364,12 @@ const Ie = Li("hst-operation-log", () => {
364
364
  currentIndex: r.value
365
365
  })
366
366
  );
367
- function h(_) {
368
- e.value = { ...e.value, ..._ }, e.value.enablePersistence && (Q(), xt()), e.value.enableCrossTabSync && ae();
367
+ function h(g) {
368
+ e.value = { ...e.value, ...g }, e.value.enablePersistence && (Q(), xt()), e.value.enableCrossTabSync && ae();
369
369
  }
370
- function l(_, v = "user") {
370
+ function l(g, v = "user") {
371
371
  const y = {
372
- ..._,
372
+ ...g,
373
373
  id: ir(),
374
374
  timestamp: /* @__PURE__ */ new Date(),
375
375
  source: v,
@@ -385,13 +385,13 @@ const Ie = Li("hst-operation-log", () => {
385
385
  }
386
386
  return e.value.enableCrossTabSync && ue(y), y.id;
387
387
  }
388
- function g() {
388
+ function _() {
389
389
  i.value = !0, o.value.push({
390
390
  id: ir(),
391
391
  operations: []
392
392
  });
393
393
  }
394
- function p(_) {
394
+ function p(g) {
395
395
  if (!i.value || o.value.length === 0)
396
396
  return null;
397
397
  const v = o.value.pop(), y = v.operations;
@@ -411,7 +411,7 @@ const Ie = Li("hst-operation-log", () => {
411
411
  reversible: it,
412
412
  irreversibleReason: it ? void 0 : "Contains irreversible operations",
413
413
  descendantOperationIds: y.map((E) => E.id),
414
- metadata: { description: _ }
414
+ metadata: { description: g }
415
415
  };
416
416
  return y.forEach((E) => {
417
417
  E.ancestorOperationId = x;
@@ -420,7 +420,7 @@ const Ie = Li("hst-operation-log", () => {
420
420
  function d() {
421
421
  o.value = [], i.value = !1;
422
422
  }
423
- function S(_) {
423
+ function S(g) {
424
424
  if (!s.value) return !1;
425
425
  const v = t.value[r.value];
426
426
  if (!v.reversible)
@@ -429,45 +429,45 @@ const Ie = Li("hst-operation-log", () => {
429
429
  if (v.type === "batch" && v.descendantOperationIds)
430
430
  for (let y = v.descendantOperationIds.length - 1; y >= 0; y--) {
431
431
  const x = v.descendantOperationIds[y], it = t.value.find((m) => m.id === x);
432
- it && O(it, _);
432
+ it && O(it, g);
433
433
  }
434
434
  else
435
- O(v, _);
435
+ O(v, g);
436
436
  return r.value--, e.value.enableCrossTabSync && ce(v), !0;
437
437
  } catch (y) {
438
438
  return typeof console < "u" && console.error("Undo failed:", y), !1;
439
439
  }
440
440
  }
441
- function I(_) {
441
+ function I(g) {
442
442
  if (!a.value) return !1;
443
443
  const v = t.value[r.value + 1];
444
444
  try {
445
445
  if (v.type === "batch" && v.descendantOperationIds)
446
446
  for (const y of v.descendantOperationIds) {
447
447
  const x = t.value.find((it) => it.id === y);
448
- x && w(x, _);
448
+ x && w(x, g);
449
449
  }
450
450
  else
451
- w(v, _);
451
+ w(v, g);
452
452
  return r.value++, e.value.enableCrossTabSync && R(v), !0;
453
453
  } catch (y) {
454
454
  return typeof console < "u" && console.error("Redo failed:", y), !1;
455
455
  }
456
456
  }
457
- function O(_, v) {
458
- (_.type === "set" || _.type === "delete") && v && typeof v.set == "function" && v.set(_.path, _.beforeValue, "undo");
457
+ function O(g, v) {
458
+ (g.type === "set" || g.type === "delete") && v && typeof v.set == "function" && v.set(g.path, g.beforeValue, "undo");
459
459
  }
460
- function w(_, v) {
461
- (_.type === "set" || _.type === "delete") && v && typeof v.set == "function" && v.set(_.path, _.afterValue, "redo");
460
+ function w(g, v) {
461
+ (g.type === "set" || g.type === "delete") && v && typeof v.set == "function" && v.set(g.path, g.afterValue, "redo");
462
462
  }
463
463
  function K() {
464
- const _ = t.value.filter((y) => y.reversible).length, v = t.value.map((y) => y.timestamp);
464
+ const g = t.value.filter((y) => y.reversible).length, v = t.value.map((y) => y.timestamp);
465
465
  return {
466
466
  operations: [...t.value],
467
467
  currentIndex: r.value,
468
468
  totalOperations: t.value.length,
469
- reversibleOperations: _,
470
- irreversibleOperations: t.value.length - _,
469
+ reversibleOperations: g,
470
+ irreversibleOperations: t.value.length - g,
471
471
  oldestOperation: v.length > 0 ? new Date(Math.min(...v.map((y) => y.getTime()))) : void 0,
472
472
  newestOperation: v.length > 0 ? new Date(Math.max(...v.map((y) => y.getTime()))) : void 0
473
473
  };
@@ -475,21 +475,21 @@ const Ie = Li("hst-operation-log", () => {
475
475
  function k() {
476
476
  t.value = [], r.value = -1;
477
477
  }
478
- function $(_, v) {
479
- return t.value.filter((y) => y.doctype === _ && (v === void 0 || y.recordId === v));
478
+ function $(g, v) {
479
+ return t.value.filter((y) => y.doctype === g && (v === void 0 || y.recordId === v));
480
480
  }
481
- function H(_, v) {
482
- const y = t.value.find((x) => x.id === _);
481
+ function H(g, v) {
482
+ const y = t.value.find((x) => x.id === g);
483
483
  y && (y.reversible = !1, y.irreversibleReason = v);
484
484
  }
485
- function J(_, v, y, x = "success", it) {
485
+ function J(g, v, y, x = "success", it) {
486
486
  const m = {
487
487
  type: "action",
488
- path: y && y.length > 0 ? `${_}.${y[0]}` : _,
488
+ path: y && y.length > 0 ? `${g}.${y[0]}` : g,
489
489
  fieldname: "",
490
490
  beforeValue: null,
491
491
  afterValue: null,
492
- doctype: _,
492
+ doctype: g,
493
493
  recordId: y && y.length > 0 ? y[0] : void 0,
494
494
  reversible: !1,
495
495
  // Actions are typically not reversible
@@ -502,89 +502,89 @@ const Ie = Li("hst-operation-log", () => {
502
502
  }
503
503
  let W = null;
504
504
  function ae() {
505
- typeof window > "u" || !window.BroadcastChannel || (W = new BroadcastChannel("stonecrop-operation-log"), W.addEventListener("message", (_) => {
506
- const v = _.data;
505
+ typeof window > "u" || !window.BroadcastChannel || (W = new BroadcastChannel("stonecrop-operation-log"), W.addEventListener("message", (g) => {
506
+ const v = g.data;
507
507
  if (!v || typeof v != "object") return;
508
508
  const y = eo(v);
509
509
  y.clientId !== n.value && (y.type === "operation" && y.operation ? (t.value.push({ ...y.operation, source: "sync" }), r.value = t.value.length - 1) : y.type === "operation" && y.operations && (t.value.push(...y.operations.map((x) => ({ ...x, source: "sync" }))), r.value = t.value.length - 1));
510
510
  }));
511
511
  }
512
- function ue(_) {
512
+ function ue(g) {
513
513
  if (!W) return;
514
514
  const v = {
515
515
  type: "operation",
516
- operation: _,
516
+ operation: g,
517
517
  clientId: n.value,
518
518
  timestamp: /* @__PURE__ */ new Date()
519
519
  };
520
520
  W.postMessage(qe(v));
521
521
  }
522
- function wt(_, v) {
522
+ function wt(g, v) {
523
523
  if (!W) return;
524
524
  const y = {
525
525
  type: "operation",
526
- operations: [..._, v],
526
+ operations: [...g, v],
527
527
  clientId: n.value,
528
528
  timestamp: /* @__PURE__ */ new Date()
529
529
  };
530
530
  W.postMessage(qe(y));
531
531
  }
532
- function ce(_) {
532
+ function ce(g) {
533
533
  if (!W) return;
534
534
  const v = {
535
535
  type: "undo",
536
- operation: _,
536
+ operation: g,
537
537
  clientId: n.value,
538
538
  timestamp: /* @__PURE__ */ new Date()
539
539
  };
540
540
  W.postMessage(qe(v));
541
541
  }
542
- function R(_) {
542
+ function R(g) {
543
543
  if (!W) return;
544
544
  const v = {
545
545
  type: "redo",
546
- operation: _,
546
+ operation: g,
547
547
  clientId: n.value,
548
548
  timestamp: /* @__PURE__ */ new Date()
549
549
  };
550
550
  W.postMessage(qe(v));
551
551
  }
552
- const j = Xi("stonecrop-operations", null, {
552
+ const F = Xi("stonecrop-operations", null, {
553
553
  serializer: {
554
- read: (_) => {
554
+ read: (g) => {
555
555
  try {
556
- return JSON.parse(_);
556
+ return JSON.parse(g);
557
557
  } catch {
558
558
  return null;
559
559
  }
560
560
  },
561
- write: (_) => _ ? JSON.stringify(_) : ""
561
+ write: (g) => g ? JSON.stringify(g) : ""
562
562
  }
563
563
  });
564
564
  function Q() {
565
565
  if (!(typeof window > "u"))
566
566
  try {
567
- const _ = j.value;
568
- _ && Array.isArray(_.operations) && (t.value = _.operations.map((v) => ({
567
+ const g = F.value;
568
+ g && Array.isArray(g.operations) && (t.value = g.operations.map((v) => ({
569
569
  ...v,
570
570
  timestamp: new Date(v.timestamp)
571
- })), r.value = _.currentIndex ?? -1);
572
- } catch (_) {
573
- typeof console < "u" && console.error("Failed to load operations from persistence:", _);
571
+ })), r.value = g.currentIndex ?? -1);
572
+ } catch (g) {
573
+ typeof console < "u" && console.error("Failed to load operations from persistence:", g);
574
574
  }
575
575
  }
576
576
  function fe() {
577
577
  if (!(typeof window > "u"))
578
578
  try {
579
- j.value = {
580
- operations: t.value.map((_) => ({
581
- ..._,
582
- timestamp: _.timestamp.toISOString()
579
+ F.value = {
580
+ operations: t.value.map((g) => ({
581
+ ...g,
582
+ timestamp: g.timestamp.toISOString()
583
583
  })),
584
584
  currentIndex: r.value
585
585
  };
586
- } catch (_) {
587
- typeof console < "u" && console.error("Failed to save operations to persistence:", _);
586
+ } catch (g) {
587
+ typeof console < "u" && console.error("Failed to save operations to persistence:", g);
588
588
  }
589
589
  }
590
590
  function xt() {
@@ -611,7 +611,7 @@ const Ie = Li("hst-operation-log", () => {
611
611
  // Methods
612
612
  configure: h,
613
613
  addOperation: l,
614
- startBatch: g,
614
+ startBatch: _,
615
615
  commitBatch: p,
616
616
  cancelBatch: d,
617
617
  undo: S,
@@ -623,7 +623,7 @@ const Ie = Li("hst-operation-log", () => {
623
623
  logAction: J
624
624
  };
625
625
  });
626
- class _e {
626
+ class ge {
627
627
  /**
628
628
  * The root FieldTriggerEngine instance
629
629
  */
@@ -644,9 +644,9 @@ class _e {
644
644
  * @param options - Configuration options for the field trigger engine
645
645
  */
646
646
  constructor(t = {}) {
647
- if (_e._root)
648
- return _e._root;
649
- _e._root = this, this.options = {
647
+ if (ge._root)
648
+ return ge._root;
649
+ ge._root = this, this.options = {
650
650
  defaultTimeout: t.defaultTimeout ?? 5e3,
651
651
  debug: t.debug ?? !1,
652
652
  enableRollback: t.enableRollback ?? !0,
@@ -770,7 +770,7 @@ class _e {
770
770
  } catch (S) {
771
771
  console.error("[FieldTriggers] Rollback failed:", S);
772
772
  }
773
- const g = performance.now() - s, p = a.filter((S) => !S.success && S.error != null);
773
+ const _ = performance.now() - s, p = a.filter((S) => !S.success && S.error != null);
774
774
  if (p.length > 0 && this.options.errorHandler)
775
775
  for (const S of p)
776
776
  try {
@@ -781,7 +781,7 @@ class _e {
781
781
  return {
782
782
  path: t.path,
783
783
  actionResults: a,
784
- totalExecutionTime: g,
784
+ totalExecutionTime: _,
785
785
  allSucceeded: a.every((S) => S.success),
786
786
  stoppedOnError: u,
787
787
  rolledBack: c,
@@ -968,7 +968,7 @@ class _e {
968
968
  }
969
969
  }
970
970
  function bt(e) {
971
- return new _e(e);
971
+ return new ge(e);
972
972
  }
973
973
  function os(e, t) {
974
974
  bt().registerAction(e, t);
@@ -1457,10 +1457,10 @@ class At {
1457
1457
  try {
1458
1458
  if (o && o.length > 0) {
1459
1459
  const l = bt();
1460
- o.forEach((g) => {
1460
+ o.forEach((_) => {
1461
1461
  try {
1462
- const p = l.getAction(g);
1463
- if (!p) throw new Error(`Action "${g}" is not registered in FieldTriggerEngine`);
1462
+ const p = l.getAction(_);
1463
+ if (!p) throw new Error(`Action "${_}" is not registered in FieldTriggerEngine`);
1464
1464
  const d = {
1465
1465
  path: `${t.slug}.${s?.[0] ?? ""}`,
1466
1466
  fieldname: r,
@@ -1701,7 +1701,7 @@ function hs(e, t, r) {
1701
1701
  const n = xe("$stonecrop") || At._root;
1702
1702
  if (!n)
1703
1703
  throw new Error("Stonecrop instance not available. Ensure useStonecrop() has been called first.");
1704
- const i = F(!1), o = F(!1), s = F(null), a = n.getStore(), u = () => `${e.slug || e.doctype}.${t}.${r}`, c = () => e.links?.[r]?.fetch, f = async (p) => {
1704
+ const i = j(!1), o = j(!1), s = j(null), a = n.getStore(), u = () => `${e.slug || e.doctype}.${t}.${r}`, c = () => e.links?.[r]?.fetch, f = async (p) => {
1705
1705
  try {
1706
1706
  return await new Function(
1707
1707
  "stonecrop",
@@ -1733,7 +1733,7 @@ function hs(e, t, r) {
1733
1733
  i.value = !1;
1734
1734
  }
1735
1735
  }
1736
- }, g = G(() => {
1736
+ }, _ = G(() => {
1737
1737
  if (o.value)
1738
1738
  return a.get(u());
1739
1739
  });
@@ -1743,16 +1743,16 @@ function hs(e, t, r) {
1743
1743
  loaded: o,
1744
1744
  error: s,
1745
1745
  // Computed
1746
- data: g,
1746
+ data: _,
1747
1747
  // Actions
1748
1748
  reload: l
1749
1749
  };
1750
1750
  }
1751
1751
  function ls(e) {
1752
1752
  e || (e = {});
1753
- const t = e.registry || xe("$registry"), r = xe("$stonecrop"), n = F(), i = F(), o = F({}), s = F(), a = F(), u = F([]), c = F(!1), f = F(null), h = F(), l = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? !0 : n.value.isWorkflowReady(h.value, e.recordId).ready), g = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? [] : n.value.isWorkflowReady(h.value, e.recordId).blockedLinks ?? []), p = r || At._root;
1753
+ const t = e.registry || xe("$registry"), r = xe("$stonecrop"), n = j(), i = j(), o = j({}), s = j(), a = j(), u = j([]), c = j(!1), f = j(null), h = j(), l = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? !0 : n.value.isWorkflowReady(h.value, e.recordId).ready), _ = G(() => !n.value || !h.value || !e.recordId || e.recordId === "new" ? [] : n.value.isWorkflowReady(h.value, e.recordId).blockedLinks ?? []), p = r || At._root;
1754
1754
  p && (n.value = p), e?.doctype && typeof e.doctype != "string" && (h.value = e.doctype);
1755
- const d = F([]), S = F(-1), I = G(() => n.value?.getOperationLogStore().canUndo ?? !1), O = G(() => n.value?.getOperationLogStore().canRedo ?? !1), w = G(() => n.value?.getOperationLogStore().undoCount ?? 0), K = G(() => n.value?.getOperationLogStore().redoCount ?? 0), k = G(
1755
+ const d = j([]), S = j(-1), I = G(() => n.value?.getOperationLogStore().canUndo ?? !1), O = G(() => n.value?.getOperationLogStore().canRedo ?? !1), w = G(() => n.value?.getOperationLogStore().undoCount ?? 0), K = G(() => n.value?.getOperationLogStore().redoCount ?? 0), k = G(
1756
1756
  () => n.value?.getOperationLogStore().undoRedoState ?? {
1757
1757
  canUndo: !1,
1758
1758
  canRedo: !1,
@@ -1774,7 +1774,7 @@ function ls(e) {
1774
1774
  irreversibleOperations: 0
1775
1775
  }, R = (m, E) => {
1776
1776
  n.value?.getOperationLogStore().markIrreversible(m, E);
1777
- }, j = (m, E, b, L = "success", D) => n.value?.getOperationLogStore().logAction(m, E, b, L, D) ?? "", Q = (m) => {
1777
+ }, F = (m, E, b, L = "success", D) => n.value?.getOperationLogStore().logAction(m, E, b, L, D) ?? "", Q = (m) => {
1778
1778
  n.value?.getOperationLogStore().configure(m);
1779
1779
  };
1780
1780
  if (t && n.value)
@@ -1904,7 +1904,7 @@ function ls(e) {
1904
1904
  }
1905
1905
  };
1906
1906
  (e.doctype || t?.router) && (Xr("hstPathProvider", fe), Xr("hstChangeHandler", xt));
1907
- const _ = (m, E) => {
1907
+ const g = (m, E) => {
1908
1908
  if (!n.value)
1909
1909
  throw new Error("Stonecrop instance not available");
1910
1910
  return n.value.initializeNestedData(m, E);
@@ -1942,7 +1942,7 @@ function ls(e) {
1942
1942
  getOperationsFor: wt,
1943
1943
  getSnapshot: ce,
1944
1944
  markIrreversible: R,
1945
- logAction: j,
1945
+ logAction: F,
1946
1946
  configure: Q
1947
1947
  };
1948
1948
  return e.doctype ? {
@@ -1953,7 +1953,7 @@ function ls(e) {
1953
1953
  hstStore: i,
1954
1954
  formData: o,
1955
1955
  resolvedSchema: u,
1956
- initializeNestedData: _,
1956
+ initializeNestedData: g,
1957
1957
  fetchNestedData: v,
1958
1958
  collectRecordPayload: y,
1959
1959
  createNestedContext: x,
@@ -1961,7 +1961,7 @@ function ls(e) {
1961
1961
  error: f,
1962
1962
  resolvedDoctype: h,
1963
1963
  isWorkflowReady: l,
1964
- blockedLinks: g
1964
+ blockedLinks: _
1965
1965
  } : !e.doctype && t?.router ? {
1966
1966
  stonecrop: n,
1967
1967
  operationLog: it,
@@ -1970,7 +1970,7 @@ function ls(e) {
1970
1970
  hstStore: i,
1971
1971
  formData: o,
1972
1972
  resolvedSchema: u,
1973
- initializeNestedData: _,
1973
+ initializeNestedData: g,
1974
1974
  fetchNestedData: v,
1975
1975
  collectRecordPayload: y,
1976
1976
  createNestedContext: x,
@@ -1978,7 +1978,7 @@ function ls(e) {
1978
1978
  error: f,
1979
1979
  resolvedDoctype: h,
1980
1980
  isWorkflowReady: l,
1981
- blockedLinks: g
1981
+ blockedLinks: _
1982
1982
  } : {
1983
1983
  stonecrop: n,
1984
1984
  operationLog: it
@@ -2022,7 +2022,7 @@ function Dn(e) {
2022
2022
  function l() {
2023
2023
  r.startBatch();
2024
2024
  }
2025
- function g(k) {
2025
+ function _(k) {
2026
2026
  return r.commitBatch(k);
2027
2027
  }
2028
2028
  function p() {
@@ -2059,7 +2059,7 @@ function Dn(e) {
2059
2059
  undo: f,
2060
2060
  redo: h,
2061
2061
  startBatch: l,
2062
- commitBatch: g,
2062
+ commitBatch: _,
2063
2063
  cancelBatch: p,
2064
2064
  clear: d,
2065
2065
  getOperationsFor: S,
@@ -2120,7 +2120,7 @@ var Z = function(t) {
2120
2120
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t;
2121
2121
  })(Z), Pt = /* @__PURE__ */ (function(e) {
2122
2122
  function t(r) {
2123
- return pt(r) ? r : gt(r);
2123
+ return pt(r) ? r : _t(r);
2124
2124
  }
2125
2125
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t;
2126
2126
  })(Z), ee = /* @__PURE__ */ (function(e) {
@@ -2185,7 +2185,7 @@ function oo(e) {
2185
2185
  return t && t === e.keys;
2186
2186
  }
2187
2187
  var Ae = "delete", T = 5, at = 1 << T, tt = at - 1, A = {};
2188
- function gr() {
2188
+ function _r() {
2189
2189
  return { value: !1 };
2190
2190
  }
2191
2191
  function lt(e) {
@@ -2209,27 +2209,27 @@ function Pn() {
2209
2209
  return !0;
2210
2210
  }
2211
2211
  function Ge(e, t, r) {
2212
- return (e === 0 && !Fn(e) || r !== void 0 && e <= -r) && (t === void 0 || r !== void 0 && t >= r);
2212
+ return (e === 0 && !jn(e) || r !== void 0 && e <= -r) && (t === void 0 || r !== void 0 && t >= r);
2213
2213
  }
2214
2214
  function ke(e, t) {
2215
- return jn(e, t, 0);
2215
+ return Fn(e, t, 0);
2216
2216
  }
2217
2217
  function Ze(e, t) {
2218
- return jn(e, t, t);
2218
+ return Fn(e, t, t);
2219
2219
  }
2220
- function jn(e, t, r) {
2221
- return e === void 0 ? r : Fn(e) ? t === 1 / 0 ? t : Math.max(0, t + e) | 0 : t === void 0 || t === e ? e : Math.min(t, e) | 0;
2220
+ function Fn(e, t, r) {
2221
+ return e === void 0 ? r : jn(e) ? t === 1 / 0 ? t : Math.max(0, t + e) | 0 : t === void 0 || t === e ? e : Math.min(t, e) | 0;
2222
2222
  }
2223
- function Fn(e) {
2223
+ function jn(e) {
2224
2224
  return e < 0 || e === 0 && 1 / e === -1 / 0;
2225
2225
  }
2226
2226
  var Bn = "@@__IMMUTABLE_RECORD__@@";
2227
- function jt(e) {
2227
+ function Ft(e) {
2228
2228
  return !!(e && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
2229
2229
  e[Bn]);
2230
2230
  }
2231
2231
  function mt(e) {
2232
- return ct(e) || jt(e);
2232
+ return ct(e) || Ft(e);
2233
2233
  }
2234
2234
  var zt = "@@__IMMUTABLE_ORDERED__@@";
2235
2235
  function yt(e) {
@@ -2292,14 +2292,14 @@ var nt = /* @__PURE__ */ (function(e) {
2292
2292
  }, t;
2293
2293
  })(Z), Dt = /* @__PURE__ */ (function(e) {
2294
2294
  function t(r) {
2295
- return r == null ? Ar().toKeyedSeq() : ct(r) ? N(r) ? r.toSeq() : r.fromEntrySeq() : jt(r) ? r.toSeq() : kr(r);
2295
+ return r == null ? Ar().toKeyedSeq() : ct(r) ? N(r) ? r.toSeq() : r.fromEntrySeq() : Ft(r) ? r.toSeq() : kr(r);
2296
2296
  }
2297
2297
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.toKeyedSeq = function() {
2298
2298
  return this;
2299
2299
  }, t;
2300
- })(nt), gt = /* @__PURE__ */ (function(e) {
2300
+ })(nt), _t = /* @__PURE__ */ (function(e) {
2301
2301
  function t(r) {
2302
- return r == null ? Ar() : ct(r) ? N(r) ? r.entrySeq() : r.toIndexedSeq() : jt(r) ? r.toSeq().entrySeq() : Wn(r);
2302
+ return r == null ? Ar() : ct(r) ? N(r) ? r.entrySeq() : r.toIndexedSeq() : Ft(r) ? r.toSeq().entrySeq() : Wn(r);
2303
2303
  }
2304
2304
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.of = function() {
2305
2305
  return t(arguments);
@@ -2310,7 +2310,7 @@ var nt = /* @__PURE__ */ (function(e) {
2310
2310
  }, t;
2311
2311
  })(nt), ie = /* @__PURE__ */ (function(e) {
2312
2312
  function t(r) {
2313
- return (ct(r) && !Or(r) ? r : gt(r)).toSetSeq();
2313
+ return (ct(r) && !Or(r) ? r : _t(r)).toSetSeq();
2314
2314
  }
2315
2315
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.of = function() {
2316
2316
  return t(arguments);
@@ -2321,7 +2321,7 @@ var nt = /* @__PURE__ */ (function(e) {
2321
2321
  nt.isSeq = Rr;
2322
2322
  nt.Keyed = Dt;
2323
2323
  nt.Set = ie;
2324
- nt.Indexed = gt;
2324
+ nt.Indexed = _t;
2325
2325
  nt.prototype[xn] = !0;
2326
2326
  var Vt = /* @__PURE__ */ (function(e) {
2327
2327
  function t(r) {
@@ -2345,7 +2345,7 @@ var Vt = /* @__PURE__ */ (function(e) {
2345
2345
  return P(n, u, o[u]);
2346
2346
  });
2347
2347
  }, t;
2348
- })(gt), Ir = /* @__PURE__ */ (function(e) {
2348
+ })(_t), Ir = /* @__PURE__ */ (function(e) {
2349
2349
  function t(r) {
2350
2350
  var n = Object.keys(r).concat(
2351
2351
  Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(r) : []
@@ -2398,7 +2398,7 @@ var so = /* @__PURE__ */ (function(e) {
2398
2398
  return u.done ? u : P(n, a++, u.value);
2399
2399
  });
2400
2400
  }, t;
2401
- })(gt), nn;
2401
+ })(_t), nn;
2402
2402
  function Ar() {
2403
2403
  return nn || (nn = new Vt([]));
2404
2404
  }
@@ -2453,7 +2453,7 @@ function ot(e) {
2453
2453
  return on(e);
2454
2454
  if (typeof e.hashCode == "function")
2455
2455
  return Xe(e.hashCode(e));
2456
- var t = go(e);
2456
+ var t = _o(e);
2457
2457
  if (t == null)
2458
2458
  return on(t);
2459
2459
  switch (typeof t) {
@@ -2462,7 +2462,7 @@ function ot(e) {
2462
2462
  case "number":
2463
2463
  return co(t);
2464
2464
  case "string":
2465
- return t.length > _o ? fo(t) : _r(t);
2465
+ return t.length > go ? fo(t) : gr(t);
2466
2466
  case "object":
2467
2467
  case "function":
2468
2468
  return lo(t);
@@ -2470,7 +2470,7 @@ function ot(e) {
2470
2470
  return ho(t);
2471
2471
  default:
2472
2472
  if (typeof t.toString == "function")
2473
- return _r(t.toString());
2473
+ return gr(t.toString());
2474
2474
  throw new Error("Value type " + typeof t + " cannot be hashed.");
2475
2475
  }
2476
2476
  }
@@ -2490,9 +2490,9 @@ function co(e) {
2490
2490
  }
2491
2491
  function fo(e) {
2492
2492
  var t = ur[e];
2493
- return t === void 0 && (t = _r(e), ar === vo && (ar = 0, ur = {}), ar++, ur[e] = t), t;
2493
+ return t === void 0 && (t = gr(e), ar === vo && (ar = 0, ur = {}), ar++, ur[e] = t), t;
2494
2494
  }
2495
- function _r(e) {
2495
+ function gr(e) {
2496
2496
  for (var t = 0, r = 0; r < e.length; r++)
2497
2497
  t = 31 * t + e.charCodeAt(r) | 0;
2498
2498
  return Xe(t);
@@ -2548,7 +2548,7 @@ function po(e) {
2548
2548
  return e.documentElement && e.documentElement.uniqueID;
2549
2549
  }
2550
2550
  }
2551
- function go(e) {
2551
+ function _o(e) {
2552
2552
  return e.valueOf !== uo && typeof e.valueOf == "function" ? (
2553
2553
  // @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
2554
2554
  e.valueOf(e)
@@ -2562,7 +2562,7 @@ var vr = typeof WeakMap == "function", yr;
2562
2562
  vr && (yr = /* @__PURE__ */ new WeakMap());
2563
2563
  var un = /* @__PURE__ */ Object.create(null), sr = 0, qt = "__immutablehash__";
2564
2564
  typeof Symbol == "function" && (qt = Symbol(qt));
2565
- var _o = 16, vo = 255, ar = 0, ur = {}, Qe = /* @__PURE__ */ (function(e) {
2565
+ var go = 16, vo = 255, ar = 0, ur = {}, Qe = /* @__PURE__ */ (function(e) {
2566
2566
  function t(r, n) {
2567
2567
  this._iter = r, this._useKeys = n, this.size = r.size;
2568
2568
  }
@@ -2618,7 +2618,7 @@ var Hn = /* @__PURE__ */ (function(e) {
2618
2618
  );
2619
2619
  });
2620
2620
  }, t;
2621
- })(gt), Vn = /* @__PURE__ */ (function(e) {
2621
+ })(_t), Vn = /* @__PURE__ */ (function(e) {
2622
2622
  function t(r) {
2623
2623
  this._iter = r, this.size = r.size;
2624
2624
  }
@@ -2866,9 +2866,9 @@ function zr(e, t, r, n) {
2866
2866
  return 0;
2867
2867
  if (h)
2868
2868
  return this.cacheResult().__iterate(f, h);
2869
- var g = 0, p = !0, d = 0;
2869
+ var _ = 0, p = !0, d = 0;
2870
2870
  return e.__iterate(function(S, I) {
2871
- if (!(p && (p = g++ < o)))
2871
+ if (!(p && (p = _++ < o)))
2872
2872
  return d++, f(S, n ? I : d - 1, l) !== !1 && d !== u;
2873
2873
  }), d;
2874
2874
  }, c.__iteratorUncached = function(f, h) {
@@ -2876,9 +2876,9 @@ function zr(e, t, r, n) {
2876
2876
  return this.cacheResult().__iterator(f, h);
2877
2877
  if (u === 0)
2878
2878
  return new M(et);
2879
- var l = e.__iterator(f, h), g = 0, p = 0;
2879
+ var l = e.__iterator(f, h), _ = 0, p = 0;
2880
2880
  return new M(function() {
2881
- for (; g++ < o; )
2881
+ for (; _++ < o; )
2882
2882
  l.next();
2883
2883
  if (++p > u)
2884
2884
  return et();
@@ -2932,14 +2932,14 @@ function Xn(e, t, r, n) {
2932
2932
  return this.cacheResult().__iterator(o, s);
2933
2933
  var u = e.__iterator(ht, s), c = !0, f = 0;
2934
2934
  return new M(function() {
2935
- var h, l, g;
2935
+ var h, l, _;
2936
2936
  do {
2937
2937
  if (h = u.next(), h.done)
2938
2938
  return n || o === ft ? h : o === re ? P(o, f++, void 0, h) : P(o, f++, h.value[1], h);
2939
2939
  var p = h.value;
2940
- l = p[0], g = p[1], c && (c = t.call(r, g, l, a));
2940
+ l = p[0], _ = p[1], c && (c = t.call(r, _, l, a));
2941
2941
  } while (c);
2942
- return o === ht ? h : P(o, l, g, h);
2942
+ return o === ht ? h : P(o, l, _, h);
2943
2943
  });
2944
2944
  }, i;
2945
2945
  }
@@ -3083,7 +3083,7 @@ function Yt(e, t, r) {
3083
3083
  } : function(s, a) {
3084
3084
  o[a] = s[1];
3085
3085
  }
3086
- ), n ? Dt(o) : pt(e) ? gt(o) : ie(o);
3086
+ ), n ? Dt(o) : pt(e) ? _t(o) : ie(o);
3087
3087
  }
3088
3088
  function Ne(e, t, r) {
3089
3089
  if (t || (t = ti), r) {
@@ -3149,7 +3149,7 @@ function Tr(e) {
3149
3149
  }
3150
3150
  function St(e) {
3151
3151
  return Object.create(
3152
- (N(e) ? Dt : pt(e) ? gt : ie).prototype
3152
+ (N(e) ? Dt : pt(e) ? _t : ie).prototype
3153
3153
  );
3154
3154
  }
3155
3155
  function Lr() {
@@ -3200,7 +3200,7 @@ function ii(e, t, r) {
3200
3200
  var o = dt(t[i]);
3201
3201
  o.size !== 0 && n.push(o);
3202
3202
  }
3203
- return n.length === 0 ? e : e.toSeq().size === 0 && !e.__ownerID && n.length === 1 ? jt(e) ? e : e.constructor(n[0]) : e.withMutations(function(s) {
3203
+ return n.length === 0 ? e : e.toSeq().size === 0 && !e.__ownerID && n.length === 1 ? Ft(e) ? e : e.constructor(n[0]) : e.withMutations(function(s) {
3204
3204
  for (var a = r ? function(c, f) {
3205
3205
  ei(
3206
3206
  s,
@@ -3230,7 +3230,7 @@ function Ao(e) {
3230
3230
  function Tt(e) {
3231
3231
  return typeof e == "object" && (mt(e) || Array.isArray(e) || Ao(e));
3232
3232
  }
3233
- function _t(e, t) {
3233
+ function gt(e, t) {
3234
3234
  t = t || 0;
3235
3235
  for (var r = Math.max(0, e.length - t), n = new Array(r), i = 0; i < r; i++)
3236
3236
  n[i] = e[i + t];
@@ -3238,7 +3238,7 @@ function _t(e, t) {
3238
3238
  }
3239
3239
  function He(e) {
3240
3240
  if (Array.isArray(e))
3241
- return _t(e);
3241
+ return gt(e);
3242
3242
  var t = {};
3243
3243
  for (var r in e)
3244
3244
  ne.call(e, r) && (t[r] = e[r]);
@@ -3306,10 +3306,10 @@ function $o(e, t, r) {
3306
3306
  function Pr(e, t) {
3307
3307
  return $o(this, e, t);
3308
3308
  }
3309
- function jr(e, t, r) {
3309
+ function Fr(e, t, r) {
3310
3310
  return arguments.length === 1 ? e(this) : ei(this, e, t, r);
3311
3311
  }
3312
- function Fr(e, t, r) {
3312
+ function jr(e, t, r) {
3313
3313
  return oe(this, e, t, r);
3314
3314
  }
3315
3315
  function Br() {
@@ -3386,8 +3386,8 @@ q[Ae] = q.remove;
3386
3386
  q.removeAll = q.deleteAll;
3387
3387
  q.setIn = Pr;
3388
3388
  q.removeIn = q.deleteIn = Hr;
3389
- q.update = jr;
3390
- q.updateIn = Fr;
3389
+ q.update = Fr;
3390
+ q.updateIn = jr;
3391
3391
  q.merge = q.concat = ri;
3392
3392
  q.mergeWith = ni;
3393
3393
  q.mergeDeep = oi;
@@ -3422,8 +3422,8 @@ Se.prototype.update = function(t, r, n, i, o, s, a) {
3422
3422
  if (lt(a), (u || !l) && lt(s), !(u && c.length === 1)) {
3423
3423
  if (!l && !u && c.length >= No)
3424
3424
  return To(t, c, i, o);
3425
- var g = t && t === this.ownerID, p = g ? c : _t(c);
3426
- return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), g ? (this.entries = p, this) : new Se(t, p);
3425
+ var _ = t && t === this.ownerID, p = _ ? c : gt(c);
3426
+ return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), _ ? (this.entries = p, this) : new Se(t, p);
3427
3427
  }
3428
3428
  };
3429
3429
  var Jt = function(t, r, n) {
@@ -3444,7 +3444,7 @@ Jt.prototype.update = function(t, r, n, i, o, s, a) {
3444
3444
  var u = (r === 0 ? n : n >>> r) & tt, c = 1 << u, f = this.bitmap, h = (f & c) !== 0;
3445
3445
  if (!h && o === A)
3446
3446
  return this;
3447
- var l = ui(f & c - 1), g = this.nodes, p = h ? g[l] : void 0, d = Wr(
3447
+ var l = ui(f & c - 1), _ = this.nodes, p = h ? _[l] : void 0, d = Wr(
3448
3448
  p,
3449
3449
  t,
3450
3450
  r + T,
@@ -3456,13 +3456,13 @@ Jt.prototype.update = function(t, r, n, i, o, s, a) {
3456
3456
  );
3457
3457
  if (d === p)
3458
3458
  return this;
3459
- if (!h && d && g.length >= Po)
3460
- return Do(t, g, f, u, d);
3461
- if (h && !d && g.length === 2 && gn(g[l ^ 1]))
3462
- return g[l ^ 1];
3463
- if (h && d && g.length === 1 && gn(d))
3459
+ if (!h && d && _.length >= Po)
3460
+ return Do(t, _, f, u, d);
3461
+ if (h && !d && _.length === 2 && _n(_[l ^ 1]))
3462
+ return _[l ^ 1];
3463
+ if (h && d && _.length === 1 && _n(d))
3464
3464
  return d;
3465
- var S = t && t === this.ownerID, I = h ? d ? f : f ^ c : f | c, O = h ? d ? ci(g, l, d, S) : qo(g, l, S) : Co(g, l, d, S);
3465
+ var S = t && t === this.ownerID, I = h ? d ? f : f ^ c : f | c, O = h ? d ? ci(_, l, d, S) : qo(_, l, S) : Co(_, l, d, S);
3466
3466
  return S ? (this.bitmap = I, this.nodes = O, this) : new Jt(t, I, O);
3467
3467
  };
3468
3468
  var we = function(t, r, n) {
@@ -3490,13 +3490,13 @@ we.prototype.update = function(t, r, n, i, o, s, a) {
3490
3490
  );
3491
3491
  if (l === h)
3492
3492
  return this;
3493
- var g = this.count;
3493
+ var _ = this.count;
3494
3494
  if (!h)
3495
- g++;
3496
- else if (!l && (g--, g < jo))
3497
- return Lo(t, f, g, u);
3495
+ _++;
3496
+ else if (!l && (_--, _ < Fo))
3497
+ return Lo(t, f, _, u);
3498
3498
  var p = t && t === this.ownerID, d = ci(f, u, l, p);
3499
- return p ? (this.count = g, this.nodes = d, this) : new we(t, g, d);
3499
+ return p ? (this.count = _, this.nodes = d, this) : new we(t, _, d);
3500
3500
  };
3501
3501
  var Gt = function(t, r, n) {
3502
3502
  this.ownerID = t, this.keyHash = r, this.entries = n;
@@ -3519,8 +3519,8 @@ Gt.prototype.update = function(t, r, n, i, o, s, a) {
3519
3519
  return this;
3520
3520
  if (lt(a), (u || !l) && lt(s), u && h === 2)
3521
3521
  return new Ot(t, this.keyHash, c[f ^ 1]);
3522
- var g = t && t === this.ownerID, p = g ? c : _t(c);
3523
- return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), g ? (this.entries = p, this) : new Gt(t, this.keyHash, p);
3522
+ var _ = t && t === this.ownerID, p = _ ? c : gt(c);
3523
+ return l ? u ? f === h - 1 ? p.pop() : p[f] = p.pop() : p[f] = [i, o] : p.push([i, o]), _ ? (this.entries = p, this) : new Gt(t, this.keyHash, p);
3524
3524
  };
3525
3525
  var Ot = function(t, r, n) {
3526
3526
  this.ownerID = t, this.keyHash = r, this.entry = n;
@@ -3604,7 +3604,7 @@ function vt() {
3604
3604
  function dn(e, t, r) {
3605
3605
  var n, i;
3606
3606
  if (e._root) {
3607
- var o = gr(), s = gr();
3607
+ var o = _r(), s = _r();
3608
3608
  if (n = Wr(
3609
3609
  e._root,
3610
3610
  e.__ownerID,
@@ -3635,7 +3635,7 @@ function Wr(e, t, r, n, i, o, s, a) {
3635
3635
  a
3636
3636
  ) : o === A ? e : (lt(a), lt(s), new Ot(t, n, [i, o]));
3637
3637
  }
3638
- function gn(e) {
3638
+ function _n(e) {
3639
3639
  return e.constructor === Ot || e.constructor === Gt;
3640
3640
  }
3641
3641
  function Kr(e, t, r, n, i) {
@@ -3668,7 +3668,7 @@ function ui(e) {
3668
3668
  return e -= e >> 1 & 1431655765, e = (e & 858993459) + (e >> 2 & 858993459), e = e + (e >> 4) & 252645135, e += e >> 8, e += e >> 16, e & 127;
3669
3669
  }
3670
3670
  function ci(e, t, r, n) {
3671
- var i = n ? e : _t(e);
3671
+ var i = n ? e : gt(e);
3672
3672
  return i[t] = r, i;
3673
3673
  }
3674
3674
  function Co(e, t, r, n) {
@@ -3687,7 +3687,7 @@ function qo(e, t, r) {
3687
3687
  s === t && (o = 1), i[s] = e[s + o];
3688
3688
  return i;
3689
3689
  }
3690
- var No = at / 4, Po = at / 2, jo = at / 4;
3690
+ var No = at / 4, Po = at / 2, Fo = at / 4;
3691
3691
  function fi(e) {
3692
3692
  if (Un(e) && typeof e != "string")
3693
3693
  return e;
@@ -3702,7 +3702,7 @@ function be(e) {
3702
3702
  return JSON.stringify(e);
3703
3703
  }
3704
3704
  }
3705
- function Fo(e, t) {
3705
+ function jo(e, t) {
3706
3706
  return mt(e) ? (
3707
3707
  // @ts-expect-error key might be a number or symbol, which is not handled be Record key type
3708
3708
  e.has(t)
@@ -3712,7 +3712,7 @@ function Fo(e, t) {
3712
3712
  );
3713
3713
  }
3714
3714
  function hi(e, t, r) {
3715
- return mt(e) ? e.get(t, r) : Fo(e, t) ? (
3715
+ return mt(e) ? e.get(t, r) : jo(e, t) ? (
3716
3716
  // @ts-expect-error weird "get" here,
3717
3717
  typeof e.get == "function" ? (
3718
3718
  // @ts-expect-error weird "get" here,
@@ -3815,7 +3815,7 @@ var Zt = /* @__PURE__ */ (function(e) {
3815
3815
  }, t.prototype.get = function(n, i) {
3816
3816
  if (n = $t(this, n), n >= 0 && n < this.size) {
3817
3817
  n += this._origin;
3818
- var o = gi(this, n);
3818
+ var o = _i(this, n);
3819
3819
  return o && o.array[n & tt];
3820
3820
  }
3821
3821
  return i;
@@ -3880,13 +3880,13 @@ var Zt = /* @__PURE__ */ (function(e) {
3880
3880
  Ze(i, o)
3881
3881
  );
3882
3882
  }, t.prototype.__iterator = function(n, i) {
3883
- var o = i ? this.size : 0, s = _n(this, i);
3883
+ var o = i ? this.size : 0, s = gn(this, i);
3884
3884
  return new M(function() {
3885
3885
  var a = s();
3886
3886
  return a === ye ? et() : P(n, i ? --o : o++, a);
3887
3887
  });
3888
3888
  }, t.prototype.__iterate = function(n, i) {
3889
- for (var o = i ? this.size : 0, s = _n(this, i), a; (a = s()) !== ye && n(a, i ? --o : o++, this) !== !1; )
3889
+ for (var o = i ? this.size : 0, s = gn(this, i), a; (a = s()) !== ye && n(a, i ? --o : o++, this) !== !1; )
3890
3890
  ;
3891
3891
  return o;
3892
3892
  }, t.prototype.__ensureOwner = function(n) {
@@ -3908,8 +3908,8 @@ U[Ae] = U.remove;
3908
3908
  U.merge = U.concat;
3909
3909
  U.setIn = Pr;
3910
3910
  U.deleteIn = U.removeIn = Hr;
3911
- U.update = jr;
3912
- U.updateIn = Fr;
3911
+ U.update = Fr;
3912
+ U.updateIn = jr;
3913
3913
  U.mergeIn = Nr;
3914
3914
  U.mergeDeepIn = qr;
3915
3915
  U.withMutations = ze;
@@ -3961,23 +3961,23 @@ kt.prototype.removeAfter = function(t, r, n) {
3961
3961
  return a.array.splice(i + 1), o && (a.array[i] = o), a;
3962
3962
  };
3963
3963
  var ye = {};
3964
- function _n(e, t) {
3964
+ function gn(e, t) {
3965
3965
  var r = e._origin, n = e._capacity, i = Ee(n), o = e._tail;
3966
3966
  return s(e._root, e._level, 0);
3967
3967
  function s(c, f, h) {
3968
3968
  return f === 0 ? a(c, h) : u(c, f, h);
3969
3969
  }
3970
3970
  function a(c, f) {
3971
- var h = f === i ? o && o.array : c && c.array, l = f > r ? 0 : r - f, g = n - f;
3972
- return g > at && (g = at), function() {
3973
- if (l === g)
3971
+ var h = f === i ? o && o.array : c && c.array, l = f > r ? 0 : r - f, _ = n - f;
3972
+ return _ > at && (_ = at), function() {
3973
+ if (l === _)
3974
3974
  return ye;
3975
- var p = t ? --g : l++;
3975
+ var p = t ? --_ : l++;
3976
3976
  return h && h[p];
3977
3977
  };
3978
3978
  }
3979
3979
  function u(c, f, h) {
3980
- var l, g = c && c.array, p = h > r ? 0 : r - h >> f, d = (n - h >> f) + 1;
3980
+ var l, _ = c && c.array, p = h > r ? 0 : r - h >> f, d = (n - h >> f) + 1;
3981
3981
  return d > at && (d = at), function() {
3982
3982
  for (; ; ) {
3983
3983
  if (l) {
@@ -3990,7 +3990,7 @@ function _n(e, t) {
3990
3990
  return ye;
3991
3991
  var I = t ? --d : p++;
3992
3992
  l = s(
3993
- g && g[I],
3993
+ _ && _[I],
3994
3994
  f - T,
3995
3995
  h + (I << f)
3996
3996
  );
@@ -4013,7 +4013,7 @@ function Wo(e, t, r) {
4013
4013
  t < 0 ? Rt(s, t).set(0, r) : Rt(s, 0, t + 1).set(t, r);
4014
4014
  });
4015
4015
  t += e._origin;
4016
- var n = e._tail, i = e._root, o = gr();
4016
+ var n = e._tail, i = e._root, o = _r();
4017
4017
  return t >= Ee(e._capacity) ? n = mr(n, e.__ownerID, 0, t, r, o) : i = mr(
4018
4018
  i,
4019
4019
  e.__ownerID,
@@ -4044,7 +4044,7 @@ function mr(e, t, r, n, i, o) {
4044
4044
  function Xt(e, t) {
4045
4045
  return t && e && t === e.ownerID ? e : new kt(e ? e.array.slice() : [], t);
4046
4046
  }
4047
- function gi(e, t) {
4047
+ function _i(e, t) {
4048
4048
  if (t >= Ee(e._capacity))
4049
4049
  return e._tail;
4050
4050
  if (t < 1 << e._level + T) {
@@ -4071,14 +4071,14 @@ function Rt(e, t, r) {
4071
4071
  c && c.array.length ? [c] : [],
4072
4072
  n
4073
4073
  ), u += T;
4074
- var g = e._tail, p = l < h ? gi(e, a - 1) : l > h ? new kt([], n) : g;
4075
- if (g && l > h && s < o && g.array.length) {
4074
+ var _ = e._tail, p = l < h ? _i(e, a - 1) : l > h ? new kt([], n) : _;
4075
+ if (_ && l > h && s < o && _.array.length) {
4076
4076
  c = Xt(c, n);
4077
4077
  for (var d = c, S = u; S > T; S -= T) {
4078
4078
  var I = h >>> S & tt;
4079
4079
  d = d.array[I] = Xt(d.array[I], n);
4080
4080
  }
4081
- d.array[h >>> T & tt] = g;
4081
+ d.array[h >>> T & tt] = _;
4082
4082
  }
4083
4083
  if (a < o && (p = p && p.removeAfter(n, 0, a)), s >= l)
4084
4084
  s -= l, a -= l, u = T, c = null, p = p && p.removeBefore(n, 0, s);
@@ -4100,12 +4100,12 @@ function Rt(e, t, r) {
4100
4100
  function Ee(e) {
4101
4101
  return e < at ? 0 : e - 1 >>> T << T;
4102
4102
  }
4103
- function _i(e) {
4103
+ function gi(e) {
4104
4104
  return xr(e) && yt(e);
4105
4105
  }
4106
4106
  var Et = /* @__PURE__ */ (function(e) {
4107
4107
  function t(r) {
4108
- return r == null ? pe() : _i(r) ? r : pe().withMutations(function(n) {
4108
+ return r == null ? pe() : gi(r) ? r : pe().withMutations(function(n) {
4109
4109
  var i = dt(r);
4110
4110
  st(i.size), i.forEach(function(o, s) {
4111
4111
  return n.set(s, o);
@@ -4142,7 +4142,7 @@ var Et = /* @__PURE__ */ (function(e) {
4142
4142
  return n ? Vr(i, o, n, this.__hash) : this.size === 0 ? pe() : (this.__ownerID = n, this.__altered = !1, this._map = i, this._list = o, this);
4143
4143
  }, t;
4144
4144
  })(Lt);
4145
- Et.isOrderedMap = _i;
4145
+ Et.isOrderedMap = gi;
4146
4146
  Et.prototype[zt] = !0;
4147
4147
  Et.prototype[Ae] = Et.prototype.remove;
4148
4148
  function Vr(e, t, r, n) {
@@ -4178,7 +4178,7 @@ function Sr(e) {
4178
4178
  }
4179
4179
  var Yr = /* @__PURE__ */ (function(e) {
4180
4180
  function t(r) {
4181
- return r == null ? je() : Sr(r) ? r : je().pushAll(r);
4181
+ return r == null ? Fe() : Sr(r) ? r : Fe().pushAll(r);
4182
4182
  }
4183
4183
  return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.of = function() {
4184
4184
  return this(arguments);
@@ -4221,7 +4221,7 @@ var Yr = /* @__PURE__ */ (function(e) {
4221
4221
  }, t.prototype.pop = function() {
4222
4222
  return this.slice(1);
4223
4223
  }, t.prototype.clear = function() {
4224
- return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : je();
4224
+ return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : Fe();
4225
4225
  }, t.prototype.slice = function(n, i) {
4226
4226
  if (Ge(n, i, this.size))
4227
4227
  return this;
@@ -4232,7 +4232,7 @@ var Yr = /* @__PURE__ */ (function(e) {
4232
4232
  u = u.next;
4233
4233
  return this.__ownerID ? (this.size = a, this._head = u, this.__hash = void 0, this.__altered = !0, this) : de(a, u);
4234
4234
  }, t.prototype.__ensureOwner = function(n) {
4235
- return n === this.__ownerID ? this : n ? de(this.size, this._head, n, this.__hash) : this.size === 0 ? je() : (this.__ownerID = n, this.__altered = !1, this);
4235
+ return n === this.__ownerID ? this : n ? de(this.size, this._head, n, this.__hash) : this.size === 0 ? Fe() : (this.__ownerID = n, this.__altered = !1, this);
4236
4236
  }, t.prototype.__iterate = function(n, i) {
4237
4237
  var o = this;
4238
4238
  if (i)
@@ -4279,7 +4279,7 @@ function de(e, t, r, n) {
4279
4279
  return i.size = e, i._head = t, i.__ownerID = r, i.__hash = n, i.__altered = !1, i;
4280
4280
  }
4281
4281
  var mn;
4282
- function je() {
4282
+ function Fe() {
4283
4283
  return mn || (mn = de(0));
4284
4284
  }
4285
4285
  function Sn(e, t, r, n, i, o) {
@@ -4410,14 +4410,14 @@ var Vo = /* @__PURE__ */ (function(e) {
4410
4410
  }, t.prototype.equals = function(n) {
4411
4411
  return n instanceof t ? this._start === n._start && this._end === n._end && this._step === n._step : yi(this, n);
4412
4412
  }, t;
4413
- })(gt), hr, mi = "@@__IMMUTABLE_SET__@@";
4413
+ })(_t), hr, mi = "@@__IMMUTABLE_SET__@@";
4414
4414
  function Jr(e) {
4415
4415
  return !!(e && // @ts-expect-error: maybeSet is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSet === 'object' && MAYBE_SET_SYMBOL in maybeSet`
4416
4416
  e[mi]);
4417
4417
  }
4418
4418
  var tr = /* @__PURE__ */ (function(e) {
4419
4419
  function t(r) {
4420
- return r == null ? ge() : Jr(r) && !yt(r) ? r : ge().withMutations(function(n) {
4420
+ return r == null ? _e() : Jr(r) && !yt(r) ? r : _e().withMutations(function(n) {
4421
4421
  var i = e(r);
4422
4422
  st(i.size), i.forEach(function(o) {
4423
4423
  return n.add(o);
@@ -4429,21 +4429,21 @@ var tr = /* @__PURE__ */ (function(e) {
4429
4429
  }, t.fromKeys = function(n) {
4430
4430
  return this(dt(n).keySeq());
4431
4431
  }, t.intersect = function(n) {
4432
- return n = Z(n).toArray(), n.length ? Y.intersect.apply(t(n.pop()), n) : ge();
4432
+ return n = Z(n).toArray(), n.length ? Y.intersect.apply(t(n.pop()), n) : _e();
4433
4433
  }, t.union = function(n) {
4434
- return n = Z(n).toArray(), n.length ? Y.union.apply(t(n.pop()), n) : ge();
4434
+ return n = Z(n).toArray(), n.length ? Y.union.apply(t(n.pop()), n) : _e();
4435
4435
  }, t.prototype.toString = function() {
4436
4436
  return this.__toString("Set {", "}");
4437
4437
  }, t.prototype.has = function(n) {
4438
4438
  return this._map.has(n);
4439
4439
  }, t.prototype.add = function(n) {
4440
- return Fe(this, this._map.set(n, n));
4440
+ return je(this, this._map.set(n, n));
4441
4441
  }, t.prototype.remove = function(n) {
4442
- return Fe(this, this._map.remove(n));
4442
+ return je(this, this._map.remove(n));
4443
4443
  }, t.prototype.clear = function() {
4444
- return Fe(this, this._map.clear());
4444
+ return je(this, this._map.clear());
4445
4445
  }, t.prototype.map = function(n, i) {
4446
- var o = this, s = !1, a = Fe(
4446
+ var o = this, s = !1, a = je(
4447
4447
  this,
4448
4448
  this._map.mapEntries(function(u) {
4449
4449
  var c = u[1], f = n.call(i, c, c, o);
@@ -4529,9 +4529,9 @@ Y["@@transducer/step"] = function(e, t) {
4529
4529
  Y["@@transducer/result"] = function(e) {
4530
4530
  return e.asImmutable();
4531
4531
  };
4532
- Y.__empty = ge;
4532
+ Y.__empty = _e;
4533
4533
  Y.__make = Si;
4534
- function Fe(e, t) {
4534
+ function je(e, t) {
4535
4535
  return e.__ownerID ? (e.size = t.size, e._map = t, e) : t === e._map ? e : t.size === 0 ? e.__empty() : e.__make(t);
4536
4536
  }
4537
4537
  function Si(e, t) {
@@ -4539,7 +4539,7 @@ function Si(e, t) {
4539
4539
  return r.size = e ? e.size : 0, r._map = e, r.__ownerID = t, r;
4540
4540
  }
4541
4541
  var On;
4542
- function ge() {
4542
+ function _e() {
4543
4543
  return On || (On = Si(vt()));
4544
4544
  }
4545
4545
  function wi(e, t, r) {
@@ -4603,14 +4603,14 @@ function Zo(e, t) {
4603
4603
  function En(e, t) {
4604
4604
  return e ^ t + 2654435769 + (e << 6) + (e >> 2) | 0;
4605
4605
  }
4606
- function Ft(e, t) {
4606
+ function jt(e, t) {
4607
4607
  var r = function(n) {
4608
4608
  e.prototype[n] = t[n];
4609
4609
  };
4610
4610
  return Object.keys(t).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(t).forEach(r), e;
4611
4611
  }
4612
4612
  Z.Iterator = M;
4613
- Ft(Z, {
4613
+ jt(Z, {
4614
4614
  // ### Conversion to other types
4615
4615
  toArray: function() {
4616
4616
  st(this.size);
@@ -4919,7 +4919,7 @@ X.inspect = X.toSource = function() {
4919
4919
  };
4920
4920
  X.chain = X.flatMap;
4921
4921
  X.contains = X.includes;
4922
- Ft(dt, {
4922
+ jt(dt, {
4923
4923
  // ### More sequential methods
4924
4924
  flip: function() {
4925
4925
  return z(this, Jn(this));
@@ -4950,7 +4950,7 @@ Te.toJSON = Oi;
4950
4950
  Te.__toStringMapper = function(e, t) {
4951
4951
  return be(t) + ": " + be(e);
4952
4952
  };
4953
- Ft(Pt, {
4953
+ jt(Pt, {
4954
4954
  // ### Conversion to other types
4955
4955
  toKeyedSeq: function() {
4956
4956
  return new Qe(this, !1);
@@ -4985,7 +4985,7 @@ Ft(Pt, {
4985
4985
  var i = this.slice(0, t);
4986
4986
  return z(
4987
4987
  this,
4988
- n === 1 ? i : i.concat(_t(arguments, 2), this.slice(t + r))
4988
+ n === 1 ? i : i.concat(gt(arguments, 2), this.slice(t + r))
4989
4989
  );
4990
4990
  },
4991
4991
  // ### More collection methods
@@ -5011,7 +5011,7 @@ Ft(Pt, {
5011
5011
  return z(this, Ro(this, t));
5012
5012
  },
5013
5013
  interleave: function() {
5014
- var t = [this].concat(_t(arguments)), r = Pe(this.toSeq(), gt.of, t), n = r.flatten(!0);
5014
+ var t = [this].concat(gt(arguments)), r = Pe(this.toSeq(), _t.of, t), n = r.flatten(!0);
5015
5015
  return r.size && (n.size = r.size * t.length), z(this, n);
5016
5016
  },
5017
5017
  keySeq: function() {
@@ -5024,22 +5024,22 @@ Ft(Pt, {
5024
5024
  return z(this, Xn(this, t, r, !1));
5025
5025
  },
5026
5026
  zip: function() {
5027
- var t = [this].concat(_t(arguments));
5027
+ var t = [this].concat(gt(arguments));
5028
5028
  return z(this, Pe(this, Rn, t));
5029
5029
  },
5030
5030
  zipAll: function() {
5031
- var t = [this].concat(_t(arguments));
5031
+ var t = [this].concat(gt(arguments));
5032
5032
  return z(this, Pe(this, Rn, t, !0));
5033
5033
  },
5034
5034
  zipWith: function(t) {
5035
- var r = _t(arguments);
5035
+ var r = gt(arguments);
5036
5036
  return r[0] = this, z(this, Pe(this, t, r));
5037
5037
  }
5038
5038
  });
5039
5039
  var se = Pt.prototype;
5040
5040
  se[We] = !0;
5041
5041
  se[zt] = !0;
5042
- Ft(ee, {
5042
+ jt(ee, {
5043
5043
  // ### ES6 Collection methods (ES6 Array and Map)
5044
5044
  get: function(t, r) {
5045
5045
  return this.has(t) ? t : r;
@@ -5056,11 +5056,11 @@ var Qt = ee.prototype;
5056
5056
  Qt.has = X.includes;
5057
5057
  Qt.contains = Qt.includes;
5058
5058
  Qt.keys = Qt.values;
5059
- Ft(Dt, Te);
5060
- Ft(gt, se);
5061
- Ft(ie, Qt);
5059
+ jt(Dt, Te);
5060
+ jt(_t, se);
5061
+ jt(ie, Qt);
5062
5062
  function Rn() {
5063
- return _t(arguments);
5063
+ return gt(arguments);
5064
5064
  }
5065
5065
  function Ei(e) {
5066
5066
  return Jr(e) && yt(e);
@@ -5099,7 +5099,7 @@ function wr() {
5099
5099
  return In || (In = Ri(pe()));
5100
5100
  }
5101
5101
  function Xo(e) {
5102
- if (jt(e))
5102
+ if (Ft(e))
5103
5103
  throw new Error(
5104
5104
  "Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
5105
5105
  );
@@ -5132,9 +5132,9 @@ var V = function(t, r) {
5132
5132
  ) : Qo(o, l);
5133
5133
  }
5134
5134
  }
5135
- return this.__ownerID = void 0, this._values = Zt().withMutations(function(g) {
5136
- g.setSize(u._keys.length), dt(a).forEach(function(p, d) {
5137
- g.set(u._indices[d], p === u._defaultValues[d] ? void 0 : p);
5135
+ return this.__ownerID = void 0, this._values = Zt().withMutations(function(_) {
5136
+ _.setSize(u._keys.length), dt(a).forEach(function(p, d) {
5137
+ _.set(u._indices[d], p === u._defaultValues[d] ? void 0 : p);
5138
5138
  });
5139
5139
  }), this;
5140
5140
  }, o = i.prototype = Object.create(C);
@@ -5146,7 +5146,7 @@ V.prototype.toString = function() {
5146
5146
  return t + " }";
5147
5147
  };
5148
5148
  V.prototype.equals = function(t) {
5149
- return this === t || jt(t) && te(this).equals(te(t));
5149
+ return this === t || Ft(t) && te(this).equals(te(t));
5150
5150
  };
5151
5151
  V.prototype.hashCode = function() {
5152
5152
  return te(this).hashCode();
@@ -5202,7 +5202,7 @@ V.prototype.__ensureOwner = function(t) {
5202
5202
  var r = this._values.__ensureOwner(t);
5203
5203
  return t ? Gr(this, r, t) : (this.__ownerID = t, this._values = r, this);
5204
5204
  };
5205
- V.isRecord = jt;
5205
+ V.isRecord = Ft;
5206
5206
  V.getDescriptiveName = Zr;
5207
5207
  var C = V.prototype;
5208
5208
  C[Bn] = !0;
@@ -5217,8 +5217,8 @@ C.mergeDeep = oi;
5217
5217
  C.mergeDeepWith = si;
5218
5218
  C.mergeDeepIn = qr;
5219
5219
  C.setIn = Pr;
5220
- C.update = jr;
5221
- C.updateIn = Fr;
5220
+ C.update = Fr;
5221
+ C.updateIn = jr;
5222
5222
  C.withMutations = ze;
5223
5223
  C.asMutable = $e;
5224
5224
  C.asImmutable = Me;
@@ -5580,7 +5580,7 @@ class me {
5580
5580
  }
5581
5581
  const h = this.resolveSchema(f, n), {
5582
5582
  fieldtype: l,
5583
- options: g,
5583
+ options: _,
5584
5584
  cardinality: p,
5585
5585
  ...d
5586
5586
  } = u;
@@ -5653,17 +5653,11 @@ class me {
5653
5653
  ...t,
5654
5654
  fieldname: t.fieldname,
5655
5655
  component: n || t.component || "ATable",
5656
- columns: t.columns,
5656
+ kind: "table",
5657
+ schema: r,
5657
5658
  config: t.config
5658
5659
  };
5659
- return i.columns || (i.columns = r.filter((o) => "fieldtype" in o).map((o) => ({
5660
- name: o.fieldname,
5661
- label: "label" in o && o.label || o.fieldname,
5662
- fieldtype: "fieldtype" in o ? o.fieldtype : "Data",
5663
- align: "align" in o ? o.align : "left",
5664
- edit: "edit" in o ? o.edit : !0,
5665
- width: "width" in o && o.width || "20ch"
5666
- }))), i.config || (i.config = { view: "list" }), i;
5660
+ return i.config || (i.config = { view: "list" }), i;
5667
5661
  }
5668
5662
  /**
5669
5663
  * Initialize a new record with default values based on a schema.
@@ -5701,7 +5695,7 @@ class me {
5701
5695
  r[n.fieldname] = [];
5702
5696
  return;
5703
5697
  }
5704
- if ("columns" in n) {
5698
+ if ("kind" in n && n.kind === "table") {
5705
5699
  r[n.fieldname] = [];
5706
5700
  return;
5707
5701
  }
@@ -5830,7 +5824,7 @@ async function ts(e, t, r) {
5830
5824
  } catch {
5831
5825
  }
5832
5826
  }
5833
- const gs = {
5827
+ const _s = {
5834
5828
  install: (e, t) => {
5835
5829
  const r = e.config.globalProperties.$router, n = t?.router, i = r || n;
5836
5830
  !r && n && e.use(n);
@@ -6129,12 +6123,12 @@ function rs(e, t) {
6129
6123
  ...t
6130
6124
  });
6131
6125
  }
6132
- function _s(e, t, r, n, i) {
6126
+ function gs(e, t, r, n, i) {
6133
6127
  return rs(r).validate(e, t, n, i);
6134
6128
  }
6135
6129
  export {
6136
6130
  Ii as Doctype,
6137
- _e as FieldTriggerEngine,
6131
+ ge as FieldTriggerEngine,
6138
6132
  Kt as HST,
6139
6133
  me as Registry,
6140
6134
  es as SchemaValidator,
@@ -6142,7 +6136,7 @@ export {
6142
6136
  B as ValidationSeverity,
6143
6137
  ro as createHST,
6144
6138
  rs as createValidator,
6145
- gs as default,
6139
+ _s as default,
6146
6140
  bt as getGlobalTriggerEngine,
6147
6141
  fs as getStonecrop,
6148
6142
  cs as markOperationIrreversible,
@@ -6155,7 +6149,7 @@ export {
6155
6149
  Ie as useOperationLogStore,
6156
6150
  ls as useStonecrop,
6157
6151
  ps as useUndoRedoShortcuts,
6158
- _s as validateSchema,
6152
+ gs as validateSchema,
6159
6153
  ds as withBatch
6160
6154
  };
6161
6155
  //# sourceMappingURL=stonecrop.js.map