@stonecrop/desktop 0.10.8 → 0.10.10

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,4 +1,4 @@
1
- import { defineComponent as Ve, ref as A, onMounted as pr, openBlock as M, createElementBlock as P, normalizeClass as nr, createElementVNode as N, Fragment as ne, renderList as Ce, toDisplayString as Dt, createCommentVNode as re, withDirectives as or, vShow as qr, useTemplateRef as yo, computed as C, watch as tt, nextTick as oe, createBlock as tn, Teleport as Oi, createVNode as Kt, Transition as ki, withCtx as Re, withModifiers as _o, vModelText as go, renderSlot as Er, createTextVNode as ir, toRaw as mo, isRef as ie, isReactive as dr, toRef as Ht, hasInjectionContext as Vr, inject as Ne, getCurrentInstance as wo, reactive as bo, markRaw as Ie, effectScope as Di, getCurrentScope as en, onScopeDispose as rn, toRefs as jn, provide as Lr, shallowRef as Le, toValue as St, readonly as vr, customRef as nn, unref as er, useModel as Ai, watchEffect as zi, resolveComponent as So, resolveDynamicComponent as xi, mergeProps as Ci, mergeModels as Mn, withKeys as be, normalizeStyle as Or } from "vue";
1
+ import { defineComponent as Ve, ref as A, onMounted as pr, openBlock as M, createElementBlock as q, normalizeClass as nr, createElementVNode as N, Fragment as ne, renderList as Ce, toDisplayString as At, createCommentVNode as re, withDirectives as or, vShow as qr, useTemplateRef as yo, computed as C, watch as nt, nextTick as oe, createBlock as tn, Teleport as Oi, createVNode as Kt, Transition as ki, withCtx as Re, withModifiers as _o, vModelText as go, renderSlot as Er, createTextVNode as ir, toRaw as mo, isRef as ie, isReactive as dr, toRef as Ht, hasInjectionContext as Vr, inject as Ne, getCurrentInstance as wo, reactive as bo, markRaw as Ie, effectScope as Di, getCurrentScope as en, onScopeDispose as rn, toRefs as jn, provide as Lr, shallowRef as Le, toValue as It, readonly as vr, customRef as nn, unref as er, useModel as Ai, watchEffect as zi, resolveComponent as So, resolveDynamicComponent as xi, mergeProps as Ci, mergeModels as Mn, withKeys as be, normalizeStyle as Or } from "vue";
2
2
  const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { key: 1 }, Mi = ["onClick"], $i = { class: "dropdown-container" }, Ti = { class: "dropdown" }, Pi = ["onClick"], qi = ["href"], Vi = { class: "dropdown-item" }, Li = /* @__PURE__ */ Ve({
3
3
  __name: "ActionSet",
4
4
  props: {
@@ -18,13 +18,13 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
18
18
  }, 500);
19
19
  }, l = () => {
20
20
  a.value = !1, s.value = !1, clearTimeout(i.value), o.value = !1;
21
- }, f = (_) => {
22
- const g = !n.value[_];
23
- u(), g && (n.value[_] = !0);
24
- }, p = (_, g) => {
25
- r("actionClick", g, _);
21
+ }, f = (y) => {
22
+ const g = !n.value[y];
23
+ u(), g && (n.value[y] = !0);
24
+ }, p = (y, g) => {
25
+ r("actionClick", g, y);
26
26
  };
27
- return (_, g) => (M(), P("div", {
27
+ return (y, g) => (M(), q("div", {
28
28
  class: nr([{ "open-set": o.value, "hovered-and-closed": s.value }, "action-set collapse"]),
29
29
  onMouseover: c,
30
30
  onMouseleave: l
@@ -43,9 +43,7 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
43
43
  x: "0px",
44
44
  y: "0px",
45
45
  viewBox: "0 0 100 100",
46
- "xml:space": "preserve",
47
- width: "50",
48
- height: "50"
46
+ "xml:space": "preserve"
49
47
  }, [
50
48
  N("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
51
49
  ], -1),
@@ -58,44 +56,42 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
58
56
  x: "0px",
59
57
  y: "0px",
60
58
  viewBox: "0 0 100 100",
61
- "xml:space": "preserve",
62
- width: "50",
63
- height: "50"
59
+ "xml:space": "preserve"
64
60
  }, [
65
61
  N("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
66
62
  ], -1)
67
63
  ])])
68
64
  ]),
69
65
  g[2] || (g[2] = N("div", { style: { "margin-right": "30px" } }, null, -1)),
70
- (M(!0), P(ne, null, Ce(t.elements, (m, E) => (M(), P("div", {
66
+ (M(!0), q(ne, null, Ce(t.elements, (m, E) => (M(), q("div", {
71
67
  key: m.label,
72
68
  class: "action-element"
73
69
  }, [
74
- m.type == "button" ? (M(), P("button", {
70
+ m.type == "button" ? (M(), q("button", {
75
71
  key: 0,
76
72
  disabled: m.disabled,
77
73
  class: "button-default",
78
- onClick: (D) => p(m.action, m.label)
79
- }, Dt(m.label), 9, Ni)) : re("", !0),
80
- m.type == "dropdown" ? (M(), P("div", ji, [
74
+ onClick: (k) => p(m.action, m.label)
75
+ }, At(m.label), 9, Ni)) : re("", !0),
76
+ m.type == "dropdown" ? (M(), q("div", ji, [
81
77
  N("button", {
82
78
  class: "button-default",
83
- onClick: (D) => f(E)
84
- }, Dt(m.label), 9, Mi),
79
+ onClick: (k) => f(E)
80
+ }, At(m.label), 9, Mi),
85
81
  or(N("div", $i, [
86
82
  N("div", Ti, [
87
- (M(!0), P(ne, null, Ce(m.actions, (D, Q) => (M(), P("div", {
88
- key: D.label
83
+ (M(!0), q(ne, null, Ce(m.actions, (k, tt) => (M(), q("div", {
84
+ key: k.label
89
85
  }, [
90
- D.action != null ? (M(), P("button", {
86
+ k.action != null ? (M(), q("button", {
91
87
  key: 0,
92
88
  class: "dropdown-item",
93
- onClick: (rt) => p(D.action, D.label)
94
- }, Dt(D.label), 9, Pi)) : D.link != null ? (M(), P("a", {
89
+ onClick: (it) => p(k.action, k.label)
90
+ }, At(k.label), 9, Pi)) : k.link != null ? (M(), q("a", {
95
91
  key: 1,
96
- href: D.link
92
+ href: k.link
97
93
  }, [
98
- N("button", Vi, Dt(D.label), 1)
94
+ N("button", Vi, At(k.label), 1)
99
95
  ], 8, qi)) : re("", !0)
100
96
  ]))), 128))
101
97
  ])
@@ -111,7 +107,7 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
111
107
  for (const [n, o] of e)
112
108
  r[n] = o;
113
109
  return r;
114
- }, Eo = /* @__PURE__ */ Io(Li, [["__scopeId", "data-v-eb01c863"]]), Ui = { class: "command-palette-header" }, Bi = ["placeholder"], Fi = {
110
+ }, Eo = /* @__PURE__ */ Io(Li, [["__scopeId", "data-v-1bbe46d4"]]), Ui = { class: "command-palette-header" }, Bi = ["placeholder"], Fi = {
115
111
  key: 0,
116
112
  class: "command-palette-results"
117
113
  }, Wi = ["onClick", "onMouseover"], Ki = { class: "result-title" }, Hi = { class: "result-content" }, Ji = {
@@ -128,12 +124,12 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
128
124
  emits: ["select", "close"],
129
125
  setup(t, { emit: e }) {
130
126
  const r = e, n = A(""), o = A(0), i = yo("input"), a = C(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
131
- tt(
127
+ nt(
132
128
  () => t.isOpen,
133
129
  async (l) => {
134
130
  l && (n.value = "", o.value = 0, await oe(), i.value?.focus());
135
131
  }
136
- ), tt(a, () => {
132
+ ), nt(a, () => {
137
133
  o.value = 0;
138
134
  });
139
135
  const s = () => {
@@ -159,7 +155,7 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
159
155
  return (l, f) => (M(), tn(Oi, { to: "body" }, [
160
156
  Kt(ki, { name: "fade" }, {
161
157
  default: Re(() => [
162
- t.isOpen ? (M(), P("div", {
158
+ t.isOpen ? (M(), q("div", {
163
159
  key: 0,
164
160
  class: "command-palette-overlay",
165
161
  onClick: s
@@ -182,12 +178,12 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
182
178
  [go, n.value]
183
179
  ])
184
180
  ]),
185
- a.value.length ? (M(), P("div", Fi, [
186
- (M(!0), P(ne, null, Ce(a.value, (p, _) => (M(), P("div", {
187
- key: _,
188
- class: nr(["command-palette-result", { selected: _ === o.value }]),
181
+ a.value.length ? (M(), q("div", Fi, [
182
+ (M(!0), q(ne, null, Ce(a.value, (p, y) => (M(), q("div", {
183
+ key: y,
184
+ class: nr(["command-palette-result", { selected: y === o.value }]),
189
185
  onClick: (g) => c(p),
190
- onMouseover: (g) => o.value = _
186
+ onMouseover: (g) => o.value = y
191
187
  }, [
192
188
  N("div", Ki, [
193
189
  Er(l.$slots, "title", { result: p })
@@ -196,9 +192,9 @@ const Ri = { class: "action-menu-icon" }, Ni = ["disabled", "onClick"], ji = { k
196
192
  Er(l.$slots, "content", { result: p })
197
193
  ])
198
194
  ], 42, Wi))), 128))
199
- ])) : n.value && !a.value.length ? (M(), P("div", Ji, [
195
+ ])) : n.value && !a.value.length ? (M(), q("div", Ji, [
200
196
  Er(l.$slots, "empty", {}, () => [
201
- ir(' No results found for "' + Dt(n.value) + '" ', 1)
197
+ ir(' No results found for "' + At(n.value) + '" ', 1)
202
198
  ])
203
199
  ])) : re("", !0)
204
200
  ])
@@ -266,7 +262,7 @@ const Yi = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia
266
262
  function Xi(t) {
267
263
  return !Jt(t) || !Object.prototype.hasOwnProperty.call(t, Yi);
268
264
  }
269
- const { assign: wt } = Object;
265
+ const { assign: bt } = Object;
270
266
  function Pn(t) {
271
267
  return !!(ie(t) && t.effect);
272
268
  }
@@ -279,49 +275,49 @@ function qn(t, e, r, n) {
279
275
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
280
276
  jn(A(o ? o() : {}).value)
281
277
  ) : jn(r.state.value[t]);
282
- return wt(l, i, Object.keys(a || {}).reduce((f, p) => (process.env.NODE_ENV !== "production" && p in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), f[p] = Ie(C(() => {
278
+ return bt(l, i, Object.keys(a || {}).reduce((f, p) => (process.env.NODE_ENV !== "production" && p in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), f[p] = Ie(C(() => {
283
279
  ar(r);
284
- const _ = r._s.get(t);
285
- return a[p].call(_, _);
280
+ const y = r._s.get(t);
281
+ return a[p].call(y, y);
286
282
  })), f), {}));
287
283
  }
288
284
  return u = Fr(t, c, e, r, n, !0), u;
289
285
  }
290
286
  function Fr(t, e, r = {}, n, o, i) {
291
287
  let a;
292
- const s = wt({ actions: {} }, r);
288
+ const s = bt({ actions: {} }, r);
293
289
  if (process.env.NODE_ENV !== "production" && !n._e.active)
294
290
  throw new Error("Pinia destroyed");
295
291
  const u = { deep: !0 };
296
292
  process.env.NODE_ENV !== "production" && (u.onTrigger = (w) => {
297
- c ? _ = w : c == !1 && !I._hotUpdating && (Array.isArray(_) ? _.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
293
+ c ? y = w : c == !1 && !I._hotUpdating && (Array.isArray(y) ? y.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
298
294
  });
299
- let c, l, f = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), _;
295
+ let c, l, f = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), y;
300
296
  const g = n.state.value[t];
301
297
  !i && !g && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
302
298
  const m = A({});
303
299
  let E;
304
- function D(w) {
300
+ function k(w) {
305
301
  let b;
306
- c = l = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof w == "function" ? (w(n.state.value[t]), b = {
302
+ c = l = !1, process.env.NODE_ENV !== "production" && (y = []), typeof w == "function" ? (w(n.state.value[t]), b = {
307
303
  type: De.patchFunction,
308
304
  storeId: t,
309
- events: _
305
+ events: y
310
306
  }) : (Br(n.state.value[t], w), b = {
311
307
  type: De.patchObject,
312
308
  payload: w,
313
309
  storeId: t,
314
- events: _
310
+ events: y
315
311
  });
316
312
  const z = E = /* @__PURE__ */ Symbol();
317
313
  oe().then(() => {
318
314
  E === z && (c = !0);
319
315
  }), l = !0, Zt(f, b, n.state.value[t]);
320
316
  }
321
- const Q = i ? function() {
317
+ const tt = i ? function() {
322
318
  const { state: b } = r, z = b ? b() : {};
323
319
  this.$patch((W) => {
324
- wt(W, z);
320
+ bt(W, z);
325
321
  });
326
322
  } : (
327
323
  /* istanbul ignore next */
@@ -329,10 +325,10 @@ function Fr(t, e, r = {}, n, o, i) {
329
325
  throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`);
330
326
  } : Do
331
327
  );
332
- function rt() {
328
+ function it() {
333
329
  a.stop(), f.clear(), p.clear(), n._s.delete(t);
334
330
  }
335
- const gt = (w, b = "") => {
331
+ const mt = (w, b = "") => {
336
332
  if (Tn in w)
337
333
  return w[kr] = b, w;
338
334
  const z = function() {
@@ -341,7 +337,7 @@ function Fr(t, e, r = {}, n, o, i) {
341
337
  function F(K) {
342
338
  O.add(K);
343
339
  }
344
- function Mt(K) {
340
+ function $t(K) {
345
341
  j.add(K);
346
342
  }
347
343
  Zt(p, {
@@ -349,72 +345,72 @@ function Fr(t, e, r = {}, n, o, i) {
349
345
  name: z[kr],
350
346
  store: I,
351
347
  after: F,
352
- onError: Mt
348
+ onError: $t
353
349
  });
354
- let ct;
350
+ let lt;
355
351
  try {
356
- ct = w.apply(this && this.$id === t ? this : I, W);
352
+ lt = w.apply(this && this.$id === t ? this : I, W);
357
353
  } catch (K) {
358
354
  throw Zt(j, K), K;
359
355
  }
360
- return ct instanceof Promise ? ct.then((K) => (Zt(O, K), K)).catch((K) => (Zt(j, K), Promise.reject(K))) : (Zt(O, ct), ct);
356
+ return lt instanceof Promise ? lt.then((K) => (Zt(O, K), K)).catch((K) => (Zt(j, K), Promise.reject(K))) : (Zt(O, lt), lt);
361
357
  };
362
358
  return z[Tn] = !0, z[kr] = b, z;
363
- }, J = /* @__PURE__ */ Ie({
359
+ }, G = /* @__PURE__ */ Ie({
364
360
  actions: {},
365
361
  getters: {},
366
362
  state: [],
367
363
  hotState: m
368
- }), mt = {
364
+ }), wt = {
369
365
  _p: n,
370
366
  // _s: scope,
371
367
  $id: t,
372
368
  $onAction: $n.bind(null, p),
373
- $patch: D,
374
- $reset: Q,
369
+ $patch: k,
370
+ $reset: tt,
375
371
  $subscribe(w, b = {}) {
376
- const z = $n(f, w, b.detached, () => W()), W = a.run(() => tt(() => n.state.value[t], (O) => {
372
+ const z = $n(f, w, b.detached, () => W()), W = a.run(() => nt(() => n.state.value[t], (O) => {
377
373
  (b.flush === "sync" ? l : c) && w({
378
374
  storeId: t,
379
375
  type: De.direct,
380
- events: _
376
+ events: y
381
377
  }, O);
382
- }, wt({}, u, b)));
378
+ }, bt({}, u, b)));
383
379
  return z;
384
380
  },
385
- $dispose: rt
386
- }, I = bo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te ? wt(
381
+ $dispose: it
382
+ }, I = bo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && te ? bt(
387
383
  {
388
- _hmrPayload: J,
384
+ _hmrPayload: G,
389
385
  _customProperties: Ie(/* @__PURE__ */ new Set())
390
386
  // devtools custom properties
391
387
  },
392
- mt
388
+ wt
393
389
  // must be added later
394
390
  // setupStore
395
- ) : mt);
391
+ ) : wt);
396
392
  n._s.set(t, I);
397
- const G = (n._a && n._a.runWithContext || Gi)(() => n._e.run(() => (a = Di()).run(() => e({ action: gt }))));
398
- for (const w in G) {
399
- const b = G[w];
393
+ const Y = (n._a && n._a.runWithContext || Gi)(() => n._e.run(() => (a = Di()).run(() => e({ action: mt }))));
394
+ for (const w in Y) {
395
+ const b = Y[w];
400
396
  if (ie(b) && !Pn(b) || dr(b))
401
- process.env.NODE_ENV !== "production" && o ? m.value[w] = Ht(G, w) : i || (g && Xi(b) && (ie(b) ? b.value = g[w] : Br(b, g[w])), n.state.value[t][w] = b), process.env.NODE_ENV !== "production" && J.state.push(w);
397
+ process.env.NODE_ENV !== "production" && o ? m.value[w] = Ht(Y, w) : i || (g && Xi(b) && (ie(b) ? b.value = g[w] : Br(b, g[w])), n.state.value[t][w] = b), process.env.NODE_ENV !== "production" && G.state.push(w);
402
398
  else if (typeof b == "function") {
403
- const z = process.env.NODE_ENV !== "production" && o ? b : gt(b, w);
404
- G[w] = z, process.env.NODE_ENV !== "production" && (J.actions[w] = b), s.actions[w] = b;
405
- } else process.env.NODE_ENV !== "production" && Pn(b) && (J.getters[w] = i ? (
399
+ const z = process.env.NODE_ENV !== "production" && o ? b : mt(b, w);
400
+ Y[w] = z, process.env.NODE_ENV !== "production" && (G.actions[w] = b), s.actions[w] = b;
401
+ } else process.env.NODE_ENV !== "production" && Pn(b) && (G.getters[w] = i ? (
406
402
  // @ts-expect-error
407
403
  r.getters[w]
408
- ) : b, te && (G._getters || // @ts-expect-error: same
409
- (G._getters = Ie([]))).push(w));
404
+ ) : b, te && (Y._getters || // @ts-expect-error: same
405
+ (Y._getters = Ie([]))).push(w));
410
406
  }
411
- if (wt(I, G), wt(mo(I), G), Object.defineProperty(I, "$state", {
407
+ if (bt(I, Y), bt(mo(I), Y), Object.defineProperty(I, "$state", {
412
408
  get: () => process.env.NODE_ENV !== "production" && o ? m.value : n.state.value[t],
413
409
  set: (w) => {
414
410
  if (process.env.NODE_ENV !== "production" && o)
415
411
  throw new Error("cannot set hotState");
416
- D((b) => {
417
- wt(b, w);
412
+ k((b) => {
413
+ bt(b, w);
418
414
  });
419
415
  }
420
416
  }), process.env.NODE_ENV !== "production" && (I._hotUpdate = Ie((w) => {
@@ -432,7 +428,7 @@ function Fr(t, e, r = {}, n, o, i) {
432
428
  for (const b in w._hmrPayload.actions) {
433
429
  const z = w[b];
434
430
  I[b] = //
435
- gt(z, b);
431
+ mt(z, b);
436
432
  }
437
433
  for (const b in w._hmrPayload.getters) {
438
434
  const z = w._hmrPayload.getters[b], W = i ? (
@@ -455,7 +451,7 @@ function Fr(t, e, r = {}, n, o, i) {
455
451
  enumerable: !1
456
452
  };
457
453
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((b) => {
458
- Object.defineProperty(I, b, wt({ value: I[b] }, w));
454
+ Object.defineProperty(I, b, bt({ value: I[b] }, w));
459
455
  });
460
456
  }
461
457
  return n._p.forEach((w) => {
@@ -466,9 +462,9 @@ function Fr(t, e, r = {}, n, o, i) {
466
462
  pinia: n,
467
463
  options: s
468
464
  }));
469
- Object.keys(b || {}).forEach((z) => I._customProperties.add(z)), wt(I, b);
465
+ Object.keys(b || {}).forEach((z) => I._customProperties.add(z)), bt(I, b);
470
466
  } else
471
- wt(I, a.run(() => w({
467
+ bt(I, a.run(() => w({
472
468
  store: I,
473
469
  app: n._a,
474
470
  pinia: n,
@@ -494,7 +490,7 @@ This will fail in production.`);
494
490
  a = Wt, a._s.has(t) || (o ? Fr(t, e, n, a) : qn(t, n, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
495
491
  const c = a._s.get(t);
496
492
  if (process.env.NODE_ENV !== "production" && s) {
497
- const l = "__hot:" + t, f = o ? Fr(l, e, n, a, !0) : qn(l, wt({}, n), a, !0);
493
+ const l = "__hot:" + t, f = o ? Fr(l, e, n, a, !0) : qn(l, bt({}, n), a, !0);
498
494
  s._hotUpdate(f), delete a.state.value[l], a._s.delete(l);
499
495
  }
500
496
  if (process.env.NODE_ENV !== "production" && te) {
@@ -575,7 +571,7 @@ function sa(t) {
575
571
  }
576
572
  function ua(t, e, r = {}) {
577
573
  const { eventFilter: n = Ao, ...o } = r;
578
- return tt(t, ia(n, e), o);
574
+ return nt(t, ia(n, e), o);
579
575
  }
580
576
  function ca(t, e, r = {}) {
581
577
  const { eventFilter: n, initialState: o = "active", ...i } = r, { eventFilter: a, pause: s, resume: u, isActive: c } = aa(n, { initialState: o });
@@ -593,7 +589,7 @@ function la(t, e = !0, r) {
593
589
  sa() ? pr(t, r) : e ? t() : oe(t);
594
590
  }
595
591
  function fa(t, e, r) {
596
- return tt(t, e, {
592
+ return nt(t, e, {
597
593
  ...r,
598
594
  immediate: !0
599
595
  });
@@ -601,25 +597,25 @@ function fa(t, e, r) {
601
597
  const sr = ta ? window : void 0;
602
598
  function ha(t) {
603
599
  var e;
604
- const r = St(t);
600
+ const r = It(t);
605
601
  return (e = r?.$el) !== null && e !== void 0 ? e : r;
606
602
  }
607
603
  function Vn(...t) {
608
604
  const e = (n, o, i, a) => (n.addEventListener(o, i, a), () => n.removeEventListener(o, i, a)), r = C(() => {
609
- const n = Dr(St(t[0])).filter((o) => o != null);
605
+ const n = Dr(It(t[0])).filter((o) => o != null);
610
606
  return n.every((o) => typeof o != "string") ? n : void 0;
611
607
  });
612
608
  return fa(() => {
613
609
  var n, o;
614
610
  return [
615
611
  (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ha(i))) !== null && n !== void 0 ? n : [sr].filter((i) => i != null),
616
- Dr(St(r.value ? t[1] : t[0])),
612
+ Dr(It(r.value ? t[1] : t[0])),
617
613
  Dr(er(r.value ? t[2] : t[1])),
618
- St(r.value ? t[3] : t[2])
614
+ It(r.value ? t[3] : t[2])
619
615
  ];
620
616
  }, ([n, o, i, a], s, u) => {
621
617
  if (!n?.length || !o?.length || !i?.length) return;
622
- const c = ra(a) ? { ...a } : a, l = n.flatMap((f) => o.flatMap((p) => i.map((_) => e(f, p, _, c))));
618
+ const c = ra(a) ? { ...a } : a, l = n.flatMap((f) => o.flatMap((p) => i.map((y) => e(f, p, y, c))));
623
619
  u(() => {
624
620
  l.forEach((f) => f());
625
621
  });
@@ -671,31 +667,31 @@ const _a = {
671
667
  }, Ln = "vueuse-storage";
672
668
  function ga(t, e, r, n = {}) {
673
669
  var o;
674
- const { flush: i = "pre", deep: a = !0, listenToStorageChanges: s = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = sr, eventFilter: p, onError: _ = (O) => {
670
+ const { flush: i = "pre", deep: a = !0, listenToStorageChanges: s = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = sr, eventFilter: p, onError: y = (O) => {
675
671
  console.error(O);
676
- }, initOnMounted: g } = n, m = (l ? Le : A)(e), E = C(() => St(t));
672
+ }, initOnMounted: g } = n, m = (l ? Le : A)(e), E = C(() => It(t));
677
673
  if (!r) try {
678
674
  r = va("getDefaultStorage", () => sr?.localStorage)();
679
675
  } catch (O) {
680
- _(O);
676
+ y(O);
681
677
  }
682
678
  if (!r) return m;
683
- const D = St(e), Q = ya(D), rt = (o = n.serializer) !== null && o !== void 0 ? o : _a[Q], { pause: gt, resume: J } = ca(m, (O) => w(O), {
679
+ const k = It(e), tt = ya(k), it = (o = n.serializer) !== null && o !== void 0 ? o : _a[tt], { pause: mt, resume: G } = ca(m, (O) => w(O), {
684
680
  flush: i,
685
681
  deep: a,
686
682
  eventFilter: p
687
683
  });
688
- tt(E, () => z(), { flush: i });
689
- let mt = !1;
684
+ nt(E, () => z(), { flush: i });
685
+ let wt = !1;
690
686
  const I = (O) => {
691
- g && !mt || z(O);
692
- }, Rt = (O) => {
693
- g && !mt || W(O);
687
+ g && !wt || z(O);
688
+ }, Nt = (O) => {
689
+ g && !wt || W(O);
694
690
  };
695
- f && s && (r instanceof Storage ? Vn(f, "storage", I, { passive: !0 }) : Vn(f, Ln, Rt)), g ? la(() => {
696
- mt = !0, z();
691
+ f && s && (r instanceof Storage ? Vn(f, "storage", I, { passive: !0 }) : Vn(f, Ln, Nt)), g ? la(() => {
692
+ wt = !0, z();
697
693
  }) : z();
698
- function G(O, j) {
694
+ function Y(O, j) {
699
695
  if (f) {
700
696
  const F = {
701
697
  key: E.value,
@@ -710,42 +706,42 @@ function ga(t, e, r, n = {}) {
710
706
  try {
711
707
  const j = r.getItem(E.value);
712
708
  if (O == null)
713
- G(j, null), r.removeItem(E.value);
709
+ Y(j, null), r.removeItem(E.value);
714
710
  else {
715
- const F = rt.write(O);
716
- j !== F && (r.setItem(E.value, F), G(j, F));
711
+ const F = it.write(O);
712
+ j !== F && (r.setItem(E.value, F), Y(j, F));
717
713
  }
718
714
  } catch (j) {
719
- _(j);
715
+ y(j);
720
716
  }
721
717
  }
722
718
  function b(O) {
723
719
  const j = O ? O.newValue : r.getItem(E.value);
724
720
  if (j == null)
725
- return u && D != null && r.setItem(E.value, rt.write(D)), D;
721
+ return u && k != null && r.setItem(E.value, it.write(k)), k;
726
722
  if (!O && c) {
727
- const F = rt.read(j);
728
- return typeof c == "function" ? c(F, D) : Q === "object" && !Array.isArray(F) ? {
729
- ...D,
723
+ const F = it.read(j);
724
+ return typeof c == "function" ? c(F, k) : tt === "object" && !Array.isArray(F) ? {
725
+ ...k,
730
726
  ...F
731
727
  } : F;
732
- } else return typeof j != "string" ? j : rt.read(j);
728
+ } else return typeof j != "string" ? j : it.read(j);
733
729
  }
734
730
  function z(O) {
735
731
  if (!(O && O.storageArea !== r)) {
736
732
  if (O && O.key == null) {
737
- m.value = D;
733
+ m.value = k;
738
734
  return;
739
735
  }
740
736
  if (!(O && O.key !== E.value)) {
741
- gt();
737
+ mt();
742
738
  try {
743
- const j = rt.write(m.value);
739
+ const j = it.write(m.value);
744
740
  (O === void 0 || O?.newValue !== j) && (m.value = b(O));
745
741
  } catch (j) {
746
- _(j);
742
+ y(j);
747
743
  } finally {
748
- O ? oe(J) : J();
744
+ O ? oe(G) : G();
749
745
  }
750
746
  }
751
747
  }
@@ -799,7 +795,7 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
799
795
  persistenceKeyPrefix: "stonecrop-ops"
800
796
  }), e = A([]), r = A(-1), n = A(Ar()), o = A(!1), i = A([]), a = A(null), s = C(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), u = C(() => r.value < e.value.length - 1), c = C(() => {
801
797
  let v = 0;
802
- for (let y = r.value; y >= 0 && e.value[y]?.reversible; y--)
798
+ for (let _ = r.value; _ >= 0 && e.value[_]?.reversible; _--)
803
799
  v++;
804
800
  return v;
805
801
  }), l = C(() => e.value.length - 1 - r.value), f = C(() => ({
@@ -810,14 +806,14 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
810
806
  currentIndex: r.value
811
807
  }));
812
808
  function p(v) {
813
- t.value = { ...t.value, ...v }, t.value.enablePersistence && (Mt(), K()), t.value.enableCrossTabSync && b();
809
+ t.value = { ...t.value, ...v }, t.value.enablePersistence && ($t(), K()), t.value.enableCrossTabSync && b();
814
810
  }
815
- function _(v, y = "user") {
811
+ function y(v, _ = "user") {
816
812
  const h = {
817
813
  ...v,
818
814
  id: Ar(),
819
815
  timestamp: /* @__PURE__ */ new Date(),
820
- source: y,
816
+ source: _,
821
817
  userId: t.value.userId
822
818
  };
823
819
  if (t.value.operationFilter && !t.value.operationFilter(h))
@@ -836,8 +832,8 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
836
832
  function m(v) {
837
833
  if (!o.value || i.value.length === 0)
838
834
  return o.value = !1, i.value = [], a.value = null, null;
839
- const y = a.value, h = i.value.every((k) => k.reversible), d = {
840
- id: y,
835
+ const _ = a.value, h = i.value.every((D) => D.reversible), d = {
836
+ id: _,
841
837
  type: "batch",
842
838
  path: "",
843
839
  // Batch doesn't have a single path
@@ -849,82 +845,82 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
849
845
  source: "user",
850
846
  reversible: h,
851
847
  irreversibleReason: h ? void 0 : "Contains irreversible operations",
852
- childOperationIds: i.value.map((k) => k.id),
848
+ childOperationIds: i.value.map((D) => D.id),
853
849
  metadata: { description: v }
854
850
  };
855
- i.value.forEach((k) => {
856
- k.parentOperationId = y;
851
+ i.value.forEach((D) => {
852
+ D.parentOperationId = _;
857
853
  }), e.value.push(...i.value, d), r.value = e.value.length - 1, t.value.enableCrossTabSync && W(i.value, d);
858
- const S = y;
854
+ const S = _;
859
855
  return o.value = !1, i.value = [], a.value = null, S;
860
856
  }
861
857
  function E() {
862
858
  o.value = !1, i.value = [], a.value = null;
863
859
  }
864
- function D(v) {
860
+ function k(v) {
865
861
  if (!s.value) return !1;
866
- const y = e.value[r.value];
867
- if (!y.reversible)
868
- return typeof console < "u" && y.irreversibleReason && console.warn("Cannot undo irreversible operation:", y.irreversibleReason), !1;
862
+ const _ = e.value[r.value];
863
+ if (!_.reversible)
864
+ return typeof console < "u" && _.irreversibleReason && console.warn("Cannot undo irreversible operation:", _.irreversibleReason), !1;
869
865
  try {
870
- if (y.type === "batch" && y.childOperationIds)
871
- for (let h = y.childOperationIds.length - 1; h >= 0; h--) {
872
- const d = y.childOperationIds[h], S = e.value.find((k) => k.id === d);
873
- S && rt(S, v);
866
+ if (_.type === "batch" && _.childOperationIds)
867
+ for (let h = _.childOperationIds.length - 1; h >= 0; h--) {
868
+ const d = _.childOperationIds[h], S = e.value.find((D) => D.id === d);
869
+ S && it(S, v);
874
870
  }
875
871
  else
876
- rt(y, v);
877
- return r.value--, t.value.enableCrossTabSync && O(y), !0;
872
+ it(_, v);
873
+ return r.value--, t.value.enableCrossTabSync && O(_), !0;
878
874
  } catch (h) {
879
875
  return typeof console < "u" && console.error("Undo failed:", h), !1;
880
876
  }
881
877
  }
882
- function Q(v) {
878
+ function tt(v) {
883
879
  if (!u.value) return !1;
884
- const y = e.value[r.value + 1];
880
+ const _ = e.value[r.value + 1];
885
881
  try {
886
- if (y.type === "batch" && y.childOperationIds)
887
- for (const h of y.childOperationIds) {
882
+ if (_.type === "batch" && _.childOperationIds)
883
+ for (const h of _.childOperationIds) {
888
884
  const d = e.value.find((S) => S.id === h);
889
- d && gt(d, v);
885
+ d && mt(d, v);
890
886
  }
891
887
  else
892
- gt(y, v);
893
- return r.value++, t.value.enableCrossTabSync && j(y), !0;
888
+ mt(_, v);
889
+ return r.value++, t.value.enableCrossTabSync && j(_), !0;
894
890
  } catch (h) {
895
891
  return typeof console < "u" && console.error("Redo failed:", h), !1;
896
892
  }
897
893
  }
898
- function rt(v, y) {
899
- (v.type === "set" || v.type === "delete") && y && typeof y.set == "function" && y.set(v.path, v.beforeValue, "undo");
894
+ function it(v, _) {
895
+ (v.type === "set" || v.type === "delete") && _ && typeof _.set == "function" && _.set(v.path, v.beforeValue, "undo");
900
896
  }
901
- function gt(v, y) {
902
- (v.type === "set" || v.type === "delete") && y && typeof y.set == "function" && y.set(v.path, v.afterValue, "redo");
897
+ function mt(v, _) {
898
+ (v.type === "set" || v.type === "delete") && _ && typeof _.set == "function" && _.set(v.path, v.afterValue, "redo");
903
899
  }
904
- function J() {
905
- const v = e.value.filter((h) => h.reversible).length, y = e.value.map((h) => h.timestamp);
900
+ function G() {
901
+ const v = e.value.filter((h) => h.reversible).length, _ = e.value.map((h) => h.timestamp);
906
902
  return {
907
903
  operations: [...e.value],
908
904
  currentIndex: r.value,
909
905
  totalOperations: e.value.length,
910
906
  reversibleOperations: v,
911
907
  irreversibleOperations: e.value.length - v,
912
- oldestOperation: y.length > 0 ? new Date(Math.min(...y.map((h) => h.getTime()))) : void 0,
913
- newestOperation: y.length > 0 ? new Date(Math.max(...y.map((h) => h.getTime()))) : void 0
908
+ oldestOperation: _.length > 0 ? new Date(Math.min(..._.map((h) => h.getTime()))) : void 0,
909
+ newestOperation: _.length > 0 ? new Date(Math.max(..._.map((h) => h.getTime()))) : void 0
914
910
  };
915
911
  }
916
- function mt() {
912
+ function wt() {
917
913
  e.value = [], r.value = -1;
918
914
  }
919
- function I(v, y) {
920
- return e.value.filter((h) => h.doctype === v && (y === void 0 || h.recordId === y));
915
+ function I(v, _) {
916
+ return e.value.filter((h) => h.doctype === v && (_ === void 0 || h.recordId === _));
921
917
  }
922
- function Rt(v, y) {
918
+ function Nt(v, _) {
923
919
  const h = e.value.find((d) => d.id === v);
924
- h && (h.reversible = !1, h.irreversibleReason = y);
920
+ h && (h.reversible = !1, h.irreversibleReason = _);
925
921
  }
926
- function G(v, y, h, d = "success", S) {
927
- const k = {
922
+ function Y(v, _, h, d = "success", S) {
923
+ const D = {
928
924
  type: "action",
929
925
  path: h && h.length > 0 ? `${v}.${h[0]}` : v,
930
926
  fieldname: "",
@@ -934,37 +930,37 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
934
930
  recordId: h && h.length > 0 ? h[0] : void 0,
935
931
  reversible: !1,
936
932
  // Actions are typically not reversible
937
- actionName: y,
933
+ actionName: _,
938
934
  actionRecordIds: h,
939
935
  actionResult: d,
940
936
  actionError: S
941
937
  };
942
- return _(k);
938
+ return y(D);
943
939
  }
944
940
  let w = null;
945
941
  function b() {
946
942
  typeof window > "u" || !window.BroadcastChannel || (w = new BroadcastChannel("stonecrop-operation-log"), w.addEventListener("message", (v) => {
947
- const y = v.data;
948
- if (!y || typeof y != "object") return;
949
- const h = wa(y);
943
+ const _ = v.data;
944
+ if (!_ || typeof _ != "object") return;
945
+ const h = wa(_);
950
946
  h.clientId !== n.value && (h.type === "operation" && h.operation ? (e.value.push({ ...h.operation, source: "sync" }), r.value = e.value.length - 1) : h.type === "operation" && h.operations && (e.value.push(...h.operations.map((d) => ({ ...d, source: "sync" }))), r.value = e.value.length - 1));
951
947
  }));
952
948
  }
953
949
  function z(v) {
954
950
  if (!w) return;
955
- const y = {
951
+ const _ = {
956
952
  type: "operation",
957
953
  operation: v,
958
954
  clientId: n.value,
959
955
  timestamp: /* @__PURE__ */ new Date()
960
956
  };
961
- w.postMessage(Ye(y));
957
+ w.postMessage(Ye(_));
962
958
  }
963
- function W(v, y) {
959
+ function W(v, _) {
964
960
  if (!w) return;
965
961
  const h = {
966
962
  type: "operation",
967
- operations: [...v, y],
963
+ operations: [...v, _],
968
964
  clientId: n.value,
969
965
  timestamp: /* @__PURE__ */ new Date()
970
966
  };
@@ -972,23 +968,23 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
972
968
  }
973
969
  function O(v) {
974
970
  if (!w) return;
975
- const y = {
971
+ const _ = {
976
972
  type: "undo",
977
973
  operation: v,
978
974
  clientId: n.value,
979
975
  timestamp: /* @__PURE__ */ new Date()
980
976
  };
981
- w.postMessage(Ye(y));
977
+ w.postMessage(Ye(_));
982
978
  }
983
979
  function j(v) {
984
980
  if (!w) return;
985
- const y = {
981
+ const _ = {
986
982
  type: "redo",
987
983
  operation: v,
988
984
  clientId: n.value,
989
985
  timestamp: /* @__PURE__ */ new Date()
990
986
  };
991
- w.postMessage(Ye(y));
987
+ w.postMessage(Ye(_));
992
988
  }
993
989
  const F = ma("stonecrop-ops-operations", null, {
994
990
  serializer: {
@@ -1002,19 +998,19 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
1002
998
  write: (v) => v ? JSON.stringify(v) : ""
1003
999
  }
1004
1000
  });
1005
- function Mt() {
1001
+ function $t() {
1006
1002
  if (!(typeof window > "u"))
1007
1003
  try {
1008
1004
  const v = F.value;
1009
- v && Array.isArray(v.operations) && (e.value = v.operations.map((y) => ({
1010
- ...y,
1011
- timestamp: new Date(y.timestamp)
1005
+ v && Array.isArray(v.operations) && (e.value = v.operations.map((_) => ({
1006
+ ..._,
1007
+ timestamp: new Date(_.timestamp)
1012
1008
  })), r.value = v.currentIndex ?? -1);
1013
1009
  } catch (v) {
1014
1010
  typeof console < "u" && console.error("Failed to load operations from persistence:", v);
1015
1011
  }
1016
1012
  }
1017
- function ct() {
1013
+ function lt() {
1018
1014
  if (!(typeof window > "u"))
1019
1015
  try {
1020
1016
  F.value = {
@@ -1029,10 +1025,10 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
1029
1025
  }
1030
1026
  }
1031
1027
  function K() {
1032
- tt(
1028
+ nt(
1033
1029
  [e, r],
1034
1030
  () => {
1035
- t.value.enablePersistence && ct();
1031
+ t.value.enablePersistence && lt();
1036
1032
  },
1037
1033
  { deep: !0 }
1038
1034
  );
@@ -1051,17 +1047,17 @@ const zo = /* @__PURE__ */ Qi("hst-operation-log", () => {
1051
1047
  redoCount: l,
1052
1048
  // Methods
1053
1049
  configure: p,
1054
- addOperation: _,
1050
+ addOperation: y,
1055
1051
  startBatch: g,
1056
1052
  commitBatch: m,
1057
1053
  cancelBatch: E,
1058
- undo: D,
1059
- redo: Q,
1060
- clear: mt,
1054
+ undo: k,
1055
+ redo: tt,
1056
+ clear: wt,
1061
1057
  getOperationsFor: I,
1062
- getSnapshot: J,
1063
- markIrreversible: Rt,
1064
- logAction: G
1058
+ getSnapshot: G,
1059
+ markIrreversible: Nt,
1060
+ logAction: Y
1065
1061
  };
1066
1062
  });
1067
1063
  class Ae {
@@ -1188,13 +1184,13 @@ class Ae {
1188
1184
  break;
1189
1185
  }
1190
1186
  } catch (E) {
1191
- const D = {
1187
+ const k = {
1192
1188
  success: !1,
1193
1189
  error: E instanceof Error ? E : new Error(String(E)),
1194
1190
  executionTime: 0,
1195
1191
  action: m
1196
1192
  };
1197
- s.push(D), u = !0;
1193
+ s.push(k), u = !0;
1198
1194
  break;
1199
1195
  }
1200
1196
  if (p && u && l && e.store)
@@ -1203,7 +1199,7 @@ class Ae {
1203
1199
  } catch (m) {
1204
1200
  console.error("[FieldTriggers] Rollback failed:", m);
1205
1201
  }
1206
- const _ = performance.now() - a, g = s.filter((m) => !m.success);
1202
+ const y = performance.now() - a, g = s.filter((m) => !m.success);
1207
1203
  if (g.length > 0 && this.options.errorHandler)
1208
1204
  for (const m of g)
1209
1205
  try {
@@ -1214,7 +1210,7 @@ class Ae {
1214
1210
  return {
1215
1211
  path: e.path,
1216
1212
  actionResults: s,
1217
- totalExecutionTime: _,
1213
+ totalExecutionTime: y,
1218
1214
  allSucceeded: s.every((m) => m.success),
1219
1215
  stoppedOnError: u,
1220
1216
  rolledBack: c,
@@ -1938,7 +1934,7 @@ function Ia(t) {
1938
1934
  t || (t = {});
1939
1935
  const e = t.registry || Ne("$registry"), r = Ne("$stonecrop"), n = A(), o = A(), i = A({}), a = A(), s = A(), u = A([]), c = A(!1), l = A(null), f = A();
1940
1936
  t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
1941
- const p = A([]), _ = A(-1), g = C(() => n.value?.getOperationLogStore().canUndo ?? !1), m = C(() => n.value?.getOperationLogStore().canRedo ?? !1), E = C(() => n.value?.getOperationLogStore().undoCount ?? 0), D = C(() => n.value?.getOperationLogStore().redoCount ?? 0), Q = C(
1937
+ const p = A([]), y = A(-1), g = C(() => n.value?.getOperationLogStore().canUndo ?? !1), m = C(() => n.value?.getOperationLogStore().canRedo ?? !1), E = C(() => n.value?.getOperationLogStore().undoCount ?? 0), k = C(() => n.value?.getOperationLogStore().redoCount ?? 0), tt = C(
1942
1938
  () => n.value?.getOperationLogStore().undoRedoState ?? {
1943
1939
  canUndo: !1,
1944
1940
  canRedo: !1,
@@ -1946,37 +1942,37 @@ function Ia(t) {
1946
1942
  redoCount: 0,
1947
1943
  currentIndex: -1
1948
1944
  }
1949
- ), rt = (v) => n.value?.getOperationLogStore().undo(v) ?? !1, gt = (v) => n.value?.getOperationLogStore().redo(v) ?? !1, J = () => {
1945
+ ), it = (v) => n.value?.getOperationLogStore().undo(v) ?? !1, mt = (v) => n.value?.getOperationLogStore().redo(v) ?? !1, G = () => {
1950
1946
  n.value?.getOperationLogStore().startBatch();
1951
- }, mt = (v) => n.value?.getOperationLogStore().commitBatch(v) ?? null, I = () => {
1947
+ }, wt = (v) => n.value?.getOperationLogStore().commitBatch(v) ?? null, I = () => {
1952
1948
  n.value?.getOperationLogStore().cancelBatch();
1953
- }, Rt = () => {
1949
+ }, Nt = () => {
1954
1950
  n.value?.getOperationLogStore().clear();
1955
- }, G = (v, y) => n.value?.getOperationLogStore().getOperationsFor(v, y) ?? [], w = () => n.value?.getOperationLogStore().getSnapshot() ?? {
1951
+ }, Y = (v, _) => n.value?.getOperationLogStore().getOperationsFor(v, _) ?? [], w = () => n.value?.getOperationLogStore().getSnapshot() ?? {
1956
1952
  operations: [],
1957
1953
  currentIndex: -1,
1958
1954
  totalOperations: 0,
1959
1955
  reversibleOperations: 0,
1960
1956
  irreversibleOperations: 0
1961
- }, b = (v, y) => {
1962
- n.value?.getOperationLogStore().markIrreversible(v, y);
1963
- }, z = (v, y, h, d = "success", S) => n.value?.getOperationLogStore().logAction(v, y, h, d, S) ?? "", W = (v) => {
1957
+ }, b = (v, _) => {
1958
+ n.value?.getOperationLogStore().markIrreversible(v, _);
1959
+ }, z = (v, _, h, d = "success", S) => n.value?.getOperationLogStore().logAction(v, _, h, d, S) ?? "", W = (v) => {
1964
1960
  n.value?.getOperationLogStore().configure(v);
1965
1961
  };
1966
1962
  pr(async () => {
1967
1963
  if (e) {
1968
1964
  n.value = r || new Sa(e);
1969
1965
  try {
1970
- const v = n.value.getOperationLogStore(), y = Zi(v);
1971
- p.value = y.operations.value, _.value = y.currentIndex.value, tt(
1972
- () => y.operations.value,
1966
+ const v = n.value.getOperationLogStore(), _ = Zi(v);
1967
+ p.value = _.operations.value, y.value = _.currentIndex.value, nt(
1968
+ () => _.operations.value,
1973
1969
  (h) => {
1974
1970
  p.value = h;
1975
1971
  }
1976
- ), tt(
1977
- () => y.currentIndex.value,
1972
+ ), nt(
1973
+ () => _.currentIndex.value,
1978
1974
  (h) => {
1979
- _.value = h;
1975
+ y.value = h;
1980
1976
  }
1981
1977
  );
1982
1978
  } catch {
@@ -1984,26 +1980,26 @@ function Ia(t) {
1984
1980
  if (!t.doctype && e.router) {
1985
1981
  const v = e.router.currentRoute.value;
1986
1982
  if (!v.path) return;
1987
- const y = v.path.split("/").filter((d) => d.length > 0), h = y[1]?.toLowerCase();
1988
- if (y.length > 0) {
1983
+ const _ = v.path.split("/").filter((d) => d.length > 0), h = _[1]?.toLowerCase();
1984
+ if (_.length > 0) {
1989
1985
  const d = {
1990
1986
  path: v.path,
1991
- segments: y
1987
+ segments: _
1992
1988
  }, S = await e.getMeta?.(d);
1993
1989
  if (S) {
1994
1990
  if (e.addDoctype(S), n.value.setup(S), a.value = S, s.value = h, o.value = n.value.getStore(), e) {
1995
- const k = S.schema ? Array.isArray(S.schema) ? S.schema : Array.from(S.schema) : [];
1996
- u.value = e.resolveSchema(k);
1991
+ const D = S.schema ? Array.isArray(S.schema) ? S.schema : Array.from(S.schema) : [];
1992
+ u.value = e.resolveSchema(D);
1997
1993
  }
1998
1994
  if (h && h !== "new") {
1999
- const k = n.value.getRecordById(S, h);
2000
- if (k)
2001
- i.value = k.get("") || {};
1995
+ const D = n.value.getRecordById(S, h);
1996
+ if (D)
1997
+ i.value = D.get("") || {};
2002
1998
  else
2003
1999
  try {
2004
2000
  await n.value.getRecord(S, h);
2005
- const L = n.value.getRecordById(S, h);
2006
- L && (i.value = L.get("") || {});
2001
+ const P = n.value.getRecordById(S, h);
2002
+ P && (i.value = P.get("") || {});
2007
2003
  } catch {
2008
2004
  i.value = Tt(S);
2009
2005
  }
@@ -2016,66 +2012,66 @@ function Ia(t) {
2016
2012
  if (t.doctype) {
2017
2013
  o.value = n.value.getStore();
2018
2014
  const v = t.recordId;
2019
- let y;
2015
+ let _;
2020
2016
  if (typeof t.doctype == "string") {
2021
2017
  const d = t.doctype;
2022
2018
  c.value = !0, l.value = null;
2023
2019
  try {
2024
- if (y = e.getDoctype(d), !y && e.getMeta) {
2020
+ if (_ = e.getDoctype(d), !_ && e.getMeta) {
2025
2021
  const S = {
2026
2022
  path: `/${d}`,
2027
2023
  segments: [d]
2028
2024
  };
2029
- y = await e.getMeta(S), y && e.addDoctype(y);
2025
+ _ = await e.getMeta(S), _ && e.addDoctype(_);
2030
2026
  }
2031
- y || (l.value = new Error(`Doctype '${d}' not found in registry and getMeta returned no result`));
2027
+ _ || (l.value = new Error(`Doctype '${d}' not found in registry and getMeta returned no result`));
2032
2028
  } catch (S) {
2033
2029
  l.value = S instanceof Error ? S : new Error(String(S));
2034
2030
  } finally {
2035
2031
  c.value = !1;
2036
2032
  }
2037
2033
  } else
2038
- y = t.doctype;
2039
- if (f.value = y, !y)
2034
+ _ = t.doctype;
2035
+ if (f.value = _, !_)
2040
2036
  return;
2041
- const h = y.schema ? Array.isArray(y.schema) ? y.schema : Array.from(y.schema) : [];
2037
+ const h = _.schema ? Array.isArray(_.schema) ? _.schema : Array.from(_.schema) : [];
2042
2038
  if (u.value = e.resolveSchema(h), v && v !== "new") {
2043
- const d = n.value.getRecordById(y, v);
2039
+ const d = n.value.getRecordById(_, v);
2044
2040
  if (d)
2045
2041
  i.value = d.get("") || {};
2046
2042
  else
2047
2043
  try {
2048
- await n.value.getRecord(y, v);
2049
- const S = n.value.getRecordById(y, v);
2044
+ await n.value.getRecord(_, v);
2045
+ const S = n.value.getRecordById(_, v);
2050
2046
  S && (i.value = S.get("") || {});
2051
2047
  } catch {
2052
- i.value = Tt(y);
2048
+ i.value = Tt(_);
2053
2049
  }
2054
2050
  } else
2055
- i.value = Tt(y);
2056
- o.value && Fn(y, v || "new", i, o.value);
2051
+ i.value = Tt(_);
2052
+ o.value && Fn(_, v || "new", i, o.value);
2057
2053
  }
2058
2054
  }
2059
2055
  });
2060
- const O = (v, y) => {
2056
+ const O = (v, _) => {
2061
2057
  const h = f.value || a.value;
2062
2058
  if (!h) return "";
2063
- const d = y || t.recordId || s.value || "new";
2059
+ const d = _ || t.recordId || s.value || "new";
2064
2060
  return `${h.slug}.${d}.${v}`;
2065
2061
  }, j = (v) => {
2066
- const y = f.value || a.value;
2067
- if (!(!o.value || !n.value || !y))
2062
+ const _ = f.value || a.value;
2063
+ if (!(!o.value || !n.value || !_))
2068
2064
  try {
2069
2065
  const h = v.path.split(".");
2070
2066
  if (h.length >= 2) {
2071
- const k = h[0], L = h[1];
2072
- if (o.value.has(`${k}.${L}`) || n.value.addRecord(y, L, { ...i.value }), h.length > 3) {
2073
- const nt = `${k}.${L}`, st = h.slice(2);
2074
- let $t = nt;
2075
- for (let lt = 0; lt < st.length - 1; lt++)
2076
- if ($t += `.${st[lt]}`, !o.value.has($t)) {
2077
- const Ii = st[lt + 1], Ei = !isNaN(Number(Ii));
2078
- o.value.set($t, Ei ? [] : {});
2067
+ const D = h[0], P = h[1];
2068
+ if (o.value.has(`${D}.${P}`) || n.value.addRecord(_, P, { ...i.value }), h.length > 3) {
2069
+ const Q = `${D}.${P}`, et = h.slice(2);
2070
+ let H = Q;
2071
+ for (let ft = 0; ft < et.length - 1; ft++)
2072
+ if (H += `.${et[ft]}`, !o.value.has(H)) {
2073
+ const Ii = et[ft + 1], Ei = !isNaN(Number(Ii));
2074
+ o.value.set(H, Ei ? [] : {});
2079
2075
  }
2080
2076
  }
2081
2077
  }
@@ -2086,29 +2082,29 @@ function Ia(t) {
2086
2082
  }
2087
2083
  };
2088
2084
  (t.doctype || e?.router) && (Lr("hstPathProvider", O), Lr("hstChangeHandler", j));
2089
- const F = (v, y, h) => {
2085
+ const F = (v, _, h) => {
2090
2086
  if (!n.value)
2091
- return Tt(y);
2087
+ return Tt(_);
2092
2088
  if (h)
2093
2089
  try {
2094
2090
  const d = o.value?.get(v);
2095
- return d && typeof d == "object" ? d : Tt(y);
2091
+ return d && typeof d == "object" ? d : Tt(_);
2096
2092
  } catch {
2097
- return Tt(y);
2093
+ return Tt(_);
2098
2094
  }
2099
- return Tt(y);
2100
- }, Mt = (v, y) => {
2095
+ return Tt(_);
2096
+ }, $t = (v, _) => {
2101
2097
  if (!o.value || !n.value)
2102
2098
  throw new Error("HST store not initialized");
2103
- const h = `${v.slug}.${y}`, d = { ...o.value.get(h) || {} }, S = v.schema ? Array.isArray(v.schema) ? v.schema : Array.from(v.schema) : [], k = (e ? e.resolveSchema(S) : S).filter(
2104
- (L) => "fieldtype" in L && L.fieldtype === "Doctype" && "schema" in L && Array.isArray(L.schema)
2099
+ const h = `${v.slug}.${_}`, d = { ...o.value.get(h) || {} }, S = v.schema ? Array.isArray(v.schema) ? v.schema : Array.from(v.schema) : [], D = (e ? e.resolveSchema(S) : S).filter(
2100
+ (P) => "fieldtype" in P && P.fieldtype === "Doctype" && "schema" in P && Array.isArray(P.schema)
2105
2101
  );
2106
- for (const L of k) {
2107
- const nt = L, st = `${h}.${nt.fieldname}`, $t = xo(nt.schema, st, o.value);
2108
- d[nt.fieldname] = $t;
2102
+ for (const P of D) {
2103
+ const Q = P, et = `${h}.${Q.fieldname}`, H = xo(Q.schema, et, o.value);
2104
+ d[Q.fieldname] = H;
2109
2105
  }
2110
2106
  return d;
2111
- }, ct = (v, y) => ({
2107
+ }, lt = (v, _) => ({
2112
2108
  provideHSTPath: (h) => `${v}.${h}`,
2113
2109
  handleHSTChange: (h) => {
2114
2110
  const d = h.path.startsWith(v) ? h.path : `${v}.${h.fieldname}`;
@@ -2119,19 +2115,19 @@ function Ia(t) {
2119
2115
  }
2120
2116
  }), K = {
2121
2117
  operations: p,
2122
- currentIndex: _,
2123
- undoRedoState: Q,
2118
+ currentIndex: y,
2119
+ undoRedoState: tt,
2124
2120
  canUndo: g,
2125
2121
  canRedo: m,
2126
2122
  undoCount: E,
2127
- redoCount: D,
2128
- undo: rt,
2129
- redo: gt,
2130
- startBatch: J,
2131
- commitBatch: mt,
2123
+ redoCount: k,
2124
+ undo: it,
2125
+ redo: mt,
2126
+ startBatch: G,
2127
+ commitBatch: wt,
2132
2128
  cancelBatch: I,
2133
- clear: Rt,
2134
- getOperationsFor: G,
2129
+ clear: Nt,
2130
+ getOperationsFor: Y,
2135
2131
  getSnapshot: w,
2136
2132
  markIrreversible: b,
2137
2133
  logAction: z,
@@ -2146,8 +2142,8 @@ function Ia(t) {
2146
2142
  formData: i,
2147
2143
  resolvedSchema: u,
2148
2144
  loadNestedData: F,
2149
- saveRecursive: Mt,
2150
- createNestedContext: ct,
2145
+ saveRecursive: $t,
2146
+ createNestedContext: lt,
2151
2147
  isLoading: c,
2152
2148
  error: l,
2153
2149
  resolvedDoctype: f
@@ -2160,8 +2156,8 @@ function Ia(t) {
2160
2156
  formData: i,
2161
2157
  resolvedSchema: u,
2162
2158
  loadNestedData: F,
2163
- saveRecursive: Mt,
2164
- createNestedContext: ct,
2159
+ saveRecursive: $t,
2160
+ createNestedContext: lt,
2165
2161
  isLoading: c,
2166
2162
  error: l,
2167
2163
  resolvedDoctype: f
@@ -2197,7 +2193,7 @@ function Tt(t) {
2197
2193
  }), e;
2198
2194
  }
2199
2195
  function Fn(t, e, r, n) {
2200
- tt(
2196
+ nt(
2201
2197
  r,
2202
2198
  (o) => {
2203
2199
  const i = `${t.slug}.${e}`;
@@ -2232,7 +2228,7 @@ function xo(t, e, r) {
2232
2228
  return n;
2233
2229
  }
2234
2230
  var cr = "@@__IMMUTABLE_INDEXED__@@";
2235
- function It(t) {
2231
+ function Et(t) {
2236
2232
  return !!(t && // @ts-expect-error: maybeIndexed is typed as `{}`, need to change in 6.0 to `maybeIndexed && typeof maybeIndexed === 'object' && IS_INDEXED_SYMBOL in maybeIndexed`
2237
2233
  t[cr]);
2238
2234
  }
@@ -2242,43 +2238,43 @@ function U(t) {
2242
2238
  t[lr]);
2243
2239
  }
2244
2240
  function on(t) {
2245
- return U(t) || It(t);
2241
+ return U(t) || Et(t);
2246
2242
  }
2247
2243
  var Co = "@@__IMMUTABLE_ITERABLE__@@";
2248
- function vt(t) {
2244
+ function yt(t) {
2249
2245
  return !!(t && // @ts-expect-error: maybeCollection is typed as `{}`, need to change in 6.0 to `maybeCollection && typeof maybeCollection === 'object' && IS_COLLECTION_SYMBOL in maybeCollection`
2250
2246
  t[Co]);
2251
2247
  }
2252
- var Z = function(t) {
2253
- return vt(t) ? t : ut(t);
2254
- }, Et = /* @__PURE__ */ (function(t) {
2248
+ var rt = function(t) {
2249
+ return yt(t) ? t : ct(t);
2250
+ }, Ot = /* @__PURE__ */ (function(t) {
2255
2251
  function e(r) {
2256
2252
  return U(r) ? r : Bt(r);
2257
2253
  }
2258
2254
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2259
- })(Z), Gt = /* @__PURE__ */ (function(t) {
2255
+ })(rt), Gt = /* @__PURE__ */ (function(t) {
2260
2256
  function e(r) {
2261
- return It(r) ? r : Ot(r);
2257
+ return Et(r) ? r : kt(r);
2262
2258
  }
2263
2259
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2264
- })(Z), de = /* @__PURE__ */ (function(t) {
2260
+ })(rt), de = /* @__PURE__ */ (function(t) {
2265
2261
  function e(r) {
2266
- return vt(r) && !on(r) ? r : _e(r);
2262
+ return yt(r) && !on(r) ? r : _e(r);
2267
2263
  }
2268
2264
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2269
- })(Z);
2270
- Z.Keyed = Et;
2271
- Z.Indexed = Gt;
2272
- Z.Set = de;
2273
- var ve = 0, yt = 1, _t = 2, Wr = typeof Symbol == "function" && Symbol.iterator, Ro = "@@iterator", yr = Wr || Ro, R = function(t) {
2265
+ })(rt);
2266
+ rt.Keyed = Ot;
2267
+ rt.Indexed = Gt;
2268
+ rt.Set = de;
2269
+ var ve = 0, _t = 1, gt = 2, Wr = typeof Symbol == "function" && Symbol.iterator, Ro = "@@iterator", yr = Wr || Ro, R = function(t) {
2274
2270
  this.next = t;
2275
2271
  };
2276
2272
  R.prototype.toString = function() {
2277
2273
  return "[Iterator]";
2278
2274
  };
2279
2275
  R.KEYS = ve;
2280
- R.VALUES = yt;
2281
- R.ENTRIES = _t;
2276
+ R.VALUES = _t;
2277
+ R.ENTRIES = gt;
2282
2278
  R.prototype.inspect = R.prototype.toSource = function() {
2283
2279
  return this.toString();
2284
2280
  };
@@ -2286,14 +2282,14 @@ R.prototype[yr] = function() {
2286
2282
  return this;
2287
2283
  };
2288
2284
  function B(t, e, r, n) {
2289
- var o = t === ve ? e : t === yt ? r : [e, r];
2285
+ var o = t === ve ? e : t === _t ? r : [e, r];
2290
2286
  return n ? n.value = o : n = {
2291
2287
  // @ts-expect-error ensure value is not undefined
2292
2288
  value: o,
2293
2289
  done: !1
2294
2290
  }, n;
2295
2291
  }
2296
- function it() {
2292
+ function st() {
2297
2293
  return { value: void 0, done: !0 };
2298
2294
  }
2299
2295
  function No(t) {
@@ -2322,11 +2318,11 @@ function ka(t) {
2322
2318
  var e = _r(t);
2323
2319
  return e && e === t.keys;
2324
2320
  }
2325
- var Ue = "delete", T = 5, pt = 1 << T, ot = pt - 1, x = {};
2321
+ var Ue = "delete", T = 5, dt = 1 << T, at = dt - 1, x = {};
2326
2322
  function Hr() {
2327
2323
  return { value: !1 };
2328
2324
  }
2329
- function bt(t) {
2325
+ function St(t) {
2330
2326
  t && (t.value = !0);
2331
2327
  }
2332
2328
  function an() {
@@ -2366,11 +2362,11 @@ function Yt(t) {
2366
2362
  return !!(t && // @ts-expect-error: maybeRecord is typed as `{}`, need to change in 6.0 to `maybeRecord && typeof maybeRecord === 'object' && IS_RECORD_SYMBOL in maybeRecord`
2367
2363
  t[To]);
2368
2364
  }
2369
- function xt(t) {
2370
- return vt(t) || Yt(t);
2365
+ function Ct(t) {
2366
+ return yt(t) || Yt(t);
2371
2367
  }
2372
2368
  var Lt = "@@__IMMUTABLE_ORDERED__@@";
2373
- function zt(t) {
2369
+ function xt(t) {
2374
2370
  return !!(t && // @ts-expect-error: maybeOrdered is typed as `{}`, need to change in 6.0 to `maybeOrdered && typeof maybeOrdered === 'object' && IS_ORDERED_SYMBOL in maybeOrdered`
2375
2371
  t[Lt]);
2376
2372
  }
@@ -2394,9 +2390,9 @@ function qo(t) {
2394
2390
  t.hasOwnProperty(t.length - 1)
2395
2391
  ));
2396
2392
  }
2397
- var ut = /* @__PURE__ */ (function(t) {
2393
+ var ct = /* @__PURE__ */ (function(t) {
2398
2394
  function e(r) {
2399
- return r == null ? cn() : xt(r) ? r.toSeq() : Aa(r);
2395
+ return r == null ? cn() : Ct(r) ? r.toSeq() : Aa(r);
2400
2396
  }
2401
2397
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
2402
2398
  return this;
@@ -2421,23 +2417,23 @@ var ut = /* @__PURE__ */ (function(t) {
2421
2417
  var i = o.length, a = 0;
2422
2418
  return new R(function() {
2423
2419
  if (a === i)
2424
- return it();
2420
+ return st();
2425
2421
  var s = o[n ? i - ++a : a++];
2426
2422
  return B(r, s[0], s[1]);
2427
2423
  });
2428
2424
  }
2429
2425
  return this.__iteratorUncached(r, n);
2430
2426
  }, e;
2431
- })(Z), Bt = /* @__PURE__ */ (function(t) {
2427
+ })(rt), Bt = /* @__PURE__ */ (function(t) {
2432
2428
  function e(r) {
2433
- return r == null ? cn().toKeyedSeq() : vt(r) ? U(r) ? r.toSeq() : r.fromEntrySeq() : Yt(r) ? r.toSeq() : ln(r);
2429
+ return r == null ? cn().toKeyedSeq() : yt(r) ? U(r) ? r.toSeq() : r.fromEntrySeq() : Yt(r) ? r.toSeq() : ln(r);
2434
2430
  }
2435
2431
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
2436
2432
  return this;
2437
2433
  }, e;
2438
- })(ut), Ot = /* @__PURE__ */ (function(t) {
2434
+ })(ct), kt = /* @__PURE__ */ (function(t) {
2439
2435
  function e(r) {
2440
- return r == null ? cn() : vt(r) ? U(r) ? r.entrySeq() : r.toIndexedSeq() : Yt(r) ? r.toSeq().entrySeq() : Vo(r);
2436
+ return r == null ? cn() : yt(r) ? U(r) ? r.entrySeq() : r.toIndexedSeq() : Yt(r) ? r.toSeq().entrySeq() : Vo(r);
2441
2437
  }
2442
2438
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
2443
2439
  return e(arguments);
@@ -2446,21 +2442,21 @@ var ut = /* @__PURE__ */ (function(t) {
2446
2442
  }, e.prototype.toString = function() {
2447
2443
  return this.__toString("Seq [", "]");
2448
2444
  }, e;
2449
- })(ut), _e = /* @__PURE__ */ (function(t) {
2445
+ })(ct), _e = /* @__PURE__ */ (function(t) {
2450
2446
  function e(r) {
2451
- return (vt(r) && !on(r) ? r : Ot(r)).toSetSeq();
2447
+ return (yt(r) && !on(r) ? r : kt(r)).toSetSeq();
2452
2448
  }
2453
2449
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
2454
2450
  return e(arguments);
2455
2451
  }, e.prototype.toSetSeq = function() {
2456
2452
  return this;
2457
2453
  }, e;
2458
- })(ut);
2459
- ut.isSeq = sn;
2460
- ut.Keyed = Bt;
2461
- ut.Set = _e;
2462
- ut.Indexed = Ot;
2463
- ut.prototype[Po] = !0;
2454
+ })(ct);
2455
+ ct.isSeq = sn;
2456
+ ct.Keyed = Bt;
2457
+ ct.Set = _e;
2458
+ ct.Indexed = kt;
2459
+ ct.prototype[Po] = !0;
2464
2460
  var se = /* @__PURE__ */ (function(t) {
2465
2461
  function e(r) {
2466
2462
  this._array = r, this.size = r.length;
@@ -2478,12 +2474,12 @@ var se = /* @__PURE__ */ (function(t) {
2478
2474
  var o = this._array, i = o.length, a = 0;
2479
2475
  return new R(function() {
2480
2476
  if (a === i)
2481
- return it();
2477
+ return st();
2482
2478
  var s = n ? i - ++a : a++;
2483
2479
  return B(r, s, o[s]);
2484
2480
  });
2485
2481
  }, e;
2486
- })(Ot), un = /* @__PURE__ */ (function(t) {
2482
+ })(kt), un = /* @__PURE__ */ (function(t) {
2487
2483
  function e(r) {
2488
2484
  var n = Object.keys(r).concat(
2489
2485
  Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(r) : []
@@ -2505,7 +2501,7 @@ var se = /* @__PURE__ */ (function(t) {
2505
2501
  var o = this._object, i = this._keys, a = i.length, s = 0;
2506
2502
  return new R(function() {
2507
2503
  if (s === a)
2508
- return it();
2504
+ return st();
2509
2505
  var u = i[n ? a - ++s : s++];
2510
2506
  return B(r, u, o[u]);
2511
2507
  });
@@ -2529,14 +2525,14 @@ var Da = /* @__PURE__ */ (function(t) {
2529
2525
  return this.cacheResult().__iterator(r, n);
2530
2526
  var o = this._collection, i = Kr(o);
2531
2527
  if (!Wn(i))
2532
- return new R(it);
2528
+ return new R(st);
2533
2529
  var a = 0;
2534
2530
  return new R(function() {
2535
2531
  var s = i.next();
2536
2532
  return s.done ? s : B(r, a++, s.value);
2537
2533
  });
2538
2534
  }, e;
2539
- })(Ot), Kn;
2535
+ })(kt), Kn;
2540
2536
  function cn() {
2541
2537
  return Kn || (Kn = new se([]));
2542
2538
  }
@@ -2586,7 +2582,7 @@ function wr(t) {
2586
2582
  return t >>> 1 & 1073741824 | t & 3221225471;
2587
2583
  }
2588
2584
  var za = Object.prototype.valueOf;
2589
- function ft(t) {
2585
+ function ht(t) {
2590
2586
  if (t == null)
2591
2587
  return Hn(t);
2592
2588
  if (typeof t.hashCode == "function")
@@ -2745,7 +2741,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2745
2741
  n
2746
2742
  );
2747
2743
  }, e.prototype.__iterator = function(r, n) {
2748
- var o = this, i = this._iter.__iterator(yt, n), a = 0;
2744
+ var o = this, i = this._iter.__iterator(_t, n), a = 0;
2749
2745
  return n && ae(this), new R(function() {
2750
2746
  var s = i.next();
2751
2747
  return s.done ? s : B(
@@ -2756,7 +2752,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2756
2752
  );
2757
2753
  });
2758
2754
  }, e;
2759
- })(Ot), Bo = /* @__PURE__ */ (function(t) {
2755
+ })(kt), Bo = /* @__PURE__ */ (function(t) {
2760
2756
  function e(r) {
2761
2757
  this._iter = r, this.size = r.size;
2762
2758
  }
@@ -2768,7 +2764,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2768
2764
  return r(i, i, o);
2769
2765
  }, n);
2770
2766
  }, e.prototype.__iterator = function(r, n) {
2771
- var o = this._iter.__iterator(yt, n);
2767
+ var o = this._iter.__iterator(_t, n);
2772
2768
  return new R(function() {
2773
2769
  var i = o.next();
2774
2770
  return i.done ? i : B(r, i.value, i.value, i);
@@ -2785,7 +2781,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2785
2781
  return this._iter.__iterate(function(i) {
2786
2782
  if (i) {
2787
2783
  Qn(i);
2788
- var a = vt(i);
2784
+ var a = yt(i);
2789
2785
  return r(
2790
2786
  a ? i.get(1) : i[1],
2791
2787
  a ? i.get(0) : i[0],
@@ -2794,7 +2790,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2794
2790
  }
2795
2791
  }, n);
2796
2792
  }, e.prototype.__iterator = function(r, n) {
2797
- var o = this._iter.__iterator(yt, n);
2793
+ var o = this._iter.__iterator(_t, n);
2798
2794
  return new R(function() {
2799
2795
  for (; ; ) {
2800
2796
  var i = o.next();
@@ -2803,7 +2799,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2803
2799
  var a = i.value;
2804
2800
  if (a) {
2805
2801
  Qn(a);
2806
- var s = vt(a);
2802
+ var s = yt(a);
2807
2803
  return B(
2808
2804
  r,
2809
2805
  s ? a.get(0) : a[0],
@@ -2817,7 +2813,7 @@ var Uo = /* @__PURE__ */ (function(t) {
2817
2813
  })(Bt);
2818
2814
  Uo.prototype.cacheResult = br.prototype.cacheResult = Bo.prototype.cacheResult = Fo.prototype.cacheResult = vn;
2819
2815
  function Wo(t) {
2820
- var e = Ct(t);
2816
+ var e = Rt(t);
2821
2817
  return e._iter = t, e.size = t.size, e.flip = function() {
2822
2818
  return t;
2823
2819
  }, e.reverse = function() {
@@ -2835,7 +2831,7 @@ function Wo(t) {
2835
2831
  return r(a, i, o) !== !1;
2836
2832
  }, n);
2837
2833
  }, e.__iteratorUncached = function(r, n) {
2838
- if (r === _t) {
2834
+ if (r === gt) {
2839
2835
  var o = t.__iterator(r, n);
2840
2836
  return new R(function() {
2841
2837
  var i = o.next();
@@ -2847,13 +2843,13 @@ function Wo(t) {
2847
2843
  });
2848
2844
  }
2849
2845
  return t.__iterator(
2850
- r === yt ? ve : yt,
2846
+ r === _t ? ve : _t,
2851
2847
  n
2852
2848
  );
2853
2849
  }, e;
2854
2850
  }
2855
2851
  function Ko(t, e, r) {
2856
- var n = Ct(t);
2852
+ var n = Rt(t);
2857
2853
  return n.size = t.size, n.has = function(o) {
2858
2854
  return t.has(o);
2859
2855
  }, n.get = function(o, i) {
@@ -2868,7 +2864,7 @@ function Ko(t, e, r) {
2868
2864
  i
2869
2865
  );
2870
2866
  }, n.__iteratorUncached = function(o, i) {
2871
- var a = t.__iterator(_t, i);
2867
+ var a = t.__iterator(gt, i);
2872
2868
  return new R(function() {
2873
2869
  var s = a.next();
2874
2870
  if (s.done)
@@ -2884,7 +2880,7 @@ function Ko(t, e, r) {
2884
2880
  }, n;
2885
2881
  }
2886
2882
  function hn(t, e) {
2887
- var r = this, n = Ct(t);
2883
+ var r = this, n = Rt(t);
2888
2884
  return n._iter = t, n.size = t.size, n.reverse = function() {
2889
2885
  return t;
2890
2886
  }, t.flip && (n.flip = function() {
@@ -2909,7 +2905,7 @@ function hn(t, e) {
2909
2905
  }, n.__iterator = function(o, i) {
2910
2906
  var a = 0;
2911
2907
  i && ae(t);
2912
- var s = t.__iterator(_t, !i);
2908
+ var s = t.__iterator(gt, !i);
2913
2909
  return new R(function() {
2914
2910
  var u = s.next();
2915
2911
  if (u.done)
@@ -2925,7 +2921,7 @@ function hn(t, e) {
2925
2921
  }, n;
2926
2922
  }
2927
2923
  function Ho(t, e, r, n) {
2928
- var o = Ct(t);
2924
+ var o = Rt(t);
2929
2925
  return n && (o.has = function(i) {
2930
2926
  var a = t.get(i, x);
2931
2927
  return a !== x && !!e.call(r, a, i, t);
@@ -2939,7 +2935,7 @@ function Ho(t, e, r, n) {
2939
2935
  return u++, i(c, n ? l : u - 1, s);
2940
2936
  }, a), u;
2941
2937
  }, o.__iteratorUncached = function(i, a) {
2942
- var s = t.__iterator(_t, a), u = 0;
2938
+ var s = t.__iterator(gt, a), u = 0;
2943
2939
  return new R(function() {
2944
2940
  for (; ; ) {
2945
2941
  var c = s.next();
@@ -2961,7 +2957,7 @@ function Pa(t, e, r) {
2961
2957
  }), n.asImmutable();
2962
2958
  }
2963
2959
  function qa(t, e, r) {
2964
- var n = U(t), o = (zt(t) ? jt() : ge()).asMutable();
2960
+ var n = U(t), o = (xt(t) ? Mt() : ge()).asMutable();
2965
2961
  t.__iterate(function(a, s) {
2966
2962
  o.update(
2967
2963
  e.call(r, a, s, t),
@@ -2995,7 +2991,7 @@ function pn(t, e, r, n) {
2995
2991
  return pn(t.toSeq().cacheResult(), e, r, n);
2996
2992
  var i = Be(e, o), a = mr(r, o), s = a - i, u;
2997
2993
  s === s && (u = s < 0 ? 0 : s);
2998
- var c = Ct(t);
2994
+ var c = Rt(t);
2999
2995
  return c.size = u === 0 ? u : t.size && u || void 0, !n && sn(t) && u >= 0 && (c.get = function(l, f) {
3000
2996
  return l = Vt(this, l), l >= 0 && l < u ? t.get(l + i, f) : f;
3001
2997
  }), c.__iterateUncached = function(l, f) {
@@ -3004,29 +3000,29 @@ function pn(t, e, r, n) {
3004
3000
  return 0;
3005
3001
  if (f)
3006
3002
  return this.cacheResult().__iterate(l, f);
3007
- var _ = 0, g = !0, m = 0;
3008
- return t.__iterate(function(E, D) {
3009
- if (!(g && (g = _++ < i)))
3010
- return m++, l(E, n ? D : m - 1, p) !== !1 && m !== u;
3003
+ var y = 0, g = !0, m = 0;
3004
+ return t.__iterate(function(E, k) {
3005
+ if (!(g && (g = y++ < i)))
3006
+ return m++, l(E, n ? k : m - 1, p) !== !1 && m !== u;
3011
3007
  }), m;
3012
3008
  }, c.__iteratorUncached = function(l, f) {
3013
3009
  if (u !== 0 && f)
3014
3010
  return this.cacheResult().__iterator(l, f);
3015
3011
  if (u === 0)
3016
- return new R(it);
3017
- var p = t.__iterator(l, f), _ = 0, g = 0;
3012
+ return new R(st);
3013
+ var p = t.__iterator(l, f), y = 0, g = 0;
3018
3014
  return new R(function() {
3019
- for (; _++ < i; )
3015
+ for (; y++ < i; )
3020
3016
  p.next();
3021
3017
  if (++g > u)
3022
- return it();
3018
+ return st();
3023
3019
  var m = p.next();
3024
- return n || l === yt || m.done ? m : l === ve ? B(l, g - 1, void 0, m) : B(l, g - 1, m.value[1], m);
3020
+ return n || l === _t || m.done ? m : l === ve ? B(l, g - 1, void 0, m) : B(l, g - 1, m.value[1], m);
3025
3021
  });
3026
3022
  }, c;
3027
3023
  }
3028
3024
  function La(t, e, r) {
3029
- var n = Ct(t);
3025
+ var n = Rt(t);
3030
3026
  return n.__iterateUncached = function(o, i) {
3031
3027
  var a = this;
3032
3028
  if (i)
@@ -3041,20 +3037,20 @@ function La(t, e, r) {
3041
3037
  var a = this;
3042
3038
  if (i)
3043
3039
  return this.cacheResult().__iterator(o, i);
3044
- var s = t.__iterator(_t, i), u = !0;
3040
+ var s = t.__iterator(gt, i), u = !0;
3045
3041
  return new R(function() {
3046
3042
  if (!u)
3047
- return it();
3043
+ return st();
3048
3044
  var c = s.next();
3049
3045
  if (c.done)
3050
3046
  return c;
3051
3047
  var l = c.value, f = l[0], p = l[1];
3052
- return e.call(r, p, f, a) ? o === _t ? c : B(o, f, p, c) : (u = !1, it());
3048
+ return e.call(r, p, f, a) ? o === gt ? c : B(o, f, p, c) : (u = !1, st());
3053
3049
  });
3054
3050
  }, n;
3055
3051
  }
3056
3052
  function Jo(t, e, r, n) {
3057
- var o = Ct(t);
3053
+ var o = Rt(t);
3058
3054
  return o.__iterateUncached = function(i, a) {
3059
3055
  var s = this;
3060
3056
  if (a)
@@ -3068,16 +3064,16 @@ function Jo(t, e, r, n) {
3068
3064
  var s = this;
3069
3065
  if (a)
3070
3066
  return this.cacheResult().__iterator(i, a);
3071
- var u = t.__iterator(_t, a), c = !0, l = 0;
3067
+ var u = t.__iterator(gt, a), c = !0, l = 0;
3072
3068
  return new R(function() {
3073
- var f, p, _;
3069
+ var f, p, y;
3074
3070
  do {
3075
3071
  if (f = u.next(), f.done)
3076
- return n || i === yt ? f : i === ve ? B(i, l++, void 0, f) : B(i, l++, f.value[1], f);
3072
+ return n || i === _t ? f : i === ve ? B(i, l++, void 0, f) : B(i, l++, f.value[1], f);
3077
3073
  var g = f.value;
3078
- p = g[0], _ = g[1], c && (c = e.call(r, _, p, s));
3074
+ p = g[0], y = g[1], c && (c = e.call(r, y, p, s));
3079
3075
  } while (c);
3080
- return i === _t ? f : B(i, p, _, f);
3076
+ return i === gt ? f : B(i, p, y, f);
3081
3077
  });
3082
3078
  }, o;
3083
3079
  }
@@ -3097,7 +3093,7 @@ var Ua = /* @__PURE__ */ (function(t) {
3097
3093
  if (this._wrappedIterables.length !== 0) {
3098
3094
  if (n)
3099
3095
  return this.cacheResult().__iterate(r, n);
3100
- for (var o = 0, i = U(this), a = i ? _t : yt, s = this._wrappedIterables[o].__iterator(
3096
+ for (var o = 0, i = U(this), a = i ? gt : _t, s = this._wrappedIterables[o].__iterator(
3101
3097
  a,
3102
3098
  n
3103
3099
  ), u = !0, c = 0; u; ) {
@@ -3117,7 +3113,7 @@ var Ua = /* @__PURE__ */ (function(t) {
3117
3113
  }, e.prototype.__iteratorUncached = function(r, n) {
3118
3114
  var o = this;
3119
3115
  if (this._wrappedIterables.length === 0)
3120
- return new R(it);
3116
+ return new R(st);
3121
3117
  if (n)
3122
3118
  return this.cacheResult().__iterator(r, n);
3123
3119
  var i = 0, a = this._wrappedIterables[i].__iterator(
@@ -3136,10 +3132,10 @@ var Ua = /* @__PURE__ */ (function(t) {
3136
3132
  return s;
3137
3133
  });
3138
3134
  }, e;
3139
- })(ut);
3135
+ })(ct);
3140
3136
  function Ba(t, e) {
3141
3137
  var r = U(t), n = [t].concat(e).map(function(i) {
3142
- return vt(i) ? r && (i = Et(i)) : i = r ? ln(i) : Vo(Array.isArray(i) ? i : [i]), i;
3138
+ return yt(i) ? r && (i = Ot(i)) : i = r ? ln(i) : Vo(Array.isArray(i) ? i : [i]), i;
3143
3139
  }).filter(function(i) {
3144
3140
  return i.size !== 0;
3145
3141
  });
@@ -3147,20 +3143,20 @@ function Ba(t, e) {
3147
3143
  return t;
3148
3144
  if (n.length === 1) {
3149
3145
  var o = n[0];
3150
- if (o === t || r && U(o) || It(t) && It(o))
3146
+ if (o === t || r && U(o) || Et(t) && Et(o))
3151
3147
  return o;
3152
3148
  }
3153
3149
  return new Ua(n);
3154
3150
  }
3155
3151
  function Go(t, e, r) {
3156
- var n = Ct(t);
3152
+ var n = Rt(t);
3157
3153
  return n.__iterateUncached = function(o, i) {
3158
3154
  if (i)
3159
3155
  return this.cacheResult().__iterate(o, i);
3160
3156
  var a = 0, s = !1;
3161
3157
  function u(c, l) {
3162
3158
  c.__iterate(function(f, p) {
3163
- return (!e || l < e) && vt(f) ? u(f, l + 1) : (a++, o(f, r ? p : a - 1, n) === !1 && (s = !0)), !s;
3159
+ return (!e || l < e) && yt(f) ? u(f, l + 1) : (a++, o(f, r ? p : a - 1, n) === !1 && (s = !0)), !s;
3164
3160
  }, i);
3165
3161
  }
3166
3162
  return u(t, 0), a;
@@ -3176,12 +3172,12 @@ function Go(t, e, r) {
3176
3172
  continue;
3177
3173
  }
3178
3174
  var l = c.value;
3179
- if (o === _t && (l = l[1]), (!e || s.length < e) && vt(l))
3175
+ if (o === gt && (l = l[1]), (!e || s.length < e) && yt(l))
3180
3176
  s.push(a), a = l.__iterator(o, i);
3181
3177
  else
3182
3178
  return r ? c : B(o, u++, l, c);
3183
3179
  }
3184
- return it();
3180
+ return st();
3185
3181
  });
3186
3182
  }, n;
3187
3183
  }
@@ -3192,7 +3188,7 @@ function Fa(t, e, r) {
3192
3188
  }).flatten(!0);
3193
3189
  }
3194
3190
  function Wa(t, e) {
3195
- var r = Ct(t);
3191
+ var r = Rt(t);
3196
3192
  return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
3197
3193
  var i = this, a = 0;
3198
3194
  return t.__iterate(
@@ -3202,7 +3198,7 @@ function Wa(t, e) {
3202
3198
  o
3203
3199
  ), a;
3204
3200
  }, r.__iteratorUncached = function(n, o) {
3205
- var i = t.__iterator(yt, o), a = 0, s;
3201
+ var i = t.__iterator(_t, o), a = 0, s;
3206
3202
  return new R(function() {
3207
3203
  return (!s || a % 2) && (s = i.next(), s.done) ? s : a % 2 ? B(n, a++, e) : B(n, a++, s.value, s);
3208
3204
  });
@@ -3221,7 +3217,7 @@ function ue(t, e, r) {
3221
3217
  } : function(a, s) {
3222
3218
  i[s] = a[1];
3223
3219
  }
3224
- ), n ? Bt(i) : It(t) ? Ot(i) : _e(i);
3220
+ ), n ? Bt(i) : Et(t) ? kt(i) : _e(i);
3225
3221
  }
3226
3222
  function Xe(t, e, r) {
3227
3223
  if (e || (e = Yo), r) {
@@ -3241,17 +3237,17 @@ function Xn(t, e, r) {
3241
3237
  return n === 0 && r !== e && (r == null || r !== r) || n > 0;
3242
3238
  }
3243
3239
  function Qe(t, e, r, n) {
3244
- var o = Ct(t), i = new se(r).map(function(a) {
3240
+ var o = Rt(t), i = new se(r).map(function(a) {
3245
3241
  return a.size;
3246
3242
  });
3247
3243
  return o.size = n ? i.max() : i.min(), o.__iterate = function(a, s) {
3248
- for (var u = this.__iterator(yt, s), c, l = 0; !(c = u.next()).done && a(c.value, l++, this) !== !1; )
3244
+ for (var u = this.__iterator(_t, s), c, l = 0; !(c = u.next()).done && a(c.value, l++, this) !== !1; )
3249
3245
  ;
3250
3246
  return l;
3251
3247
  }, o.__iteratorUncached = function(a, s) {
3252
3248
  var u = r.map(
3253
3249
  function(f) {
3254
- return f = Z(f), Kr(s ? f.reverse() : f);
3250
+ return f = rt(f), Kr(s ? f.reverse() : f);
3255
3251
  }
3256
3252
  ), c = 0, l = !1;
3257
3253
  return new R(function() {
@@ -3262,7 +3258,7 @@ function Qe(t, e, r, n) {
3262
3258
  return p.done;
3263
3259
  }) : f.some(function(p) {
3264
3260
  return p.done;
3265
- })), l ? it() : B(
3261
+ })), l ? st() : B(
3266
3262
  a,
3267
3263
  c++,
3268
3264
  e.apply(
@@ -3283,15 +3279,15 @@ function Qn(t) {
3283
3279
  throw new TypeError("Expected [K, V] tuple: " + t);
3284
3280
  }
3285
3281
  function dn(t) {
3286
- return U(t) ? Et : It(t) ? Gt : de;
3282
+ return U(t) ? Ot : Et(t) ? Gt : de;
3287
3283
  }
3288
- function Ct(t) {
3284
+ function Rt(t) {
3289
3285
  return Object.create(
3290
- (U(t) ? Bt : It(t) ? Ot : _e).prototype
3286
+ (U(t) ? Bt : Et(t) ? kt : _e).prototype
3291
3287
  );
3292
3288
  }
3293
3289
  function vn() {
3294
- return this._iter.cacheResult ? (this._iter.cacheResult(), this.size = this._iter.size, this) : ut.prototype.cacheResult.call(this);
3290
+ return this._iter.cacheResult ? (this._iter.cacheResult(), this.size = this._iter.size, this) : ct.prototype.cacheResult.call(this);
3295
3291
  }
3296
3292
  function Yo(t, e) {
3297
3293
  return t === void 0 && e === void 0 ? 0 : t === void 0 ? 1 : e === void 0 ? -1 : t > e ? 1 : t < e ? -1 : 0;
@@ -3301,7 +3297,7 @@ function Zn(t) {
3301
3297
  typeof t.equals == "function" && // @ts-expect-error: maybeValue is typed as `{}`
3302
3298
  typeof t.hashCode == "function");
3303
3299
  }
3304
- function dt(t, e) {
3300
+ function vt(t, e) {
3305
3301
  if (t === e || t !== t && e !== e)
3306
3302
  return !0;
3307
3303
  if (!t || !e)
@@ -3335,7 +3331,7 @@ function Zo(t) {
3335
3331
  }
3336
3332
  function ti(t, e, r) {
3337
3333
  for (var n = [], o = 0; o < e.length; o++) {
3338
- var i = Et(e[o]);
3334
+ var i = Ot(e[o]);
3339
3335
  i.size !== 0 && n.push(i);
3340
3336
  }
3341
3337
  return n.length === 0 ? t : t.toSeq().size === 0 && !t.__ownerID && n.length === 1 ? Yt(t) ? t : t.constructor(n[0]) : t.withMutations(function(a) {
@@ -3366,9 +3362,9 @@ function Ha(t) {
3366
3362
  return r === e;
3367
3363
  }
3368
3364
  function Ut(t) {
3369
- return typeof t == "object" && (xt(t) || Array.isArray(t) || Ha(t));
3365
+ return typeof t == "object" && (Ct(t) || Array.isArray(t) || Ha(t));
3370
3366
  }
3371
- function kt(t, e) {
3367
+ function Dt(t, e) {
3372
3368
  e = e || 0;
3373
3369
  for (var r = Math.max(0, t.length - e), n = new Array(r), o = 0; o < r; o++)
3374
3370
  n[o] = t[o + e];
@@ -3376,7 +3372,7 @@ function kt(t, e) {
3376
3372
  }
3377
3373
  function fr(t) {
3378
3374
  if (Array.isArray(t))
3379
- return kt(t);
3375
+ return Dt(t);
3380
3376
  var e = {};
3381
3377
  for (var r in t)
3382
3378
  ye.call(t, r) && (e[r] = t[r]);
@@ -3390,9 +3386,9 @@ function _n(t, e, r) {
3390
3386
  throw new TypeError(
3391
3387
  "Cannot merge into non-data-structure value: " + t
3392
3388
  );
3393
- if (xt(t))
3389
+ if (Ct(t))
3394
3390
  return typeof r == "function" && t.mergeWith ? t.mergeWith.apply(t, [r].concat(e)) : t.merge ? t.merge.apply(t, e) : t.concat.apply(t, e);
3395
- for (var n = Array.isArray(t), o = t, i = n ? Gt : Et, a = n ? function(u) {
3391
+ for (var n = Array.isArray(t), o = t, i = n ? Gt : Ot, a = n ? function(u) {
3396
3392
  o === t && (o = fr(o)), o.push(u);
3397
3393
  } : function(u, c) {
3398
3394
  var l = ye.call(o, c), f = l && r ? r(o[c], u, c) : u;
@@ -3408,8 +3404,8 @@ function Ja(t) {
3408
3404
  return e;
3409
3405
  }
3410
3406
  function Ga(t, e) {
3411
- var r = ut(t), n = ut(e);
3412
- return It(r) === It(n) && U(r) === U(n);
3407
+ var r = ct(t), n = ct(e);
3408
+ return Et(r) === Et(n) && U(r) === U(n);
3413
3409
  }
3414
3410
  function ei() {
3415
3411
  for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
@@ -3424,7 +3420,7 @@ function gn(t) {
3424
3420
  return me(
3425
3421
  this,
3426
3422
  t,
3427
- At(),
3423
+ zt(),
3428
3424
  function(n) {
3429
3425
  return yn(n, e);
3430
3426
  }
@@ -3432,7 +3428,7 @@ function gn(t) {
3432
3428
  }
3433
3429
  function mn(t) {
3434
3430
  for (var e = [], r = arguments.length - 1; r-- > 0; ) e[r] = arguments[r + 1];
3435
- return me(this, t, At(), function(n) {
3431
+ return me(this, t, zt(), function(n) {
3436
3432
  return _n(n, e);
3437
3433
  });
3438
3434
  }
@@ -3466,14 +3462,14 @@ function ze(t, e) {
3466
3462
  if (!t)
3467
3463
  throw new Error(e);
3468
3464
  }
3469
- function ht(t) {
3465
+ function pt(t) {
3470
3466
  ze(t !== 1 / 0, "Cannot perform this action with an infinite size.");
3471
3467
  }
3472
3468
  var ge = /* @__PURE__ */ (function(t) {
3473
3469
  function e(r) {
3474
- return r == null ? At() : En(r) && !zt(r) ? r : At().withMutations(function(n) {
3470
+ return r == null ? zt() : En(r) && !xt(r) ? r : zt().withMutations(function(n) {
3475
3471
  var o = t(r);
3476
- ht(o.size), o.forEach(function(i, a) {
3472
+ pt(o.size), o.forEach(function(i, a) {
3477
3473
  return n.set(a, i);
3478
3474
  });
3479
3475
  });
@@ -3487,18 +3483,18 @@ var ge = /* @__PURE__ */ (function(t) {
3487
3483
  }, e.prototype.remove = function(r) {
3488
3484
  return ro(this, r, x);
3489
3485
  }, e.prototype.deleteAll = function(r) {
3490
- var n = Z(r);
3486
+ var n = rt(r);
3491
3487
  return n.size === 0 ? this : this.withMutations(function(o) {
3492
3488
  n.forEach(function(i) {
3493
3489
  return o.remove(i);
3494
3490
  });
3495
3491
  });
3496
3492
  }, e.prototype.clear = function() {
3497
- return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : At();
3493
+ return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : zt();
3498
3494
  }, e.prototype.sort = function(r) {
3499
- return jt(ue(this, r));
3495
+ return Mt(ue(this, r));
3500
3496
  }, e.prototype.sortBy = function(r, n) {
3501
- return jt(ue(this, n, r));
3497
+ return Mt(ue(this, n, r));
3502
3498
  }, e.prototype.map = function(r, n) {
3503
3499
  var o = this;
3504
3500
  return this.withMutations(function(i) {
@@ -3514,32 +3510,32 @@ var ge = /* @__PURE__ */ (function(t) {
3514
3510
  return i++, r(a[1], a[0], o);
3515
3511
  }, n), i;
3516
3512
  }, e.prototype.__ensureOwner = function(r) {
3517
- return r === this.__ownerID ? this : r ? On(this.size, this._root, r, this.__hash) : this.size === 0 ? At() : (this.__ownerID = r, this.__altered = !1, this);
3513
+ return r === this.__ownerID ? this : r ? On(this.size, this._root, r, this.__hash) : this.size === 0 ? zt() : (this.__ownerID = r, this.__altered = !1, this);
3518
3514
  }, e;
3519
- })(Et);
3515
+ })(Ot);
3520
3516
  ge.isMap = En;
3521
- var V = ge.prototype;
3522
- V[ni] = !0;
3523
- V[Ue] = V.remove;
3524
- V.removeAll = V.deleteAll;
3525
- V.setIn = wn;
3526
- V.removeIn = V.deleteIn = An;
3527
- V.update = bn;
3528
- V.updateIn = Sn;
3529
- V.merge = V.concat = Qo;
3530
- V.mergeWith = Zo;
3531
- V.mergeDeep = ei;
3532
- V.mergeDeepWith = ri;
3533
- V.mergeIn = mn;
3534
- V.mergeDeepIn = gn;
3535
- V.withMutations = Ke;
3536
- V.wasAltered = In;
3537
- V.asImmutable = Fe;
3538
- V["@@transducer/init"] = V.asMutable = We;
3539
- V["@@transducer/step"] = function(t, e) {
3517
+ var L = ge.prototype;
3518
+ L[ni] = !0;
3519
+ L[Ue] = L.remove;
3520
+ L.removeAll = L.deleteAll;
3521
+ L.setIn = wn;
3522
+ L.removeIn = L.deleteIn = An;
3523
+ L.update = bn;
3524
+ L.updateIn = Sn;
3525
+ L.merge = L.concat = Qo;
3526
+ L.mergeWith = Zo;
3527
+ L.mergeDeep = ei;
3528
+ L.mergeDeepWith = ri;
3529
+ L.mergeIn = mn;
3530
+ L.mergeDeepIn = gn;
3531
+ L.withMutations = Ke;
3532
+ L.wasAltered = In;
3533
+ L.asImmutable = Fe;
3534
+ L["@@transducer/init"] = L.asMutable = We;
3535
+ L["@@transducer/step"] = function(t, e) {
3540
3536
  return t.set(e[0], e[1]);
3541
3537
  };
3542
- V["@@transducer/result"] = function(t) {
3538
+ L["@@transducer/result"] = function(t) {
3543
3539
  return t.asImmutable();
3544
3540
  };
3545
3541
  var je = function(t, e) {
@@ -3547,29 +3543,29 @@ var je = function(t, e) {
3547
3543
  };
3548
3544
  je.prototype.get = function(t, e, r, n) {
3549
3545
  for (var o = this.entries, i = 0, a = o.length; i < a; i++)
3550
- if (dt(r, o[i][0]))
3546
+ if (vt(r, o[i][0]))
3551
3547
  return o[i][1];
3552
3548
  return n;
3553
3549
  };
3554
3550
  je.prototype.update = function(t, e, r, n, o, i, a) {
3555
- for (var s = o === x, u = this.entries, c = 0, l = u.length; c < l && !dt(n, u[c][0]); c++)
3551
+ for (var s = o === x, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
3556
3552
  ;
3557
3553
  var f = c < l;
3558
3554
  if (f ? u[c][1] === o : s)
3559
3555
  return this;
3560
- if (bt(a), (s || !f) && bt(i), !(s && u.length === 1)) {
3556
+ if (St(a), (s || !f) && St(i), !(s && u.length === 1)) {
3561
3557
  if (!f && !s && u.length >= ns)
3562
3558
  return Qa(t, u, n, o);
3563
- var p = t && t === this.ownerID, _ = p ? u : kt(u);
3564
- return f ? s ? c === l - 1 ? _.pop() : _[c] = _.pop() : _[c] = [n, o] : _.push([n, o]), p ? (this.entries = _, this) : new je(t, _);
3559
+ var p = t && t === this.ownerID, y = p ? u : Dt(u);
3560
+ return f ? s ? c === l - 1 ? y.pop() : y[c] = y.pop() : y[c] = [n, o] : y.push([n, o]), p ? (this.entries = y, this) : new je(t, y);
3565
3561
  }
3566
3562
  };
3567
3563
  var ce = function(t, e, r) {
3568
3564
  this.ownerID = t, this.bitmap = e, this.nodes = r;
3569
3565
  };
3570
3566
  ce.prototype.get = function(t, e, r, n) {
3571
- e === void 0 && (e = ft(r));
3572
- var o = 1 << ((t === 0 ? e : e >>> t) & ot), i = this.bitmap;
3567
+ e === void 0 && (e = ht(r));
3568
+ var o = 1 << ((t === 0 ? e : e >>> t) & at), i = this.bitmap;
3573
3569
  return (i & o) === 0 ? n : this.nodes[oi(i & o - 1)].get(
3574
3570
  t + T,
3575
3571
  e,
@@ -3578,12 +3574,12 @@ ce.prototype.get = function(t, e, r, n) {
3578
3574
  );
3579
3575
  };
3580
3576
  ce.prototype.update = function(t, e, r, n, o, i, a) {
3581
- r === void 0 && (r = ft(n));
3582
- var s = (e === 0 ? r : r >>> e) & ot, u = 1 << s, c = this.bitmap, l = (c & u) !== 0;
3577
+ r === void 0 && (r = ht(n));
3578
+ var s = (e === 0 ? r : r >>> e) & at, u = 1 << s, c = this.bitmap, l = (c & u) !== 0;
3583
3579
  if (!l && o === x)
3584
3580
  return this;
3585
- var f = oi(c & u - 1), p = this.nodes, _ = l ? p[f] : void 0, g = kn(
3586
- _,
3581
+ var f = oi(c & u - 1), p = this.nodes, y = l ? p[f] : void 0, g = kn(
3582
+ y,
3587
3583
  t,
3588
3584
  e + T,
3589
3585
  r,
@@ -3592,7 +3588,7 @@ ce.prototype.update = function(t, e, r, n, o, i, a) {
3592
3588
  i,
3593
3589
  a
3594
3590
  );
3595
- if (g === _)
3591
+ if (g === y)
3596
3592
  return this;
3597
3593
  if (!l && g && p.length >= os)
3598
3594
  return ts(t, p, c, s, g);
@@ -3600,20 +3596,20 @@ ce.prototype.update = function(t, e, r, n, o, i, a) {
3600
3596
  return p[f ^ 1];
3601
3597
  if (l && g && p.length === 1 && no(g))
3602
3598
  return g;
3603
- var m = t && t === this.ownerID, E = l ? g ? c : c ^ u : c | u, D = l ? g ? ii(p, f, g, m) : rs(p, f, m) : es(p, f, g, m);
3604
- return m ? (this.bitmap = E, this.nodes = D, this) : new ce(t, E, D);
3599
+ var m = t && t === this.ownerID, E = l ? g ? c : c ^ u : c | u, k = l ? g ? ii(p, f, g, m) : rs(p, f, m) : es(p, f, g, m);
3600
+ return m ? (this.bitmap = E, this.nodes = k, this) : new ce(t, E, k);
3605
3601
  };
3606
3602
  var Me = function(t, e, r) {
3607
3603
  this.ownerID = t, this.count = e, this.nodes = r;
3608
3604
  };
3609
3605
  Me.prototype.get = function(t, e, r, n) {
3610
- e === void 0 && (e = ft(r));
3611
- var o = (t === 0 ? e : e >>> t) & ot, i = this.nodes[o];
3606
+ e === void 0 && (e = ht(r));
3607
+ var o = (t === 0 ? e : e >>> t) & at, i = this.nodes[o];
3612
3608
  return i ? i.get(t + T, e, r, n) : n;
3613
3609
  };
3614
3610
  Me.prototype.update = function(t, e, r, n, o, i, a) {
3615
- r === void 0 && (r = ft(n));
3616
- var s = (e === 0 ? r : r >>> e) & ot, u = o === x, c = this.nodes, l = c[s];
3611
+ r === void 0 && (r = ht(n));
3612
+ var s = (e === 0 ? r : r >>> e) & at, u = o === x, c = this.nodes, l = c[s];
3617
3613
  if (u && !l)
3618
3614
  return this;
3619
3615
  var f = kn(
@@ -3633,48 +3629,48 @@ Me.prototype.update = function(t, e, r, n, o, i, a) {
3633
3629
  p++;
3634
3630
  else if (!f && (p--, p < is))
3635
3631
  return Za(t, c, p, s);
3636
- var _ = t && t === this.ownerID, g = ii(c, s, f, _);
3637
- return _ ? (this.count = p, this.nodes = g, this) : new Me(t, p, g);
3632
+ var y = t && t === this.ownerID, g = ii(c, s, f, y);
3633
+ return y ? (this.count = p, this.nodes = g, this) : new Me(t, p, g);
3638
3634
  };
3639
3635
  var le = function(t, e, r) {
3640
3636
  this.ownerID = t, this.keyHash = e, this.entries = r;
3641
3637
  };
3642
3638
  le.prototype.get = function(t, e, r, n) {
3643
3639
  for (var o = this.entries, i = 0, a = o.length; i < a; i++)
3644
- if (dt(r, o[i][0]))
3640
+ if (vt(r, o[i][0]))
3645
3641
  return o[i][1];
3646
3642
  return n;
3647
3643
  };
3648
3644
  le.prototype.update = function(t, e, r, n, o, i, a) {
3649
- r === void 0 && (r = ft(n));
3645
+ r === void 0 && (r = ht(n));
3650
3646
  var s = o === x;
3651
3647
  if (r !== this.keyHash)
3652
- return s ? this : (bt(a), bt(i), Dn(this, t, e, r, [n, o]));
3653
- for (var u = this.entries, c = 0, l = u.length; c < l && !dt(n, u[c][0]); c++)
3648
+ return s ? this : (St(a), St(i), Dn(this, t, e, r, [n, o]));
3649
+ for (var u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
3654
3650
  ;
3655
3651
  var f = c < l;
3656
3652
  if (f ? u[c][1] === o : s)
3657
3653
  return this;
3658
- if (bt(a), (s || !f) && bt(i), s && l === 2)
3659
- return new Nt(t, this.keyHash, u[c ^ 1]);
3660
- var p = t && t === this.ownerID, _ = p ? u : kt(u);
3661
- return f ? s ? c === l - 1 ? _.pop() : _[c] = _.pop() : _[c] = [n, o] : _.push([n, o]), p ? (this.entries = _, this) : new le(t, this.keyHash, _);
3654
+ if (St(a), (s || !f) && St(i), s && l === 2)
3655
+ return new jt(t, this.keyHash, u[c ^ 1]);
3656
+ var p = t && t === this.ownerID, y = p ? u : Dt(u);
3657
+ return f ? s ? c === l - 1 ? y.pop() : y[c] = y.pop() : y[c] = [n, o] : y.push([n, o]), p ? (this.entries = y, this) : new le(t, this.keyHash, y);
3662
3658
  };
3663
- var Nt = function(t, e, r) {
3659
+ var jt = function(t, e, r) {
3664
3660
  this.ownerID = t, this.keyHash = e, this.entry = r;
3665
3661
  };
3666
- Nt.prototype.get = function(t, e, r, n) {
3667
- return dt(r, this.entry[0]) ? this.entry[1] : n;
3662
+ jt.prototype.get = function(t, e, r, n) {
3663
+ return vt(r, this.entry[0]) ? this.entry[1] : n;
3668
3664
  };
3669
- Nt.prototype.update = function(t, e, r, n, o, i, a) {
3670
- var s = o === x, u = dt(n, this.entry[0]);
3665
+ jt.prototype.update = function(t, e, r, n, o, i, a) {
3666
+ var s = o === x, u = vt(n, this.entry[0]);
3671
3667
  if (u ? o === this.entry[1] : s)
3672
3668
  return this;
3673
- if (bt(a), s) {
3674
- bt(i);
3669
+ if (St(a), s) {
3670
+ St(i);
3675
3671
  return;
3676
3672
  }
3677
- return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new Nt(t, this.keyHash, [n, o]) : (bt(i), Dn(this, t, e, ft(n), [n, o]));
3673
+ return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new jt(t, this.keyHash, [n, o]) : (St(i), Dn(this, t, e, ht(n), [n, o]));
3678
3674
  };
3679
3675
  je.prototype.iterate = le.prototype.iterate = function(t, e) {
3680
3676
  for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
@@ -3688,7 +3684,7 @@ ce.prototype.iterate = Me.prototype.iterate = function(t, e) {
3688
3684
  return !1;
3689
3685
  }
3690
3686
  };
3691
- Nt.prototype.iterate = function(t, e) {
3687
+ jt.prototype.iterate = function(t, e) {
3692
3688
  return t(this.entry);
3693
3689
  };
3694
3690
  var Xa = /* @__PURE__ */ (function(t) {
@@ -3718,7 +3714,7 @@ var Xa = /* @__PURE__ */ (function(t) {
3718
3714
  }
3719
3715
  n = this._stack = this._stack.__prev;
3720
3716
  }
3721
- return it();
3717
+ return st();
3722
3718
  }, e;
3723
3719
  })(R);
3724
3720
  function Rr(t, e) {
@@ -3732,11 +3728,11 @@ function to(t, e) {
3732
3728
  };
3733
3729
  }
3734
3730
  function On(t, e, r, n) {
3735
- var o = Object.create(V);
3731
+ var o = Object.create(L);
3736
3732
  return o.size = t, o._root = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
3737
3733
  }
3738
3734
  var eo;
3739
- function At() {
3735
+ function zt() {
3740
3736
  return eo || (eo = On(0));
3741
3737
  }
3742
3738
  function ro(t, e, r) {
@@ -3760,7 +3756,7 @@ function ro(t, e, r) {
3760
3756
  return t;
3761
3757
  o = 1, n = new je(t.__ownerID, [[e, r]]);
3762
3758
  }
3763
- return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? On(o, n) : At();
3759
+ return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? On(o, n) : zt();
3764
3760
  }
3765
3761
  function kn(t, e, r, n, o, i, a, s) {
3766
3762
  return t ? t.update(
@@ -3771,20 +3767,20 @@ function kn(t, e, r, n, o, i, a, s) {
3771
3767
  i,
3772
3768
  a,
3773
3769
  s
3774
- ) : i === x ? t : (bt(s), bt(a), new Nt(e, n, [o, i]));
3770
+ ) : i === x ? t : (St(s), St(a), new jt(e, n, [o, i]));
3775
3771
  }
3776
3772
  function no(t) {
3777
- return t.constructor === Nt || t.constructor === le;
3773
+ return t.constructor === jt || t.constructor === le;
3778
3774
  }
3779
3775
  function Dn(t, e, r, n, o) {
3780
3776
  if (t.keyHash === n)
3781
3777
  return new le(e, n, [t.entry, o]);
3782
- var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & ot, a = (r === 0 ? n : n >>> r) & ot, s, u = i === a ? [Dn(t, e, r + T, n, o)] : (s = new Nt(e, n, o), i < a ? [t, s] : [s, t]);
3778
+ var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & at, a = (r === 0 ? n : n >>> r) & at, s, u = i === a ? [Dn(t, e, r + T, n, o)] : (s = new jt(e, n, o), i < a ? [t, s] : [s, t]);
3783
3779
  return new ce(e, 1 << i | 1 << a, u);
3784
3780
  }
3785
3781
  function Qa(t, e, r, n) {
3786
3782
  t || (t = new an());
3787
- for (var o = new Nt(t, ft(r), [r, n]), i = 0; i < e.length; i++) {
3783
+ for (var o = new jt(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
3788
3784
  var a = e[i];
3789
3785
  o = o.update(t, 0, void 0, a[0], a[1]);
3790
3786
  }
@@ -3798,7 +3794,7 @@ function Za(t, e, r, n) {
3798
3794
  return new ce(t, o, a);
3799
3795
  }
3800
3796
  function ts(t, e, r, n, o) {
3801
- for (var i = 0, a = new Array(pt), s = 0; r !== 0; s++, r >>>= 1)
3797
+ for (var i = 0, a = new Array(dt), s = 0; r !== 0; s++, r >>>= 1)
3802
3798
  a[s] = r & 1 ? e[i++] : void 0;
3803
3799
  return a[n] = o, new Me(t, i + 1, a);
3804
3800
  }
@@ -3806,7 +3802,7 @@ function oi(t) {
3806
3802
  return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
3807
3803
  }
3808
3804
  function ii(t, e, r, n) {
3809
- var o = n ? t : kt(t);
3805
+ var o = n ? t : Dt(t);
3810
3806
  return o[e] = r, o;
3811
3807
  }
3812
3808
  function es(t, e, r, n) {
@@ -3825,11 +3821,11 @@ function rs(t, e, r) {
3825
3821
  a === e && (i = 1), o[a] = t[a + i];
3826
3822
  return o;
3827
3823
  }
3828
- var ns = pt / 4, os = pt / 2, is = pt / 4;
3824
+ var ns = dt / 4, os = dt / 2, is = dt / 4;
3829
3825
  function ai(t) {
3830
3826
  if (qo(t) && typeof t != "string")
3831
3827
  return t;
3832
- if (zt(t))
3828
+ if (xt(t))
3833
3829
  return t.toArray();
3834
3830
  throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
3835
3831
  }
@@ -3841,7 +3837,7 @@ function $e(t) {
3841
3837
  }
3842
3838
  }
3843
3839
  function as(t, e) {
3844
- return xt(t) ? (
3840
+ return Ct(t) ? (
3845
3841
  // @ts-expect-error key might be a number or symbol, which is not handled be Record key type
3846
3842
  t.has(e)
3847
3843
  ) : (
@@ -3850,7 +3846,7 @@ function as(t, e) {
3850
3846
  );
3851
3847
  }
3852
3848
  function si(t, e, r) {
3853
- return xt(t) ? t.get(e, r) : as(t, e) ? (
3849
+ return Ct(t) ? t.get(e, r) : as(t, e) ? (
3854
3850
  // @ts-expect-error weird "get" here,
3855
3851
  typeof t.get == "function" ? (
3856
3852
  // @ts-expect-error weird "get" here,
@@ -3864,7 +3860,7 @@ function si(t, e, r) {
3864
3860
  function ss(t, e) {
3865
3861
  if (!Ut(t))
3866
3862
  throw new TypeError("Cannot update non-data-structure value: " + t);
3867
- if (xt(t)) {
3863
+ if (Ct(t)) {
3868
3864
  if (!t.remove)
3869
3865
  throw new TypeError("Cannot update immutable value without .remove() method: " + t);
3870
3866
  return t.remove(e);
@@ -3877,7 +3873,7 @@ function ss(t, e) {
3877
3873
  function us(t, e, r) {
3878
3874
  if (!Ut(t))
3879
3875
  throw new TypeError("Cannot update non-data-structure value: " + t);
3880
- if (xt(t)) {
3876
+ if (Ct(t)) {
3881
3877
  if (!t.set)
3882
3878
  throw new TypeError("Cannot update immutable value without .set() method: " + t);
3883
3879
  return t.set(e, r);
@@ -3890,7 +3886,7 @@ function us(t, e, r) {
3890
3886
  function me(t, e, r, n) {
3891
3887
  n || (n = r, r = void 0);
3892
3888
  var o = ui(
3893
- xt(t),
3889
+ Ct(t),
3894
3890
  // @ts-expect-error type issues with Record and mixed types
3895
3891
  t,
3896
3892
  ai(e),
@@ -3909,7 +3905,7 @@ function ui(t, e, r, n, o, i) {
3909
3905
  if (!a && !Ut(e))
3910
3906
  throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map($e) + "]: " + e);
3911
3907
  var c = r[n], l = a ? x : si(e, c, x), f = ui(
3912
- l === x ? t : xt(l),
3908
+ l === x ? t : Ct(l),
3913
3909
  // @ts-expect-error mixed type
3914
3910
  l,
3915
3911
  r,
@@ -3917,7 +3913,7 @@ function ui(t, e, r, n, o, i) {
3917
3913
  o,
3918
3914
  i
3919
3915
  );
3920
- return f === l ? e : f === x ? ss(e, c) : us(a ? t ? At() : {} : e, c, f);
3916
+ return f === l ? e : f === x ? ss(e, c) : us(a ? t ? zt() : {} : e, c, f);
3921
3917
  }
3922
3918
  function cs(t, e) {
3923
3919
  return me(t, e, function() {
@@ -3940,7 +3936,7 @@ var Sr = /* @__PURE__ */ (function(t) {
3940
3936
  if (li(r))
3941
3937
  return r;
3942
3938
  var o = t(r), i = o.size;
3943
- return i === 0 ? n : (ht(i), i > 0 && i < pt ? Te(0, i, T, null, new qt(o.toArray())) : n.withMutations(function(a) {
3939
+ return i === 0 ? n : (pt(i), i > 0 && i < dt ? Te(0, i, T, null, new qt(o.toArray())) : n.withMutations(function(a) {
3944
3940
  a.setSize(i), o.forEach(function(s, u) {
3945
3941
  return a.set(u, s);
3946
3942
  });
@@ -3954,7 +3950,7 @@ var Sr = /* @__PURE__ */ (function(t) {
3954
3950
  if (r = Vt(this, r), r >= 0 && r < this.size) {
3955
3951
  r += this._origin;
3956
3952
  var o = fi(this, r);
3957
- return o && o.array[r & ot];
3953
+ return o && o.array[r & at];
3958
3954
  }
3959
3955
  return n;
3960
3956
  }, e.prototype.set = function(r, n) {
@@ -4021,7 +4017,7 @@ var Sr = /* @__PURE__ */ (function(t) {
4021
4017
  var o = n ? this.size : 0, i = oo(this, n);
4022
4018
  return new R(function() {
4023
4019
  var a = i();
4024
- return a === xe ? it() : B(r, n ? --o : o++, a);
4020
+ return a === xe ? st() : B(r, n ? --o : o++, a);
4025
4021
  });
4026
4022
  }, e.prototype.__iterate = function(r, n) {
4027
4023
  for (var o = n ? this.size : 0, i = oo(this, n), a; (a = i()) !== xe && r(a, n ? --o : o++, this) !== !1; )
@@ -4040,24 +4036,24 @@ var Sr = /* @__PURE__ */ (function(t) {
4040
4036
  }, e;
4041
4037
  })(Gt);
4042
4038
  Sr.isList = li;
4043
- var H = Sr.prototype;
4044
- H[ci] = !0;
4045
- H[Ue] = H.remove;
4046
- H.merge = H.concat;
4047
- H.setIn = wn;
4048
- H.deleteIn = H.removeIn = An;
4049
- H.update = bn;
4050
- H.updateIn = Sn;
4051
- H.mergeIn = mn;
4052
- H.mergeDeepIn = gn;
4053
- H.withMutations = Ke;
4054
- H.wasAltered = In;
4055
- H.asImmutable = Fe;
4056
- H["@@transducer/init"] = H.asMutable = We;
4057
- H["@@transducer/step"] = function(t, e) {
4039
+ var J = Sr.prototype;
4040
+ J[ci] = !0;
4041
+ J[Ue] = J.remove;
4042
+ J.merge = J.concat;
4043
+ J.setIn = wn;
4044
+ J.deleteIn = J.removeIn = An;
4045
+ J.update = bn;
4046
+ J.updateIn = Sn;
4047
+ J.mergeIn = mn;
4048
+ J.mergeDeepIn = gn;
4049
+ J.withMutations = Ke;
4050
+ J.wasAltered = In;
4051
+ J.asImmutable = Fe;
4052
+ J["@@transducer/init"] = J.asMutable = We;
4053
+ J["@@transducer/step"] = function(t, e) {
4058
4054
  return t.push(e);
4059
4055
  };
4060
- H["@@transducer/result"] = function(t) {
4056
+ J["@@transducer/result"] = function(t) {
4061
4057
  return t.asImmutable();
4062
4058
  };
4063
4059
  var qt = function(t, e) {
@@ -4066,7 +4062,7 @@ var qt = function(t, e) {
4066
4062
  qt.prototype.removeBefore = function(t, e, r) {
4067
4063
  if ((r & (1 << e + T) - 1) === 0 || this.array.length === 0)
4068
4064
  return this;
4069
- var n = r >>> e & ot;
4065
+ var n = r >>> e & at;
4070
4066
  if (n >= this.array.length)
4071
4067
  return new qt([], t);
4072
4068
  var o = n === 0, i;
@@ -4084,9 +4080,9 @@ qt.prototype.removeBefore = function(t, e, r) {
4084
4080
  return i && (s.array[n] = i), s;
4085
4081
  };
4086
4082
  qt.prototype.removeAfter = function(t, e, r) {
4087
- if (r === (e ? 1 << e + T : pt) || this.array.length === 0)
4083
+ if (r === (e ? 1 << e + T : dt) || this.array.length === 0)
4088
4084
  return this;
4089
- var n = r - 1 >>> e & ot;
4085
+ var n = r - 1 >>> e & at;
4090
4086
  if (n >= this.array.length)
4091
4087
  return this;
4092
4088
  var o;
@@ -4106,17 +4102,17 @@ function oo(t, e) {
4106
4102
  return l === 0 ? s(c, f) : u(c, l, f);
4107
4103
  }
4108
4104
  function s(c, l) {
4109
- var f = l === o ? i && i.array : c && c.array, p = l > r ? 0 : r - l, _ = n - l;
4110
- return _ > pt && (_ = pt), function() {
4111
- if (p === _)
4105
+ var f = l === o ? i && i.array : c && c.array, p = l > r ? 0 : r - l, y = n - l;
4106
+ return y > dt && (y = dt), function() {
4107
+ if (p === y)
4112
4108
  return xe;
4113
- var g = e ? --_ : p++;
4109
+ var g = e ? --y : p++;
4114
4110
  return f && f[g];
4115
4111
  };
4116
4112
  }
4117
4113
  function u(c, l, f) {
4118
- var p, _ = c && c.array, g = f > r ? 0 : r - f >> l, m = (n - f >> l) + 1;
4119
- return m > pt && (m = pt), function() {
4114
+ var p, y = c && c.array, g = f > r ? 0 : r - f >> l, m = (n - f >> l) + 1;
4115
+ return m > dt && (m = dt), function() {
4120
4116
  for (; ; ) {
4121
4117
  if (p) {
4122
4118
  var E = p();
@@ -4126,18 +4122,18 @@ function oo(t, e) {
4126
4122
  }
4127
4123
  if (g === m)
4128
4124
  return xe;
4129
- var D = e ? --m : g++;
4125
+ var k = e ? --m : g++;
4130
4126
  p = a(
4131
- _ && _[D],
4127
+ y && y[k],
4132
4128
  l - T,
4133
- f + (D << l)
4129
+ f + (k << l)
4134
4130
  );
4135
4131
  }
4136
4132
  };
4137
4133
  }
4138
4134
  }
4139
4135
  function Te(t, e, r, n, o, i, a) {
4140
- var s = Object.create(H);
4136
+ var s = Object.create(J);
4141
4137
  return s.size = e - t, s._origin = t, s._capacity = e, s._level = r, s._root = n, s._tail = o, s.__ownerID = i, s.__hash = a, s.__altered = !1, s;
4142
4138
  }
4143
4139
  function rr() {
@@ -4162,7 +4158,7 @@ function ls(t, e, r) {
4162
4158
  ), 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;
4163
4159
  }
4164
4160
  function Xr(t, e, r, n, o, i) {
4165
- var a = n >>> r & ot, s = t && a < t.array.length;
4161
+ var a = n >>> r & at, s = t && a < t.array.length;
4166
4162
  if (!s && o === void 0)
4167
4163
  return t;
4168
4164
  var u;
@@ -4177,7 +4173,7 @@ function Xr(t, e, r, n, o, i) {
4177
4173
  );
4178
4174
  return l === c ? t : (u = fe(t, e), u.array[a] = l, u);
4179
4175
  }
4180
- return s && t.array[a] === o ? t : (i && bt(i), u = fe(t, e), o === void 0 && a === u.array.length - 1 ? u.array.pop() : u.array[a] = o, u);
4176
+ return s && t.array[a] === o ? t : (i && St(i), u = fe(t, e), o === void 0 && a === u.array.length - 1 ? u.array.pop() : u.array[a] = o, u);
4181
4177
  }
4182
4178
  function fe(t, e) {
4183
4179
  return e && t && e === t.ownerID ? t : new qt(t ? t.array.slice() : [], e);
@@ -4187,7 +4183,7 @@ function fi(t, e) {
4187
4183
  return t._tail;
4188
4184
  if (e < 1 << t._level + T) {
4189
4185
  for (var r = t._root, n = t._level; r && n > 0; )
4190
- r = r.array[e >>> n & ot], n -= T;
4186
+ r = r.array[e >>> n & at], n -= T;
4191
4187
  return r;
4192
4188
  }
4193
4189
  }
@@ -4209,23 +4205,23 @@ function Pt(t, e, r) {
4209
4205
  c && c.array.length ? [c] : [],
4210
4206
  n
4211
4207
  ), u += T;
4212
- var _ = t._tail, g = p < f ? fi(t, s - 1) : p > f ? new qt([], n) : _;
4213
- if (_ && p > f && a < i && _.array.length) {
4208
+ var y = t._tail, g = p < f ? fi(t, s - 1) : p > f ? new qt([], n) : y;
4209
+ if (y && p > f && a < i && y.array.length) {
4214
4210
  c = fe(c, n);
4215
4211
  for (var m = c, E = u; E > T; E -= T) {
4216
- var D = f >>> E & ot;
4217
- m = m.array[D] = fe(m.array[D], n);
4212
+ var k = f >>> E & at;
4213
+ m = m.array[k] = fe(m.array[k], n);
4218
4214
  }
4219
- m.array[f >>> T & ot] = _;
4215
+ m.array[f >>> T & at] = y;
4220
4216
  }
4221
4217
  if (s < i && (g = g && g.removeAfter(n, 0, s)), a >= p)
4222
4218
  a -= p, s -= p, u = T, c = null, g = g && g.removeBefore(n, 0, a);
4223
4219
  else if (a > o || p < f) {
4224
4220
  for (l = 0; c; ) {
4225
- var Q = a >>> u & ot;
4226
- if (Q !== p >>> u & ot)
4221
+ var tt = a >>> u & at;
4222
+ if (tt !== p >>> u & at)
4227
4223
  break;
4228
- Q && (l += (1 << u) * Q), u -= T, c = c.array[Q];
4224
+ tt && (l += (1 << u) * tt), u -= T, c = c.array[tt];
4229
4225
  }
4230
4226
  c && a > o && (c = c.removeBefore(n, u, a - l)), c && p < f && (c = c.removeAfter(
4231
4227
  n,
@@ -4236,16 +4232,16 @@ function Pt(t, e, r) {
4236
4232
  return t.__ownerID ? (t.size = s - a, t._origin = a, t._capacity = s, t._level = u, t._root = c, t._tail = g, t.__hash = void 0, t.__altered = !0, t) : Te(a, s, u, c, g);
4237
4233
  }
4238
4234
  function Pe(t) {
4239
- return t < pt ? 0 : t - 1 >>> T << T;
4235
+ return t < dt ? 0 : t - 1 >>> T << T;
4240
4236
  }
4241
4237
  function hi(t) {
4242
- return En(t) && zt(t);
4238
+ return En(t) && xt(t);
4243
4239
  }
4244
- var jt = /* @__PURE__ */ (function(t) {
4240
+ var Mt = /* @__PURE__ */ (function(t) {
4245
4241
  function e(r) {
4246
4242
  return r == null ? Ee() : hi(r) ? r : Ee().withMutations(function(n) {
4247
- var o = Et(r);
4248
- ht(o.size), o.forEach(function(i, a) {
4243
+ var o = Ot(r);
4244
+ pt(o.size), o.forEach(function(i, a) {
4249
4245
  return n.set(a, i);
4250
4246
  });
4251
4247
  });
@@ -4280,23 +4276,23 @@ var jt = /* @__PURE__ */ (function(t) {
4280
4276
  return r ? zn(n, o, r, this.__hash) : this.size === 0 ? Ee() : (this.__ownerID = r, this.__altered = !1, this._map = n, this._list = o, this);
4281
4277
  }, e;
4282
4278
  })(ge);
4283
- jt.isOrderedMap = hi;
4284
- jt.prototype[Lt] = !0;
4285
- jt.prototype[Ue] = jt.prototype.remove;
4279
+ Mt.isOrderedMap = hi;
4280
+ Mt.prototype[Lt] = !0;
4281
+ Mt.prototype[Ue] = Mt.prototype.remove;
4286
4282
  function zn(t, e, r, n) {
4287
- var o = Object.create(jt.prototype);
4283
+ var o = Object.create(Mt.prototype);
4288
4284
  return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4289
4285
  }
4290
4286
  var io;
4291
4287
  function Ee() {
4292
- return io || (io = zn(At(), rr()));
4288
+ return io || (io = zn(zt(), rr()));
4293
4289
  }
4294
4290
  function ao(t, e, r) {
4295
4291
  var n = t._map, o = t._list, i = n.get(e), a = i !== void 0, s, u;
4296
4292
  if (r === x) {
4297
4293
  if (!a)
4298
4294
  return t;
4299
- o.size >= pt && o.size >= n.size * 2 ? (u = o.filter(function(c, l) {
4295
+ o.size >= dt && o.size >= n.size * 2 ? (u = o.filter(function(c, l) {
4300
4296
  return c !== void 0 && i !== l;
4301
4297
  }), s = u.toKeyedSeq().map(function(c) {
4302
4298
  return c[0];
@@ -4344,7 +4340,7 @@ var xn = /* @__PURE__ */ (function(t) {
4344
4340
  return this;
4345
4341
  if (this.size === 0 && Qr(r))
4346
4342
  return r;
4347
- ht(r.size);
4343
+ pt(r.size);
4348
4344
  var n = this.size, o = this._head;
4349
4345
  return r.__iterate(
4350
4346
  function(i) {
@@ -4392,28 +4388,28 @@ var xn = /* @__PURE__ */ (function(t) {
4392
4388
  var a = i.value;
4393
4389
  return i = i.next, B(r, o++, a);
4394
4390
  }
4395
- return it();
4391
+ return st();
4396
4392
  });
4397
4393
  }, e;
4398
4394
  })(Gt);
4399
4395
  xn.isStack = Qr;
4400
- var at = xn.prototype;
4401
- at[pi] = !0;
4402
- at.shift = at.pop;
4403
- at.unshift = at.push;
4404
- at.unshiftAll = at.pushAll;
4405
- at.withMutations = Ke;
4406
- at.wasAltered = In;
4407
- at.asImmutable = Fe;
4408
- at["@@transducer/init"] = at.asMutable = We;
4409
- at["@@transducer/step"] = function(t, e) {
4396
+ var ut = xn.prototype;
4397
+ ut[pi] = !0;
4398
+ ut.shift = ut.pop;
4399
+ ut.unshift = ut.push;
4400
+ ut.unshiftAll = ut.pushAll;
4401
+ ut.withMutations = Ke;
4402
+ ut.wasAltered = In;
4403
+ ut.asImmutable = Fe;
4404
+ ut["@@transducer/init"] = ut.asMutable = We;
4405
+ ut["@@transducer/step"] = function(t, e) {
4410
4406
  return t.unshift(e);
4411
4407
  };
4412
- at["@@transducer/result"] = function(t) {
4408
+ ut["@@transducer/result"] = function(t) {
4413
4409
  return t.asImmutable();
4414
4410
  };
4415
4411
  function Oe(t, e, r, n) {
4416
- var o = Object.create(at);
4412
+ var o = Object.create(ut);
4417
4413
  return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4418
4414
  }
4419
4415
  var so;
@@ -4421,7 +4417,7 @@ function Ze() {
4421
4417
  return so || (so = Oe(0));
4422
4418
  }
4423
4419
  function uo(t, e, r, n, o, i) {
4424
- return ht(t.size), t.__iterate(function(a, s, u) {
4420
+ return pt(t.size), t.__iterate(function(a, s, u) {
4425
4421
  o ? (o = !1, r = a) : r = e.call(n, r, a, s, u);
4426
4422
  }, i), r;
4427
4423
  }
@@ -4449,21 +4445,21 @@ function lo(t, e) {
4449
4445
  function di(t, e) {
4450
4446
  if (t === e)
4451
4447
  return !0;
4452
- if (!vt(e) || // @ts-expect-error size should exists on Collection
4448
+ if (!yt(e) || // @ts-expect-error size should exists on Collection
4453
4449
  t.size !== void 0 && e.size !== void 0 && t.size !== e.size || // @ts-expect-error __hash exists on Collection
4454
4450
  t.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
4455
4451
  e.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
4456
- t.__hash !== e.__hash || U(t) !== U(e) || It(t) !== It(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
4457
- zt(t) !== zt(e))
4452
+ t.__hash !== e.__hash || U(t) !== U(e) || Et(t) !== Et(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
4453
+ xt(t) !== xt(e))
4458
4454
  return !1;
4459
4455
  if (t.size === 0 && e.size === 0)
4460
4456
  return !0;
4461
4457
  var r = !on(t);
4462
- if (zt(t)) {
4458
+ if (xt(t)) {
4463
4459
  var n = t.entries();
4464
4460
  return e.every(function(u, c) {
4465
4461
  var l = n.next().value;
4466
- return l && dt(l[1], u) && (r || dt(l[0], c));
4462
+ return l && vt(l[1], u) && (r || vt(l[0], c));
4467
4463
  }) && n.next().done;
4468
4464
  }
4469
4465
  var o = !1;
@@ -4483,10 +4479,10 @@ function di(t, e) {
4483
4479
  !t.has(u)
4484
4480
  ) : o ? (
4485
4481
  // @ts-expect-error type of `get` does not "catch" the version with `notSetValue`
4486
- !dt(u, t.get(c, x))
4482
+ !vt(u, t.get(c, x))
4487
4483
  ) : (
4488
4484
  // @ts-expect-error type of `get` does not "catch" the version with `notSetValue`
4489
- !dt(t.get(c, x), u)
4485
+ !vt(t.get(c, x), u)
4490
4486
  ))
4491
4487
  return a = !1, !1;
4492
4488
  })
@@ -4541,23 +4537,23 @@ var ps = /* @__PURE__ */ (function(t) {
4541
4537
  var o = this.size, i = this._step, a = n ? this._start + (o - 1) * i : this._start, s = 0;
4542
4538
  return new R(function() {
4543
4539
  if (s === o)
4544
- return it();
4540
+ return st();
4545
4541
  var u = a;
4546
4542
  return a += n ? -i : i, B(r, n ? o - ++s : s++, u);
4547
4543
  });
4548
4544
  }, e.prototype.equals = function(r) {
4549
4545
  return r instanceof e ? this._start === r._start && this._end === r._end && this._step === r._step : di(this, r);
4550
4546
  }, e;
4551
- })(Ot), jr, vi = "@@__IMMUTABLE_SET__@@";
4547
+ })(kt), jr, vi = "@@__IMMUTABLE_SET__@@";
4552
4548
  function Cn(t) {
4553
4549
  return !!(t && // @ts-expect-error: maybeSet is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSet === 'object' && MAYBE_SET_SYMBOL in maybeSet`
4554
4550
  t[vi]);
4555
4551
  }
4556
4552
  var Ir = /* @__PURE__ */ (function(t) {
4557
4553
  function e(r) {
4558
- return r == null ? ke() : Cn(r) && !zt(r) ? r : ke().withMutations(function(n) {
4554
+ return r == null ? ke() : Cn(r) && !xt(r) ? r : ke().withMutations(function(n) {
4559
4555
  var o = t(r);
4560
- ht(o.size), o.forEach(function(i) {
4556
+ pt(o.size), o.forEach(function(i) {
4561
4557
  return n.add(i);
4562
4558
  });
4563
4559
  });
@@ -4565,11 +4561,11 @@ var Ir = /* @__PURE__ */ (function(t) {
4565
4561
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
4566
4562
  return this(arguments);
4567
4563
  }, e.fromKeys = function(r) {
4568
- return this(Et(r).keySeq());
4564
+ return this(Ot(r).keySeq());
4569
4565
  }, e.intersect = function(r) {
4570
- return r = Z(r).toArray(), r.length ? X.intersect.apply(e(r.pop()), r) : ke();
4566
+ return r = rt(r).toArray(), r.length ? Z.intersect.apply(e(r.pop()), r) : ke();
4571
4567
  }, e.union = function(r) {
4572
- return r = Z(r).toArray(), r.length ? X.union.apply(e(r.pop()), r) : ke();
4568
+ return r = rt(r).toArray(), r.length ? Z.union.apply(e(r.pop()), r) : ke();
4573
4569
  }, e.prototype.toString = function() {
4574
4570
  return this.__toString("Set {", "}");
4575
4571
  }, e.prototype.has = function(r) {
@@ -4654,31 +4650,31 @@ var Ir = /* @__PURE__ */ (function(t) {
4654
4650
  }, e;
4655
4651
  })(de);
4656
4652
  Ir.isSet = Cn;
4657
- var X = Ir.prototype;
4658
- X[vi] = !0;
4659
- X[Ue] = X.remove;
4660
- X.merge = X.concat = X.union;
4661
- X.withMutations = Ke;
4662
- X.asImmutable = Fe;
4663
- X["@@transducer/init"] = X.asMutable = We;
4664
- X["@@transducer/step"] = function(t, e) {
4653
+ var Z = Ir.prototype;
4654
+ Z[vi] = !0;
4655
+ Z[Ue] = Z.remove;
4656
+ Z.merge = Z.concat = Z.union;
4657
+ Z.withMutations = Ke;
4658
+ Z.asImmutable = Fe;
4659
+ Z["@@transducer/init"] = Z.asMutable = We;
4660
+ Z["@@transducer/step"] = function(t, e) {
4665
4661
  return t.add(e);
4666
4662
  };
4667
- X["@@transducer/result"] = function(t) {
4663
+ Z["@@transducer/result"] = function(t) {
4668
4664
  return t.asImmutable();
4669
4665
  };
4670
- X.__empty = ke;
4671
- X.__make = yi;
4666
+ Z.__empty = ke;
4667
+ Z.__make = yi;
4672
4668
  function tr(t, e) {
4673
4669
  return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
4674
4670
  }
4675
4671
  function yi(t, e) {
4676
- var r = Object.create(X);
4672
+ var r = Object.create(Z);
4677
4673
  return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
4678
4674
  }
4679
4675
  var fo;
4680
4676
  function ke() {
4681
- return fo || (fo = yi(At()));
4677
+ return fo || (fo = yi(zt()));
4682
4678
  }
4683
4679
  function _i(t, e, r) {
4684
4680
  for (var n = ai(e), o = 0; o !== n.length; )
@@ -4696,7 +4692,7 @@ function vs(t) {
4696
4692
  return ds(this, t);
4697
4693
  }
4698
4694
  function mi() {
4699
- ht(this.size);
4695
+ pt(this.size);
4700
4696
  var t = {};
4701
4697
  return this.__iterate(function(e, r) {
4702
4698
  t[r] = e;
@@ -4705,10 +4701,10 @@ function mi() {
4705
4701
  function hr(t) {
4706
4702
  if (!t || typeof t != "object")
4707
4703
  return t;
4708
- if (!vt(t)) {
4704
+ if (!yt(t)) {
4709
4705
  if (!Ut(t))
4710
4706
  return t;
4711
- t = ut(t);
4707
+ t = ct(t);
4712
4708
  }
4713
4709
  if (U(t)) {
4714
4710
  var e = {};
@@ -4724,15 +4720,15 @@ function hr(t) {
4724
4720
  function ys(t) {
4725
4721
  if (t.size === 1 / 0)
4726
4722
  return 0;
4727
- var e = zt(t), r = U(t), n = e ? 1 : 0;
4723
+ var e = xt(t), r = U(t), n = e ? 1 : 0;
4728
4724
  return t.__iterate(r ? e ? function(o, i) {
4729
- n = 31 * n + ho(ft(o), ft(i)) | 0;
4725
+ n = 31 * n + ho(ht(o), ht(i)) | 0;
4730
4726
  } : function(o, i) {
4731
- n = n + ho(ft(o), ft(i)) | 0;
4727
+ n = n + ho(ht(o), ht(i)) | 0;
4732
4728
  } : e ? function(o) {
4733
- n = 31 * n + ft(o) | 0;
4729
+ n = 31 * n + ht(o) | 0;
4734
4730
  } : function(o) {
4735
- n = n + ft(o) | 0;
4731
+ n = n + ht(o) | 0;
4736
4732
  }), _s(t.size, n);
4737
4733
  }
4738
4734
  function _s(t, e) {
@@ -4747,11 +4743,11 @@ function Xt(t, e) {
4747
4743
  };
4748
4744
  return Object.keys(e).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(r), t;
4749
4745
  }
4750
- Z.Iterator = R;
4751
- Xt(Z, {
4746
+ rt.Iterator = R;
4747
+ Xt(rt, {
4752
4748
  // ### Conversion to other types
4753
4749
  toArray: function() {
4754
- ht(this.size);
4750
+ pt(this.size);
4755
4751
  var t = new Array(this.size || 0), e = U(this), r = 0;
4756
4752
  return this.__iterate(function(n, o) {
4757
4753
  t[r++] = e ? [o, n] : n;
@@ -4771,7 +4767,7 @@ Xt(Z, {
4771
4767
  },
4772
4768
  toObject: mi,
4773
4769
  toOrderedMap: function() {
4774
- return jt(this.toKeyedSeq());
4770
+ return Mt(this.toKeyedSeq());
4775
4771
  },
4776
4772
  toOrderedSet: function() {
4777
4773
  return qe(U(this) ? this.valueSeq() : this);
@@ -4783,7 +4779,7 @@ Xt(Z, {
4783
4779
  return new Bo(this);
4784
4780
  },
4785
4781
  toSeq: function() {
4786
- return It(this) ? this.toIndexedSeq() : U(this) ? this.toKeyedSeq() : this.toSetSeq();
4782
+ return Et(this) ? this.toIndexedSeq() : U(this) ? this.toKeyedSeq() : this.toSetSeq();
4787
4783
  },
4788
4784
  toStack: function() {
4789
4785
  return xn(U(this) ? this.valueSeq() : this);
@@ -4805,14 +4801,14 @@ Xt(Z, {
4805
4801
  },
4806
4802
  includes: function(t) {
4807
4803
  return this.some(function(e) {
4808
- return dt(e, t);
4804
+ return vt(e, t);
4809
4805
  });
4810
4806
  },
4811
4807
  entries: function() {
4812
- return this.__iterator(_t);
4808
+ return this.__iterator(gt);
4813
4809
  },
4814
4810
  every: function(t, e) {
4815
- ht(this.size);
4811
+ pt(this.size);
4816
4812
  var r = !0;
4817
4813
  return this.__iterate(function(n, o, i) {
4818
4814
  if (!t.call(e, n, o, i))
@@ -4830,10 +4826,10 @@ Xt(Z, {
4830
4826
  return n ? n[1] : r;
4831
4827
  },
4832
4828
  forEach: function(t, e) {
4833
- return ht(this.size), this.__iterate(e ? t.bind(e) : t);
4829
+ return pt(this.size), this.__iterate(e ? t.bind(e) : t);
4834
4830
  },
4835
4831
  join: function(t) {
4836
- ht(this.size), t = t !== void 0 ? "" + t : ",";
4832
+ pt(this.size), t = t !== void 0 ? "" + t : ",";
4837
4833
  var e = "", r = !0;
4838
4834
  return this.__iterate(function(n) {
4839
4835
  r ? r = !1 : e += t, e += n != null ? n.toString() : "";
@@ -4872,7 +4868,7 @@ Xt(Z, {
4872
4868
  return $(this, pn(this, t, e, !0));
4873
4869
  },
4874
4870
  some: function(t, e) {
4875
- ht(this.size);
4871
+ pt(this.size);
4876
4872
  var r = !1;
4877
4873
  return this.__iterate(function(n, o, i) {
4878
4874
  if (t.call(e, n, o, i))
@@ -4883,7 +4879,7 @@ Xt(Z, {
4883
4879
  return $(this, ue(this, t));
4884
4880
  },
4885
4881
  values: function() {
4886
- return this.__iterator(yt);
4882
+ return this.__iterator(_t);
4887
4883
  },
4888
4884
  // ### More sequential methods
4889
4885
  butLast: function() {
@@ -4951,7 +4947,7 @@ Xt(Z, {
4951
4947
  },
4952
4948
  get: function(t, e) {
4953
4949
  return this.find(function(r, n) {
4954
- return dt(n, t);
4950
+ return vt(n, t);
4955
4951
  }, void 0, e);
4956
4952
  },
4957
4953
  getIn: gi,
@@ -4963,16 +4959,16 @@ Xt(Z, {
4963
4959
  },
4964
4960
  hasIn: vs,
4965
4961
  isSubset: function(t) {
4966
- return t = typeof t.includes == "function" ? t : Z(t), this.every(function(e) {
4962
+ return t = typeof t.includes == "function" ? t : rt(t), this.every(function(e) {
4967
4963
  return t.includes(e);
4968
4964
  });
4969
4965
  },
4970
4966
  isSuperset: function(t) {
4971
- return t = typeof t.isSubset == "function" ? t : Z(t), t.isSubset(this);
4967
+ return t = typeof t.isSubset == "function" ? t : rt(t), t.isSubset(this);
4972
4968
  },
4973
4969
  keyOf: function(t) {
4974
4970
  return this.findKey(function(e) {
4975
- return dt(e, t);
4971
+ return vt(e, t);
4976
4972
  });
4977
4973
  },
4978
4974
  keySeq: function() {
@@ -5047,17 +5043,17 @@ Xt(Z, {
5047
5043
  // abstract __iterate(fn, reverse)
5048
5044
  // abstract __iterator(type, reverse)
5049
5045
  });
5050
- var et = Z.prototype;
5051
- et[Co] = !0;
5052
- et[yr] = et.values;
5053
- et.toJSON = et.toArray;
5054
- et.__toStringMapper = $e;
5055
- et.inspect = et.toSource = function() {
5046
+ var ot = rt.prototype;
5047
+ ot[Co] = !0;
5048
+ ot[yr] = ot.values;
5049
+ ot.toJSON = ot.toArray;
5050
+ ot.__toStringMapper = $e;
5051
+ ot.inspect = ot.toSource = function() {
5056
5052
  return this.toString();
5057
5053
  };
5058
- et.chain = et.flatMap;
5059
- et.contains = et.includes;
5060
- Xt(Et, {
5054
+ ot.chain = ot.flatMap;
5055
+ ot.contains = ot.includes;
5056
+ Xt(Ot, {
5061
5057
  // ### More sequential methods
5062
5058
  flip: function() {
5063
5059
  return $(this, Wo(this));
@@ -5081,9 +5077,9 @@ Xt(Et, {
5081
5077
  );
5082
5078
  }
5083
5079
  });
5084
- var He = Et.prototype;
5080
+ var He = Ot.prototype;
5085
5081
  He[lr] = !0;
5086
- He[yr] = et.entries;
5082
+ He[yr] = ot.entries;
5087
5083
  He.toJSON = mi;
5088
5084
  He.__toStringMapper = function(t, e) {
5089
5085
  return $e(e) + ": " + $e(t);
@@ -5123,7 +5119,7 @@ Xt(Gt, {
5123
5119
  var n = this.slice(0, t);
5124
5120
  return $(
5125
5121
  this,
5126
- r === 1 ? n : n.concat(kt(arguments, 2), this.slice(t + e))
5122
+ r === 1 ? n : n.concat(Dt(arguments, 2), this.slice(t + e))
5127
5123
  );
5128
5124
  },
5129
5125
  // ### More collection methods
@@ -5149,7 +5145,7 @@ Xt(Gt, {
5149
5145
  return $(this, Wa(this, t));
5150
5146
  },
5151
5147
  interleave: function() {
5152
- var t = [this].concat(kt(arguments)), e = Qe(this.toSeq(), Ot.of, t), r = e.flatten(!0);
5148
+ var t = [this].concat(Dt(arguments)), e = Qe(this.toSeq(), kt.of, t), r = e.flatten(!0);
5153
5149
  return e.size && (r.size = e.size * t.length), $(this, r);
5154
5150
  },
5155
5151
  keySeq: function() {
@@ -5162,15 +5158,15 @@ Xt(Gt, {
5162
5158
  return $(this, Jo(this, t, e, !1));
5163
5159
  },
5164
5160
  zip: function() {
5165
- var t = [this].concat(kt(arguments));
5161
+ var t = [this].concat(Dt(arguments));
5166
5162
  return $(this, Qe(this, po, t));
5167
5163
  },
5168
5164
  zipAll: function() {
5169
- var t = [this].concat(kt(arguments));
5165
+ var t = [this].concat(Dt(arguments));
5170
5166
  return $(this, Qe(this, po, t, !0));
5171
5167
  },
5172
5168
  zipWith: function(t) {
5173
- var e = kt(arguments);
5169
+ var e = Dt(arguments);
5174
5170
  return e[0] = this, $(this, Qe(this, t, e));
5175
5171
  }
5176
5172
  });
@@ -5191,23 +5187,23 @@ Xt(de, {
5191
5187
  }
5192
5188
  });
5193
5189
  var he = de.prototype;
5194
- he.has = et.includes;
5190
+ he.has = ot.includes;
5195
5191
  he.contains = he.includes;
5196
5192
  he.keys = he.values;
5197
5193
  Xt(Bt, He);
5198
- Xt(Ot, we);
5194
+ Xt(kt, we);
5199
5195
  Xt(_e, he);
5200
5196
  function po() {
5201
- return kt(arguments);
5197
+ return Dt(arguments);
5202
5198
  }
5203
5199
  function wi(t) {
5204
- return Cn(t) && zt(t);
5200
+ return Cn(t) && xt(t);
5205
5201
  }
5206
5202
  var qe = /* @__PURE__ */ (function(t) {
5207
5203
  function e(r) {
5208
5204
  return r == null ? Zr() : wi(r) ? r : Zr().withMutations(function(n) {
5209
5205
  var o = de(r);
5210
- ht(o.size), o.forEach(function(i) {
5206
+ pt(o.size), o.forEach(function(i) {
5211
5207
  return n.add(i);
5212
5208
  });
5213
5209
  });
@@ -5215,7 +5211,7 @@ var qe = /* @__PURE__ */ (function(t) {
5215
5211
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
5216
5212
  return this(arguments);
5217
5213
  }, e.fromKeys = function(r) {
5218
- return this(Et(r).keySeq());
5214
+ return this(Ot(r).keySeq());
5219
5215
  }, e.prototype.toString = function() {
5220
5216
  return this.__toString("OrderedSet {", "}");
5221
5217
  }, e;
@@ -5241,7 +5237,7 @@ function gs(t) {
5241
5237
  throw new Error(
5242
5238
  "Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
5243
5239
  );
5244
- if (xt(t))
5240
+ if (Ct(t))
5245
5241
  throw new Error(
5246
5242
  "Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead."
5247
5243
  );
@@ -5250,7 +5246,7 @@ function gs(t) {
5250
5246
  "Can not call `Record` with a non-object as default values. Use a plain javascript object instead."
5251
5247
  );
5252
5248
  }
5253
- var Y = function(t, e) {
5249
+ var X = function(t, e) {
5254
5250
  var r;
5255
5251
  gs(t);
5256
5252
  var n = function(i) {
@@ -5271,34 +5267,34 @@ var Y = function(t, e) {
5271
5267
  }
5272
5268
  }
5273
5269
  return this.__ownerID = void 0, this._values = Sr().withMutations(function(f) {
5274
- f.setSize(a._keys.length), Et(i).forEach(function(p, _) {
5275
- f.set(a._indices[_], p === a._defaultValues[_] ? void 0 : p);
5270
+ f.setSize(a._keys.length), Ot(i).forEach(function(p, y) {
5271
+ f.set(a._indices[y], p === a._defaultValues[y] ? void 0 : p);
5276
5272
  });
5277
5273
  }), this;
5278
- }, o = n.prototype = Object.create(q);
5274
+ }, o = n.prototype = Object.create(V);
5279
5275
  return o.constructor = n, e && (n.displayName = e), n;
5280
5276
  };
5281
- Y.prototype.toString = function() {
5277
+ X.prototype.toString = function() {
5282
5278
  for (var t = Nn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
5283
5279
  r = e[n], t += (n ? ", " : "") + r + ": " + $e(this.get(r));
5284
5280
  return t + " }";
5285
5281
  };
5286
- Y.prototype.equals = function(t) {
5282
+ X.prototype.equals = function(t) {
5287
5283
  return this === t || Yt(t) && pe(this).equals(pe(t));
5288
5284
  };
5289
- Y.prototype.hashCode = function() {
5285
+ X.prototype.hashCode = function() {
5290
5286
  return pe(this).hashCode();
5291
5287
  };
5292
- Y.prototype.has = function(t) {
5288
+ X.prototype.has = function(t) {
5293
5289
  return this._indices.hasOwnProperty(t);
5294
5290
  };
5295
- Y.prototype.get = function(t, e) {
5291
+ X.prototype.get = function(t, e) {
5296
5292
  if (!this.has(t))
5297
5293
  return e;
5298
5294
  var r = this._indices[t], n = this._values.get(r);
5299
5295
  return n === void 0 ? this._defaultValues[t] : n;
5300
5296
  };
5301
- Y.prototype.set = function(t, e) {
5297
+ X.prototype.set = function(t, e) {
5302
5298
  if (this.has(t)) {
5303
5299
  var r = this._values.set(
5304
5300
  this._indices[t],
@@ -5309,60 +5305,60 @@ Y.prototype.set = function(t, e) {
5309
5305
  }
5310
5306
  return this;
5311
5307
  };
5312
- Y.prototype.remove = function(t) {
5308
+ X.prototype.remove = function(t) {
5313
5309
  return this.set(t);
5314
5310
  };
5315
- Y.prototype.clear = function() {
5311
+ X.prototype.clear = function() {
5316
5312
  var t = this._values.clear().setSize(this._keys.length);
5317
5313
  return this.__ownerID ? this : Rn(this, t);
5318
5314
  };
5319
- Y.prototype.wasAltered = function() {
5315
+ X.prototype.wasAltered = function() {
5320
5316
  return this._values.wasAltered();
5321
5317
  };
5322
- Y.prototype.toSeq = function() {
5318
+ X.prototype.toSeq = function() {
5323
5319
  return pe(this);
5324
5320
  };
5325
- Y.prototype.toJS = function() {
5321
+ X.prototype.toJS = function() {
5326
5322
  return hr(this);
5327
5323
  };
5328
- Y.prototype.entries = function() {
5329
- return this.__iterator(_t);
5324
+ X.prototype.entries = function() {
5325
+ return this.__iterator(gt);
5330
5326
  };
5331
- Y.prototype.__iterator = function(t, e) {
5327
+ X.prototype.__iterator = function(t, e) {
5332
5328
  return pe(this).__iterator(t, e);
5333
5329
  };
5334
- Y.prototype.__iterate = function(t, e) {
5330
+ X.prototype.__iterate = function(t, e) {
5335
5331
  return pe(this).__iterate(t, e);
5336
5332
  };
5337
- Y.prototype.__ensureOwner = function(t) {
5333
+ X.prototype.__ensureOwner = function(t) {
5338
5334
  if (t === this.__ownerID)
5339
5335
  return this;
5340
5336
  var e = this._values.__ensureOwner(t);
5341
5337
  return t ? Rn(this, e, t) : (this.__ownerID = t, this._values = e, this);
5342
5338
  };
5343
- Y.isRecord = Yt;
5344
- Y.getDescriptiveName = Nn;
5345
- var q = Y.prototype;
5346
- q[To] = !0;
5347
- q[Ue] = q.remove;
5348
- q.deleteIn = q.removeIn = An;
5349
- q.getIn = gi;
5350
- q.hasIn = et.hasIn;
5351
- q.merge = Qo;
5352
- q.mergeWith = Zo;
5353
- q.mergeIn = mn;
5354
- q.mergeDeep = ei;
5355
- q.mergeDeepWith = ri;
5356
- q.mergeDeepIn = gn;
5357
- q.setIn = wn;
5358
- q.update = bn;
5359
- q.updateIn = Sn;
5360
- q.withMutations = Ke;
5361
- q.asMutable = We;
5362
- q.asImmutable = Fe;
5363
- q[yr] = q.entries;
5364
- q.toJSON = q.toObject = et.toObject;
5365
- q.inspect = q.toSource = function() {
5339
+ X.isRecord = Yt;
5340
+ X.getDescriptiveName = Nn;
5341
+ var V = X.prototype;
5342
+ V[To] = !0;
5343
+ V[Ue] = V.remove;
5344
+ V.deleteIn = V.removeIn = An;
5345
+ V.getIn = gi;
5346
+ V.hasIn = ot.hasIn;
5347
+ V.merge = Qo;
5348
+ V.mergeWith = Zo;
5349
+ V.mergeIn = mn;
5350
+ V.mergeDeep = ei;
5351
+ V.mergeDeepWith = ri;
5352
+ V.mergeDeepIn = gn;
5353
+ V.setIn = wn;
5354
+ V.update = bn;
5355
+ V.updateIn = Sn;
5356
+ V.withMutations = Ke;
5357
+ V.asMutable = We;
5358
+ V.asImmutable = Fe;
5359
+ V[yr] = V.entries;
5360
+ V.toJSON = V.toObject = ot.toObject;
5361
+ V.inspect = V.toSource = function() {
5366
5362
  return this.toString();
5367
5363
  };
5368
5364
  function Rn(t, e, r) {
@@ -5412,8 +5408,8 @@ const $r = /* @__PURE__ */ new WeakMap();
5412
5408
  function Is(t, e = !1) {
5413
5409
  const r = Le(e);
5414
5410
  let n = "";
5415
- tt(Ss(t), (a) => {
5416
- const s = Mr(St(a));
5411
+ nt(Ss(t), (a) => {
5412
+ const s = Mr(It(a));
5417
5413
  if (s) {
5418
5414
  const u = s;
5419
5415
  if ($r.get(u) || $r.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
@@ -5421,10 +5417,10 @@ function Is(t, e = !1) {
5421
5417
  }
5422
5418
  }, { immediate: !0 });
5423
5419
  const o = () => {
5424
- const a = Mr(St(t));
5420
+ const a = Mr(It(t));
5425
5421
  !a || r.value || (a.style.overflow = "hidden", r.value = !0);
5426
5422
  }, i = () => {
5427
- const a = Mr(St(t));
5423
+ const a = Mr(It(t));
5428
5424
  !a || !r.value || (a.style.overflow = n, $r.delete(a), r.value = !1);
5429
5425
  };
5430
5426
  return ws(i), C({
@@ -5443,7 +5439,7 @@ function Es() {
5443
5439
  if (e.value = n.value, t) return;
5444
5440
  t = !0;
5445
5441
  const o = Is(r, n.value);
5446
- tt(e, (i) => o.value = i);
5442
+ nt(e, (i) => o.value = i);
5447
5443
  };
5448
5444
  }
5449
5445
  Es();
@@ -5474,8 +5470,8 @@ const Pr = /* @__PURE__ */ new WeakMap();
5474
5470
  function zs(t, e = !1) {
5475
5471
  const r = Le(e);
5476
5472
  let n = "";
5477
- tt(As(t), (a) => {
5478
- const s = Tr(St(a));
5473
+ nt(As(t), (a) => {
5474
+ const s = Tr(It(a));
5479
5475
  if (s) {
5480
5476
  const u = s;
5481
5477
  if (Pr.get(u) || Pr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
@@ -5483,10 +5479,10 @@ function zs(t, e = !1) {
5483
5479
  }
5484
5480
  }, { immediate: !0 });
5485
5481
  const o = () => {
5486
- const a = Tr(St(t));
5482
+ const a = Tr(It(t));
5487
5483
  !a || r.value || (a.style.overflow = "hidden", r.value = !0);
5488
5484
  }, i = () => {
5489
- const a = Tr(St(t));
5485
+ const a = Tr(It(t));
5490
5486
  !a || !r.value || (a.style.overflow = n, Pr.delete(a), r.value = !1);
5491
5487
  };
5492
5488
  return ks(i), C({
@@ -5505,7 +5501,7 @@ function xs() {
5505
5501
  if (e.value = n.value, t) return;
5506
5502
  t = !0;
5507
5503
  const o = zs(r, n.value);
5508
- tt(e, (i) => o.value = i);
5504
+ nt(e, (i) => o.value = i);
5509
5505
  };
5510
5506
  }
5511
5507
  xs();
@@ -5528,7 +5524,7 @@ const Cs = { class: "aform" }, Rs = {
5528
5524
  emits: /* @__PURE__ */ Mn(["update:schema", "update:data"], ["update:data"]),
5529
5525
  setup(t, { emit: e }) {
5530
5526
  const r = e, n = Ai(t, "data"), o = A({});
5531
- tt(
5527
+ nt(
5532
5528
  () => n.value,
5533
5529
  (f) => {
5534
5530
  !t.schema || !f || t.schema.forEach((p) => {
@@ -5541,8 +5537,8 @@ const Cs = { class: "aform" }, Rs = {
5541
5537
  o.value[f] = p, n.value && (n.value[f] = p, r("update:data", { ...n.value }));
5542
5538
  }, a = (f) => {
5543
5539
  const p = {};
5544
- for (const [_, g] of Object.entries(f))
5545
- ["component", "fieldtype", "mode"].includes(_) || (p[_] = g), _ === "rows" && (!g || Array.isArray(g) && g.length === 0) && (p.rows = n.value[f.fieldname] || []);
5540
+ for (const [y, g] of Object.entries(f))
5541
+ ["component", "fieldtype", "mode"].includes(y) || (p[y] = g), y === "rows" && (!g || Array.isArray(g) && g.length === 0) && (p.rows = n.value[f.fieldname] || []);
5546
5542
  return p;
5547
5543
  }, s = C(() => t.mode ?? "edit");
5548
5544
  function u(f) {
@@ -5554,20 +5550,20 @@ const Cs = { class: "aform" }, Rs = {
5554
5550
  get() {
5555
5551
  return n.value?.[t.schema[p].fieldname];
5556
5552
  },
5557
- set: (_) => {
5553
+ set: (y) => {
5558
5554
  const g = t.schema[p].fieldname;
5559
- g && n.value && (n.value[g] = _, r("update:data", { ...n.value })), r("update:schema", t.schema);
5555
+ g && n.value && (n.value[g] = y, r("update:data", { ...n.value })), r("update:schema", t.schema);
5560
5556
  }
5561
5557
  })));
5562
5558
  });
5563
5559
  const l = C(() => c.value);
5564
5560
  return (f, p) => {
5565
- const _ = So("AForm", !0);
5566
- return M(), P("form", Cs, [
5567
- (M(!0), P(ne, null, Ce(t.schema, (g, m) => (M(), P(ne, { key: m }, [
5568
- "schema" in g && Array.isArray(g.schema) && g.schema.length > 0 ? (M(), P("div", Rs, [
5569
- g.label ? (M(), P("h4", Ns, Dt(g.label), 1)) : re("", !0),
5570
- Kt(_, {
5561
+ const y = So("AForm", !0);
5562
+ return M(), q("form", Cs, [
5563
+ (M(!0), q(ne, null, Ce(t.schema, (g, m) => (M(), q(ne, { key: m }, [
5564
+ "schema" in g && Array.isArray(g.schema) && g.schema.length > 0 ? (M(), q("div", Rs, [
5565
+ g.label ? (M(), q("h4", Ns, At(g.label), 1)) : re("", !0),
5566
+ Kt(y, {
5571
5567
  data: o.value[g.fieldname],
5572
5568
  mode: u(g),
5573
5569
  schema: g.schema,
@@ -5604,8 +5600,8 @@ const Cs = { class: "aform" }, Rs = {
5604
5600
  }, l = () => {
5605
5601
  };
5606
5602
  return (f, p) => {
5607
- const _ = So("router-link");
5608
- return M(), P("footer", null, [
5603
+ const y = So("router-link");
5604
+ return M(), q("footer", null, [
5609
5605
  N("ul", $s, [
5610
5606
  N("li", {
5611
5607
  class: "hidebreadcrumbs",
@@ -5624,7 +5620,7 @@ const Cs = { class: "aform" }, Rs = {
5624
5620
  onClick: l,
5625
5621
  onKeydown: be(l, ["enter"])
5626
5622
  }, [
5627
- Kt(_, {
5623
+ Kt(y, {
5628
5624
  to: "/",
5629
5625
  tabindex: "0"
5630
5626
  }, {
@@ -5649,7 +5645,7 @@ const Cs = { class: "aform" }, Rs = {
5649
5645
  style: Or({ display: e.value ? "block" : "none" })
5650
5646
  }, [
5651
5647
  N("a", Ps, [
5652
- or((M(), P("svg", {
5648
+ or((M(), q("svg", {
5653
5649
  class: "icon search-icon",
5654
5650
  role: "button",
5655
5651
  "aria-label": "Search",
@@ -5688,16 +5684,16 @@ const Cs = { class: "aform" }, Rs = {
5688
5684
  ])
5689
5685
  ])
5690
5686
  ], 6),
5691
- (M(!0), P(ne, null, Ce(t.breadcrumbs, (g) => (M(), P("li", {
5687
+ (M(!0), q(ne, null, Ce(t.breadcrumbs, (g) => (M(), q("li", {
5692
5688
  key: g.title,
5693
5689
  style: Or({ display: e.value ? "block" : "none" })
5694
5690
  }, [
5695
- Kt(_, {
5691
+ Kt(y, {
5696
5692
  tabindex: "0",
5697
5693
  to: g.to
5698
5694
  }, {
5699
5695
  default: Re(() => [
5700
- ir(Dt(g.title), 1)
5696
+ ir(At(g.title), 1)
5701
5697
  ]),
5702
5698
  _: 2
5703
5699
  }, 1032, ["to"])
@@ -5717,27 +5713,28 @@ const Cs = { class: "aform" }, Rs = {
5717
5713
  props: {
5718
5714
  availableDoctypes: {},
5719
5715
  routeAdapter: {},
5720
- confirmFn: { type: Function }
5716
+ confirmFn: { type: Function },
5717
+ recordIdField: {}
5721
5718
  },
5722
- emits: ["action", "navigate", "record:open"],
5719
+ emits: ["action", "navigate", "record:open", "load-records", "load-record"],
5723
5720
  setup(t, { emit: e }) {
5724
5721
  const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Ia(), a = A(!1), s = A(!1), u = C({
5725
5722
  get() {
5726
- if (!i.value || !f.value || !_.value)
5723
+ if (!i.value || !f.value || !y.value)
5727
5724
  return {};
5728
5725
  try {
5729
- return { ...i.value.getRecordById(f.value, _.value)?.get("") || {} };
5726
+ return { ...i.value.getRecordById(f.value, y.value)?.get("") || {} };
5730
5727
  } catch {
5731
5728
  return {};
5732
5729
  }
5733
5730
  },
5734
5731
  set(h) {
5735
- if (!(!i.value || !f.value || !_.value))
5732
+ if (!(!i.value || !f.value || !y.value))
5736
5733
  try {
5737
5734
  const d = i.value.getStore();
5738
- for (const [S, k] of Object.entries(h)) {
5739
- const L = `${f.value}.${_.value}.${S}`;
5740
- (d.has(L) ? d.get(L) : void 0) !== k && d.set(L, k);
5735
+ for (const [S, D] of Object.entries(h)) {
5736
+ const P = `${f.value}.${y.value}.${S}`;
5737
+ (d.has(P) ? d.get(P) : void 0) !== D && d.set(P, D);
5741
5738
  }
5742
5739
  } catch (d) {
5743
5740
  console.warn("HST update failed:", d);
@@ -5761,14 +5758,14 @@ const Cs = { class: "aform" }, Rs = {
5761
5758
  return c.value.params.doctype;
5762
5759
  const h = c.value.params.pathMatch;
5763
5760
  return h && h.length > 0 ? h[0] : "";
5764
- }), _ = C(() => {
5761
+ }), y = C(() => {
5765
5762
  if (r.routeAdapter) return r.routeAdapter.getCurrentRecordId();
5766
5763
  if (!c.value) return "";
5767
5764
  if (c.value.params.recordId)
5768
5765
  return c.value.params.recordId;
5769
5766
  const h = c.value.params.pathMatch;
5770
5767
  return h && h.length > 1 ? h[1] : "";
5771
- }), g = C(() => _.value?.startsWith("new-")), m = C(() => {
5768
+ }), g = C(() => y.value?.startsWith("new-")), m = C(() => {
5772
5769
  if (r.routeAdapter) return r.routeAdapter.getCurrentView();
5773
5770
  if (!c.value || c.value.name === "home" || c.value.path === "/")
5774
5771
  return "doctypes";
@@ -5782,27 +5779,27 @@ const Cs = { class: "aform" }, Rs = {
5782
5779
  const h = c.value.params.pathMatch;
5783
5780
  return h && h.length > 0 ? h.length === 1 ? "records" : "record" : "doctypes";
5784
5781
  }), E = () => {
5785
- if (!i.value || !f.value || !_.value)
5782
+ if (!i.value || !f.value || !y.value)
5786
5783
  return [];
5787
5784
  try {
5788
5785
  const h = i.value.registry.getDoctype(f.value);
5789
5786
  if (!h?.workflow) return [];
5790
- const d = i.value.getRecordState(f.value, _.value), S = h.getAvailableTransitions(d), k = u.value || {};
5791
- return S.map(({ name: L, targetState: nt }) => ({
5792
- label: `${L} (→ ${nt})`,
5787
+ const d = i.value.getRecordState(f.value, y.value), S = h.getAvailableTransitions(d), D = u.value || {};
5788
+ return S.map(({ name: P, targetState: Q }) => ({
5789
+ label: `${P} (→ ${Q})`,
5793
5790
  action: () => {
5794
5791
  n("action", {
5795
- name: L,
5792
+ name: P,
5796
5793
  doctype: f.value,
5797
- recordId: _.value,
5798
- data: k
5794
+ recordId: y.value,
5795
+ data: D
5799
5796
  });
5800
5797
  }
5801
5798
  }));
5802
5799
  } catch (h) {
5803
5800
  return console.warn("Error getting available transitions:", h), [];
5804
5801
  }
5805
- }, D = C(() => {
5802
+ }, k = C(() => {
5806
5803
  const h = [];
5807
5804
  switch (m.value) {
5808
5805
  case "records":
@@ -5825,23 +5822,23 @@ const Cs = { class: "aform" }, Rs = {
5825
5822
  }
5826
5823
  }
5827
5824
  return h;
5828
- }), Q = C(() => {
5825
+ }), tt = C(() => {
5829
5826
  const h = [];
5830
5827
  if (m.value === "records" && p.value)
5831
5828
  h.push(
5832
5829
  { title: "Home", to: "/" },
5833
- { title: J(p.value), to: `/${p.value}` }
5830
+ { title: G(p.value), to: `/${p.value}` }
5834
5831
  );
5835
5832
  else if (m.value === "record" && p.value) {
5836
- const d = _.value ? `/${p.value}/${_.value}` : c.value?.fullPath ?? "";
5833
+ const d = y.value ? `/${p.value}/${y.value}` : c.value?.fullPath ?? "";
5837
5834
  h.push(
5838
5835
  { title: "Home", to: "/" },
5839
- { title: J(p.value), to: `/${p.value}` },
5836
+ { title: G(p.value), to: `/${p.value}` },
5840
5837
  { title: g.value ? "New Record" : "Edit Record", to: d }
5841
5838
  );
5842
5839
  }
5843
5840
  return h;
5844
- }), rt = (h) => {
5841
+ }), it = (h) => {
5845
5842
  const d = [
5846
5843
  {
5847
5844
  title: "Go Home",
@@ -5857,20 +5854,20 @@ const Cs = { class: "aform" }, Rs = {
5857
5854
  }
5858
5855
  ];
5859
5856
  return p.value && (d.push({
5860
- title: `View ${J(p.value)} Records`,
5857
+ title: `View ${G(p.value)} Records`,
5861
5858
  description: `Navigate to ${p.value} list`,
5862
5859
  action: () => {
5863
5860
  I({ view: "records", doctype: p.value });
5864
5861
  }
5865
5862
  }), d.push({
5866
- title: `Create New ${J(p.value)}`,
5863
+ title: `Create New ${G(p.value)}`,
5867
5864
  description: `Create a new ${p.value} record`,
5868
5865
  action: () => {
5869
5866
  w();
5870
5867
  }
5871
5868
  })), o.forEach((S) => {
5872
5869
  d.push({
5873
- title: `View ${J(S)}`,
5870
+ title: `View ${G(S)}`,
5874
5871
  description: `Navigate to ${S} list`,
5875
5872
  action: () => {
5876
5873
  I({ view: "records", doctype: S });
@@ -5879,13 +5876,13 @@ const Cs = { class: "aform" }, Rs = {
5879
5876
  }), h ? d.filter(
5880
5877
  (S) => S.title.toLowerCase().includes(h.toLowerCase()) || S.description.toLowerCase().includes(h.toLowerCase())
5881
5878
  ) : d;
5882
- }, gt = (h) => {
5879
+ }, mt = (h) => {
5883
5880
  h.action(), s.value = !1;
5884
- }, J = (h) => h.split("-").map((d) => d.charAt(0).toUpperCase() + d.slice(1)).join(" "), mt = (h) => i.value ? i.value.getRecordIds(h).length : 0, I = async (h) => {
5881
+ }, G = (h) => h.split("-").map((d) => d.charAt(0).toUpperCase() + d.slice(1)).join(" "), wt = (h) => i.value ? i.value.getRecordIds(h).length : 0, I = async (h) => {
5885
5882
  n("navigate", h), r.routeAdapter ? await r.routeAdapter.navigate(h) : h.view === "doctypes" ? await l.value?.push("/") : h.view === "records" && h.doctype ? await l.value?.push(`/${h.doctype}`) : h.view === "record" && h.doctype && h.recordId && await l.value?.push(`/${h.doctype}/${h.recordId}`);
5886
- }, Rt = async (h) => {
5883
+ }, Nt = async (h) => {
5887
5884
  await I({ view: "records", doctype: h });
5888
- }, G = async (h) => {
5885
+ }, Y = async (h) => {
5889
5886
  const d = p.value;
5890
5887
  n("record:open", { doctype: d, recordId: h }), await I({ view: "record", doctype: d, recordId: h });
5891
5888
  }, w = async () => {
@@ -5896,8 +5893,8 @@ const Cs = { class: "aform" }, Rs = {
5896
5893
  const h = o.map((d) => ({
5897
5894
  id: d,
5898
5895
  doctype: d,
5899
- display_name: J(d),
5900
- record_count: mt(d),
5896
+ display_name: G(d),
5897
+ record_count: wt(d),
5901
5898
  actions: "View Records"
5902
5899
  }));
5903
5900
  return [
@@ -5948,13 +5945,14 @@ const Cs = { class: "aform" }, Rs = {
5948
5945
  }, z = () => {
5949
5946
  if (!f.value) return [];
5950
5947
  if (!i.value) return [];
5951
- const h = O(), d = j();
5948
+ const h = O(), d = j(), S = r.recordIdField || "id";
5952
5949
  if (d.length === 0)
5953
5950
  return [];
5954
- const S = h.map((k) => ({
5955
- ...k,
5951
+ const D = d.find((H) => H.fieldname === S), P = d.filter((H) => H.fieldname !== S), Q = D ? [D, ...P] : d, et = h.map((H) => ({
5952
+ ...H,
5953
+ // Use the canonical ID field for navigation
5956
5954
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
5957
- id: k.id || "",
5955
+ id: H[S] || H.id || "",
5958
5956
  actions: "Edit | Delete"
5959
5957
  }));
5960
5958
  return [
@@ -5962,10 +5960,10 @@ const Cs = { class: "aform" }, Rs = {
5962
5960
  fieldname: "records_table",
5963
5961
  component: "ATable",
5964
5962
  columns: [
5965
- ...d.map((k) => ({
5966
- label: k.label,
5967
- name: k.fieldname,
5968
- fieldtype: k.fieldtype,
5963
+ ...Q.map((H) => ({
5964
+ label: H.label,
5965
+ name: H.fieldname,
5966
+ fieldtype: H.fieldtype,
5969
5967
  align: "left",
5970
5968
  edit: !1,
5971
5969
  width: "20ch"
@@ -5983,7 +5981,7 @@ const Cs = { class: "aform" }, Rs = {
5983
5981
  view: "list",
5984
5982
  fullWidth: !0
5985
5983
  },
5986
- rows: S
5984
+ rows: et
5987
5985
  }
5988
5986
  ];
5989
5987
  }, W = () => {
@@ -6005,10 +6003,10 @@ const Cs = { class: "aform" }, Rs = {
6005
6003
  try {
6006
6004
  const d = i.value.registry.registry[f.value];
6007
6005
  if (d?.schema)
6008
- return ("toArray" in d.schema ? d.schema.toArray() : d.schema).map((k) => ({
6009
- fieldname: k.fieldname,
6010
- label: "label" in k && k.label || k.fieldname,
6011
- fieldtype: "fieldtype" in k && k.fieldtype || "Data"
6006
+ return ("toArray" in d.schema ? d.schema.toArray() : d.schema).map((D) => ({
6007
+ fieldname: D.fieldname,
6008
+ label: "label" in D && D.label || D.fieldname,
6009
+ fieldtype: "fieldtype" in D && D.fieldtype || "Data"
6012
6010
  }));
6013
6011
  } catch {
6014
6012
  }
@@ -6024,10 +6022,10 @@ const Cs = { class: "aform" }, Rs = {
6024
6022
  default:
6025
6023
  return [];
6026
6024
  }
6027
- }), Mt = (h, d) => {
6025
+ }), $t = (h, d) => {
6028
6026
  d && d();
6029
- }, ct = async (h) => {
6030
- const d = h || _.value;
6027
+ }, lt = async (h) => {
6028
+ const d = h || y.value;
6031
6029
  if (!d) return;
6032
6030
  (r.confirmFn ? await r.confirmFn("Are you sure you want to delete this record?") : confirm("Are you sure you want to delete this record?")) && n("action", {
6033
6031
  name: "DELETE",
@@ -6038,26 +6036,26 @@ const Cs = { class: "aform" }, Rs = {
6038
6036
  }, K = async (h) => {
6039
6037
  const d = h.target;
6040
6038
  d.getAttribute("data-action") === "create" && await w();
6041
- const k = d.closest("td, th");
6042
- if (k) {
6043
- const L = k.textContent?.trim(), nt = k.closest("tr");
6044
- if (L === "View Records" && nt) {
6045
- const st = nt.querySelectorAll("td");
6046
- if (st.length > 0) {
6047
- const lt = st[1].textContent?.trim();
6048
- lt && await Rt(lt);
6039
+ const D = d.closest("td, th");
6040
+ if (D) {
6041
+ const P = D.textContent?.trim(), Q = D.closest("tr");
6042
+ if (P === "View Records" && Q) {
6043
+ const et = Q.querySelectorAll("td");
6044
+ if (et.length > 0) {
6045
+ const ft = et[1].textContent?.trim();
6046
+ ft && await Nt(ft);
6049
6047
  }
6050
- } else if (L?.includes("Edit") && nt) {
6051
- const st = nt.querySelectorAll("td");
6052
- if (st.length > 0) {
6053
- const lt = st[0].textContent?.trim();
6054
- lt && await G(lt);
6048
+ } else if (P?.includes("Edit") && Q) {
6049
+ const et = Q.querySelectorAll("td");
6050
+ if (et.length > 0) {
6051
+ const ft = et[0].textContent?.trim();
6052
+ ft && await Y(ft);
6055
6053
  }
6056
- } else if (L?.includes("Delete") && nt) {
6057
- const st = nt.querySelectorAll("td");
6058
- if (st.length > 0) {
6059
- const lt = st[0].textContent?.trim();
6060
- lt && await ct(lt);
6054
+ } else if (P?.includes("Delete") && Q) {
6055
+ const et = Q.querySelectorAll("td");
6056
+ if (et.length > 0) {
6057
+ const ft = et[0].textContent?.trim();
6058
+ ft && await lt(ft);
6061
6059
  }
6062
6060
  }
6063
6061
  }
@@ -6065,7 +6063,7 @@ const Cs = { class: "aform" }, Rs = {
6065
6063
  if (!(!i.value || !f.value)) {
6066
6064
  a.value = !0;
6067
6065
  try {
6068
- g.value || i.value.getRecordById(f.value, _.value);
6066
+ g.value || i.value.getRecordById(f.value, y.value);
6069
6067
  } catch (h) {
6070
6068
  console.warn("Error loading record data:", h);
6071
6069
  } finally {
@@ -6073,17 +6071,17 @@ const Cs = { class: "aform" }, Rs = {
6073
6071
  }
6074
6072
  }
6075
6073
  };
6076
- return tt(
6077
- [m, f, _],
6074
+ return nt(
6075
+ [m, f, y],
6078
6076
  () => {
6079
- m.value === "record" && v();
6077
+ m.value === "records" && f.value ? n("load-records", { doctype: f.value }) : m.value === "record" && f.value && y.value && (n("load-record", { doctype: f.value, recordId: y.value }), v());
6080
6078
  },
6081
6079
  { immediate: !0 }
6082
6080
  ), Lr("desktopMethods", {
6083
- navigateToDoctype: Rt,
6084
- openRecord: G,
6081
+ navigateToDoctype: Nt,
6082
+ openRecord: Y,
6085
6083
  createNewRecord: w,
6086
- handleDelete: ct,
6084
+ handleDelete: lt,
6087
6085
  /**
6088
6086
  * Convenience wrapper so child components (e.g. slot content) can emit
6089
6087
  * an action event without needing a direct reference to the emit function.
@@ -6092,7 +6090,7 @@ const Cs = { class: "aform" }, Rs = {
6092
6090
  n("action", {
6093
6091
  name: h,
6094
6092
  doctype: f.value,
6095
- recordId: _.value,
6093
+ recordId: y.value,
6096
6094
  data: d ?? u.value ?? {}
6097
6095
  });
6098
6096
  }
@@ -6103,37 +6101,37 @@ const Cs = { class: "aform" }, Rs = {
6103
6101
  return document.addEventListener("keydown", h), () => {
6104
6102
  document.removeEventListener("keydown", h);
6105
6103
  };
6106
- }), (h, d) => (M(), P("div", {
6104
+ }), (h, d) => (M(), q("div", {
6107
6105
  class: "desktop",
6108
6106
  onClick: K
6109
6107
  }, [
6110
6108
  Kt(Eo, {
6111
- elements: D.value,
6112
- onActionClick: Mt
6109
+ elements: k.value,
6110
+ onActionClick: $t
6113
6111
  }, null, 8, ["elements"]),
6114
6112
  F.value.length > 0 ? (M(), tn(er(Ms), {
6115
6113
  key: 0,
6116
6114
  data: u.value,
6117
6115
  "onUpdate:data": d[0] || (d[0] = (S) => u.value = S),
6118
6116
  schema: F.value
6119
- }, null, 8, ["data", "schema"])) : er(i) ? (M(), P("div", Ls, [
6120
- N("p", null, "Loading " + Dt(m.value) + " data...", 1)
6121
- ])) : (M(), P("div", Vs, [...d[2] || (d[2] = [
6117
+ }, null, 8, ["data", "schema"])) : er(i) ? (M(), q("div", Ls, [
6118
+ N("p", null, "Loading " + At(m.value) + " data...", 1)
6119
+ ])) : (M(), q("div", Vs, [...d[2] || (d[2] = [
6122
6120
  N("p", null, "Initializing Stonecrop...", -1)
6123
6121
  ])])),
6124
- Kt(Si, { breadcrumbs: Q.value }, null, 8, ["breadcrumbs"]),
6122
+ Kt(Si, { breadcrumbs: tt.value }, null, 8, ["breadcrumbs"]),
6125
6123
  Kt(Oo, {
6126
6124
  "is-open": s.value,
6127
- search: rt,
6125
+ search: it,
6128
6126
  placeholder: "Type a command or search...",
6129
- onSelect: gt,
6127
+ onSelect: mt,
6130
6128
  onClose: d[1] || (d[1] = (S) => s.value = !1)
6131
6129
  }, {
6132
6130
  title: Re(({ result: S }) => [
6133
- ir(Dt(S.title), 1)
6131
+ ir(At(S.title), 1)
6134
6132
  ]),
6135
6133
  content: Re(({ result: S }) => [
6136
- ir(Dt(S.description), 1)
6134
+ ir(At(S.description), 1)
6137
6135
  ]),
6138
6136
  _: 1
6139
6137
  }, 8, ["is-open"])