@stonecrop/desktop 0.11.7 → 0.11.9

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/desktop.js CHANGED
@@ -1,14 +1,12 @@
1
- import { defineComponent as Ve, ref as z, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as te, createElementVNode as $, Fragment as ne, renderList as Ce, toDisplayString as At, createCommentVNode as ee, withDirectives as sr, vShow as Br, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as Ne, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Bt, hasInjectionContext as Kr, inject as je, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Le, toValue as St, readonly as gr, customRef as ln, unref as nr, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
2
- const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Bi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Ve({
1
+ import { defineComponent as Le, ref as C, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as te, createElementVNode as $, Fragment as ne, renderList as Ne, toDisplayString as At, createCommentVNode as ee, withDirectives as sr, vShow as Br, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as je, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Bt, hasInjectionContext as Kr, inject as xe, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Ue, toValue as St, readonly as gr, customRef as ln, unref as or, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
2
+ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Bi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Le({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: { default: () => [] }
6
6
  },
7
7
  emits: ["actionClick"],
8
8
  setup(t, { emit: e }) {
9
- const r = e, n = z({}), o = z(!0);
10
- z(-1), z(!1), z(!1);
11
- const i = z([]);
9
+ const r = e, n = C({}), o = C(!0), i = C([]);
12
10
  yr(() => {
13
11
  s();
14
12
  });
@@ -33,7 +31,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
33
31
  }, "×", 2)
34
32
  ]),
35
33
  f[0] || (f[0] = $("div", { style: { "margin-right": "30px" } }, null, -1)),
36
- (M(!0), U(ne, null, Ce(t.elements, (h, d) => (M(), U("div", {
34
+ (M(!0), U(ne, null, Ne(t.elements, (h, d) => (M(), U("div", {
37
35
  key: h.label,
38
36
  class: "action-element"
39
37
  }, [
@@ -58,13 +56,13 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
58
56
  ]),
59
57
  sr($("div", Fi, [
60
58
  $("div", Wi, [
61
- (M(!0), U(ne, null, Ce(h.actions, (y, m) => (M(), U("div", {
59
+ (M(!0), U(ne, null, Ne(h.actions, (y) => (M(), U("div", {
62
60
  key: y.label
63
61
  }, [
64
62
  y.action != null ? (M(), U("button", {
65
63
  key: 0,
66
64
  class: "dropdown-item",
67
- onClick: (D) => c(y.action, y.label)
65
+ onClick: (m) => c(y.action, y.label)
68
66
  }, At(y.label), 9, Bi)) : y.link != null ? (M(), U("a", {
69
67
  key: 1,
70
68
  href: y.link
@@ -85,13 +83,13 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
85
83
  for (const [n, o] of e)
86
84
  r[n] = o;
87
85
  return r;
88
- }, zo = /* @__PURE__ */ Ao(Ji, [["__scopeId", "data-v-d52e090d"]]), Gi = { class: "command-palette-header" }, Qi = ["placeholder"], Yi = {
86
+ }, zo = /* @__PURE__ */ Ao(Ji, [["__scopeId", "data-v-3d76328a"]]), Gi = { class: "command-palette-header" }, Qi = ["placeholder"], Yi = {
89
87
  key: 0,
90
88
  class: "command-palette-results"
91
89
  }, Xi = ["onClick", "onMouseover"], Zi = { class: "result-title" }, ts = { class: "result-content" }, es = {
92
90
  key: 1,
93
91
  class: "command-palette-no-results"
94
- }, Ro = /* @__PURE__ */ Ve({
92
+ }, Ro = /* @__PURE__ */ Le({
95
93
  __name: "CommandPalette",
96
94
  props: {
97
95
  search: { type: Function },
@@ -101,7 +99,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
101
99
  },
102
100
  emits: ["select", "close"],
103
101
  setup(t, { emit: e }) {
104
- const r = e, n = z(""), o = z(0), i = So("input"), s = N(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
102
+ const r = e, n = C(""), o = C(0), i = So("input"), s = N(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
105
103
  ot(
106
104
  () => t.isOpen,
107
105
  async (l) => {
@@ -132,7 +130,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
132
130
  };
133
131
  return (l, f) => (M(), ar(zi, { to: "body" }, [
134
132
  re(Ri, { name: "fade" }, {
135
- default: Ne(() => [
133
+ default: je(() => [
136
134
  t.isOpen ? (M(), U("div", {
137
135
  key: 0,
138
136
  class: "command-palette-overlay",
@@ -157,7 +155,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
157
155
  ])
158
156
  ]),
159
157
  s.value.length ? (M(), U("div", Yi, [
160
- (M(!0), U(ne, null, Ce(s.value, (h, d) => (M(), U("div", {
158
+ (M(!0), U(ne, null, Ne(s.value, (h, d) => (M(), U("div", {
161
159
  key: d,
162
160
  class: te(["command-palette-result", { selected: d === o.value }]),
163
161
  onClick: (y) => c(h),
@@ -251,7 +249,7 @@ function Kn(t, e, r, n) {
251
249
  !a && (process.env.NODE_ENV === "production" || !n) && (r.state.value[t] = o ? o() : {});
252
250
  const l = process.env.NODE_ENV !== "production" && n ? (
253
251
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
254
- Vn(z(o ? o() : {}).value)
252
+ Vn(C(o ? o() : {}).value)
255
253
  ) : Vn(r.state.value[t]);
256
254
  return wt(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] = Ie(N(() => {
257
255
  cr(r);
@@ -273,8 +271,8 @@ function Qr(t, e, r = {}, n, o, i) {
273
271
  let c, l, f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), d;
274
272
  const y = n.state.value[t];
275
273
  !i && !y && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
276
- const m = z({});
277
- let D;
274
+ const m = C({});
275
+ let A;
278
276
  function T(S) {
279
277
  let b;
280
278
  c = l = !1, process.env.NODE_ENV !== "production" && (d = []), typeof S == "function" ? (S(n.state.value[t]), b = {
@@ -287,15 +285,15 @@ function Qr(t, e, r = {}, n, o, i) {
287
285
  storeId: t,
288
286
  events: d
289
287
  });
290
- const R = D = /* @__PURE__ */ Symbol();
288
+ const z = A = /* @__PURE__ */ Symbol();
291
289
  oe().then(() => {
292
- D === R && (c = !0);
290
+ A === z && (c = !0);
293
291
  }), l = !0, Yt(f, b, n.state.value[t]);
294
292
  }
295
293
  const rt = i ? function() {
296
- const { state: b } = r, R = b ? b() : {};
294
+ const { state: b } = r, z = b ? b() : {};
297
295
  this.$patch((J) => {
298
- wt(J, R);
296
+ wt(J, z);
299
297
  });
300
298
  } : (
301
299
  /* istanbul ignore next */
@@ -309,7 +307,7 @@ function Qr(t, e, r = {}, n, o, i) {
309
307
  const Ot = (S, b = "") => {
310
308
  if (Wn in S)
311
309
  return S[Cr] = b, S;
312
- const R = function() {
310
+ const z = function() {
313
311
  cr(n);
314
312
  const J = Array.from(arguments), k = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
315
313
  function G(_) {
@@ -320,7 +318,7 @@ function Qr(t, e, r = {}, n, o, i) {
320
318
  }
321
319
  Yt(h, {
322
320
  args: J,
323
- name: R[Cr],
321
+ name: z[Cr],
324
322
  store: O,
325
323
  after: G,
326
324
  onError: xt
@@ -333,7 +331,7 @@ function Qr(t, e, r = {}, n, o, i) {
333
331
  }
334
332
  return st instanceof Promise ? st.then((_) => (Yt(k, _), _)).catch((_) => (Yt(P, _), Promise.reject(_))) : (Yt(k, st), st);
335
333
  };
336
- return R[Wn] = !0, R[Cr] = b, R;
334
+ return z[Wn] = !0, z[Cr] = b, z;
337
335
  }, X = /* @__PURE__ */ Ie({
338
336
  actions: {},
339
337
  getters: {},
@@ -347,14 +345,14 @@ function Qr(t, e, r = {}, n, o, i) {
347
345
  $patch: T,
348
346
  $reset: rt,
349
347
  $subscribe(S, b = {}) {
350
- const R = Fn(f, S, b.detached, () => J()), J = s.run(() => ot(() => n.state.value[t], (k) => {
348
+ const z = Fn(f, S, b.detached, () => J()), J = s.run(() => ot(() => n.state.value[t], (k) => {
351
349
  (b.flush === "sync" ? l : c) && S({
352
350
  storeId: t,
353
351
  type: De.direct,
354
352
  events: d
355
353
  }, k);
356
354
  }, wt({}, u, b)));
357
- return R;
355
+ return z;
358
356
  },
359
357
  $dispose: lt
360
358
  }, O = Do(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xt ? wt(
@@ -374,8 +372,8 @@ function Qr(t, e, r = {}, n, o, i) {
374
372
  if (ie(b) && !Bn(b) || _r(b))
375
373
  process.env.NODE_ENV !== "production" && o ? m.value[S] = Bt(q, S) : i || (y && os(b) && (ie(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && X.state.push(S);
376
374
  else if (typeof b == "function") {
377
- const R = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
378
- q[S] = R, process.env.NODE_ENV !== "production" && (X.actions[S] = b), a.actions[S] = b;
375
+ const z = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
376
+ q[S] = z, process.env.NODE_ENV !== "production" && (X.actions[S] = b), a.actions[S] = b;
379
377
  } else process.env.NODE_ENV !== "production" && Bn(b) && (X.getters[S] = i ? (
380
378
  // @ts-expect-error
381
379
  r.getters[S]
@@ -394,8 +392,8 @@ function Qr(t, e, r = {}, n, o, i) {
394
392
  }), process.env.NODE_ENV !== "production" && (O._hotUpdate = Ie((S) => {
395
393
  O._hotUpdating = !0, S._hmrPayload.state.forEach((b) => {
396
394
  if (b in O.$state) {
397
- const R = S.$state[b], J = O.$state[b];
398
- typeof R == "object" && Kt(R) && Kt(J) ? Co(R, J) : S.$state[b] = J;
395
+ const z = S.$state[b], J = O.$state[b];
396
+ typeof z == "object" && Kt(z) && Kt(J) ? Co(z, J) : S.$state[b] = J;
399
397
  }
400
398
  O[b] = Bt(S.$state, b);
401
399
  }), Object.keys(O.$state).forEach((b) => {
@@ -404,15 +402,15 @@ function Qr(t, e, r = {}, n, o, i) {
404
402
  c = !0;
405
403
  });
406
404
  for (const b in S._hmrPayload.actions) {
407
- const R = S[b];
405
+ const z = S[b];
408
406
  O[b] = //
409
- Ot(R, b);
407
+ Ot(z, b);
410
408
  }
411
409
  for (const b in S._hmrPayload.getters) {
412
- const R = S._hmrPayload.getters[b], J = i ? (
410
+ const z = S._hmrPayload.getters[b], J = i ? (
413
411
  // special handling of options api
414
- N(() => (cr(n), R.call(O, O)))
415
- ) : R;
412
+ N(() => (cr(n), z.call(O, O)))
413
+ ) : z;
416
414
  O[b] = //
417
415
  J;
418
416
  }
@@ -440,7 +438,7 @@ function Qr(t, e, r = {}, n, o, i) {
440
438
  pinia: n,
441
439
  options: a
442
440
  }));
443
- Object.keys(b || {}).forEach((R) => O._customProperties.add(R)), wt(O, b);
441
+ Object.keys(b || {}).forEach((z) => O._customProperties.add(z)), wt(O, b);
444
442
  } else
445
443
  wt(O, s.run(() => S({
446
444
  store: O,
@@ -461,7 +459,7 @@ function is(t, e, r) {
461
459
  const u = Kr();
462
460
  if (s = // in test mode, ignore the argument provided as we can always retrieve a
463
461
  // pinia instance with getActivePinia()
464
- (process.env.NODE_ENV === "test" && Wt && Wt._testing ? null : s) || (u ? je(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Wt)
462
+ (process.env.NODE_ENV === "test" && Wt && Wt._testing ? null : s) || (u ? xe(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Wt)
465
463
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
466
464
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
467
465
  This will fail in production.`);
@@ -508,7 +506,7 @@ function fs(...t) {
508
506
  return typeof e == "function" ? gr(ln(() => ({
509
507
  get: e,
510
508
  set: ls
511
- }))) : z(e);
509
+ }))) : C(e);
512
510
  }
513
511
  function hs(t, e) {
514
512
  function r(...n) {
@@ -588,7 +586,7 @@ function Hn(...t) {
588
586
  return [
589
587
  (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ms(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
590
588
  Nr(St(r.value ? t[1] : t[0])),
591
- Nr(nr(r.value ? t[2] : t[1])),
589
+ Nr(or(r.value ? t[2] : t[1])),
592
590
  St(r.value ? t[3] : t[2])
593
591
  ];
594
592
  }, ([n, o, i, s], a, u) => {
@@ -599,9 +597,9 @@ function Hn(...t) {
599
597
  });
600
598
  }, { flush: "post" });
601
599
  }
602
- const Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
600
+ const Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xe = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
603
601
  function bs() {
604
- return Ye in Qe || (Qe[Ye] = Qe[Ye] || {}), Qe[Ye];
602
+ return Xe in Ye || (Ye[Xe] = Ye[Xe] || {}), Ye[Xe];
605
603
  }
606
604
  function Ss(t, e) {
607
605
  return ws[t] || e;
@@ -647,7 +645,7 @@ function Os(t, e, r, n = {}) {
647
645
  var o;
648
646
  const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = lr, eventFilter: h, onError: d = (k) => {
649
647
  console.error(k);
650
- }, initOnMounted: y } = n, m = (l ? Le : z)(e), D = N(() => St(t));
648
+ }, initOnMounted: y } = n, m = (l ? Ue : C)(e), A = N(() => St(t));
651
649
  if (!r) try {
652
650
  r = Ss("getDefaultStorage", () => lr?.localStorage)();
653
651
  } catch (k) {
@@ -659,20 +657,20 @@ function Os(t, e, r, n = {}) {
659
657
  deep: s,
660
658
  eventFilter: h
661
659
  });
662
- ot(D, () => R(), { flush: i });
660
+ ot(A, () => z(), { flush: i });
663
661
  let mt = !1;
664
662
  const O = (k) => {
665
- y && !mt || R(k);
663
+ y && !mt || z(k);
666
664
  }, jt = (k) => {
667
665
  y && !mt || J(k);
668
666
  };
669
667
  f && a && (r instanceof Storage ? Hn(f, "storage", O, { passive: !0 }) : Hn(f, Jn, jt)), y ? _s(() => {
670
- mt = !0, R();
671
- }) : R();
668
+ mt = !0, z();
669
+ }) : z();
672
670
  function q(k, P) {
673
671
  if (f) {
674
672
  const G = {
675
- key: D.value,
673
+ key: A.value,
676
674
  oldValue: k,
677
675
  newValue: P,
678
676
  storageArea: r
@@ -682,21 +680,21 @@ function Os(t, e, r, n = {}) {
682
680
  }
683
681
  function S(k) {
684
682
  try {
685
- const P = r.getItem(D.value);
683
+ const P = r.getItem(A.value);
686
684
  if (k == null)
687
- q(P, null), r.removeItem(D.value);
685
+ q(P, null), r.removeItem(A.value);
688
686
  else {
689
687
  const G = lt.write(k);
690
- P !== G && (r.setItem(D.value, G), q(P, G));
688
+ P !== G && (r.setItem(A.value, G), q(P, G));
691
689
  }
692
690
  } catch (P) {
693
691
  d(P);
694
692
  }
695
693
  }
696
694
  function b(k) {
697
- const P = k ? k.newValue : r.getItem(D.value);
695
+ const P = k ? k.newValue : r.getItem(A.value);
698
696
  if (P == null)
699
- return u && T != null && r.setItem(D.value, lt.write(T)), T;
697
+ return u && T != null && r.setItem(A.value, lt.write(T)), T;
700
698
  if (!k && c) {
701
699
  const G = lt.read(P);
702
700
  return typeof c == "function" ? c(G, T) : rt === "object" && !Array.isArray(G) ? {
@@ -705,13 +703,13 @@ function Os(t, e, r, n = {}) {
705
703
  } : G;
706
704
  } else return typeof P != "string" ? P : lt.read(P);
707
705
  }
708
- function R(k) {
706
+ function z(k) {
709
707
  if (!(k && k.storageArea !== r)) {
710
708
  if (k && k.key == null) {
711
709
  m.value = T;
712
710
  return;
713
711
  }
714
- if (!(k && k.key !== D.value)) {
712
+ if (!(k && k.key !== A.value)) {
715
713
  Ot();
716
714
  try {
717
715
  const P = lt.write(m.value);
@@ -725,7 +723,7 @@ function Os(t, e, r, n = {}) {
725
723
  }
726
724
  }
727
725
  function J(k) {
728
- R(k.detail);
726
+ z(k.detail);
729
727
  }
730
728
  return m;
731
729
  }
@@ -736,7 +734,7 @@ function ks(t, e, r = {}) {
736
734
  function jr() {
737
735
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
738
736
  }
739
- function Xe(t) {
737
+ function Ze(t) {
740
738
  const e = {
741
739
  type: t.type,
742
740
  clientId: t.clientId,
@@ -765,24 +763,26 @@ function Ds(t) {
765
763
  }))), e;
766
764
  }
767
765
  const xo = /* @__PURE__ */ is("hst-operation-log", () => {
768
- const t = z({
766
+ const t = C({
769
767
  maxOperations: 100,
770
768
  enableCrossTabSync: !0,
771
769
  autoSyncInterval: 3e4,
772
770
  enablePersistence: !1,
773
771
  persistenceKeyPrefix: "stonecrop-ops"
774
- }), e = z([]), r = z(-1), n = z(jr()), o = z(!1), i = z([]), s = N(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), a = N(() => r.value < e.value.length - 1), u = N(() => {
772
+ }), e = C([]), r = C(-1), n = C(jr()), o = C(!1), i = C([]), s = N(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), a = N(() => r.value < e.value.length - 1), u = N(() => {
775
773
  let _ = 0;
776
774
  for (let I = r.value; I >= 0 && e.value[I]?.reversible; I--)
777
775
  _++;
778
776
  return _;
779
- }), c = N(() => e.value.length - 1 - r.value), l = N(() => ({
780
- canUndo: s.value,
781
- canRedo: a.value,
782
- undoCount: u.value,
783
- redoCount: c.value,
784
- currentIndex: r.value
785
- }));
777
+ }), c = N(() => e.value.length - 1 - r.value), l = N(
778
+ () => ({
779
+ canUndo: s.value,
780
+ canRedo: a.value,
781
+ undoCount: u.value,
782
+ redoCount: c.value,
783
+ currentIndex: r.value
784
+ })
785
+ );
786
786
  function f(_) {
787
787
  t.value = { ...t.value, ..._ }, t.value.enablePersistence && (G(), st()), t.value.enableCrossTabSync && S();
788
788
  }
@@ -834,12 +834,12 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
834
834
  };
835
835
  return E.forEach((w) => {
836
836
  w.ancestorOperationId = H;
837
- }), i.value.length > 0 ? i.value[i.value.length - 1].operations.push(p) : (e.value.push(...E, p), r.value = e.value.length - 1), t.value.enableCrossTabSync && R(E, p), i.value.length === 0 && (o.value = !1), H;
837
+ }), i.value.length > 0 ? i.value[i.value.length - 1].operations.push(p) : (e.value.push(...E, p), r.value = e.value.length - 1), t.value.enableCrossTabSync && z(E, p), i.value.length === 0 && (o.value = !1), H;
838
838
  }
839
839
  function m() {
840
840
  i.value = [], o.value = !1;
841
841
  }
842
- function D(_) {
842
+ function A(_) {
843
843
  if (!s.value) return !1;
844
844
  const I = e.value[r.value];
845
845
  if (!I.reversible)
@@ -936,9 +936,9 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
936
936
  clientId: n.value,
937
937
  timestamp: /* @__PURE__ */ new Date()
938
938
  };
939
- q.postMessage(Xe(I));
939
+ q.postMessage(Ze(I));
940
940
  }
941
- function R(_, I) {
941
+ function z(_, I) {
942
942
  if (!q) return;
943
943
  const E = {
944
944
  type: "operation",
@@ -946,7 +946,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
946
946
  clientId: n.value,
947
947
  timestamp: /* @__PURE__ */ new Date()
948
948
  };
949
- q.postMessage(Xe(E));
949
+ q.postMessage(Ze(E));
950
950
  }
951
951
  function J(_) {
952
952
  if (!q) return;
@@ -956,7 +956,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
956
956
  clientId: n.value,
957
957
  timestamp: /* @__PURE__ */ new Date()
958
958
  };
959
- q.postMessage(Xe(I));
959
+ q.postMessage(Ze(I));
960
960
  }
961
961
  function k(_) {
962
962
  if (!q) return;
@@ -966,7 +966,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
966
966
  clientId: n.value,
967
967
  timestamp: /* @__PURE__ */ new Date()
968
968
  };
969
- q.postMessage(Xe(I));
969
+ q.postMessage(Ze(I));
970
970
  }
971
971
  const P = ks("stonecrop-operations", null, {
972
972
  serializer: {
@@ -1033,7 +1033,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
1033
1033
  startBatch: d,
1034
1034
  commitBatch: y,
1035
1035
  cancelBatch: m,
1036
- undo: D,
1036
+ undo: A,
1037
1037
  redo: T,
1038
1038
  clear: X,
1039
1039
  getOperationsFor: mt,
@@ -1042,7 +1042,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
1042
1042
  logAction: jt
1043
1043
  };
1044
1044
  });
1045
- let As = class or {
1045
+ class Ae {
1046
1046
  /**
1047
1047
  * The root FieldTriggerEngine instance
1048
1048
  */
@@ -1063,9 +1063,9 @@ let As = class or {
1063
1063
  * @param options - Configuration options for the field trigger engine
1064
1064
  */
1065
1065
  constructor(e = {}) {
1066
- if (or._root)
1067
- return or._root;
1068
- or._root = this, this.options = {
1066
+ if (Ae._root)
1067
+ return Ae._root;
1068
+ Ae._root = this, this.options = {
1069
1069
  defaultTimeout: e.defaultTimeout ?? 5e3,
1070
1070
  debug: e.debug ?? !1,
1071
1071
  enableRollback: e.enableRollback ?? !0,
@@ -1168,15 +1168,15 @@ let As = class or {
1168
1168
  h && e.store && (l = this.captureSnapshot(e));
1169
1169
  for (const m of i)
1170
1170
  try {
1171
- const D = await this.executeAction(m, e, r.timeout);
1172
- if (a.push(D), !D.success) {
1171
+ const A = await this.executeAction(m, e, r.timeout);
1172
+ if (a.push(A), !A.success) {
1173
1173
  u = !0;
1174
1174
  break;
1175
1175
  }
1176
- } catch (D) {
1176
+ } catch (A) {
1177
1177
  const T = {
1178
1178
  success: !1,
1179
- error: D instanceof Error ? D : new Error(String(D)),
1179
+ error: A instanceof Error ? A : new Error(String(A)),
1180
1180
  executionTime: 0,
1181
1181
  action: m
1182
1182
  };
@@ -1194,8 +1194,8 @@ let As = class or {
1194
1194
  for (const m of y)
1195
1195
  try {
1196
1196
  m.error && this.options.errorHandler(m.error, e, m.action);
1197
- } catch (D) {
1198
- console.error("[FieldTriggers] Error in global error handler:", D);
1197
+ } catch (A) {
1198
+ console.error("[FieldTriggers] Error in global error handler:", A);
1199
1199
  }
1200
1200
  return {
1201
1201
  path: e.path,
@@ -1385,9 +1385,9 @@ let As = class or {
1385
1385
  throw console.error("[FieldTriggers] Failed to restore snapshot:", n), n;
1386
1386
  }
1387
1387
  }
1388
- };
1388
+ }
1389
1389
  function Yr(t) {
1390
- return new As(t);
1390
+ return new Ae(t);
1391
1391
  }
1392
1392
  function Gn() {
1393
1393
  try {
@@ -1446,7 +1446,7 @@ class fr {
1446
1446
  constructor(e, r, n = "", o = null) {
1447
1447
  return this.target = e, this.ancestorPath = n, this.rootNode = o || this, this.doctype = r, this.hst = Zt.getInstance(), new Proxy(this, {
1448
1448
  get(i, s) {
1449
- if (s in i) return i[s];
1449
+ if (s in i) return Reflect.get(i, s);
1450
1450
  const a = String(s);
1451
1451
  return i.getNode(a);
1452
1452
  },
@@ -1677,10 +1677,10 @@ class fr {
1677
1677
  return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
1678
1678
  }
1679
1679
  }
1680
- function zs(t, e) {
1680
+ function As(t, e) {
1681
1681
  return new fr(t, e, "", null);
1682
1682
  }
1683
- class Ae {
1683
+ class ze {
1684
1684
  /**
1685
1685
  * Singleton instance of Stonecrop. Only one Stonecrop instance can exist
1686
1686
  * per application, ensuring consistent HST state and registry access.
@@ -1702,9 +1702,9 @@ class Ae {
1702
1702
  * @param options - Options including the data client (can be set later via setClient)
1703
1703
  */
1704
1704
  constructor(e, r, n) {
1705
- if (Ae._root)
1706
- return Ae._root;
1707
- Ae._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
1705
+ if (ze._root)
1706
+ return ze._root;
1707
+ ze._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
1708
1708
  }
1709
1709
  /**
1710
1710
  * Set the data client for fetching doctype metadata and records.
@@ -1743,7 +1743,7 @@ class Ae {
1743
1743
  const e = {};
1744
1744
  Object.keys(this.registry.registry).forEach((r) => {
1745
1745
  e[r] = {};
1746
- }), this.hstStore = zs(Do(e), "StonecropStore");
1746
+ }), this.hstStore = As(Do(e), "StonecropStore");
1747
1747
  }
1748
1748
  /**
1749
1749
  * Setup automatic sync with Registry when doctypes are added
@@ -2080,11 +2080,11 @@ function Qn(t, e) {
2080
2080
  const r = new Error(t);
2081
2081
  return r.code = e, r;
2082
2082
  }
2083
- function Rs(t) {
2083
+ function zs(t) {
2084
2084
  t || (t = {});
2085
- const e = t.registry || je("$registry"), r = je("$stonecrop"), n = z(), o = z(), i = z({}), s = z(), a = z(), u = z([]), c = z(!1), l = z(null), f = z(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || Ae._root;
2085
+ const e = t.registry || xe("$registry"), r = xe("$stonecrop"), n = C(), o = C(), i = C({}), s = C(), a = C(), u = C([]), c = C(!1), l = C(null), f = C(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || ze._root;
2086
2086
  y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
2087
- const m = z([]), D = z(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), X = N(
2087
+ const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), X = N(
2088
2088
  () => n.value?.getOperationLogStore().undoRedoState ?? {
2089
2089
  canUndo: !1,
2090
2090
  canRedo: !1,
@@ -2098,7 +2098,7 @@ function Rs(t) {
2098
2098
  n.value?.getOperationLogStore().cancelBatch();
2099
2099
  }, b = () => {
2100
2100
  n.value?.getOperationLogStore().clear();
2101
- }, R = (p, w) => n.value?.getOperationLogStore().getOperationsFor(p, w) ?? [], J = () => n.value?.getOperationLogStore().getSnapshot() ?? {
2101
+ }, z = (p, w) => n.value?.getOperationLogStore().getOperationsFor(p, w) ?? [], J = () => n.value?.getOperationLogStore().getSnapshot() ?? {
2102
2102
  operations: [],
2103
2103
  currentIndex: -1,
2104
2104
  totalOperations: 0,
@@ -2106,13 +2106,13 @@ function Rs(t) {
2106
2106
  irreversibleOperations: 0
2107
2107
  }, k = (p, w) => {
2108
2108
  n.value?.getOperationLogStore().markIrreversible(p, w);
2109
- }, P = (p, w, g, A = "success", C) => n.value?.getOperationLogStore().logAction(p, w, g, A, C) ?? "", G = (p) => {
2109
+ }, P = (p, w, g, D = "success", R) => n.value?.getOperationLogStore().logAction(p, w, g, D, R) ?? "", G = (p) => {
2110
2110
  n.value?.getOperationLogStore().configure(p);
2111
2111
  };
2112
2112
  if (e && n.value)
2113
2113
  try {
2114
2114
  const p = n.value.getOperationLogStore(), w = ss(p);
2115
- m.value = w.operations.value, D.value = w.currentIndex.value, ot(
2115
+ m.value = w.operations.value, A.value = w.currentIndex.value, ot(
2116
2116
  () => w.operations.value,
2117
2117
  (g) => {
2118
2118
  m.value = g;
@@ -2120,7 +2120,7 @@ function Rs(t) {
2120
2120
  ), ot(
2121
2121
  () => w.currentIndex.value,
2122
2122
  (g) => {
2123
- D.value = g;
2123
+ A.value = g;
2124
2124
  }
2125
2125
  );
2126
2126
  } catch {
@@ -2130,28 +2130,28 @@ function Rs(t) {
2130
2130
  if (!t.doctype && e.router) {
2131
2131
  const p = e.router.currentRoute.value;
2132
2132
  if (!p.path) return;
2133
- const w = p.path.split("/").filter((A) => A.length > 0), g = w[1]?.toLowerCase();
2133
+ const w = p.path.split("/").filter((D) => D.length > 0), g = w[1]?.toLowerCase();
2134
2134
  if (w.length > 0) {
2135
- const A = {
2135
+ const D = {
2136
2136
  path: p.path,
2137
2137
  segments: w
2138
- }, C = await e.getMeta?.(A);
2139
- if (C) {
2140
- if (e.addDoctype(C), n.value.setup(C), s.value = C, a.value = g, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(C)), g && g !== "new") {
2141
- const Z = n.value.getRecordById(C, g);
2138
+ }, R = await e.getMeta?.(D);
2139
+ if (R) {
2140
+ if (e.addDoctype(R), n.value.setup(R), s.value = R, a.value = g, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(R)), g && g !== "new") {
2141
+ const Z = n.value.getRecordById(R, g);
2142
2142
  if (Z)
2143
2143
  i.value = Z.get("") || {};
2144
2144
  else
2145
2145
  try {
2146
- await n.value.getRecord(C, g);
2147
- const Y = n.value.getRecordById(C, g);
2146
+ await n.value.getRecord(R, g);
2147
+ const Y = n.value.getRecordById(R, g);
2148
2148
  Y && (i.value = Y.get("") || {});
2149
2149
  } catch {
2150
2150
  i.value = e.initializeRecord(u.value);
2151
2151
  }
2152
2152
  } else
2153
2153
  i.value = e.initializeRecord(u.value);
2154
- o.value && xr(C, g || "new", i, o.value), n.value.runAction(C, "load", g ? [g] : void 0);
2154
+ o.value && xr(R, g || "new", i, o.value), n.value.runAction(R, "load", g ? [g] : void 0);
2155
2155
  }
2156
2156
  }
2157
2157
  }
@@ -2163,28 +2163,28 @@ function Rs(t) {
2163
2163
  let g;
2164
2164
  try {
2165
2165
  if (g = e.getDoctype(w), !g && e.getMeta) {
2166
- const A = {
2166
+ const D = {
2167
2167
  path: `/${w}`,
2168
2168
  segments: [w]
2169
2169
  };
2170
- g = await e.getMeta(A), g && e.addDoctype(g);
2170
+ g = await e.getMeta(D), g && e.addDoctype(g);
2171
2171
  }
2172
2172
  g || (l.value = new Error(`Doctype '${w}' not found in registry and getMeta returned no result`));
2173
- } catch (A) {
2174
- l.value = A instanceof Error ? A : new Error(String(A));
2173
+ } catch (D) {
2174
+ l.value = D instanceof Error ? D : new Error(String(D));
2175
2175
  } finally {
2176
2176
  c.value = !1;
2177
2177
  }
2178
2178
  if (f.value = g, !g) return;
2179
2179
  if (u.value = e.resolveSchema(g), p && p !== "new") {
2180
- const A = n.value.getRecordById(g, p);
2181
- if (A)
2182
- i.value = A.get("") || {};
2180
+ const D = n.value.getRecordById(g, p);
2181
+ if (D)
2182
+ i.value = D.get("") || {};
2183
2183
  else
2184
2184
  try {
2185
2185
  await n.value.getRecord(g, p);
2186
- const C = n.value.getRecordById(g, p);
2187
- C && (i.value = C.get("") || {});
2186
+ const R = n.value.getRecordById(g, p);
2187
+ R && (i.value = R.get("") || {});
2188
2188
  } catch {
2189
2189
  i.value = e.initializeRecord(u.value);
2190
2190
  }
@@ -2198,8 +2198,8 @@ function Rs(t) {
2198
2198
  else
2199
2199
  try {
2200
2200
  await n.value.getRecord(w, p);
2201
- const A = n.value.getRecordById(w, p);
2202
- A && (i.value = A.get("") || {});
2201
+ const D = n.value.getRecordById(w, p);
2202
+ D && (i.value = D.get("") || {});
2203
2203
  } catch {
2204
2204
  i.value = e.initializeRecord(u.value);
2205
2205
  }
@@ -2210,8 +2210,8 @@ function Rs(t) {
2210
2210
  const xt = (p, w) => {
2211
2211
  const g = f.value || s.value;
2212
2212
  if (!g) return "";
2213
- const A = w || t.recordId || a.value || "new";
2214
- return `${g.slug}.${A}.${p}`;
2213
+ const D = w || t.recordId || a.value || "new";
2214
+ return `${g.slug}.${D}.${p}`;
2215
2215
  }, st = (p) => {
2216
2216
  const w = f.value || s.value;
2217
2217
  if (!(!o.value || !n.value || !w))
@@ -2220,18 +2220,18 @@ function Rs(t) {
2220
2220
  if (g.length >= 2) {
2221
2221
  const Z = g[0], Y = g[1];
2222
2222
  if (o.value.has(`${Z}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), g.length > 3) {
2223
- const Je = `${Z}.${Y}`, Dr = g.slice(2);
2224
- let Ar = Je;
2225
- for (let Ge = 0; Ge < Dr.length - 1; Ge++)
2226
- if (Ar += `.${Dr[Ge]}`, !o.value.has(Ar)) {
2227
- const Di = Dr[Ge + 1], Ai = !isNaN(Number(Di));
2223
+ const Ge = `${Z}.${Y}`, Dr = g.slice(2);
2224
+ let Ar = Ge;
2225
+ for (let Qe = 0; Qe < Dr.length - 1; Qe++)
2226
+ if (Ar += `.${Dr[Qe]}`, !o.value.has(Ar)) {
2227
+ const Di = Dr[Qe + 1], Ai = !isNaN(Number(Di));
2228
2228
  o.value.set(Ar, Ai ? [] : {});
2229
2229
  }
2230
2230
  }
2231
2231
  }
2232
2232
  o.value.set(p.path, p.value);
2233
- const A = p.fieldname.split("."), C = { ...i.value };
2234
- A.length === 1 ? C[A[0]] = p.value : Cs(C, A, p.value), i.value = C;
2233
+ const D = p.fieldname.split("."), R = { ...i.value };
2234
+ D.length === 1 ? R[D[0]] = p.value : Rs(R, D, p.value), i.value = R;
2235
2235
  } catch {
2236
2236
  }
2237
2237
  };
@@ -2240,10 +2240,10 @@ function Rs(t) {
2240
2240
  if (!n.value)
2241
2241
  throw new Error("Stonecrop instance not available");
2242
2242
  return n.value.initializeNestedData(p, w);
2243
- }, I = async (p, w, g, A) => {
2243
+ }, I = async (p, w, g, D) => {
2244
2244
  if (!n.value)
2245
2245
  throw new Error("Stonecrop instance not available");
2246
- return n.value.fetchNestedData(p, w, g, A);
2246
+ return n.value.fetchNestedData(p, w, g, D);
2247
2247
  }, E = (p, w) => {
2248
2248
  if (!n.value)
2249
2249
  throw new Error("Stonecrop instance not available");
@@ -2251,15 +2251,15 @@ function Rs(t) {
2251
2251
  }, H = (p, w) => ({
2252
2252
  provideHSTPath: (g) => `${p}.${g}`,
2253
2253
  handleHSTChange: (g) => {
2254
- const A = g.path.startsWith(p) ? g.path : `${p}.${g.fieldname}`;
2254
+ const D = g.path.startsWith(p) ? g.path : `${p}.${g.fieldname}`;
2255
2255
  st({
2256
2256
  ...g,
2257
- path: A
2257
+ path: D
2258
2258
  });
2259
2259
  }
2260
2260
  }), v = {
2261
2261
  operations: m,
2262
- currentIndex: D,
2262
+ currentIndex: A,
2263
2263
  undoRedoState: X,
2264
2264
  canUndo: T,
2265
2265
  canRedo: rt,
@@ -2271,7 +2271,7 @@ function Rs(t) {
2271
2271
  commitBatch: q,
2272
2272
  cancelBatch: S,
2273
2273
  clear: b,
2274
- getOperationsFor: R,
2274
+ getOperationsFor: z,
2275
2275
  getSnapshot: J,
2276
2276
  markIrreversible: k,
2277
2277
  logAction: P,
@@ -2332,7 +2332,7 @@ function xr(t, e, r, n) {
2332
2332
  { deep: !0 }
2333
2333
  );
2334
2334
  }
2335
- function Cs(t, e, r) {
2335
+ function Rs(t, e, r) {
2336
2336
  let n = t;
2337
2337
  for (let i = 0; i < e.length - 1; i++) {
2338
2338
  const s = e[i];
@@ -2424,15 +2424,15 @@ function wr(t) {
2424
2424
  if (typeof e == "function")
2425
2425
  return e;
2426
2426
  }
2427
- function Ns(t) {
2427
+ function Cs(t) {
2428
2428
  var e = wr(t);
2429
2429
  return e && e === t.entries;
2430
2430
  }
2431
- function js(t) {
2431
+ function Ns(t) {
2432
2432
  var e = wr(t);
2433
2433
  return e && e === t.keys;
2434
2434
  }
2435
- var Ue = "delete", L = 5, dt = 1 << L, at = dt - 1, j = {};
2435
+ var Fe = "delete", L = 5, dt = 1 << L, at = dt - 1, j = {};
2436
2436
  function tn() {
2437
2437
  return { value: !1 };
2438
2438
  }
@@ -2459,7 +2459,7 @@ function Po() {
2459
2459
  function br(t, e, r) {
2460
2460
  return (t === 0 && !Vo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
2461
2461
  }
2462
- function Fe(t, e) {
2462
+ function We(t, e) {
2463
2463
  return qo(t, e, 0);
2464
2464
  }
2465
2465
  function Sr(t, e) {
@@ -2506,7 +2506,7 @@ function Fo(t) {
2506
2506
  }
2507
2507
  var ft = /* @__PURE__ */ (function(t) {
2508
2508
  function e(r) {
2509
- return r == null ? vn() : Ct(r) ? r.toSeq() : $s(r);
2509
+ return r == null ? vn() : Ct(r) ? r.toSeq() : xs(r);
2510
2510
  }
2511
2511
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
2512
2512
  return this;
@@ -2622,7 +2622,7 @@ var ae = /* @__PURE__ */ (function(t) {
2622
2622
  }, e;
2623
2623
  })(Ut);
2624
2624
  dn.prototype[Vt] = !0;
2625
- var xs = /* @__PURE__ */ (function(t) {
2625
+ var js = /* @__PURE__ */ (function(t) {
2626
2626
  function e(r) {
2627
2627
  this._collection = r, this.size = r.length || r.size;
2628
2628
  }
@@ -2668,10 +2668,10 @@ function Wo(t) {
2668
2668
  "Expected Array or collection object of values: " + t
2669
2669
  );
2670
2670
  }
2671
- function $s(t) {
2671
+ function xs(t) {
2672
2672
  var e = _n(t);
2673
2673
  if (e)
2674
- return Ns(t) ? e.fromEntrySeq() : js(t) ? e.toSetSeq() : e;
2674
+ return Cs(t) ? e.fromEntrySeq() : Ns(t) ? e.toSetSeq() : e;
2675
2675
  if (typeof t == "object")
2676
2676
  return new dn(t);
2677
2677
  throw new TypeError(
@@ -2679,12 +2679,12 @@ function $s(t) {
2679
2679
  );
2680
2680
  }
2681
2681
  function _n(t) {
2682
- return Fo(t) ? new ae(t) : To(t) ? new xs(t) : void 0;
2682
+ return Fo(t) ? new ae(t) : To(t) ? new js(t) : void 0;
2683
2683
  }
2684
- function We() {
2684
+ function Be() {
2685
2685
  return this.__ensureOwner();
2686
2686
  }
2687
- function Be() {
2687
+ function Ke() {
2688
2688
  return this.__ownerID ? this : this.__ensureOwner(new hn());
2689
2689
  }
2690
2690
  var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
@@ -2695,27 +2695,27 @@ var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
2695
2695
  function Ir(t) {
2696
2696
  return t >>> 1 & 1073741824 | t & 3221225471;
2697
2697
  }
2698
- var Ms = Object.prototype.valueOf;
2698
+ var $s = Object.prototype.valueOf;
2699
2699
  function ht(t) {
2700
2700
  if (t == null)
2701
2701
  return Zn(t);
2702
2702
  if (typeof t.hashCode == "function")
2703
2703
  return Ir(t.hashCode(t));
2704
- var e = Us(t);
2704
+ var e = Ls(t);
2705
2705
  if (e == null)
2706
2706
  return Zn(e);
2707
2707
  switch (typeof e) {
2708
2708
  case "boolean":
2709
2709
  return e ? 1108378657 : 1108378656;
2710
2710
  case "number":
2711
- return Ts(e);
2711
+ return Ms(e);
2712
2712
  case "string":
2713
- return e.length > Fs ? Ps(e) : en(e);
2713
+ return e.length > Us ? Ts(e) : en(e);
2714
2714
  case "object":
2715
2715
  case "function":
2716
- return Vs(e);
2717
- case "symbol":
2718
2716
  return qs(e);
2717
+ case "symbol":
2718
+ return Ps(e);
2719
2719
  default:
2720
2720
  if (typeof e.toString == "function")
2721
2721
  return en(e.toString());
@@ -2728,7 +2728,7 @@ function Zn(t) {
2728
2728
  1108378659
2729
2729
  );
2730
2730
  }
2731
- function Ts(t) {
2731
+ function Ms(t) {
2732
2732
  if (t !== t || t === 1 / 0)
2733
2733
  return 0;
2734
2734
  var e = t | 0;
@@ -2736,22 +2736,22 @@ function Ts(t) {
2736
2736
  t /= 4294967295, e ^= t;
2737
2737
  return Ir(e);
2738
2738
  }
2739
- function Ps(t) {
2739
+ function Ts(t) {
2740
2740
  var e = Tr[t];
2741
- return e === void 0 && (e = en(t), Mr === Ws && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
2741
+ return e === void 0 && (e = en(t), Mr === Fs && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
2742
2742
  }
2743
2743
  function en(t) {
2744
2744
  for (var e = 0, r = 0; r < t.length; r++)
2745
2745
  e = 31 * e + t.charCodeAt(r) | 0;
2746
2746
  return Ir(e);
2747
2747
  }
2748
- function qs(t) {
2748
+ function Ps(t) {
2749
2749
  var e = ro[t];
2750
2750
  return e !== void 0 || (e = Bo(), ro[t] = e), e;
2751
2751
  }
2752
- function Vs(t) {
2752
+ function qs(t) {
2753
2753
  var e;
2754
- if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Ls(t), e !== void 0)))
2754
+ if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Vs(t), e !== void 0)))
2755
2755
  return e;
2756
2756
  if (e = Bo(), rn)
2757
2757
  nn.set(t, e);
@@ -2787,7 +2787,7 @@ var to = Object.isExtensible, eo = (function() {
2787
2787
  return !1;
2788
2788
  }
2789
2789
  })();
2790
- function Ls(t) {
2790
+ function Vs(t) {
2791
2791
  if (t && t.nodeType > 0)
2792
2792
  switch (t.nodeType) {
2793
2793
  case 1:
@@ -2796,8 +2796,8 @@ function Ls(t) {
2796
2796
  return t.documentElement && t.documentElement.uniqueID;
2797
2797
  }
2798
2798
  }
2799
- function Us(t) {
2800
- return t.valueOf !== Ms && typeof t.valueOf == "function" ? (
2799
+ function Ls(t) {
2800
+ return t.valueOf !== $s && typeof t.valueOf == "function" ? (
2801
2801
  // @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
2802
2802
  t.valueOf(t)
2803
2803
  ) : t;
@@ -2810,7 +2810,7 @@ var rn = typeof WeakMap == "function", nn;
2810
2810
  rn && (nn = /* @__PURE__ */ new WeakMap());
2811
2811
  var ro = /* @__PURE__ */ Object.create(null), $r = 0, Ft = "__immutablehash__";
2812
2812
  typeof Symbol == "function" && (Ft = Symbol(Ft));
2813
- var Fs = 16, Ws = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
2813
+ var Us = 16, Fs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
2814
2814
  function e(r, n) {
2815
2815
  this._iter = r, this._useKeys = n, this.size = r.size;
2816
2816
  }
@@ -3062,7 +3062,7 @@ function Yo(t, e, r, n) {
3062
3062
  });
3063
3063
  }, o;
3064
3064
  }
3065
- function Bs(t, e, r) {
3065
+ function Ws(t, e, r) {
3066
3066
  var n = ge().asMutable();
3067
3067
  return t.__iterate(function(o, i) {
3068
3068
  n.update(e.call(r, o, i, t), 0, function(s) {
@@ -3070,7 +3070,7 @@ function Bs(t, e, r) {
3070
3070
  });
3071
3071
  }), n.asImmutable();
3072
3072
  }
3073
- function Ks(t, e, r) {
3073
+ function Bs(t, e, r) {
3074
3074
  var n = B(t), o = (Rt(t) ? Mt() : ge()).asMutable();
3075
3075
  t.__iterate(function(s, a) {
3076
3076
  o.update(
@@ -3085,7 +3085,7 @@ function Ks(t, e, r) {
3085
3085
  return V(t, i(s));
3086
3086
  }).asImmutable();
3087
3087
  }
3088
- function Hs(t, e, r) {
3088
+ function Ks(t, e, r) {
3089
3089
  var n = B(t), o = [[], []];
3090
3090
  t.__iterate(function(s, a) {
3091
3091
  o[e.call(r, s, a, t) ? 1 : 0].push(
@@ -3103,7 +3103,7 @@ function mn(t, e, r, n) {
3103
3103
  return t;
3104
3104
  if (typeof o > "u" && (e < 0 || r < 0))
3105
3105
  return mn(t.toSeq().cacheResult(), e, r, n);
3106
- var i = Fe(e, o), s = Sr(r, o), a = s - i, u;
3106
+ var i = We(e, o), s = Sr(r, o), a = s - i, u;
3107
3107
  a === a && (u = a < 0 ? 0 : a);
3108
3108
  var c = Nt(t);
3109
3109
  return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
@@ -3115,9 +3115,9 @@ function mn(t, e, r, n) {
3115
3115
  if (f)
3116
3116
  return this.cacheResult().__iterate(l, f);
3117
3117
  var d = 0, y = !0, m = 0;
3118
- return t.__iterate(function(D, T) {
3118
+ return t.__iterate(function(A, T) {
3119
3119
  if (!(y && (y = d++ < i)))
3120
- return m++, l(D, n ? T : m - 1, h) !== !1 && m !== u;
3120
+ return m++, l(A, n ? T : m - 1, h) !== !1 && m !== u;
3121
3121
  }), m;
3122
3122
  }, c.__iteratorUncached = function(l, f) {
3123
3123
  if (u !== 0 && f)
@@ -3135,7 +3135,7 @@ function mn(t, e, r, n) {
3135
3135
  });
3136
3136
  }, c;
3137
3137
  }
3138
- function Js(t, e, r) {
3138
+ function Hs(t, e, r) {
3139
3139
  var n = Nt(t);
3140
3140
  return n.__iterateUncached = function(o, i) {
3141
3141
  var s = this;
@@ -3191,7 +3191,7 @@ function Xo(t, e, r, n) {
3191
3191
  });
3192
3192
  }, o;
3193
3193
  }
3194
- var Gs = /* @__PURE__ */ (function(t) {
3194
+ var Js = /* @__PURE__ */ (function(t) {
3195
3195
  function e(r) {
3196
3196
  this._wrappedIterables = r.flatMap(function(n) {
3197
3197
  return n._wrappedIterables ? n._wrappedIterables : [n];
@@ -3247,7 +3247,7 @@ var Gs = /* @__PURE__ */ (function(t) {
3247
3247
  });
3248
3248
  }, e;
3249
3249
  })(ft);
3250
- function Qs(t, e) {
3250
+ function Gs(t, e) {
3251
3251
  var r = B(t), n = [t].concat(e).map(function(i) {
3252
3252
  return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Wo(Array.isArray(i) ? i : [i]), i;
3253
3253
  }).filter(function(i) {
@@ -3260,7 +3260,7 @@ function Qs(t, e) {
3260
3260
  if (o === t || r && B(o) || It(t) && It(o))
3261
3261
  return o;
3262
3262
  }
3263
- return new Gs(n);
3263
+ return new Js(n);
3264
3264
  }
3265
3265
  function Zo(t, e, r) {
3266
3266
  var n = Nt(t);
@@ -3295,13 +3295,13 @@ function Zo(t, e, r) {
3295
3295
  });
3296
3296
  }, n;
3297
3297
  }
3298
- function Ys(t, e, r) {
3298
+ function Qs(t, e, r) {
3299
3299
  var n = wn(t);
3300
3300
  return t.toSeq().map(function(o, i) {
3301
3301
  return n(e.call(r, o, i, t));
3302
3302
  }).flatten(!0);
3303
3303
  }
3304
- function Xs(t, e) {
3304
+ function Ys(t, e) {
3305
3305
  var r = Nt(t);
3306
3306
  return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
3307
3307
  var i = this, s = 0;
@@ -3333,7 +3333,7 @@ function ue(t, e, r) {
3333
3333
  }
3334
3334
  ), n ? Ut(i) : It(t) ? kt(i) : _e(i);
3335
3335
  }
3336
- function Ze(t, e, r) {
3336
+ function tr(t, e, r) {
3337
3337
  if (e || (e = ti), r) {
3338
3338
  var n = t.toSeq().map(function(o, i) {
3339
3339
  return [o, r(o, i, t)];
@@ -3350,7 +3350,7 @@ function no(t, e, r) {
3350
3350
  var n = t(r, e);
3351
3351
  return n === 0 && r !== e && (r == null || r !== r) || n > 0;
3352
3352
  }
3353
- function tr(t, e, r, n) {
3353
+ function er(t, e, r, n) {
3354
3354
  var o = Nt(t), i = new ae(r).map(function(s) {
3355
3355
  return s.size;
3356
3356
  });
@@ -3464,9 +3464,9 @@ function oi(t, e, r) {
3464
3464
  n[u].forEach(a);
3465
3465
  });
3466
3466
  }
3467
- var Zs = Object.prototype.toString;
3468
- function ta(t) {
3469
- if (!t || typeof t != "object" || Zs.call(t) !== "[object Object]")
3467
+ var Xs = Object.prototype.toString;
3468
+ function Zs(t) {
3469
+ if (!t || typeof t != "object" || Xs.call(t) !== "[object Object]")
3470
3470
  return !1;
3471
3471
  var e = Object.getPrototypeOf(t);
3472
3472
  if (e === null)
@@ -3476,7 +3476,7 @@ function ta(t) {
3476
3476
  return r === e;
3477
3477
  }
3478
3478
  function Lt(t) {
3479
- return typeof t == "object" && (Ct(t) || Array.isArray(t) || ta(t));
3479
+ return typeof t == "object" && (Ct(t) || Array.isArray(t) || Zs(t));
3480
3480
  }
3481
3481
  function Dt(t, e) {
3482
3482
  e = e || 0;
@@ -3493,7 +3493,7 @@ function dr(t) {
3493
3493
  return e;
3494
3494
  }
3495
3495
  function Sn(t, e, r) {
3496
- return In(t, e, ea(r));
3496
+ return In(t, e, ta(r));
3497
3497
  }
3498
3498
  function In(t, e, r) {
3499
3499
  if (!Lt(t))
@@ -3511,13 +3511,13 @@ function In(t, e, r) {
3511
3511
  i(e[a]).forEach(s);
3512
3512
  return o;
3513
3513
  }
3514
- function ea(t) {
3514
+ function ta(t) {
3515
3515
  function e(r, n, o) {
3516
- return Lt(r) && Lt(n) && ra(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
3516
+ return Lt(r) && Lt(n) && ea(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
3517
3517
  }
3518
3518
  return e;
3519
3519
  }
3520
- function ra(t, e) {
3520
+ function ea(t, e) {
3521
3521
  var r = ft(t), n = ft(e);
3522
3522
  return It(r) === It(n) && B(r) === B(n);
3523
3523
  }
@@ -3546,13 +3546,13 @@ function On(t) {
3546
3546
  return In(n, e);
3547
3547
  });
3548
3548
  }
3549
- function na(t, e, r) {
3549
+ function ra(t, e, r) {
3550
3550
  return me(t, e, j, function() {
3551
3551
  return r;
3552
3552
  });
3553
3553
  }
3554
3554
  function kn(t, e) {
3555
- return na(this, t, e);
3555
+ return ra(this, t, e);
3556
3556
  }
3557
3557
  function Dn(t, e, r) {
3558
3558
  return arguments.length === 1 ? t(this) : ei(this, t, e, r);
@@ -3563,7 +3563,7 @@ function An(t, e, r) {
3563
3563
  function zn() {
3564
3564
  return this.__altered;
3565
3565
  }
3566
- function Ke(t) {
3566
+ function He(t) {
3567
3567
  var e = this.asMutable();
3568
3568
  return t(e), e.wasAltered() ? e.__ensureOwner(this.__ownerID) : this;
3569
3569
  }
@@ -3572,12 +3572,12 @@ function Rn(t) {
3572
3572
  return !!(t && // @ts-expect-error: maybeMap is typed as `{}`, need to change in 6.0 to `maybeMap && typeof maybeMap === 'object' && IS_MAP_SYMBOL in maybeMap`
3573
3573
  t[ai]);
3574
3574
  }
3575
- function ze(t, e) {
3575
+ function Re(t, e) {
3576
3576
  if (!t)
3577
3577
  throw new Error(e);
3578
3578
  }
3579
3579
  function pt(t) {
3580
- ze(t !== 1 / 0, "Cannot perform this action with an infinite size.");
3580
+ Re(t !== 1 / 0, "Cannot perform this action with an infinite size.");
3581
3581
  }
3582
3582
  var ge = /* @__PURE__ */ (function(t) {
3583
3583
  function e(r) {
@@ -3617,7 +3617,7 @@ var ge = /* @__PURE__ */ (function(t) {
3617
3617
  });
3618
3618
  });
3619
3619
  }, e.prototype.__iterator = function(r, n) {
3620
- return new oa(this, r, n);
3620
+ return new na(this, r, n);
3621
3621
  }, e.prototype.__iterate = function(r, n) {
3622
3622
  var o = this, i = 0;
3623
3623
  return this._root && this._root.iterate(function(s) {
@@ -3630,7 +3630,7 @@ var ge = /* @__PURE__ */ (function(t) {
3630
3630
  ge.isMap = Rn;
3631
3631
  var W = ge.prototype;
3632
3632
  W[ai] = !0;
3633
- W[Ue] = W.remove;
3633
+ W[Fe] = W.remove;
3634
3634
  W.removeAll = W.deleteAll;
3635
3635
  W.setIn = kn;
3636
3636
  W.removeIn = W.deleteIn = xn;
@@ -3642,36 +3642,36 @@ W.mergeDeep = ii;
3642
3642
  W.mergeDeepWith = si;
3643
3643
  W.mergeIn = On;
3644
3644
  W.mergeDeepIn = En;
3645
- W.withMutations = Ke;
3645
+ W.withMutations = He;
3646
3646
  W.wasAltered = zn;
3647
- W.asImmutable = We;
3648
- W["@@transducer/init"] = W.asMutable = Be;
3647
+ W.asImmutable = Be;
3648
+ W["@@transducer/init"] = W.asMutable = Ke;
3649
3649
  W["@@transducer/step"] = function(t, e) {
3650
3650
  return t.set(e[0], e[1]);
3651
3651
  };
3652
3652
  W["@@transducer/result"] = function(t) {
3653
3653
  return t.asImmutable();
3654
3654
  };
3655
- var xe = function(t, e) {
3655
+ var $e = function(t, e) {
3656
3656
  this.ownerID = t, this.entries = e;
3657
3657
  };
3658
- xe.prototype.get = function(t, e, r, n) {
3658
+ $e.prototype.get = function(t, e, r, n) {
3659
3659
  for (var o = this.entries, i = 0, s = o.length; i < s; i++)
3660
3660
  if (vt(r, o[i][0]))
3661
3661
  return o[i][1];
3662
3662
  return n;
3663
3663
  };
3664
- xe.prototype.update = function(t, e, r, n, o, i, s) {
3664
+ $e.prototype.update = function(t, e, r, n, o, i, s) {
3665
3665
  for (var a = o === j, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
3666
3666
  ;
3667
3667
  var f = c < l;
3668
3668
  if (f ? u[c][1] === o : a)
3669
3669
  return this;
3670
3670
  if (bt(s), (a || !f) && bt(i), !(a && u.length === 1)) {
3671
- if (!f && !a && u.length >= la)
3672
- return ia(t, u, n, o);
3671
+ if (!f && !a && u.length >= ca)
3672
+ return oa(t, u, n, o);
3673
3673
  var h = t && t === this.ownerID, d = h ? u : Dt(u);
3674
- return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new xe(t, d);
3674
+ return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new $e(t, d);
3675
3675
  }
3676
3676
  };
3677
3677
  var ce = function(t, e, r) {
@@ -3704,24 +3704,24 @@ ce.prototype.update = function(t, e, r, n, o, i, s) {
3704
3704
  );
3705
3705
  if (y === d)
3706
3706
  return this;
3707
- if (!l && y && h.length >= fa)
3708
- return aa(t, h, c, a, y);
3707
+ if (!l && y && h.length >= la)
3708
+ return sa(t, h, c, a, y);
3709
3709
  if (l && !y && h.length === 2 && co(h[f ^ 1]))
3710
3710
  return h[f ^ 1];
3711
3711
  if (l && y && h.length === 1 && co(y))
3712
3712
  return y;
3713
- var m = t && t === this.ownerID, D = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) : ca(h, f, m) : ua(h, f, y, m);
3714
- return m ? (this.bitmap = D, this.nodes = T, this) : new ce(t, D, T);
3713
+ var m = t && t === this.ownerID, A = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) : ua(h, f, m) : aa(h, f, y, m);
3714
+ return m ? (this.bitmap = A, this.nodes = T, this) : new ce(t, A, T);
3715
3715
  };
3716
- var $e = function(t, e, r) {
3716
+ var Me = function(t, e, r) {
3717
3717
  this.ownerID = t, this.count = e, this.nodes = r;
3718
3718
  };
3719
- $e.prototype.get = function(t, e, r, n) {
3719
+ Me.prototype.get = function(t, e, r, n) {
3720
3720
  e === void 0 && (e = ht(r));
3721
3721
  var o = (t === 0 ? e : e >>> t) & at, i = this.nodes[o];
3722
3722
  return i ? i.get(t + L, e, r, n) : n;
3723
3723
  };
3724
- $e.prototype.update = function(t, e, r, n, o, i, s) {
3724
+ Me.prototype.update = function(t, e, r, n, o, i, s) {
3725
3725
  r === void 0 && (r = ht(n));
3726
3726
  var a = (e === 0 ? r : r >>> e) & at, u = o === j, c = this.nodes, l = c[a];
3727
3727
  if (u && !l)
@@ -3741,10 +3741,10 @@ $e.prototype.update = function(t, e, r, n, o, i, s) {
3741
3741
  var h = this.count;
3742
3742
  if (!l)
3743
3743
  h++;
3744
- else if (!f && (h--, h < ha))
3745
- return sa(t, c, h, a);
3744
+ else if (!f && (h--, h < fa))
3745
+ return ia(t, c, h, a);
3746
3746
  var d = t && t === this.ownerID, y = ci(c, a, f, d);
3747
- return d ? (this.count = h, this.nodes = y, this) : new $e(t, h, y);
3747
+ return d ? (this.count = h, this.nodes = y, this) : new Me(t, h, y);
3748
3748
  };
3749
3749
  var le = function(t, e, r) {
3750
3750
  this.ownerID = t, this.keyHash = e, this.entries = r;
@@ -3786,12 +3786,12 @@ $t.prototype.update = function(t, e, r, n, o, i, s) {
3786
3786
  }
3787
3787
  return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), jn(this, t, e, ht(n), [n, o]));
3788
3788
  };
3789
- xe.prototype.iterate = le.prototype.iterate = function(t, e) {
3789
+ $e.prototype.iterate = le.prototype.iterate = function(t, e) {
3790
3790
  for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
3791
3791
  if (t(r[e ? o - n : n]) === !1)
3792
3792
  return !1;
3793
3793
  };
3794
- ce.prototype.iterate = $e.prototype.iterate = function(t, e) {
3794
+ ce.prototype.iterate = Me.prototype.iterate = function(t, e) {
3795
3795
  for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
3796
3796
  var i = r[e ? o - n : n];
3797
3797
  if (i && i.iterate(t, e) === !1)
@@ -3801,7 +3801,7 @@ ce.prototype.iterate = $e.prototype.iterate = function(t, e) {
3801
3801
  $t.prototype.iterate = function(t, e) {
3802
3802
  return t(this.entry);
3803
3803
  };
3804
- var oa = /* @__PURE__ */ (function(t) {
3804
+ var na = /* @__PURE__ */ (function(t) {
3805
3805
  function e(r, n, o) {
3806
3806
  this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
3807
3807
  }
@@ -3868,7 +3868,7 @@ function uo(t, e, r) {
3868
3868
  } else {
3869
3869
  if (r === j)
3870
3870
  return t;
3871
- o = 1, n = new xe(t.__ownerID, [[e, r]]);
3871
+ o = 1, n = new $e(t.__ownerID, [[e, r]]);
3872
3872
  }
3873
3873
  return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Cn(o, n) : zt();
3874
3874
  }
@@ -3892,7 +3892,7 @@ function jn(t, e, r, n, o) {
3892
3892
  var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & at, s = (r === 0 ? n : n >>> r) & at, a, u = i === s ? [jn(t, e, r + L, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
3893
3893
  return new ce(e, 1 << i | 1 << s, u);
3894
3894
  }
3895
- function ia(t, e, r, n) {
3895
+ function oa(t, e, r, n) {
3896
3896
  t || (t = new hn());
3897
3897
  for (var o = new $t(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
3898
3898
  var s = e[i];
@@ -3900,17 +3900,17 @@ function ia(t, e, r, n) {
3900
3900
  }
3901
3901
  return o;
3902
3902
  }
3903
- function sa(t, e, r, n) {
3903
+ function ia(t, e, r, n) {
3904
3904
  for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
3905
3905
  var l = e[a];
3906
3906
  l !== void 0 && a !== n && (o |= u, s[i++] = l);
3907
3907
  }
3908
3908
  return new ce(t, o, s);
3909
3909
  }
3910
- function aa(t, e, r, n, o) {
3910
+ function sa(t, e, r, n, o) {
3911
3911
  for (var i = 0, s = new Array(dt), a = 0; r !== 0; a++, r >>>= 1)
3912
3912
  s[a] = r & 1 ? e[i++] : void 0;
3913
- return s[n] = o, new $e(t, i + 1, s);
3913
+ return s[n] = o, new Me(t, i + 1, s);
3914
3914
  }
3915
3915
  function ui(t) {
3916
3916
  return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
@@ -3919,7 +3919,7 @@ function ci(t, e, r, n) {
3919
3919
  var o = n ? t : Dt(t);
3920
3920
  return o[e] = r, o;
3921
3921
  }
3922
- function ua(t, e, r, n) {
3922
+ function aa(t, e, r, n) {
3923
3923
  var o = t.length + 1;
3924
3924
  if (n && e + 1 === o)
3925
3925
  return t[e] = r, t;
@@ -3927,7 +3927,7 @@ function ua(t, e, r, n) {
3927
3927
  a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
3928
3928
  return i;
3929
3929
  }
3930
- function ca(t, e, r) {
3930
+ function ua(t, e, r) {
3931
3931
  var n = t.length - 1;
3932
3932
  if (r && e === n)
3933
3933
  return t.pop(), t;
@@ -3935,7 +3935,7 @@ function ca(t, e, r) {
3935
3935
  s === e && (i = 1), o[s] = t[s + i];
3936
3936
  return o;
3937
3937
  }
3938
- var la = dt / 4, fa = dt / 2, ha = dt / 4;
3938
+ var ca = dt / 4, la = dt / 2, fa = dt / 4;
3939
3939
  function li(t) {
3940
3940
  if (Fo(t) && typeof t != "string")
3941
3941
  return t;
@@ -3943,14 +3943,14 @@ function li(t) {
3943
3943
  return t.toArray();
3944
3944
  throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
3945
3945
  }
3946
- function Me(t) {
3946
+ function Te(t) {
3947
3947
  try {
3948
3948
  return typeof t == "string" ? JSON.stringify(t) : String(t);
3949
3949
  } catch {
3950
3950
  return JSON.stringify(t);
3951
3951
  }
3952
3952
  }
3953
- function pa(t, e) {
3953
+ function ha(t, e) {
3954
3954
  return Ct(t) ? (
3955
3955
  // @ts-expect-error key might be a number or symbol, which is not handled be Record key type
3956
3956
  t.has(e)
@@ -3960,7 +3960,7 @@ function pa(t, e) {
3960
3960
  );
3961
3961
  }
3962
3962
  function fi(t, e, r) {
3963
- return Ct(t) ? t.get(e, r) : pa(t, e) ? (
3963
+ return Ct(t) ? t.get(e, r) : ha(t, e) ? (
3964
3964
  // @ts-expect-error weird "get" here,
3965
3965
  typeof t.get == "function" ? (
3966
3966
  // @ts-expect-error weird "get" here,
@@ -3971,7 +3971,7 @@ function fi(t, e, r) {
3971
3971
  )
3972
3972
  ) : r;
3973
3973
  }
3974
- function da(t, e) {
3974
+ function pa(t, e) {
3975
3975
  if (!Lt(t))
3976
3976
  throw new TypeError("Cannot update non-data-structure value: " + t);
3977
3977
  if (Ct(t)) {
@@ -3984,7 +3984,7 @@ function da(t, e) {
3984
3984
  var r = dr(t);
3985
3985
  return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
3986
3986
  }
3987
- function va(t, e, r) {
3987
+ function da(t, e, r) {
3988
3988
  if (!Lt(t))
3989
3989
  throw new TypeError("Cannot update non-data-structure value: " + t);
3990
3990
  if (Ct(t)) {
@@ -4017,7 +4017,7 @@ function hi(t, e, r, n, o, i) {
4017
4017
  return u === a ? e : u;
4018
4018
  }
4019
4019
  if (!s && !Lt(e))
4020
- throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Me) + "]: " + e);
4020
+ throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Te) + "]: " + e);
4021
4021
  var c = r[n], l = s ? j : fi(e, c, j), f = hi(
4022
4022
  l === j ? t : Ct(l),
4023
4023
  // @ts-expect-error mixed type
@@ -4027,15 +4027,15 @@ function hi(t, e, r, n, o, i) {
4027
4027
  o,
4028
4028
  i
4029
4029
  );
4030
- return f === l ? e : f === j ? da(e, c) : va(s ? t ? zt() : {} : e, c, f);
4030
+ return f === l ? e : f === j ? pa(e, c) : da(s ? t ? zt() : {} : e, c, f);
4031
4031
  }
4032
- function ya(t, e) {
4032
+ function va(t, e) {
4033
4033
  return me(t, e, function() {
4034
4034
  return j;
4035
4035
  });
4036
4036
  }
4037
4037
  function xn(t) {
4038
- return ya(this, t);
4038
+ return va(this, t);
4039
4039
  }
4040
4040
  var pi = "@@__IMMUTABLE_LIST__@@";
4041
4041
  function di(t) {
@@ -4050,7 +4050,7 @@ var Or = /* @__PURE__ */ (function(t) {
4050
4050
  if (di(r))
4051
4051
  return r;
4052
4052
  var o = t(r), i = o.size;
4053
- return i === 0 ? n : (pt(i), i > 0 && i < dt ? Te(0, i, L, null, new Pt(o.toArray())) : n.withMutations(function(s) {
4053
+ return i === 0 ? n : (pt(i), i > 0 && i < dt ? Pe(0, i, L, null, new Pt(o.toArray())) : n.withMutations(function(s) {
4054
4054
  s.setSize(i), o.forEach(function(a, u) {
4055
4055
  return s.set(u, a);
4056
4056
  });
@@ -4068,7 +4068,7 @@ var Or = /* @__PURE__ */ (function(t) {
4068
4068
  }
4069
4069
  return n;
4070
4070
  }, e.prototype.set = function(r, n) {
4071
- return _a(this, r, n);
4071
+ return ya(this, r, n);
4072
4072
  }, e.prototype.remove = function(r) {
4073
4073
  return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
4074
4074
  }, e.prototype.insert = function(r, n) {
@@ -4124,21 +4124,21 @@ var Or = /* @__PURE__ */ (function(t) {
4124
4124
  var o = this.size;
4125
4125
  return br(r, n, o) ? this : Tt(
4126
4126
  this,
4127
- Fe(r, o),
4127
+ We(r, o),
4128
4128
  Sr(n, o)
4129
4129
  );
4130
4130
  }, e.prototype.__iterator = function(r, n) {
4131
4131
  var o = n ? this.size : 0, i = lo(this, n);
4132
4132
  return new x(function() {
4133
4133
  var s = i();
4134
- return s === Re ? ut() : K(r, n ? --o : o++, s);
4134
+ return s === Ce ? ut() : K(r, n ? --o : o++, s);
4135
4135
  });
4136
4136
  }, e.prototype.__iterate = function(r, n) {
4137
- for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Re && r(s, n ? --o : o++, this) !== !1; )
4137
+ for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Ce && r(s, n ? --o : o++, this) !== !1; )
4138
4138
  ;
4139
4139
  return o;
4140
4140
  }, e.prototype.__ensureOwner = function(r) {
4141
- return r === this.__ownerID ? this : r ? Te(
4141
+ return r === this.__ownerID ? this : r ? Pe(
4142
4142
  this._origin,
4143
4143
  this._capacity,
4144
4144
  this._level,
@@ -4152,7 +4152,7 @@ var Or = /* @__PURE__ */ (function(t) {
4152
4152
  Or.isList = di;
4153
4153
  var Q = Or.prototype;
4154
4154
  Q[pi] = !0;
4155
- Q[Ue] = Q.remove;
4155
+ Q[Fe] = Q.remove;
4156
4156
  Q.merge = Q.concat;
4157
4157
  Q.setIn = kn;
4158
4158
  Q.deleteIn = Q.removeIn = xn;
@@ -4160,10 +4160,10 @@ Q.update = Dn;
4160
4160
  Q.updateIn = An;
4161
4161
  Q.mergeIn = On;
4162
4162
  Q.mergeDeepIn = En;
4163
- Q.withMutations = Ke;
4163
+ Q.withMutations = He;
4164
4164
  Q.wasAltered = zn;
4165
- Q.asImmutable = We;
4166
- Q["@@transducer/init"] = Q.asMutable = Be;
4165
+ Q.asImmutable = Be;
4166
+ Q["@@transducer/init"] = Q.asMutable = Ke;
4167
4167
  Q["@@transducer/step"] = function(t, e) {
4168
4168
  return t.push(e);
4169
4169
  };
@@ -4208,9 +4208,9 @@ Pt.prototype.removeAfter = function(t, e, r) {
4208
4208
  var s = fe(this, t);
4209
4209
  return s.array.splice(n + 1), o && (s.array[n] = o), s;
4210
4210
  };
4211
- var Re = {};
4211
+ var Ce = {};
4212
4212
  function lo(t, e) {
4213
- var r = t._origin, n = t._capacity, o = Pe(n), i = t._tail;
4213
+ var r = t._origin, n = t._capacity, o = qe(n), i = t._tail;
4214
4214
  return s(t._root, t._level, 0);
4215
4215
  function s(c, l, f) {
4216
4216
  return l === 0 ? a(c, f) : u(c, l, f);
@@ -4219,7 +4219,7 @@ function lo(t, e) {
4219
4219
  var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
4220
4220
  return d > dt && (d = dt), function() {
4221
4221
  if (h === d)
4222
- return Re;
4222
+ return Ce;
4223
4223
  var y = e ? --d : h++;
4224
4224
  return f && f[y];
4225
4225
  };
@@ -4229,13 +4229,13 @@ function lo(t, e) {
4229
4229
  return m > dt && (m = dt), function() {
4230
4230
  for (; ; ) {
4231
4231
  if (h) {
4232
- var D = h();
4233
- if (D !== Re)
4234
- return D;
4232
+ var A = h();
4233
+ if (A !== Ce)
4234
+ return A;
4235
4235
  h = null;
4236
4236
  }
4237
4237
  if (y === m)
4238
- return Re;
4238
+ return Ce;
4239
4239
  var T = e ? --m : y++;
4240
4240
  h = s(
4241
4241
  d && d[T],
@@ -4246,14 +4246,14 @@ function lo(t, e) {
4246
4246
  };
4247
4247
  }
4248
4248
  }
4249
- function Te(t, e, r, n, o, i, s) {
4249
+ function Pe(t, e, r, n, o, i, s) {
4250
4250
  var a = Object.create(Q);
4251
4251
  return a.size = e - t, a._origin = t, a._capacity = e, a._level = r, a._root = n, a._tail = o, a.__ownerID = i, a.__hash = s, a.__altered = !1, a;
4252
4252
  }
4253
4253
  function ir() {
4254
- return Te(0, 0, L);
4254
+ return Pe(0, 0, L);
4255
4255
  }
4256
- function _a(t, e, r) {
4256
+ function ya(t, e, r) {
4257
4257
  if (e = qt(t, e), e !== e)
4258
4258
  return t;
4259
4259
  if (e >= t.size || e < 0)
@@ -4262,14 +4262,14 @@ function _a(t, e, r) {
4262
4262
  });
4263
4263
  e += t._origin;
4264
4264
  var n = t._tail, o = t._root, i = tn();
4265
- return e >= Pe(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
4265
+ return e >= qe(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
4266
4266
  o,
4267
4267
  t.__ownerID,
4268
4268
  t._level,
4269
4269
  e,
4270
4270
  r,
4271
4271
  i
4272
- ), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Te(t._origin, t._capacity, t._level, o, n) : t;
4272
+ ), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Pe(t._origin, t._capacity, t._level, o, n) : t;
4273
4273
  }
4274
4274
  function on(t, e, r, n, o, i) {
4275
4275
  var s = n >>> r & at, a = t && s < t.array.length;
@@ -4293,7 +4293,7 @@ function fe(t, e) {
4293
4293
  return e && t && e === t.ownerID ? t : new Pt(t ? t.array.slice() : [], e);
4294
4294
  }
4295
4295
  function vi(t, e) {
4296
- if (e >= Pe(t._capacity))
4296
+ if (e >= qe(t._capacity))
4297
4297
  return t._tail;
4298
4298
  if (e < 1 << t._level + L) {
4299
4299
  for (var r = t._root, n = t._level; r && n > 0; )
@@ -4314,7 +4314,7 @@ function Tt(t, e, r) {
4314
4314
  n
4315
4315
  ), u += L, l += 1 << u;
4316
4316
  l && (s += l, o += l, a += l, i += l);
4317
- for (var f = Pe(i), h = Pe(a); h >= 1 << u + L; )
4317
+ for (var f = qe(i), h = qe(a); h >= 1 << u + L; )
4318
4318
  c = new Pt(
4319
4319
  c && c.array.length ? [c] : [],
4320
4320
  n
@@ -4322,8 +4322,8 @@ function Tt(t, e, r) {
4322
4322
  var d = t._tail, y = h < f ? vi(t, a - 1) : h > f ? new Pt([], n) : d;
4323
4323
  if (d && h > f && s < i && d.array.length) {
4324
4324
  c = fe(c, n);
4325
- for (var m = c, D = u; D > L; D -= L) {
4326
- var T = f >>> D & at;
4325
+ for (var m = c, A = u; A > L; A -= L) {
4326
+ var T = f >>> A & at;
4327
4327
  m = m.array[T] = fe(m.array[T], n);
4328
4328
  }
4329
4329
  m.array[f >>> L & at] = d;
@@ -4343,9 +4343,9 @@ function Tt(t, e, r) {
4343
4343
  h - l
4344
4344
  )), l && (s -= l, a -= l);
4345
4345
  }
4346
- return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Te(s, a, u, c, y);
4346
+ return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Pe(s, a, u, c, y);
4347
4347
  }
4348
- function Pe(t) {
4348
+ function qe(t) {
4349
4349
  return t < dt ? 0 : t - 1 >>> L << L;
4350
4350
  }
4351
4351
  function yi(t) {
@@ -4392,7 +4392,7 @@ var Mt = /* @__PURE__ */ (function(t) {
4392
4392
  })(ge);
4393
4393
  Mt.isOrderedMap = yi;
4394
4394
  Mt.prototype[Vt] = !0;
4395
- Mt.prototype[Ue] = Mt.prototype.remove;
4395
+ Mt.prototype[Fe] = Mt.prototype.remove;
4396
4396
  function $n(t, e, r, n) {
4397
4397
  var o = Object.create(Mt.prototype);
4398
4398
  return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
@@ -4426,7 +4426,7 @@ function sn(t) {
4426
4426
  }
4427
4427
  var Mn = /* @__PURE__ */ (function(t) {
4428
4428
  function e(r) {
4429
- return r == null ? er() : sn(r) ? r : er().pushAll(r);
4429
+ return r == null ? rr() : sn(r) ? r : rr().pushAll(r);
4430
4430
  }
4431
4431
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
4432
4432
  return this(arguments);
@@ -4469,18 +4469,18 @@ var Mn = /* @__PURE__ */ (function(t) {
4469
4469
  }, e.prototype.pop = function() {
4470
4470
  return this.slice(1);
4471
4471
  }, e.prototype.clear = function() {
4472
- return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : er();
4472
+ return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : rr();
4473
4473
  }, e.prototype.slice = function(r, n) {
4474
4474
  if (br(r, n, this.size))
4475
4475
  return this;
4476
- var o = Fe(r, this.size), i = Sr(n, this.size);
4476
+ var o = We(r, this.size), i = Sr(n, this.size);
4477
4477
  if (i !== this.size)
4478
4478
  return t.prototype.slice.call(this, r, n);
4479
4479
  for (var s = this.size - o, a = this._head; o--; )
4480
4480
  a = a.next;
4481
4481
  return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Oe(s, a);
4482
4482
  }, e.prototype.__ensureOwner = function(r) {
4483
- return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ? er() : (this.__ownerID = r, this.__altered = !1, this);
4483
+ return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ? rr() : (this.__ownerID = r, this.__altered = !1, this);
4484
4484
  }, e.prototype.__iterate = function(r, n) {
4485
4485
  var o = this;
4486
4486
  if (n)
@@ -4512,10 +4512,10 @@ ct[_i] = !0;
4512
4512
  ct.shift = ct.pop;
4513
4513
  ct.unshift = ct.push;
4514
4514
  ct.unshiftAll = ct.pushAll;
4515
- ct.withMutations = Ke;
4515
+ ct.withMutations = He;
4516
4516
  ct.wasAltered = zn;
4517
- ct.asImmutable = We;
4518
- ct["@@transducer/init"] = ct.asMutable = Be;
4517
+ ct.asImmutable = Be;
4518
+ ct["@@transducer/init"] = ct.asMutable = Ke;
4519
4519
  ct["@@transducer/step"] = function(t, e) {
4520
4520
  return t.unshift(e);
4521
4521
  };
@@ -4527,7 +4527,7 @@ function Oe(t, e, r, n) {
4527
4527
  return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4528
4528
  }
4529
4529
  var po;
4530
- function er() {
4530
+ function rr() {
4531
4531
  return po || (po = Oe(0));
4532
4532
  }
4533
4533
  function vo(t, e, r, n, o, i) {
@@ -4535,10 +4535,10 @@ function vo(t, e, r, n, o, i) {
4535
4535
  o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
4536
4536
  }, i), r;
4537
4537
  }
4538
- function ga(t, e) {
4538
+ function _a(t, e) {
4539
4539
  return e;
4540
4540
  }
4541
- function ma(t, e) {
4541
+ function ga(t, e) {
4542
4542
  return [e, t];
4543
4543
  }
4544
4544
  function qr(t) {
@@ -4604,14 +4604,14 @@ function gi(t, e) {
4604
4604
  return s && // @ts-expect-error size should exists on Collection
4605
4605
  t.size === a;
4606
4606
  }
4607
- var wa = /* @__PURE__ */ (function(t) {
4607
+ var ma = /* @__PURE__ */ (function(t) {
4608
4608
  function e(r, n, o) {
4609
4609
  if (o === void 0 && (o = 1), !(this instanceof e))
4610
4610
  return new e(r, n, o);
4611
- if (ze(o !== 0, "Cannot step a Range by 0"), ze(
4611
+ if (Re(o !== 0, "Cannot step a Range by 0"), Re(
4612
4612
  r !== void 0,
4613
4613
  "You must define a start value when using Range"
4614
- ), ze(
4614
+ ), Re(
4615
4615
  n !== void 0,
4616
4616
  "You must define an end value when using Range"
4617
4617
  ), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
@@ -4628,7 +4628,7 @@ var wa = /* @__PURE__ */ (function(t) {
4628
4628
  var n = (r - this._start) / this._step;
4629
4629
  return n >= 0 && n < this.size && n === Math.floor(n);
4630
4630
  }, e.prototype.slice = function(r, n) {
4631
- return br(r, n, this.size) ? this : (r = Fe(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
4631
+ return br(r, n, this.size) ? this : (r = We(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
4632
4632
  this.get(r, this._end),
4633
4633
  this.get(n, this._end),
4634
4634
  this._step
@@ -4685,13 +4685,13 @@ var kr = /* @__PURE__ */ (function(t) {
4685
4685
  }, e.prototype.has = function(r) {
4686
4686
  return this._map.has(r);
4687
4687
  }, e.prototype.add = function(r) {
4688
- return rr(this, this._map.set(r, r));
4688
+ return nr(this, this._map.set(r, r));
4689
4689
  }, e.prototype.remove = function(r) {
4690
- return rr(this, this._map.remove(r));
4690
+ return nr(this, this._map.remove(r));
4691
4691
  }, e.prototype.clear = function() {
4692
- return rr(this, this._map.clear());
4692
+ return nr(this, this._map.clear());
4693
4693
  }, e.prototype.map = function(r, n) {
4694
- var o = this, i = !1, s = rr(
4694
+ var o = this, i = !1, s = nr(
4695
4695
  this,
4696
4696
  this._map.mapEntries(function(a) {
4697
4697
  var u = a[1], c = r.call(n, u, u, o);
@@ -4744,9 +4744,9 @@ var kr = /* @__PURE__ */ (function(t) {
4744
4744
  });
4745
4745
  });
4746
4746
  }, e.prototype.sort = function(r) {
4747
- return qe(ue(this, r));
4747
+ return Ve(ue(this, r));
4748
4748
  }, e.prototype.sortBy = function(r, n) {
4749
- return qe(ue(this, n, r));
4749
+ return Ve(ue(this, n, r));
4750
4750
  }, e.prototype.wasAltered = function() {
4751
4751
  return this._map.wasAltered();
4752
4752
  }, e.prototype.__iterate = function(r, n) {
@@ -4766,11 +4766,11 @@ var kr = /* @__PURE__ */ (function(t) {
4766
4766
  kr.isSet = Tn;
4767
4767
  var et = kr.prototype;
4768
4768
  et[mi] = !0;
4769
- et[Ue] = et.remove;
4769
+ et[Fe] = et.remove;
4770
4770
  et.merge = et.concat = et.union;
4771
- et.withMutations = Ke;
4772
- et.asImmutable = We;
4773
- et["@@transducer/init"] = et.asMutable = Be;
4771
+ et.withMutations = He;
4772
+ et.asImmutable = Be;
4773
+ et["@@transducer/init"] = et.asMutable = Ke;
4774
4774
  et["@@transducer/step"] = function(t, e) {
4775
4775
  return t.add(e);
4776
4776
  };
@@ -4779,7 +4779,7 @@ et["@@transducer/result"] = function(t) {
4779
4779
  };
4780
4780
  et.__empty = ke;
4781
4781
  et.__make = wi;
4782
- function rr(t, e) {
4782
+ function nr(t, e) {
4783
4783
  return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
4784
4784
  }
4785
4785
  function wi(t, e) {
@@ -4799,11 +4799,11 @@ function bi(t, e, r) {
4799
4799
  function Si(t, e) {
4800
4800
  return bi(this, t, e);
4801
4801
  }
4802
- function ba(t, e) {
4802
+ function wa(t, e) {
4803
4803
  return bi(t, e, j) !== j;
4804
4804
  }
4805
- function Sa(t) {
4806
- return ba(this, t);
4805
+ function ba(t) {
4806
+ return wa(this, t);
4807
4807
  }
4808
4808
  function Ii() {
4809
4809
  pt(this.size);
@@ -4831,7 +4831,7 @@ function vr(t) {
4831
4831
  r.push(vr(n));
4832
4832
  }), r;
4833
4833
  }
4834
- function Ia(t) {
4834
+ function Sa(t) {
4835
4835
  if (t.size === 1 / 0)
4836
4836
  return 0;
4837
4837
  var e = Rt(t), r = B(t), n = e ? 1 : 0;
@@ -4843,9 +4843,9 @@ function Ia(t) {
4843
4843
  n = 31 * n + ht(o) | 0;
4844
4844
  } : function(o) {
4845
4845
  n = n + ht(o) | 0;
4846
- }), Ea(t.size, n);
4846
+ }), Ia(t.size, n);
4847
4847
  }
4848
- function Ea(t, e) {
4848
+ function Ia(t, e) {
4849
4849
  return e = Se(e, 3432918353), e = Se(e << 15 | e >>> -15, 461845907), e = Se(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Se(e ^ e >>> 16, 2246822507), e = Se(e ^ e >>> 13, 3266489909), e = Ir(e ^ e >>> 16), e;
4850
4850
  }
4851
4851
  function mo(t, e) {
@@ -4884,7 +4884,7 @@ Gt(nt, {
4884
4884
  return Mt(this.toKeyedSeq());
4885
4885
  },
4886
4886
  toOrderedSet: function() {
4887
- return qe(B(this) ? this.valueSeq() : this);
4887
+ return Ve(B(this) ? this.valueSeq() : this);
4888
4888
  },
4889
4889
  toSet: function() {
4890
4890
  return kr(B(this) ? this.valueSeq() : this);
@@ -4911,7 +4911,7 @@ Gt(nt, {
4911
4911
  // ### ES6 Collection methods (ES6 Array and Map)
4912
4912
  concat: function() {
4913
4913
  for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
4914
- return V(this, Qs(this, t));
4914
+ return V(this, Gs(this, t));
4915
4915
  },
4916
4916
  includes: function(t) {
4917
4917
  return this.some(function(e) {
@@ -4933,7 +4933,7 @@ Gt(nt, {
4933
4933
  return V(this, Yo(this, t, e, !0));
4934
4934
  },
4935
4935
  partition: function(t, e) {
4936
- return Hs(this, t, e);
4936
+ return Ks(this, t, e);
4937
4937
  },
4938
4938
  find: function(t, e, r) {
4939
4939
  var n = this.findEntry(t, e);
@@ -5010,7 +5010,7 @@ Gt(nt, {
5010
5010
  );
5011
5011
  },
5012
5012
  countBy: function(t, e) {
5013
- return Bs(this, t, e);
5013
+ return Ws(this, t, e);
5014
5014
  },
5015
5015
  equals: function(t) {
5016
5016
  return gi(this, t);
@@ -5019,7 +5019,7 @@ Gt(nt, {
5019
5019
  var t = this;
5020
5020
  if (t._cache)
5021
5021
  return new ae(t._cache);
5022
- var e = t.toSeq().map(ma).toIndexedSeq();
5022
+ var e = t.toSeq().map(ga).toIndexedSeq();
5023
5023
  return e.fromEntrySeq = function() {
5024
5024
  return t.toSeq();
5025
5025
  }, e;
@@ -5051,7 +5051,7 @@ Gt(nt, {
5051
5051
  return this.find(Po, null, t);
5052
5052
  },
5053
5053
  flatMap: function(t, e) {
5054
- return V(this, Ys(this, t, e));
5054
+ return V(this, Qs(this, t, e));
5055
5055
  },
5056
5056
  flatten: function(t) {
5057
5057
  return V(this, Zo(this, t, !0));
@@ -5066,12 +5066,12 @@ Gt(nt, {
5066
5066
  },
5067
5067
  getIn: Si,
5068
5068
  groupBy: function(t, e) {
5069
- return Ks(this, t, e);
5069
+ return Bs(this, t, e);
5070
5070
  },
5071
5071
  has: function(t) {
5072
5072
  return this.get(t, j) !== j;
5073
5073
  },
5074
- hasIn: Sa,
5074
+ hasIn: ba,
5075
5075
  isSubset: function(t) {
5076
5076
  return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
5077
5077
  return t.includes(e);
@@ -5086,7 +5086,7 @@ Gt(nt, {
5086
5086
  });
5087
5087
  },
5088
5088
  keySeq: function() {
5089
- return this.toSeq().map(ga).toIndexedSeq();
5089
+ return this.toSeq().map(_a).toIndexedSeq();
5090
5090
  },
5091
5091
  last: function(t) {
5092
5092
  return this.toSeq().reverse().first(t);
@@ -5095,19 +5095,19 @@ Gt(nt, {
5095
5095
  return this.toKeyedSeq().reverse().keyOf(t);
5096
5096
  },
5097
5097
  max: function(t) {
5098
- return Ze(this, t);
5098
+ return tr(this, t);
5099
5099
  },
5100
5100
  maxBy: function(t, e) {
5101
- return Ze(this, e, t);
5101
+ return tr(this, e, t);
5102
5102
  },
5103
5103
  min: function(t) {
5104
- return Ze(
5104
+ return tr(
5105
5105
  this,
5106
5106
  t ? yo(t) : _o
5107
5107
  );
5108
5108
  },
5109
5109
  minBy: function(t, e) {
5110
- return Ze(
5110
+ return tr(
5111
5111
  this,
5112
5112
  e ? yo(e) : _o,
5113
5113
  t
@@ -5138,7 +5138,7 @@ Gt(nt, {
5138
5138
  return this.slice(-Math.max(0, t));
5139
5139
  },
5140
5140
  takeWhile: function(t, e) {
5141
- return V(this, Js(this, t, e));
5141
+ return V(this, Hs(this, t, e));
5142
5142
  },
5143
5143
  takeUntil: function(t, e) {
5144
5144
  return this.takeWhile(qr(t), e);
@@ -5151,7 +5151,7 @@ Gt(nt, {
5151
5151
  },
5152
5152
  // ### Hashable Object
5153
5153
  hashCode: function() {
5154
- return this.__hash || (this.__hash = Ia(this));
5154
+ return this.__hash || (this.__hash = Sa(this));
5155
5155
  }
5156
5156
  // ### Internal
5157
5157
  // abstract __iterate(fn, reverse)
@@ -5161,7 +5161,7 @@ var it = nt.prototype;
5161
5161
  it[$o] = !0;
5162
5162
  it[mr] = it.values;
5163
5163
  it.toJSON = it.toArray;
5164
- it.__toStringMapper = Me;
5164
+ it.__toStringMapper = Te;
5165
5165
  it.inspect = it.toSource = function() {
5166
5166
  return this.toString();
5167
5167
  };
@@ -5191,12 +5191,12 @@ Gt(Et, {
5191
5191
  );
5192
5192
  }
5193
5193
  });
5194
- var He = Et.prototype;
5195
- He[pr] = !0;
5196
- He[mr] = it.entries;
5197
- He.toJSON = Ii;
5198
- He.__toStringMapper = function(t, e) {
5199
- return Me(e) + ": " + Me(t);
5194
+ var Je = Et.prototype;
5195
+ Je[pr] = !0;
5196
+ Je[mr] = it.entries;
5197
+ Je.toJSON = Ii;
5198
+ Je.__toStringMapper = function(t, e) {
5199
+ return Te(e) + ": " + Te(t);
5200
5200
  };
5201
5201
  Gt(Ht, {
5202
5202
  // ### Conversion to other types
@@ -5229,7 +5229,7 @@ Gt(Ht, {
5229
5229
  var r = arguments.length;
5230
5230
  if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
5231
5231
  return this;
5232
- t = Fe(t, t < 0 ? this.count() : this.size);
5232
+ t = We(t, t < 0 ? this.count() : this.size);
5233
5233
  var n = this.slice(0, t);
5234
5234
  return V(
5235
5235
  this,
@@ -5256,14 +5256,14 @@ Gt(Ht, {
5256
5256
  return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
5257
5257
  },
5258
5258
  interpose: function(t) {
5259
- return V(this, Xs(this, t));
5259
+ return V(this, Ys(this, t));
5260
5260
  },
5261
5261
  interleave: function() {
5262
- var t = [this].concat(Dt(arguments)), e = tr(this.toSeq(), kt.of, t), r = e.flatten(!0);
5262
+ var t = [this].concat(Dt(arguments)), e = er(this.toSeq(), kt.of, t), r = e.flatten(!0);
5263
5263
  return e.size && (r.size = e.size * t.length), V(this, r);
5264
5264
  },
5265
5265
  keySeq: function() {
5266
- return wa(0, this.size);
5266
+ return ma(0, this.size);
5267
5267
  },
5268
5268
  last: function(t) {
5269
5269
  return this.get(-1, t);
@@ -5273,15 +5273,15 @@ Gt(Ht, {
5273
5273
  },
5274
5274
  zip: function() {
5275
5275
  var t = [this].concat(Dt(arguments));
5276
- return V(this, tr(this, wo, t));
5276
+ return V(this, er(this, wo, t));
5277
5277
  },
5278
5278
  zipAll: function() {
5279
5279
  var t = [this].concat(Dt(arguments));
5280
- return V(this, tr(this, wo, t, !0));
5280
+ return V(this, er(this, wo, t, !0));
5281
5281
  },
5282
5282
  zipWith: function(t) {
5283
5283
  var e = Dt(arguments);
5284
- return e[0] = this, V(this, tr(this, t, e));
5284
+ return e[0] = this, V(this, er(this, t, e));
5285
5285
  }
5286
5286
  });
5287
5287
  var we = Ht.prototype;
@@ -5304,7 +5304,7 @@ var he = de.prototype;
5304
5304
  he.has = it.includes;
5305
5305
  he.contains = he.includes;
5306
5306
  he.keys = he.values;
5307
- Gt(Ut, He);
5307
+ Gt(Ut, Je);
5308
5308
  Gt(kt, we);
5309
5309
  Gt(_e, he);
5310
5310
  function wo() {
@@ -5313,7 +5313,7 @@ function wo() {
5313
5313
  function Ei(t) {
5314
5314
  return Tn(t) && Rt(t);
5315
5315
  }
5316
- var qe = /* @__PURE__ */ (function(t) {
5316
+ var Ve = /* @__PURE__ */ (function(t) {
5317
5317
  function e(r) {
5318
5318
  return r == null ? an() : Ei(r) ? r : an().withMutations(function(n) {
5319
5319
  var o = de(r);
@@ -5330,8 +5330,8 @@ var qe = /* @__PURE__ */ (function(t) {
5330
5330
  return this.__toString("OrderedSet {", "}");
5331
5331
  }, e;
5332
5332
  })(kr);
5333
- qe.isOrderedSet = Ei;
5334
- var Qt = qe.prototype;
5333
+ Ve.isOrderedSet = Ei;
5334
+ var Qt = Ve.prototype;
5335
5335
  Qt[Vt] = !0;
5336
5336
  Qt.zip = we.zip;
5337
5337
  Qt.zipWith = we.zipWith;
@@ -5346,7 +5346,7 @@ var bo;
5346
5346
  function an() {
5347
5347
  return bo || (bo = Oi(Ee()));
5348
5348
  }
5349
- function Oa(t) {
5349
+ function Ea(t) {
5350
5350
  if (Jt(t))
5351
5351
  throw new Error(
5352
5352
  "Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
@@ -5362,7 +5362,7 @@ function Oa(t) {
5362
5362
  }
5363
5363
  var tt = function(t, e) {
5364
5364
  var r;
5365
- Oa(t);
5365
+ Ea(t);
5366
5366
  var n = function(i) {
5367
5367
  var s = this;
5368
5368
  if (i instanceof n)
@@ -5377,7 +5377,7 @@ var tt = function(t, e) {
5377
5377
  var l = a[c];
5378
5378
  u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
5379
5379
  "Cannot define " + qn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
5380
- ) : ka(o, l);
5380
+ ) : Oa(o, l);
5381
5381
  }
5382
5382
  }
5383
5383
  return this.__ownerID = void 0, this._values = Or().withMutations(function(f) {
@@ -5390,7 +5390,7 @@ var tt = function(t, e) {
5390
5390
  };
5391
5391
  tt.prototype.toString = function() {
5392
5392
  for (var t = qn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
5393
- r = e[n], t += (n ? ", " : "") + r + ": " + Me(this.get(r));
5393
+ r = e[n], t += (n ? ", " : "") + r + ": " + Te(this.get(r));
5394
5394
  return t + " }";
5395
5395
  };
5396
5396
  tt.prototype.equals = function(t) {
@@ -5454,7 +5454,7 @@ tt.isRecord = Jt;
5454
5454
  tt.getDescriptiveName = qn;
5455
5455
  var F = tt.prototype;
5456
5456
  F[Lo] = !0;
5457
- F[Ue] = F.remove;
5457
+ F[Fe] = F.remove;
5458
5458
  F.deleteIn = F.removeIn = xn;
5459
5459
  F.getIn = Si;
5460
5460
  F.hasIn = it.hasIn;
@@ -5467,9 +5467,9 @@ F.mergeDeepIn = En;
5467
5467
  F.setIn = kn;
5468
5468
  F.update = Dn;
5469
5469
  F.updateIn = An;
5470
- F.withMutations = Ke;
5471
- F.asMutable = Be;
5472
- F.asImmutable = We;
5470
+ F.withMutations = He;
5471
+ F.asMutable = Ke;
5472
+ F.asImmutable = Be;
5473
5473
  F[mr] = F.entries;
5474
5474
  F.toJSON = F.toObject = it.toObject;
5475
5475
  F.inspect = F.toSource = function() {
@@ -5487,42 +5487,42 @@ function pe(t) {
5487
5487
  return [e, t.get(e)];
5488
5488
  }));
5489
5489
  }
5490
- function ka(t, e) {
5490
+ function Oa(t, e) {
5491
5491
  try {
5492
5492
  Object.defineProperty(t, e, {
5493
5493
  get: function() {
5494
5494
  return this.get(e);
5495
5495
  },
5496
5496
  set: function(r) {
5497
- ze(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
5497
+ Re(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
5498
5498
  }
5499
5499
  });
5500
5500
  } catch {
5501
5501
  }
5502
5502
  }
5503
5503
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5504
- function Da(t, e) {
5504
+ function ka(t, e) {
5505
5505
  return un() ? (cn(t, e), !0) : !1;
5506
5506
  }
5507
5507
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5508
- const Aa = () => {
5508
+ const Da = () => {
5509
5509
  };
5510
- function za(...t) {
5510
+ function Aa(...t) {
5511
5511
  if (t.length !== 1) return Bt(...t);
5512
5512
  const e = t[0];
5513
5513
  return typeof e == "function" ? gr(ln(() => ({
5514
5514
  get: e,
5515
- set: Aa
5516
- }))) : z(e);
5515
+ set: Da
5516
+ }))) : C(e);
5517
5517
  }
5518
5518
  function Lr(t) {
5519
5519
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5520
5520
  }
5521
5521
  const Ur = /* @__PURE__ */ new WeakMap();
5522
- function Ra(t, e = !1) {
5523
- const r = Le(e);
5522
+ function za(t, e = !1) {
5523
+ const r = Ue(e);
5524
5524
  let n = "";
5525
- ot(za(t), (s) => {
5525
+ ot(Aa(t), (s) => {
5526
5526
  const a = Lr(St(s));
5527
5527
  if (a) {
5528
5528
  const u = a;
@@ -5537,7 +5537,7 @@ function Ra(t, e = !1) {
5537
5537
  const s = Lr(St(t));
5538
5538
  !s || !r.value || (s.style.overflow = n, Ur.delete(s), r.value = !1);
5539
5539
  };
5540
- return Da(i), N({
5540
+ return ka(i), N({
5541
5541
  get() {
5542
5542
  return r.value;
5543
5543
  },
@@ -5546,45 +5546,45 @@ function Ra(t, e = !1) {
5546
5546
  }
5547
5547
  });
5548
5548
  }
5549
- function Ca() {
5549
+ function Ra() {
5550
5550
  let t = !1;
5551
- const e = Le(!1);
5551
+ const e = Ue(!1);
5552
5552
  return (r, n) => {
5553
5553
  if (e.value = n.value, t) return;
5554
5554
  t = !0;
5555
- const o = Ra(r, n.value);
5555
+ const o = za(r, n.value);
5556
5556
  ot(e, (i) => o.value = i);
5557
5557
  };
5558
5558
  }
5559
- Ca();
5560
- const Na = (t, e) => {
5559
+ Ra();
5560
+ const Ca = (t, e) => {
5561
5561
  const r = t.__vccOpts || t;
5562
5562
  for (const [n, o] of e)
5563
5563
  r[n] = o;
5564
5564
  return r;
5565
5565
  };
5566
- function ja(t, e) {
5566
+ function Na(t, e) {
5567
5567
  return un() ? (cn(t, e), !0) : !1;
5568
5568
  }
5569
5569
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5570
- const xa = () => {
5570
+ const ja = () => {
5571
5571
  };
5572
- function $a(...t) {
5572
+ function xa(...t) {
5573
5573
  if (t.length !== 1) return Bt(...t);
5574
5574
  const e = t[0];
5575
5575
  return typeof e == "function" ? gr(ln(() => ({
5576
5576
  get: e,
5577
- set: xa
5578
- }))) : z(e);
5577
+ set: ja
5578
+ }))) : C(e);
5579
5579
  }
5580
5580
  function Fr(t) {
5581
5581
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5582
5582
  }
5583
5583
  const Wr = /* @__PURE__ */ new WeakMap();
5584
- function Ma(t, e = !1) {
5585
- const r = Le(e);
5584
+ function $a(t, e = !1) {
5585
+ const r = Ue(e);
5586
5586
  let n = "";
5587
- ot($a(t), (s) => {
5587
+ ot(xa(t), (s) => {
5588
5588
  const a = Fr(St(s));
5589
5589
  if (a) {
5590
5590
  const u = a;
@@ -5599,7 +5599,7 @@ function Ma(t, e = !1) {
5599
5599
  const s = Fr(St(t));
5600
5600
  !s || !r.value || (s.style.overflow = n, Wr.delete(s), r.value = !1);
5601
5601
  };
5602
- return ja(i), N({
5602
+ return Na(i), N({
5603
5603
  get() {
5604
5604
  return r.value;
5605
5605
  },
@@ -5608,25 +5608,25 @@ function Ma(t, e = !1) {
5608
5608
  }
5609
5609
  });
5610
5610
  }
5611
- function Ta() {
5611
+ function Ma() {
5612
5612
  let t = !1;
5613
- const e = Le(!1);
5613
+ const e = Ue(!1);
5614
5614
  return (r, n) => {
5615
5615
  if (e.value = n.value, t) return;
5616
5616
  t = !0;
5617
- const o = Ma(r, n.value);
5617
+ const o = $a(r, n.value);
5618
5618
  ot(e, (i) => o.value = i);
5619
5619
  };
5620
5620
  }
5621
- Ta();
5621
+ Ma();
5622
5622
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5623
- const Pa = { class: "aform" }, qa = {
5623
+ const Ta = { class: "aform" }, Pa = {
5624
5624
  key: 0,
5625
5625
  class: "aform-nested-section"
5626
- }, Va = {
5626
+ }, qa = {
5627
5627
  key: 0,
5628
5628
  class: "aform-nested-label"
5629
- }, La = /* @__PURE__ */ Ve({
5629
+ }, Va = /* @__PURE__ */ Le({
5630
5630
  __name: "AForm",
5631
5631
  props: /* @__PURE__ */ Un({
5632
5632
  schema: {},
@@ -5637,7 +5637,7 @@ const Pa = { class: "aform" }, qa = {
5637
5637
  }),
5638
5638
  emits: /* @__PURE__ */ Un(["update:schema", "update:data"], ["update:data"]),
5639
5639
  setup(t, { emit: e }) {
5640
- const r = e, n = Ni(t, "data"), o = z({});
5640
+ const r = e, n = Ni(t, "data"), o = C({});
5641
5641
  ot(
5642
5642
  () => n.value,
5643
5643
  (f) => {
@@ -5662,7 +5662,7 @@ const Pa = { class: "aform" }, qa = {
5662
5662
  function u(f) {
5663
5663
  return f.mode || a.value;
5664
5664
  }
5665
- const c = z([]);
5665
+ const c = C([]);
5666
5666
  ji(() => {
5667
5667
  t.schema && c.value.length !== t.schema.length && (c.value = t.schema.map((f, h) => N({
5668
5668
  get() {
@@ -5675,10 +5675,10 @@ const Pa = { class: "aform" }, qa = {
5675
5675
  })));
5676
5676
  });
5677
5677
  const l = N(() => c.value);
5678
- return (f, h) => (M(), U("form", Pa, [
5679
- (M(!0), U(ne, null, Ce(t.schema, (d, y) => (M(), U(ne, { key: y }, [
5680
- "schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", qa, [
5681
- d.label && !("collapsible" in d) ? (M(), U("h4", Va, At(d.label), 1)) : ee("", !0),
5678
+ return (f, h) => (M(), U("form", Ta, [
5679
+ (M(!0), U(ne, null, Ne(t.schema, (d, y) => (M(), U(ne, { key: y }, [
5680
+ "schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", Pa, [
5681
+ d.label && !("collapsible" in d) ? (M(), U("h4", qa, At(d.label), 1)) : ee("", !0),
5682
5682
  (M(), ar(Ln(d.component ?? "AForm"), {
5683
5683
  data: o.value[d.fieldname],
5684
5684
  mode: u(d),
@@ -5698,13 +5698,13 @@ const Pa = { class: "aform" }, qa = {
5698
5698
  ], 64))), 128))
5699
5699
  ]));
5700
5700
  }
5701
- }), Ua = /* @__PURE__ */ Na(La, [["__scopeId", "data-v-976e189b"]]), Fa = { class: "tabs" }, Wa = { tabindex: "0" }, Ba = { tabindex: "0" }, Ka = /* @__PURE__ */ Ve({
5701
+ }), La = /* @__PURE__ */ Ca(Va, [["__scopeId", "data-v-8d4cd672"]]), Ua = { class: "tabs" }, Fa = { tabindex: "0" }, Wa = { tabindex: "0" }, Ba = /* @__PURE__ */ Le({
5702
5702
  __name: "SheetNav",
5703
5703
  props: {
5704
5704
  breadcrumbs: { default: () => [] }
5705
5705
  },
5706
5706
  setup(t) {
5707
- const e = z(!0), r = z(!1), n = z(""), o = So("searchinput"), i = N(() => e.value ? "unrotated" : "rotated"), s = () => {
5707
+ const e = C(!0), r = C(!1), n = C(""), o = So("searchinput"), i = N(() => e.value ? "unrotated" : "rotated"), s = () => {
5708
5708
  e.value = !e.value;
5709
5709
  }, a = async () => {
5710
5710
  r.value = !r.value, await oe(() => {
@@ -5719,13 +5719,13 @@ const Pa = { class: "aform" }, qa = {
5719
5719
  return (f, h) => {
5720
5720
  const d = $i("router-link");
5721
5721
  return M(), U("footer", null, [
5722
- $("ul", Fa, [
5722
+ $("ul", Ua, [
5723
5723
  $("li", {
5724
5724
  class: "hidebreadcrumbs",
5725
5725
  onClick: s,
5726
5726
  onKeydown: be(s, ["enter"])
5727
5727
  }, [
5728
- $("a", Wa, [
5728
+ $("a", Fa, [
5729
5729
  $("div", {
5730
5730
  class: te(i.value)
5731
5731
  }, "×", 2)
@@ -5741,7 +5741,7 @@ const Pa = { class: "aform" }, qa = {
5741
5741
  to: "/",
5742
5742
  tabindex: "0"
5743
5743
  }, {
5744
- default: Ne(() => [...h[5] || (h[5] = [
5744
+ default: je(() => [...h[5] || (h[5] = [
5745
5745
  $("svg", {
5746
5746
  class: "icon",
5747
5747
  "aria-label": "Home",
@@ -5761,7 +5761,7 @@ const Pa = { class: "aform" }, qa = {
5761
5761
  class: te(["searchtab", { "search-active": r.value }]),
5762
5762
  style: Rr({ display: e.value ? "block" : "none" })
5763
5763
  }, [
5764
- $("a", Ba, [
5764
+ $("a", Wa, [
5765
5765
  sr((M(), U("svg", {
5766
5766
  class: "icon search-icon",
5767
5767
  role: "button",
@@ -5801,7 +5801,7 @@ const Pa = { class: "aform" }, qa = {
5801
5801
  ])
5802
5802
  ])
5803
5803
  ], 6),
5804
- (M(!0), U(ne, null, Ce(t.breadcrumbs, (y) => (M(), U("li", {
5804
+ (M(!0), U(ne, null, Ne(t.breadcrumbs, (y) => (M(), U("li", {
5805
5805
  key: y.title,
5806
5806
  style: Rr({ display: e.value ? "block" : "none" })
5807
5807
  }, [
@@ -5809,7 +5809,7 @@ const Pa = { class: "aform" }, qa = {
5809
5809
  tabindex: "0",
5810
5810
  to: y.to
5811
5811
  }, {
5812
- default: Ne(() => [
5812
+ default: je(() => [
5813
5813
  ur(At(y.title), 1)
5814
5814
  ]),
5815
5815
  _: 2
@@ -5819,13 +5819,13 @@ const Pa = { class: "aform" }, qa = {
5819
5819
  ]);
5820
5820
  };
5821
5821
  }
5822
- }), ki = /* @__PURE__ */ Ao(Ka, [["__scopeId", "data-v-eb5bcbb6"]]), Ha = {
5822
+ }), ki = /* @__PURE__ */ Ao(Ba, [["__scopeId", "data-v-eb5bcbb6"]]), Ka = {
5823
5823
  key: 1,
5824
5824
  class: "loading"
5825
- }, Ja = {
5825
+ }, Ha = {
5826
5826
  key: 2,
5827
5827
  class: "loading"
5828
- }, Ga = /* @__PURE__ */ Ve({
5828
+ }, Ja = /* @__PURE__ */ Le({
5829
5829
  __name: "Desktop",
5830
5830
  props: {
5831
5831
  availableDoctypes: {},
@@ -5835,7 +5835,7 @@ const Pa = { class: "aform" }, qa = {
5835
5835
  },
5836
5836
  emits: ["action", "navigate", "record:open", "load-records", "load-record"],
5837
5837
  setup(t, { emit: e }) {
5838
- const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Rs(), s = z(!1), a = z(!1), u = N({
5838
+ const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = zs(), s = C(!1), a = C(!1), u = N({
5839
5839
  get() {
5840
5840
  if (!i.value || !f.value || !d.value)
5841
5841
  return {};
@@ -5850,14 +5850,14 @@ const Pa = { class: "aform" }, qa = {
5850
5850
  try {
5851
5851
  const p = i.value.getStore();
5852
5852
  for (const [w, g] of Object.entries(v)) {
5853
- const A = `${f.value}.${d.value}.${w}`;
5854
- (p.has(A) ? p.get(A) : void 0) !== g && p.set(A, g);
5853
+ const D = `${f.value}.${d.value}.${w}`;
5854
+ (p.has(D) ? p.get(D) : void 0) !== g && p.set(D, g);
5855
5855
  }
5856
5856
  } catch (p) {
5857
5857
  console.warn("HST update failed:", p);
5858
5858
  }
5859
5859
  }
5860
- }), c = N(() => r.routeAdapter ? null : nr(i.value?.registry.router?.currentRoute)), l = N(() => r.routeAdapter ? null : i.value?.registry.router), f = N(() => {
5860
+ }), c = N(() => r.routeAdapter ? null : or(i.value?.registry.router?.currentRoute)), l = N(() => r.routeAdapter ? null : i.value?.registry.router), f = N(() => {
5861
5861
  if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
5862
5862
  if (!c.value) return "";
5863
5863
  if (c.value.meta?.actualDoctype)
@@ -5895,18 +5895,18 @@ const Pa = { class: "aform" }, qa = {
5895
5895
  }
5896
5896
  const v = c.value.params.pathMatch;
5897
5897
  return v && v.length > 0 ? v.length === 1 ? "records" : "record" : "doctypes";
5898
- }), D = () => {
5898
+ }), A = () => {
5899
5899
  if (!i.value || !f.value || !d.value)
5900
5900
  return [];
5901
5901
  try {
5902
5902
  const v = i.value.registry.getDoctype(f.value);
5903
5903
  if (!v?.workflow) return [];
5904
5904
  const p = i.value.getRecordState(f.value, d.value), w = v.getAvailableTransitions(p), g = u.value || {};
5905
- return w.map(({ name: A, targetState: C }) => ({
5906
- label: `${A} (→ ${C})`,
5905
+ return w.map(({ name: D, targetState: R }) => ({
5906
+ label: `${D} (→ ${R})`,
5907
5907
  action: () => {
5908
5908
  n("action", {
5909
- name: A,
5909
+ name: D,
5910
5910
  doctype: f.value,
5911
5911
  recordId: d.value,
5912
5912
  data: g
@@ -5929,7 +5929,7 @@ const Pa = { class: "aform" }, qa = {
5929
5929
  });
5930
5930
  break;
5931
5931
  case "record": {
5932
- const p = D();
5932
+ const p = A();
5933
5933
  p.length > 0 && v.push({
5934
5934
  type: "dropdown",
5935
5935
  label: "Actions",
@@ -6059,13 +6059,13 @@ const Pa = { class: "aform" }, qa = {
6059
6059
  rows: v
6060
6060
  }
6061
6061
  ];
6062
- }, R = () => {
6062
+ }, z = () => {
6063
6063
  if (!f.value) return [];
6064
6064
  if (!i.value) return [];
6065
6065
  const v = k(), p = P(), w = r.recordIdField || "id";
6066
6066
  if (p.length === 0)
6067
6067
  return [];
6068
- const g = p.find((Y) => Y.fieldname === w), A = p.filter((Y) => Y.fieldname !== w), C = g ? [g, ...A] : p, Z = v.map((Y) => ({
6068
+ const g = p.find((Y) => Y.fieldname === w), D = p.filter((Y) => Y.fieldname !== w), R = g ? [g, ...D] : p, Z = v.map((Y) => ({
6069
6069
  ...Y,
6070
6070
  // Use the canonical ID field for navigation
6071
6071
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
@@ -6077,7 +6077,7 @@ const Pa = { class: "aform" }, qa = {
6077
6077
  fieldname: "records_table",
6078
6078
  component: "ATable",
6079
6079
  columns: [
6080
- ...C.map((Y) => ({
6080
+ ...R.map((Y) => ({
6081
6081
  label: Y.label,
6082
6082
  name: Y.fieldname,
6083
6083
  fieldtype: Y.fieldtype,
@@ -6133,7 +6133,7 @@ const Pa = { class: "aform" }, qa = {
6133
6133
  case "doctypes":
6134
6134
  return b();
6135
6135
  case "records":
6136
- return R();
6136
+ return z();
6137
6137
  case "record":
6138
6138
  return J();
6139
6139
  default:
@@ -6157,27 +6157,27 @@ const Pa = { class: "aform" }, qa = {
6157
6157
  if (w === null) return null;
6158
6158
  const g = parseInt(w, 10);
6159
6159
  if (isNaN(g)) return null;
6160
- const C = k()[g];
6161
- if (!C) return null;
6160
+ const R = k()[g];
6161
+ if (!R) return null;
6162
6162
  const Z = r.recordIdField || "id";
6163
- return C[Z] || C.id || null;
6163
+ return R[Z] || R.id || null;
6164
6164
  }, I = async (v) => {
6165
6165
  const p = v.target;
6166
6166
  p.getAttribute("data-action") === "create" && await S();
6167
6167
  const g = p.closest("td, th");
6168
6168
  if (g) {
6169
- const A = g.textContent?.trim(), C = g.closest("tr");
6170
- if (A === "View Records" && C) {
6171
- const Z = C.querySelectorAll("td");
6169
+ const D = g.textContent?.trim(), R = g.closest("tr");
6170
+ if (D === "View Records" && R) {
6171
+ const Z = R.querySelectorAll("td");
6172
6172
  if (Z.length > 0) {
6173
- const Je = Z[1].textContent?.trim();
6174
- Je && await jt(Je);
6173
+ const Ge = Z[1].textContent?.trim();
6174
+ Ge && await jt(Ge);
6175
6175
  }
6176
- } else if (A?.includes("Edit") && C) {
6177
- const Z = _(C);
6176
+ } else if (D?.includes("Edit") && R) {
6177
+ const Z = _(R);
6178
6178
  Z && await q(Z);
6179
- } else if (A?.includes("Delete") && C) {
6180
- const Z = _(C);
6179
+ } else if (D?.includes("Delete") && R) {
6180
+ const Z = _(R);
6181
6181
  Z && await st(Z);
6182
6182
  }
6183
6183
  }
@@ -6231,14 +6231,14 @@ const Pa = { class: "aform" }, qa = {
6231
6231
  elements: T.value,
6232
6232
  onActionClick: xt
6233
6233
  }, null, 8, ["elements"]),
6234
- G.value.length > 0 ? (M(), ar(nr(Ua), {
6234
+ G.value.length > 0 ? (M(), ar(or(La), {
6235
6235
  key: 0,
6236
6236
  data: u.value,
6237
6237
  "onUpdate:data": p[0] || (p[0] = (w) => u.value = w),
6238
6238
  schema: G.value
6239
- }, null, 8, ["data", "schema"])) : nr(i) ? (M(), U("div", Ja, [
6239
+ }, null, 8, ["data", "schema"])) : or(i) ? (M(), U("div", Ha, [
6240
6240
  $("p", null, "Loading " + At(m.value) + " data...", 1)
6241
- ])) : (M(), U("div", Ha, [...p[2] || (p[2] = [
6241
+ ])) : (M(), U("div", Ka, [...p[2] || (p[2] = [
6242
6242
  $("p", null, "Initializing Stonecrop...", -1)
6243
6243
  ])])),
6244
6244
  re(ki, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
@@ -6249,26 +6249,26 @@ const Pa = { class: "aform" }, qa = {
6249
6249
  onSelect: Ot,
6250
6250
  onClose: p[1] || (p[1] = (w) => a.value = !1)
6251
6251
  }, {
6252
- title: Ne(({ result: w }) => [
6252
+ title: je(({ result: w }) => [
6253
6253
  ur(At(w.title), 1)
6254
6254
  ]),
6255
- content: Ne(({ result: w }) => [
6255
+ content: je(({ result: w }) => [
6256
6256
  ur(At(w.description), 1)
6257
6257
  ]),
6258
6258
  _: 1
6259
6259
  }, 8, ["is-open"])
6260
6260
  ]));
6261
6261
  }
6262
- }), Ya = {
6262
+ }), Qa = {
6263
6263
  install: (t) => {
6264
- t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop", Ga), t.component("SheetNav", ki);
6264
+ t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop", Ja), t.component("SheetNav", ki);
6265
6265
  }
6266
6266
  };
6267
6267
  export {
6268
6268
  zo as ActionSet,
6269
6269
  Ro as CommandPalette,
6270
- Ga as Desktop,
6270
+ Ja as Desktop,
6271
6271
  ki as SheetNav,
6272
- Ya as StonecropDesktop
6272
+ Qa as StonecropDesktop
6273
6273
  };
6274
6274
  //# sourceMappingURL=desktop.js.map