@stonecrop/desktop 0.11.5 → 0.11.6

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,119 +1,97 @@
1
- import { defineComponent as qe, ref as x, onMounted as yr, openBlock as T, createElementBlock as U, normalizeClass as ir, createElementVNode as M, Fragment as re, renderList as xe, toDisplayString as At, createCommentVNode as te, withDirectives as sr, vShow as Wr, useTemplateRef as So, computed as C, watch as ot, nextTick as ne, createBlock as ar, Teleport as zi, createVNode as ee, Transition as xi, withCtx as Re, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as oe, isReactive as _r, toRef as Wt, hasInjectionContext as Hr, inject as Ne, getCurrentInstance as ko, reactive as Do, markRaw as Se, effectScope as Ri, getCurrentScope as un, onScopeDispose as cn, toRefs as Ln, provide as Kr, shallowRef as Le, toValue as St, readonly as gr, customRef as ln, unref as rr, useModel as Ni, watchEffect as Ci, resolveDynamicComponent as Vn, mergeProps as ji, mergeModels as Un, resolveComponent as $i, withKeys as we, normalizeStyle as xr } from "vue";
2
- const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { key: 1 }, qi = ["onClick"], Li = { class: "dropdown-container" }, Vi = { class: "dropdown" }, Ui = ["onClick"], Bi = ["href"], Fi = { class: "dropdown-item" }, Wi = /* @__PURE__ */ qe({
1
+ import { defineComponent as Ve, ref as z, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as te, createElementVNode as $, Fragment as ne, renderList as Ce, toDisplayString as At, createCommentVNode as ee, withDirectives as sr, vShow as Br, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as Ne, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Bt, hasInjectionContext as Kr, inject as je, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Le, toValue as St, readonly as gr, customRef as ln, unref as nr, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
2
+ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Bi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Ve({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: { default: () => [] }
6
6
  },
7
7
  emits: ["actionClick"],
8
8
  setup(t, { emit: e }) {
9
- const r = e, n = x({}), o = x(!1), i = x(-1), s = x(!1), a = x(!1);
9
+ const r = e, n = z({}), o = z(!0);
10
+ z(-1), z(!1), z(!1);
11
+ const i = z([]);
10
12
  yr(() => {
11
- u();
13
+ s();
12
14
  });
13
- const u = () => {
14
- n.value = {};
15
- }, c = () => {
16
- s.value = !0, i.value = setTimeout(() => {
17
- s.value && (o.value = !0);
18
- }, 500);
19
- }, l = () => {
20
- s.value = !1, a.value = !1, clearTimeout(i.value), o.value = !1;
21
- }, f = (d) => {
22
- const y = !n.value[d];
23
- u(), y && (n.value[d] = !0);
24
- }, h = (d, y) => {
25
- r("actionClick", y, d);
15
+ const s = () => {
16
+ n.value = {}, i.value = [];
17
+ }, a = () => {
18
+ o.value = !o.value;
19
+ }, u = (l) => {
20
+ const f = !n.value[l];
21
+ s(), f && (n.value[l] = !0, i.value[l] = !0);
22
+ }, c = (l, f) => {
23
+ r("actionClick", f, l);
26
24
  };
27
- return (d, y) => (T(), U("div", {
28
- class: ir([{ "open-set": o.value, "hovered-and-closed": a.value }, "action-set collapse"]),
29
- onMouseover: c,
30
- onMouseleave: l
25
+ return (l, f) => (M(), U("div", {
26
+ class: te([{ collapsed: !o.value }, "action-set"])
31
27
  }, [
32
- M("div", Mi, [
33
- M("div", {
34
- id: "chevron",
35
- onClick: y[0] || (y[0] = (g) => a.value = !a.value)
36
- }, [...y[1] || (y[1] = [
37
- M("svg", {
38
- id: "Layer_1",
39
- class: "leftBar",
40
- version: "1.1",
41
- xmlns: "http://www.w3.org/2000/svg",
42
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
43
- x: "0px",
44
- y: "0px",
45
- viewBox: "0 0 100 100",
46
- "xml:space": "preserve"
47
- }, [
48
- M("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
49
- ], -1),
50
- M("svg", {
51
- id: "Layer_1",
52
- class: "rightBar",
53
- version: "1.1",
54
- xmlns: "http://www.w3.org/2000/svg",
55
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
56
- x: "0px",
57
- y: "0px",
58
- viewBox: "0 0 100 100",
59
- "xml:space": "preserve"
60
- }, [
61
- M("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
62
- ], -1)
63
- ])])
28
+ $("div", Mi, [
29
+ $("div", {
30
+ id: "cross",
31
+ onClick: a,
32
+ class: te({ rotated: o.value })
33
+ }, "×", 2)
64
34
  ]),
65
- y[2] || (y[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
66
- (T(!0), U(re, null, xe(t.elements, (g, D) => (T(), U("div", {
67
- key: g.label,
35
+ f[0] || (f[0] = $("div", { style: { "margin-right": "30px" } }, null, -1)),
36
+ (M(!0), U(ne, null, Ce(t.elements, (h, d) => (M(), U("div", {
37
+ key: h.label,
68
38
  class: "action-element"
69
39
  }, [
70
- g.type == "button" ? (T(), U("button", {
71
- key: 0,
72
- disabled: g.disabled,
73
- class: "button-default",
74
- onClick: (z) => h(g.action, g.label)
75
- }, At(g.label), 9, Ti)) : te("", !0),
76
- g.type == "dropdown" ? (T(), U("div", Pi, [
77
- M("button", {
40
+ $("div", Ti, [
41
+ h.type == "button" ? (M(), U("button", {
42
+ key: 0,
43
+ disabled: h.disabled,
78
44
  class: "button-default",
79
- onClick: (z) => f(D)
80
- }, At(g.label), 9, qi),
81
- sr(M("div", Li, [
82
- M("div", Vi, [
83
- (T(!0), U(re, null, xe(g.actions, (z, et) => (T(), U("div", {
84
- key: z.label
45
+ onClick: (y) => c(h.action, h.label)
46
+ }, At(h.label), 9, Pi)) : ee("", !0)
47
+ ]),
48
+ h.type == "dropdown" ? (M(), U("div", qi, [
49
+ $("div", Vi, [
50
+ $("div", {
51
+ onClick: (y) => u(d),
52
+ class: te(["cross", { rotated: i.value[d] }])
53
+ }, "×", 10, Li),
54
+ $("button", {
55
+ class: "button-default dropdown-title",
56
+ onClick: (y) => u(d)
57
+ }, At(h.label), 9, Ui)
58
+ ]),
59
+ sr($("div", Fi, [
60
+ $("div", Wi, [
61
+ (M(!0), U(ne, null, Ce(h.actions, (y, m) => (M(), U("div", {
62
+ key: y.label
85
63
  }, [
86
- z.action != null ? (T(), U("button", {
64
+ y.action != null ? (M(), U("button", {
87
65
  key: 0,
88
66
  class: "dropdown-item",
89
- onClick: (st) => h(z.action, z.label)
90
- }, At(z.label), 9, Ui)) : z.link != null ? (T(), U("a", {
67
+ onClick: (D) => c(y.action, y.label)
68
+ }, At(y.label), 9, Bi)) : y.link != null ? (M(), U("a", {
91
69
  key: 1,
92
- href: z.link
70
+ href: y.link
93
71
  }, [
94
- M("button", Fi, At(z.label), 1)
95
- ], 8, Bi)) : te("", !0)
72
+ $("button", Hi, At(y.label), 1)
73
+ ], 8, Ki)) : ee("", !0)
96
74
  ]))), 128))
97
75
  ])
98
76
  ], 512), [
99
- [Wr, n.value[D]]
77
+ [Br, n.value[d]]
100
78
  ])
101
- ])) : te("", !0)
79
+ ])) : ee("", !0)
102
80
  ]))), 128))
103
- ], 34));
81
+ ], 2));
104
82
  }
105
83
  }), Ao = (t, e) => {
106
84
  const r = t.__vccOpts || t;
107
85
  for (const [n, o] of e)
108
86
  r[n] = o;
109
87
  return r;
110
- }, zo = /* @__PURE__ */ Ao(Wi, [["__scopeId", "data-v-e67d631a"]]), Hi = { class: "command-palette-header" }, Ki = ["placeholder"], Ji = {
88
+ }, zo = /* @__PURE__ */ Ao(Ji, [["__scopeId", "data-v-d52e090d"]]), Gi = { class: "command-palette-header" }, Qi = ["placeholder"], Yi = {
111
89
  key: 0,
112
90
  class: "command-palette-results"
113
- }, Gi = ["onClick", "onMouseover"], Qi = { class: "result-title" }, Yi = { class: "result-content" }, Xi = {
91
+ }, Xi = ["onClick", "onMouseover"], Zi = { class: "result-title" }, ts = { class: "result-content" }, es = {
114
92
  key: 1,
115
93
  class: "command-palette-no-results"
116
- }, xo = /* @__PURE__ */ qe({
94
+ }, Ro = /* @__PURE__ */ Ve({
117
95
  __name: "CommandPalette",
118
96
  props: {
119
97
  search: { type: Function },
@@ -123,11 +101,11 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
123
101
  },
124
102
  emits: ["select", "close"],
125
103
  setup(t, { emit: e }) {
126
- const r = e, n = x(""), o = x(0), i = So("input"), s = C(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
104
+ const r = e, n = z(""), o = z(0), i = So("input"), s = N(() => n.value ? t.search(n.value).slice(0, t.maxResults) : []);
127
105
  ot(
128
106
  () => t.isOpen,
129
107
  async (l) => {
130
- l && (n.value = "", o.value = 0, await ne(), i.value?.focus());
108
+ l && (n.value = "", o.value = 0, await oe(), i.value?.focus());
131
109
  }
132
110
  ), ot(s, () => {
133
111
  o.value = 0;
@@ -152,21 +130,21 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
152
130
  }, c = (l) => {
153
131
  r("select", l), a();
154
132
  };
155
- return (l, f) => (T(), ar(zi, { to: "body" }, [
156
- ee(xi, { name: "fade" }, {
157
- default: Re(() => [
158
- t.isOpen ? (T(), U("div", {
133
+ return (l, f) => (M(), ar(zi, { to: "body" }, [
134
+ re(Ri, { name: "fade" }, {
135
+ default: Ne(() => [
136
+ t.isOpen ? (M(), U("div", {
159
137
  key: 0,
160
138
  class: "command-palette-overlay",
161
139
  onClick: a
162
140
  }, [
163
- M("div", {
141
+ $("div", {
164
142
  class: "command-palette",
165
143
  onClick: f[1] || (f[1] = Io(() => {
166
144
  }, ["stop"]))
167
145
  }, [
168
- M("div", Hi, [
169
- sr(M("input", {
146
+ $("div", Gi, [
147
+ sr($("input", {
170
148
  ref: "input",
171
149
  "onUpdate:modelValue": f[0] || (f[0] = (h) => n.value = h),
172
150
  type: "text",
@@ -174,31 +152,31 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
174
152
  placeholder: t.placeholder,
175
153
  autofocus: "",
176
154
  onKeydown: u
177
- }, null, 40, Ki), [
155
+ }, null, 40, Qi), [
178
156
  [Eo, n.value]
179
157
  ])
180
158
  ]),
181
- s.value.length ? (T(), U("div", Ji, [
182
- (T(!0), U(re, null, xe(s.value, (h, d) => (T(), U("div", {
159
+ s.value.length ? (M(), U("div", Yi, [
160
+ (M(!0), U(ne, null, Ce(s.value, (h, d) => (M(), U("div", {
183
161
  key: d,
184
- class: ir(["command-palette-result", { selected: d === o.value }]),
162
+ class: te(["command-palette-result", { selected: d === o.value }]),
185
163
  onClick: (y) => c(h),
186
164
  onMouseover: (y) => o.value = d
187
165
  }, [
188
- M("div", Qi, [
166
+ $("div", Zi, [
189
167
  zr(l.$slots, "title", { result: h })
190
168
  ]),
191
- M("div", Yi, [
169
+ $("div", ts, [
192
170
  zr(l.$slots, "content", { result: h })
193
171
  ])
194
- ], 42, Gi))), 128))
195
- ])) : n.value && !s.value.length ? (T(), U("div", Xi, [
172
+ ], 42, Xi))), 128))
173
+ ])) : n.value && !s.value.length ? (M(), U("div", es, [
196
174
  zr(l.$slots, "empty", {}, () => [
197
175
  ur(' No results found for "' + At(n.value) + '" ', 1)
198
176
  ])
199
- ])) : te("", !0)
177
+ ])) : ee("", !0)
200
178
  ])
201
- ])) : te("", !0)
179
+ ])) : ee("", !0)
202
180
  ]),
203
181
  _: 3
204
182
  })
@@ -206,33 +184,33 @@ const Mi = { class: "action-menu-icon" }, Ti = ["disabled", "onClick"], Pi = { k
206
184
  }
207
185
  });
208
186
  const Xt = typeof window < "u";
209
- let Ft;
210
- const cr = (t) => Ft = t;
187
+ let Wt;
188
+ const cr = (t) => Wt = t;
211
189
  process.env.NODE_ENV;
212
190
  const Jr = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
213
191
  /* istanbul ignore next */
214
192
  /* @__PURE__ */ Symbol()
215
193
  );
216
- function Ht(t) {
194
+ function Kt(t) {
217
195
  return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
218
196
  }
219
- var ke;
197
+ var De;
220
198
  (function(t) {
221
199
  t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
222
- })(ke || (ke = {}));
223
- function Ro(t, e) {
200
+ })(De || (De = {}));
201
+ function Co(t, e) {
224
202
  for (const r in e) {
225
203
  const n = e[r];
226
204
  if (!(r in t))
227
205
  continue;
228
206
  const o = t[r];
229
- Ht(o) && Ht(n) && !oe(n) && !_r(n) ? t[r] = Ro(o, n) : t[r] = n;
207
+ Kt(o) && Kt(n) && !ie(n) && !_r(n) ? t[r] = Co(o, n) : t[r] = n;
230
208
  }
231
209
  return t;
232
210
  }
233
211
  const No = () => {
234
212
  };
235
- function Bn(t, e, r, n = No) {
213
+ function Fn(t, e, r, n = No) {
236
214
  t.add(e);
237
215
  const o = () => {
238
216
  t.delete(e) && n();
@@ -244,38 +222,38 @@ function Yt(t, ...e) {
244
222
  r(...e);
245
223
  });
246
224
  }
247
- const Zi = (t) => t(), Fn = /* @__PURE__ */ Symbol(), Rr = /* @__PURE__ */ Symbol();
225
+ const rs = (t) => t(), Wn = /* @__PURE__ */ Symbol(), Cr = /* @__PURE__ */ Symbol();
248
226
  function Gr(t, e) {
249
227
  t instanceof Map && e instanceof Map ? e.forEach((r, n) => t.set(n, r)) : t instanceof Set && e instanceof Set && e.forEach(t.add, t);
250
228
  for (const r in e) {
251
229
  if (!e.hasOwnProperty(r))
252
230
  continue;
253
231
  const n = e[r], o = t[r];
254
- Ht(o) && Ht(n) && t.hasOwnProperty(r) && !oe(n) && !_r(n) ? t[r] = Gr(o, n) : t[r] = n;
232
+ Kt(o) && Kt(n) && t.hasOwnProperty(r) && !ie(n) && !_r(n) ? t[r] = Gr(o, n) : t[r] = n;
255
233
  }
256
234
  return t;
257
235
  }
258
- const ts = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia:skipHydration") : (
236
+ const ns = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia:skipHydration") : (
259
237
  /* istanbul ignore next */
260
238
  /* @__PURE__ */ Symbol()
261
239
  );
262
- function es(t) {
263
- return !Ht(t) || !Object.prototype.hasOwnProperty.call(t, ts);
240
+ function os(t) {
241
+ return !Kt(t) || !Object.prototype.hasOwnProperty.call(t, ns);
264
242
  }
265
243
  const { assign: wt } = Object;
266
- function Wn(t) {
267
- return !!(oe(t) && t.effect);
244
+ function Bn(t) {
245
+ return !!(ie(t) && t.effect);
268
246
  }
269
- function Hn(t, e, r, n) {
247
+ function Kn(t, e, r, n) {
270
248
  const { state: o, actions: i, getters: s } = e, a = r.state.value[t];
271
249
  let u;
272
250
  function c() {
273
251
  !a && (process.env.NODE_ENV === "production" || !n) && (r.state.value[t] = o ? o() : {});
274
252
  const l = process.env.NODE_ENV !== "production" && n ? (
275
253
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
276
- Ln(x(o ? o() : {}).value)
277
- ) : Ln(r.state.value[t]);
278
- return wt(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] = Se(C(() => {
254
+ Vn(z(o ? o() : {}).value)
255
+ ) : Vn(r.state.value[t]);
256
+ return wt(l, i, Object.keys(s || {}).reduce((f, h) => (process.env.NODE_ENV !== "production" && h in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`), f[h] = Ie(N(() => {
279
257
  cr(r);
280
258
  const d = r._s.get(t);
281
259
  return s[h].call(d, d);
@@ -295,26 +273,26 @@ function Qr(t, e, r = {}, n, o, i) {
295
273
  let c, l, f = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(), d;
296
274
  const y = n.state.value[t];
297
275
  !i && !y && (process.env.NODE_ENV === "production" || !o) && (n.state.value[t] = {});
298
- const g = x({});
276
+ const m = z({});
299
277
  let D;
300
- function z(S) {
278
+ function T(S) {
301
279
  let b;
302
280
  c = l = !1, process.env.NODE_ENV !== "production" && (d = []), typeof S == "function" ? (S(n.state.value[t]), b = {
303
- type: ke.patchFunction,
281
+ type: De.patchFunction,
304
282
  storeId: t,
305
283
  events: d
306
284
  }) : (Gr(n.state.value[t], S), b = {
307
- type: ke.patchObject,
285
+ type: De.patchObject,
308
286
  payload: S,
309
287
  storeId: t,
310
288
  events: d
311
289
  });
312
290
  const R = D = /* @__PURE__ */ Symbol();
313
- ne().then(() => {
291
+ oe().then(() => {
314
292
  D === R && (c = !0);
315
293
  }), l = !0, Yt(f, b, n.state.value[t]);
316
294
  }
317
- const et = i ? function() {
295
+ const rt = i ? function() {
318
296
  const { state: b } = r, R = b ? b() : {};
319
297
  this.$patch((J) => {
320
298
  wt(J, R);
@@ -325,64 +303,64 @@ function Qr(t, e, r = {}, n, o, i) {
325
303
  throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`);
326
304
  } : No
327
305
  );
328
- function st() {
306
+ function lt() {
329
307
  s.stop(), f.clear(), h.clear(), n._s.delete(t);
330
308
  }
331
309
  const Ot = (S, b = "") => {
332
- if (Fn in S)
333
- return S[Rr] = b, S;
310
+ if (Wn in S)
311
+ return S[Cr] = b, S;
334
312
  const R = function() {
335
313
  cr(n);
336
314
  const J = Array.from(arguments), k = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
337
315
  function G(_) {
338
316
  k.add(_);
339
317
  }
340
- function jt(_) {
318
+ function xt(_) {
341
319
  P.add(_);
342
320
  }
343
321
  Yt(h, {
344
322
  args: J,
345
- name: R[Rr],
323
+ name: R[Cr],
346
324
  store: O,
347
325
  after: G,
348
- onError: jt
326
+ onError: xt
349
327
  });
350
- let at;
328
+ let st;
351
329
  try {
352
- at = S.apply(this && this.$id === t ? this : O, J);
330
+ st = S.apply(this && this.$id === t ? this : O, J);
353
331
  } catch (_) {
354
332
  throw Yt(P, _), _;
355
333
  }
356
- return at instanceof Promise ? at.then((_) => (Yt(k, _), _)).catch((_) => (Yt(P, _), Promise.reject(_))) : (Yt(k, at), at);
334
+ return st instanceof Promise ? st.then((_) => (Yt(k, _), _)).catch((_) => (Yt(P, _), Promise.reject(_))) : (Yt(k, st), st);
357
335
  };
358
- return R[Fn] = !0, R[Rr] = b, R;
359
- }, X = /* @__PURE__ */ Se({
336
+ return R[Wn] = !0, R[Cr] = b, R;
337
+ }, X = /* @__PURE__ */ Ie({
360
338
  actions: {},
361
339
  getters: {},
362
340
  state: [],
363
- hotState: g
341
+ hotState: m
364
342
  }), mt = {
365
343
  _p: n,
366
344
  // _s: scope,
367
345
  $id: t,
368
- $onAction: Bn.bind(null, h),
369
- $patch: z,
370
- $reset: et,
346
+ $onAction: Fn.bind(null, h),
347
+ $patch: T,
348
+ $reset: rt,
371
349
  $subscribe(S, b = {}) {
372
- const R = Bn(f, S, b.detached, () => J()), J = s.run(() => ot(() => n.state.value[t], (k) => {
350
+ const R = Fn(f, S, b.detached, () => J()), J = s.run(() => ot(() => n.state.value[t], (k) => {
373
351
  (b.flush === "sync" ? l : c) && S({
374
352
  storeId: t,
375
- type: ke.direct,
353
+ type: De.direct,
376
354
  events: d
377
355
  }, k);
378
356
  }, wt({}, u, b)));
379
357
  return R;
380
358
  },
381
- $dispose: st
359
+ $dispose: lt
382
360
  }, O = Do(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xt ? wt(
383
361
  {
384
362
  _hmrPayload: X,
385
- _customProperties: Se(/* @__PURE__ */ new Set())
363
+ _customProperties: Ie(/* @__PURE__ */ new Set())
386
364
  // devtools custom properties
387
365
  },
388
366
  mt
@@ -390,39 +368,39 @@ function Qr(t, e, r = {}, n, o, i) {
390
368
  // setupStore
391
369
  ) : mt);
392
370
  n._s.set(t, O);
393
- const q = (n._a && n._a.runWithContext || Zi)(() => n._e.run(() => (s = Ri()).run(() => e({ action: Ot }))));
371
+ const q = (n._a && n._a.runWithContext || rs)(() => n._e.run(() => (s = Ci()).run(() => e({ action: Ot }))));
394
372
  for (const S in q) {
395
373
  const b = q[S];
396
- if (oe(b) && !Wn(b) || _r(b))
397
- process.env.NODE_ENV !== "production" && o ? g.value[S] = Wt(q, S) : i || (y && es(b) && (oe(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && X.state.push(S);
374
+ if (ie(b) && !Bn(b) || _r(b))
375
+ process.env.NODE_ENV !== "production" && o ? m.value[S] = Bt(q, S) : i || (y && os(b) && (ie(b) ? b.value = y[S] : Gr(b, y[S])), n.state.value[t][S] = b), process.env.NODE_ENV !== "production" && X.state.push(S);
398
376
  else if (typeof b == "function") {
399
377
  const R = process.env.NODE_ENV !== "production" && o ? b : Ot(b, S);
400
378
  q[S] = R, process.env.NODE_ENV !== "production" && (X.actions[S] = b), a.actions[S] = b;
401
- } else process.env.NODE_ENV !== "production" && Wn(b) && (X.getters[S] = i ? (
379
+ } else process.env.NODE_ENV !== "production" && Bn(b) && (X.getters[S] = i ? (
402
380
  // @ts-expect-error
403
381
  r.getters[S]
404
382
  ) : b, Xt && (q._getters || // @ts-expect-error: same
405
- (q._getters = Se([]))).push(S));
383
+ (q._getters = Ie([]))).push(S));
406
384
  }
407
385
  if (wt(O, q), wt(Oo(O), q), Object.defineProperty(O, "$state", {
408
- get: () => process.env.NODE_ENV !== "production" && o ? g.value : n.state.value[t],
386
+ get: () => process.env.NODE_ENV !== "production" && o ? m.value : n.state.value[t],
409
387
  set: (S) => {
410
388
  if (process.env.NODE_ENV !== "production" && o)
411
389
  throw new Error("cannot set hotState");
412
- z((b) => {
390
+ T((b) => {
413
391
  wt(b, S);
414
392
  });
415
393
  }
416
- }), process.env.NODE_ENV !== "production" && (O._hotUpdate = Se((S) => {
394
+ }), process.env.NODE_ENV !== "production" && (O._hotUpdate = Ie((S) => {
417
395
  O._hotUpdating = !0, S._hmrPayload.state.forEach((b) => {
418
396
  if (b in O.$state) {
419
397
  const R = S.$state[b], J = O.$state[b];
420
- typeof R == "object" && Ht(R) && Ht(J) ? Ro(R, J) : S.$state[b] = J;
398
+ typeof R == "object" && Kt(R) && Kt(J) ? Co(R, J) : S.$state[b] = J;
421
399
  }
422
- O[b] = Wt(S.$state, b);
400
+ O[b] = Bt(S.$state, b);
423
401
  }), Object.keys(O.$state).forEach((b) => {
424
402
  b in S.$state || delete O[b];
425
- }), c = !1, l = !1, n.state.value[t] = Wt(S._hmrPayload, "hotState"), l = !0, ne().then(() => {
403
+ }), c = !1, l = !1, n.state.value[t] = Bt(S._hmrPayload, "hotState"), l = !0, oe().then(() => {
426
404
  c = !0;
427
405
  });
428
406
  for (const b in S._hmrPayload.actions) {
@@ -433,7 +411,7 @@ function Qr(t, e, r = {}, n, o, i) {
433
411
  for (const b in S._hmrPayload.getters) {
434
412
  const R = S._hmrPayload.getters[b], J = i ? (
435
413
  // special handling of options api
436
- C(() => (cr(n), R.call(O, O)))
414
+ N(() => (cr(n), R.call(O, O)))
437
415
  ) : R;
438
416
  O[b] = //
439
417
  J;
@@ -475,22 +453,22 @@ function Qr(t, e, r = {}, n, o, i) {
475
453
  Found in store "${O.$id}".`), y && i && r.hydrate && r.hydrate(O.$state, y), c = !0, l = !0, O;
476
454
  }
477
455
  // @__NO_SIDE_EFFECTS__
478
- function rs(t, e, r) {
456
+ function is(t, e, r) {
479
457
  let n;
480
458
  const o = typeof e == "function";
481
459
  n = o ? r : e;
482
460
  function i(s, a) {
483
- const u = Hr();
461
+ const u = Kr();
484
462
  if (s = // in test mode, ignore the argument provided as we can always retrieve a
485
463
  // pinia instance with getActivePinia()
486
- (process.env.NODE_ENV === "test" && Ft && Ft._testing ? null : s) || (u ? Ne(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Ft)
464
+ (process.env.NODE_ENV === "test" && Wt && Wt._testing ? null : s) || (u ? je(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Wt)
487
465
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
488
466
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
489
467
  This will fail in production.`);
490
- s = Ft, s._s.has(t) || (o ? Qr(t, e, n, s) : Hn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
468
+ s = Wt, s._s.has(t) || (o ? Qr(t, e, n, s) : Kn(t, n, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
491
469
  const c = s._s.get(t);
492
470
  if (process.env.NODE_ENV !== "production" && a) {
493
- const l = "__hot:" + t, f = o ? Qr(l, e, n, s, !0) : Hn(l, wt({}, n), s, !0);
471
+ const l = "__hot:" + t, f = o ? Qr(l, e, n, s, !0) : Kn(l, wt({}, n), s, !0);
494
472
  a._hotUpdate(f), delete s.state.value[l], s._s.delete(l);
495
473
  }
496
474
  if (process.env.NODE_ENV !== "production" && Xt) {
@@ -505,34 +483,34 @@ This will fail in production.`);
505
483
  }
506
484
  return i.$id = t, i;
507
485
  }
508
- function ns(t) {
486
+ function ss(t) {
509
487
  const e = Oo(t), r = {};
510
488
  for (const n in e) {
511
489
  const o = e[n];
512
490
  o.effect ? r[n] = // ...
513
- C({
491
+ N({
514
492
  get: () => t[n],
515
493
  set(i) {
516
494
  t[n] = i;
517
495
  }
518
- }) : (oe(o) || _r(o)) && (r[n] = // ---
519
- Wt(t, n));
496
+ }) : (ie(o) || _r(o)) && (r[n] = // ---
497
+ Bt(t, n));
520
498
  }
521
499
  return r;
522
500
  }
523
- const os = typeof window < "u" && typeof document < "u";
501
+ const as = typeof window < "u" && typeof document < "u";
524
502
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
525
- const is = Object.prototype.toString, ss = (t) => is.call(t) === "[object Object]", as = () => {
503
+ const us = Object.prototype.toString, cs = (t) => us.call(t) === "[object Object]", ls = () => {
526
504
  };
527
- function us(...t) {
528
- if (t.length !== 1) return Wt(...t);
505
+ function fs(...t) {
506
+ if (t.length !== 1) return Bt(...t);
529
507
  const e = t[0];
530
508
  return typeof e == "function" ? gr(ln(() => ({
531
509
  get: e,
532
- set: as
533
- }))) : x(e);
510
+ set: ls
511
+ }))) : z(e);
534
512
  }
535
- function cs(t, e) {
513
+ function hs(t, e) {
536
514
  function r(...n) {
537
515
  return new Promise((o, i) => {
538
516
  Promise.resolve(t(() => e.apply(this, n), {
@@ -544,9 +522,9 @@ function cs(t, e) {
544
522
  }
545
523
  return r;
546
524
  }
547
- const Co = (t) => t();
548
- function ls(t = Co, e = {}) {
549
- const { initialState: r = "active" } = e, n = us(r === "active");
525
+ const jo = (t) => t();
526
+ function ps(t = jo, e = {}) {
527
+ const { initialState: r = "active" } = e, n = fs(r === "active");
550
528
  function o() {
551
529
  n.value = !1;
552
530
  }
@@ -566,17 +544,17 @@ function ls(t = Co, e = {}) {
566
544
  function Nr(t) {
567
545
  return Array.isArray(t) ? t : [t];
568
546
  }
569
- function fs(t) {
547
+ function ds(t) {
570
548
  return ko();
571
549
  }
572
- function hs(t, e, r = {}) {
573
- const { eventFilter: n = Co, ...o } = r;
574
- return ot(t, cs(n, e), o);
550
+ function vs(t, e, r = {}) {
551
+ const { eventFilter: n = jo, ...o } = r;
552
+ return ot(t, hs(n, e), o);
575
553
  }
576
- function ps(t, e, r = {}) {
577
- const { eventFilter: n, initialState: o = "active", ...i } = r, { eventFilter: s, pause: a, resume: u, isActive: c } = ls(n, { initialState: o });
554
+ function ys(t, e, r = {}) {
555
+ const { eventFilter: n, initialState: o = "active", ...i } = r, { eventFilter: s, pause: a, resume: u, isActive: c } = ps(n, { initialState: o });
578
556
  return {
579
- stop: hs(t, e, {
557
+ stop: vs(t, e, {
580
558
  ...i,
581
559
  eventFilter: s
582
560
  }),
@@ -585,53 +563,53 @@ function ps(t, e, r = {}) {
585
563
  isActive: c
586
564
  };
587
565
  }
588
- function ds(t, e = !0, r) {
589
- fs() ? yr(t, r) : e ? t() : ne(t);
566
+ function _s(t, e = !0, r) {
567
+ ds() ? yr(t, r) : e ? t() : oe(t);
590
568
  }
591
- function vs(t, e, r) {
569
+ function gs(t, e, r) {
592
570
  return ot(t, e, {
593
571
  ...r,
594
572
  immediate: !0
595
573
  });
596
574
  }
597
- const lr = os ? window : void 0;
598
- function ys(t) {
575
+ const lr = as ? window : void 0;
576
+ function ms(t) {
599
577
  var e;
600
578
  const r = St(t);
601
579
  return (e = r?.$el) !== null && e !== void 0 ? e : r;
602
580
  }
603
- function Kn(...t) {
604
- const e = (n, o, i, s) => (n.addEventListener(o, i, s), () => n.removeEventListener(o, i, s)), r = C(() => {
581
+ function Hn(...t) {
582
+ const e = (n, o, i, s) => (n.addEventListener(o, i, s), () => n.removeEventListener(o, i, s)), r = N(() => {
605
583
  const n = Nr(St(t[0])).filter((o) => o != null);
606
584
  return n.every((o) => typeof o != "string") ? n : void 0;
607
585
  });
608
- return vs(() => {
586
+ return gs(() => {
609
587
  var n, o;
610
588
  return [
611
- (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ys(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
589
+ (n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ms(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
612
590
  Nr(St(r.value ? t[1] : t[0])),
613
- Nr(rr(r.value ? t[2] : t[1])),
591
+ Nr(nr(r.value ? t[2] : t[1])),
614
592
  St(r.value ? t[3] : t[2])
615
593
  ];
616
594
  }, ([n, o, i, s], a, u) => {
617
595
  if (!n?.length || !o?.length || !i?.length) return;
618
- const c = ss(s) ? { ...s } : s, l = n.flatMap((f) => o.flatMap((h) => i.map((d) => e(f, h, d, c))));
596
+ const c = cs(s) ? { ...s } : s, l = n.flatMap((f) => o.flatMap((h) => i.map((d) => e(f, h, d, c))));
619
597
  u(() => {
620
598
  l.forEach((f) => f());
621
599
  });
622
600
  }, { flush: "post" });
623
601
  }
624
- const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = "__vueuse_ssr_handlers__", _s = /* @__PURE__ */ gs();
625
- function gs() {
626
- return Qe in Ge || (Ge[Qe] = Ge[Qe] || {}), Ge[Qe];
602
+ const Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
603
+ function bs() {
604
+ return Ye in Qe || (Qe[Ye] = Qe[Ye] || {}), Qe[Ye];
627
605
  }
628
- function ms(t, e) {
629
- return _s[t] || e;
606
+ function Ss(t, e) {
607
+ return ws[t] || e;
630
608
  }
631
- function ws(t) {
609
+ function Is(t) {
632
610
  return t == null ? "any" : t instanceof Set ? "set" : t instanceof Map ? "map" : t instanceof Date ? "date" : typeof t == "boolean" ? "boolean" : typeof t == "string" ? "string" : typeof t == "object" ? "object" : Number.isNaN(t) ? "any" : "number";
633
611
  }
634
- const bs = {
612
+ const Es = {
635
613
  boolean: {
636
614
  read: (t) => t === "true",
637
615
  write: (t) => String(t)
@@ -665,18 +643,18 @@ const bs = {
665
643
  write: (t) => t.toISOString()
666
644
  }
667
645
  }, Jn = "vueuse-storage";
668
- function Ss(t, e, r, n = {}) {
646
+ function Os(t, e, r, n = {}) {
669
647
  var o;
670
648
  const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = lr, eventFilter: h, onError: d = (k) => {
671
649
  console.error(k);
672
- }, initOnMounted: y } = n, g = (l ? Le : x)(e), D = C(() => St(t));
650
+ }, initOnMounted: y } = n, m = (l ? Le : z)(e), D = N(() => St(t));
673
651
  if (!r) try {
674
- r = ms("getDefaultStorage", () => lr?.localStorage)();
652
+ r = Ss("getDefaultStorage", () => lr?.localStorage)();
675
653
  } catch (k) {
676
654
  d(k);
677
655
  }
678
- if (!r) return g;
679
- const z = St(e), et = ws(z), st = (o = n.serializer) !== null && o !== void 0 ? o : bs[et], { pause: Ot, resume: X } = ps(g, (k) => S(k), {
656
+ if (!r) return m;
657
+ const T = St(e), rt = Is(T), lt = (o = n.serializer) !== null && o !== void 0 ? o : Es[rt], { pause: Ot, resume: X } = ys(m, (k) => S(k), {
680
658
  flush: i,
681
659
  deep: s,
682
660
  eventFilter: h
@@ -685,10 +663,10 @@ function Ss(t, e, r, n = {}) {
685
663
  let mt = !1;
686
664
  const O = (k) => {
687
665
  y && !mt || R(k);
688
- }, Ct = (k) => {
666
+ }, jt = (k) => {
689
667
  y && !mt || J(k);
690
668
  };
691
- f && a && (r instanceof Storage ? Kn(f, "storage", O, { passive: !0 }) : Kn(f, Jn, Ct)), y ? ds(() => {
669
+ f && a && (r instanceof Storage ? Hn(f, "storage", O, { passive: !0 }) : Hn(f, Jn, jt)), y ? _s(() => {
692
670
  mt = !0, R();
693
671
  }) : R();
694
672
  function q(k, P) {
@@ -708,7 +686,7 @@ function Ss(t, e, r, n = {}) {
708
686
  if (k == null)
709
687
  q(P, null), r.removeItem(D.value);
710
688
  else {
711
- const G = st.write(k);
689
+ const G = lt.write(k);
712
690
  P !== G && (r.setItem(D.value, G), q(P, G));
713
691
  }
714
692
  } catch (P) {
@@ -718,30 +696,30 @@ function Ss(t, e, r, n = {}) {
718
696
  function b(k) {
719
697
  const P = k ? k.newValue : r.getItem(D.value);
720
698
  if (P == null)
721
- return u && z != null && r.setItem(D.value, st.write(z)), z;
699
+ return u && T != null && r.setItem(D.value, lt.write(T)), T;
722
700
  if (!k && c) {
723
- const G = st.read(P);
724
- return typeof c == "function" ? c(G, z) : et === "object" && !Array.isArray(G) ? {
725
- ...z,
701
+ const G = lt.read(P);
702
+ return typeof c == "function" ? c(G, T) : rt === "object" && !Array.isArray(G) ? {
703
+ ...T,
726
704
  ...G
727
705
  } : G;
728
- } else return typeof P != "string" ? P : st.read(P);
706
+ } else return typeof P != "string" ? P : lt.read(P);
729
707
  }
730
708
  function R(k) {
731
709
  if (!(k && k.storageArea !== r)) {
732
710
  if (k && k.key == null) {
733
- g.value = z;
711
+ m.value = T;
734
712
  return;
735
713
  }
736
714
  if (!(k && k.key !== D.value)) {
737
715
  Ot();
738
716
  try {
739
- const P = st.write(g.value);
740
- (k === void 0 || k?.newValue !== P) && (g.value = b(k));
717
+ const P = lt.write(m.value);
718
+ (k === void 0 || k?.newValue !== P) && (m.value = b(k));
741
719
  } catch (P) {
742
720
  d(P);
743
721
  } finally {
744
- k ? ne(X) : X();
722
+ k ? oe(X) : X();
745
723
  }
746
724
  }
747
725
  }
@@ -749,16 +727,16 @@ function Ss(t, e, r, n = {}) {
749
727
  function J(k) {
750
728
  R(k.detail);
751
729
  }
752
- return g;
730
+ return m;
753
731
  }
754
- function Is(t, e, r = {}) {
732
+ function ks(t, e, r = {}) {
755
733
  const { window: n = lr } = r;
756
- return Ss(t, e, n?.localStorage, r);
734
+ return Os(t, e, n?.localStorage, r);
757
735
  }
758
- function Cr() {
736
+ function jr() {
759
737
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
760
738
  }
761
- function Ye(t) {
739
+ function Xe(t) {
762
740
  const e = {
763
741
  type: t.type,
764
742
  clientId: t.clientId,
@@ -772,7 +750,7 @@ function Ye(t) {
772
750
  timestamp: r.timestamp.toISOString()
773
751
  }))), e;
774
752
  }
775
- function Es(t) {
753
+ function Ds(t) {
776
754
  const e = {
777
755
  type: t.type,
778
756
  clientId: t.clientId,
@@ -786,19 +764,19 @@ function Es(t) {
786
764
  timestamp: new Date(r.timestamp)
787
765
  }))), e;
788
766
  }
789
- const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
790
- const t = x({
767
+ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
768
+ const t = z({
791
769
  maxOperations: 100,
792
770
  enableCrossTabSync: !0,
793
771
  autoSyncInterval: 3e4,
794
772
  enablePersistence: !1,
795
773
  persistenceKeyPrefix: "stonecrop-ops"
796
- }), e = x([]), r = x(-1), n = x(Cr()), o = x(!1), i = x([]), s = C(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), a = C(() => r.value < e.value.length - 1), u = C(() => {
774
+ }), e = z([]), r = z(-1), n = z(jr()), o = z(!1), i = z([]), s = N(() => r.value < 0 ? !1 : e.value[r.value]?.reversible ?? !1), a = N(() => r.value < e.value.length - 1), u = N(() => {
797
775
  let _ = 0;
798
776
  for (let I = r.value; I >= 0 && e.value[I]?.reversible; I--)
799
777
  _++;
800
778
  return _;
801
- }), c = C(() => e.value.length - 1 - r.value), l = C(() => ({
779
+ }), c = N(() => e.value.length - 1 - r.value), l = N(() => ({
802
780
  canUndo: s.value,
803
781
  canRedo: a.value,
804
782
  undoCount: u.value,
@@ -806,12 +784,12 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
806
784
  currentIndex: r.value
807
785
  }));
808
786
  function f(_) {
809
- t.value = { ...t.value, ..._ }, t.value.enablePersistence && (G(), at()), t.value.enableCrossTabSync && S();
787
+ t.value = { ...t.value, ..._ }, t.value.enablePersistence && (G(), st()), t.value.enableCrossTabSync && S();
810
788
  }
811
789
  function h(_, I = "user") {
812
790
  const E = {
813
791
  ..._,
814
- id: Cr(),
792
+ id: jr(),
815
793
  timestamp: /* @__PURE__ */ new Date(),
816
794
  source: I,
817
795
  userId: t.value.userId
@@ -821,14 +799,14 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
821
799
  if (o.value && i.value.length > 0)
822
800
  return i.value[i.value.length - 1].operations.push(E), E.id;
823
801
  if (r.value < e.value.length - 1 && (e.value = e.value.slice(0, r.value + 1)), e.value.push(E), r.value++, t.value.maxOperations && e.value.length > t.value.maxOperations) {
824
- const K = e.value.length - t.value.maxOperations;
825
- e.value = e.value.slice(K), r.value -= K;
802
+ const H = e.value.length - t.value.maxOperations;
803
+ e.value = e.value.slice(H), r.value -= H;
826
804
  }
827
805
  return t.value.enableCrossTabSync && b(E), E.id;
828
806
  }
829
807
  function d() {
830
808
  o.value = !0, i.value.push({
831
- id: Cr(),
809
+ id: jr(),
832
810
  operations: []
833
811
  });
834
812
  }
@@ -838,8 +816,8 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
838
816
  const I = i.value.pop(), E = I.operations;
839
817
  if (E.length === 0)
840
818
  return i.value.length === 0 && (o.value = !1), null;
841
- const K = I.id, v = E.every((w) => w.reversible), p = {
842
- id: K,
819
+ const H = I.id, v = E.every((w) => w.reversible), p = {
820
+ id: H,
843
821
  type: "batch",
844
822
  path: "",
845
823
  // Batch doesn't have a single path
@@ -855,10 +833,10 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
855
833
  metadata: { description: _ }
856
834
  };
857
835
  return E.forEach((w) => {
858
- w.ancestorOperationId = K;
859
- }), i.value.length > 0 ? i.value[i.value.length - 1].operations.push(p) : (e.value.push(...E, p), r.value = e.value.length - 1), t.value.enableCrossTabSync && R(E, p), i.value.length === 0 && (o.value = !1), K;
836
+ w.ancestorOperationId = H;
837
+ }), i.value.length > 0 ? i.value[i.value.length - 1].operations.push(p) : (e.value.push(...E, p), r.value = e.value.length - 1), t.value.enableCrossTabSync && R(E, p), i.value.length === 0 && (o.value = !1), H;
860
838
  }
861
- function g() {
839
+ function m() {
862
840
  i.value = [], o.value = !1;
863
841
  }
864
842
  function D(_) {
@@ -869,36 +847,36 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
869
847
  try {
870
848
  if (I.type === "batch" && I.descendantOperationIds)
871
849
  for (let E = I.descendantOperationIds.length - 1; E >= 0; E--) {
872
- const K = I.descendantOperationIds[E], v = e.value.find((p) => p.id === K);
873
- v && et(v, _);
850
+ const H = I.descendantOperationIds[E], v = e.value.find((p) => p.id === H);
851
+ v && rt(v, _);
874
852
  }
875
853
  else
876
- et(I, _);
854
+ rt(I, _);
877
855
  return r.value--, t.value.enableCrossTabSync && J(I), !0;
878
856
  } catch (E) {
879
857
  return typeof console < "u" && console.error("Undo failed:", E), !1;
880
858
  }
881
859
  }
882
- function z(_) {
860
+ function T(_) {
883
861
  if (!a.value) return !1;
884
862
  const I = e.value[r.value + 1];
885
863
  try {
886
864
  if (I.type === "batch" && I.descendantOperationIds)
887
865
  for (const E of I.descendantOperationIds) {
888
- const K = e.value.find((v) => v.id === E);
889
- K && st(K, _);
866
+ const H = e.value.find((v) => v.id === E);
867
+ H && lt(H, _);
890
868
  }
891
869
  else
892
- st(I, _);
870
+ lt(I, _);
893
871
  return r.value++, t.value.enableCrossTabSync && k(I), !0;
894
872
  } catch (E) {
895
873
  return typeof console < "u" && console.error("Redo failed:", E), !1;
896
874
  }
897
875
  }
898
- function et(_, I) {
876
+ function rt(_, I) {
899
877
  (_.type === "set" || _.type === "delete") && I && typeof I.set == "function" && I.set(_.path, _.beforeValue, "undo");
900
878
  }
901
- function st(_, I) {
879
+ function lt(_, I) {
902
880
  (_.type === "set" || _.type === "delete") && I && typeof I.set == "function" && I.set(_.path, _.afterValue, "redo");
903
881
  }
904
882
  function Ot() {
@@ -920,10 +898,10 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
920
898
  return e.value.filter((E) => E.doctype === _ && (I === void 0 || E.recordId === I));
921
899
  }
922
900
  function O(_, I) {
923
- const E = e.value.find((K) => K.id === _);
901
+ const E = e.value.find((H) => H.id === _);
924
902
  E && (E.reversible = !1, E.irreversibleReason = I);
925
903
  }
926
- function Ct(_, I, E, K = "success", v) {
904
+ function jt(_, I, E, H = "success", v) {
927
905
  const p = {
928
906
  type: "action",
929
907
  path: E && E.length > 0 ? `${_}.${E[0]}` : _,
@@ -936,7 +914,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
936
914
  // Actions are typically not reversible
937
915
  actionName: I,
938
916
  actionRecordIds: E,
939
- actionResult: K,
917
+ actionResult: H,
940
918
  actionError: v
941
919
  };
942
920
  return h(p);
@@ -946,8 +924,8 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
946
924
  typeof window > "u" || !window.BroadcastChannel || (q = new BroadcastChannel("stonecrop-operation-log"), q.addEventListener("message", (_) => {
947
925
  const I = _.data;
948
926
  if (!I || typeof I != "object") return;
949
- const E = Es(I);
950
- E.clientId !== n.value && (E.type === "operation" && E.operation ? (e.value.push({ ...E.operation, source: "sync" }), r.value = e.value.length - 1) : E.type === "operation" && E.operations && (e.value.push(...E.operations.map((K) => ({ ...K, source: "sync" }))), r.value = e.value.length - 1));
927
+ const E = Ds(I);
928
+ E.clientId !== n.value && (E.type === "operation" && E.operation ? (e.value.push({ ...E.operation, source: "sync" }), r.value = e.value.length - 1) : E.type === "operation" && E.operations && (e.value.push(...E.operations.map((H) => ({ ...H, source: "sync" }))), r.value = e.value.length - 1));
951
929
  }));
952
930
  }
953
931
  function b(_) {
@@ -958,7 +936,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
958
936
  clientId: n.value,
959
937
  timestamp: /* @__PURE__ */ new Date()
960
938
  };
961
- q.postMessage(Ye(I));
939
+ q.postMessage(Xe(I));
962
940
  }
963
941
  function R(_, I) {
964
942
  if (!q) return;
@@ -968,7 +946,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
968
946
  clientId: n.value,
969
947
  timestamp: /* @__PURE__ */ new Date()
970
948
  };
971
- q.postMessage(Ye(E));
949
+ q.postMessage(Xe(E));
972
950
  }
973
951
  function J(_) {
974
952
  if (!q) return;
@@ -978,7 +956,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
978
956
  clientId: n.value,
979
957
  timestamp: /* @__PURE__ */ new Date()
980
958
  };
981
- q.postMessage(Ye(I));
959
+ q.postMessage(Xe(I));
982
960
  }
983
961
  function k(_) {
984
962
  if (!q) return;
@@ -988,9 +966,9 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
988
966
  clientId: n.value,
989
967
  timestamp: /* @__PURE__ */ new Date()
990
968
  };
991
- q.postMessage(Ye(I));
969
+ q.postMessage(Xe(I));
992
970
  }
993
- const P = Is("stonecrop-operations", null, {
971
+ const P = ks("stonecrop-operations", null, {
994
972
  serializer: {
995
973
  read: (_) => {
996
974
  try {
@@ -1014,7 +992,7 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
1014
992
  typeof console < "u" && console.error("Failed to load operations from persistence:", _);
1015
993
  }
1016
994
  }
1017
- function jt() {
995
+ function xt() {
1018
996
  if (!(typeof window > "u"))
1019
997
  try {
1020
998
  P.value = {
@@ -1028,11 +1006,11 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
1028
1006
  typeof console < "u" && console.error("Failed to save operations to persistence:", _);
1029
1007
  }
1030
1008
  }
1031
- function at() {
1009
+ function st() {
1032
1010
  ot(
1033
1011
  [e, r],
1034
1012
  () => {
1035
- t.value.enablePersistence && jt();
1013
+ t.value.enablePersistence && xt();
1036
1014
  },
1037
1015
  { deep: !0 }
1038
1016
  );
@@ -1054,17 +1032,17 @@ const jo = /* @__PURE__ */ rs("hst-operation-log", () => {
1054
1032
  addOperation: h,
1055
1033
  startBatch: d,
1056
1034
  commitBatch: y,
1057
- cancelBatch: g,
1035
+ cancelBatch: m,
1058
1036
  undo: D,
1059
- redo: z,
1037
+ redo: T,
1060
1038
  clear: X,
1061
1039
  getOperationsFor: mt,
1062
1040
  getSnapshot: Ot,
1063
1041
  markIrreversible: O,
1064
- logAction: Ct
1042
+ logAction: jt
1065
1043
  };
1066
1044
  });
1067
- let Os = class nr {
1045
+ let As = class or {
1068
1046
  /**
1069
1047
  * The root FieldTriggerEngine instance
1070
1048
  */
@@ -1085,9 +1063,9 @@ let Os = class nr {
1085
1063
  * @param options - Configuration options for the field trigger engine
1086
1064
  */
1087
1065
  constructor(e = {}) {
1088
- if (nr._root)
1089
- return nr._root;
1090
- nr._root = this, this.options = {
1066
+ if (or._root)
1067
+ return or._root;
1068
+ or._root = this, this.options = {
1091
1069
  defaultTimeout: e.defaultTimeout ?? 5e3,
1092
1070
  debug: e.debug ?? !1,
1093
1071
  enableRollback: e.enableRollback ?? !0,
@@ -1188,34 +1166,34 @@ let Os = class nr {
1188
1166
  let u = !1, c = !1, l;
1189
1167
  const f = this.getFieldRollback(n, o), h = r.enableRollback ?? f ?? this.options.enableRollback;
1190
1168
  h && e.store && (l = this.captureSnapshot(e));
1191
- for (const g of i)
1169
+ for (const m of i)
1192
1170
  try {
1193
- const D = await this.executeAction(g, e, r.timeout);
1171
+ const D = await this.executeAction(m, e, r.timeout);
1194
1172
  if (a.push(D), !D.success) {
1195
1173
  u = !0;
1196
1174
  break;
1197
1175
  }
1198
1176
  } catch (D) {
1199
- const z = {
1177
+ const T = {
1200
1178
  success: !1,
1201
1179
  error: D instanceof Error ? D : new Error(String(D)),
1202
1180
  executionTime: 0,
1203
- action: g
1181
+ action: m
1204
1182
  };
1205
- a.push(z), u = !0;
1183
+ a.push(T), u = !0;
1206
1184
  break;
1207
1185
  }
1208
1186
  if (h && u && l && e.store)
1209
1187
  try {
1210
1188
  this.restoreSnapshot(e, l), c = !0;
1211
- } catch (g) {
1212
- console.error("[FieldTriggers] Rollback failed:", g);
1189
+ } catch (m) {
1190
+ console.error("[FieldTriggers] Rollback failed:", m);
1213
1191
  }
1214
- const d = performance.now() - s, y = a.filter((g) => !g.success && g.error != null);
1192
+ const d = performance.now() - s, y = a.filter((m) => !m.success && m.error != null);
1215
1193
  if (y.length > 0 && this.options.errorHandler)
1216
- for (const g of y)
1194
+ for (const m of y)
1217
1195
  try {
1218
- g.error && this.options.errorHandler(g.error, e, g.action);
1196
+ m.error && this.options.errorHandler(m.error, e, m.action);
1219
1197
  } catch (D) {
1220
1198
  console.error("[FieldTriggers] Error in global error handler:", D);
1221
1199
  }
@@ -1223,7 +1201,7 @@ let Os = class nr {
1223
1201
  path: e.path,
1224
1202
  actionResults: a,
1225
1203
  totalExecutionTime: d,
1226
- allSucceeded: a.every((g) => g.success),
1204
+ allSucceeded: a.every((m) => m.success),
1227
1205
  stoppedOnError: u,
1228
1206
  rolledBack: c,
1229
1207
  snapshot: this.options.debug && h ? l : void 0
@@ -1409,11 +1387,11 @@ let Os = class nr {
1409
1387
  }
1410
1388
  };
1411
1389
  function Yr(t) {
1412
- return new Os(t);
1390
+ return new As(t);
1413
1391
  }
1414
1392
  function Gn() {
1415
1393
  try {
1416
- return jo();
1394
+ return xo();
1417
1395
  } catch {
1418
1396
  return null;
1419
1397
  }
@@ -1699,10 +1677,10 @@ class fr {
1699
1677
  return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
1700
1678
  }
1701
1679
  }
1702
- function ks(t, e) {
1680
+ function zs(t, e) {
1703
1681
  return new fr(t, e, "", null);
1704
1682
  }
1705
- class De {
1683
+ class Ae {
1706
1684
  /**
1707
1685
  * Singleton instance of Stonecrop. Only one Stonecrop instance can exist
1708
1686
  * per application, ensuring consistent HST state and registry access.
@@ -1724,9 +1702,9 @@ class De {
1724
1702
  * @param options - Options including the data client (can be set later via setClient)
1725
1703
  */
1726
1704
  constructor(e, r, n) {
1727
- if (De._root)
1728
- return De._root;
1729
- De._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
1705
+ if (Ae._root)
1706
+ return Ae._root;
1707
+ Ae._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
1730
1708
  }
1731
1709
  /**
1732
1710
  * Set the data client for fetching doctype metadata and records.
@@ -1756,7 +1734,7 @@ class De {
1756
1734
  * @internal
1757
1735
  */
1758
1736
  getOperationLogStore() {
1759
- return this._operationLogStore || (this._operationLogStore = jo(), this._operationLogConfig && this._operationLogStore.configure(this._operationLogConfig)), this._operationLogStore;
1737
+ return this._operationLogStore || (this._operationLogStore = xo(), this._operationLogConfig && this._operationLogStore.configure(this._operationLogConfig)), this._operationLogStore;
1760
1738
  }
1761
1739
  /**
1762
1740
  * Initialize the HST store structure
@@ -1765,7 +1743,7 @@ class De {
1765
1743
  const e = {};
1766
1744
  Object.keys(this.registry.registry).forEach((r) => {
1767
1745
  e[r] = {};
1768
- }), this.hstStore = ks(Do(e), "StonecropStore");
1746
+ }), this.hstStore = zs(Do(e), "StonecropStore");
1769
1747
  }
1770
1748
  /**
1771
1749
  * Setup automatic sync with Registry when doctypes are added
@@ -2102,11 +2080,11 @@ function Qn(t, e) {
2102
2080
  const r = new Error(t);
2103
2081
  return r.code = e, r;
2104
2082
  }
2105
- function Ds(t) {
2083
+ function Rs(t) {
2106
2084
  t || (t = {});
2107
- const e = t.registry || Ne("$registry"), r = Ne("$stonecrop"), n = x(), o = x(), i = x({}), s = x(), a = x(), u = x([]), c = x(!1), l = x(null), f = x(), h = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = C(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || De._root;
2085
+ const e = t.registry || je("$registry"), r = je("$stonecrop"), n = z(), o = z(), i = z({}), s = z(), a = z(), u = z([]), c = z(!1), l = z(null), f = z(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || Ae._root;
2108
2086
  y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
2109
- const g = x([]), D = x(-1), z = C(() => n.value?.getOperationLogStore().canUndo ?? !1), et = C(() => n.value?.getOperationLogStore().canRedo ?? !1), st = C(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = C(() => n.value?.getOperationLogStore().redoCount ?? 0), X = C(
2087
+ const m = z([]), D = z(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), X = N(
2110
2088
  () => n.value?.getOperationLogStore().undoRedoState ?? {
2111
2089
  canUndo: !1,
2112
2090
  canRedo: !1,
@@ -2114,7 +2092,7 @@ function Ds(t) {
2114
2092
  redoCount: 0,
2115
2093
  currentIndex: -1
2116
2094
  }
2117
- ), mt = (p) => n.value?.getOperationLogStore().undo(p) ?? !1, O = (p) => n.value?.getOperationLogStore().redo(p) ?? !1, Ct = () => {
2095
+ ), mt = (p) => n.value?.getOperationLogStore().undo(p) ?? !1, O = (p) => n.value?.getOperationLogStore().redo(p) ?? !1, jt = () => {
2118
2096
  n.value?.getOperationLogStore().startBatch();
2119
2097
  }, q = (p) => n.value?.getOperationLogStore().commitBatch(p) ?? null, S = () => {
2120
2098
  n.value?.getOperationLogStore().cancelBatch();
@@ -2128,52 +2106,52 @@ function Ds(t) {
2128
2106
  irreversibleOperations: 0
2129
2107
  }, k = (p, w) => {
2130
2108
  n.value?.getOperationLogStore().markIrreversible(p, w);
2131
- }, P = (p, w, m, A = "success", N) => n.value?.getOperationLogStore().logAction(p, w, m, A, N) ?? "", G = (p) => {
2109
+ }, P = (p, w, g, A = "success", C) => n.value?.getOperationLogStore().logAction(p, w, g, A, C) ?? "", G = (p) => {
2132
2110
  n.value?.getOperationLogStore().configure(p);
2133
2111
  };
2134
2112
  if (e && n.value)
2135
2113
  try {
2136
- const p = n.value.getOperationLogStore(), w = ns(p);
2137
- g.value = w.operations.value, D.value = w.currentIndex.value, ot(
2114
+ const p = n.value.getOperationLogStore(), w = ss(p);
2115
+ m.value = w.operations.value, D.value = w.currentIndex.value, ot(
2138
2116
  () => w.operations.value,
2139
- (m) => {
2140
- g.value = m;
2117
+ (g) => {
2118
+ m.value = g;
2141
2119
  }
2142
2120
  ), ot(
2143
2121
  () => w.currentIndex.value,
2144
- (m) => {
2145
- D.value = m;
2122
+ (g) => {
2123
+ D.value = g;
2146
2124
  }
2147
2125
  );
2148
2126
  } catch {
2149
2127
  }
2150
- t.doctype && typeof t.doctype != "string" && e && n.value && (o.value = n.value.getStore(), u.value = e.resolveSchema(t.doctype), (!t.recordId || t.recordId === "new") && (i.value = e.initializeRecord(u.value)), o.value && jr(t.doctype, t.recordId || "new", i, o.value)), yr(async () => {
2128
+ t.doctype && typeof t.doctype != "string" && e && n.value && (o.value = n.value.getStore(), u.value = e.resolveSchema(t.doctype), (!t.recordId || t.recordId === "new") && (i.value = e.initializeRecord(u.value)), o.value && xr(t.doctype, t.recordId || "new", i, o.value)), yr(async () => {
2151
2129
  if (!(!e || !n.value)) {
2152
2130
  if (!t.doctype && e.router) {
2153
2131
  const p = e.router.currentRoute.value;
2154
2132
  if (!p.path) return;
2155
- const w = p.path.split("/").filter((A) => A.length > 0), m = w[1]?.toLowerCase();
2133
+ const w = p.path.split("/").filter((A) => A.length > 0), g = w[1]?.toLowerCase();
2156
2134
  if (w.length > 0) {
2157
2135
  const A = {
2158
2136
  path: p.path,
2159
2137
  segments: w
2160
- }, N = await e.getMeta?.(A);
2161
- if (N) {
2162
- if (e.addDoctype(N), n.value.setup(N), s.value = N, a.value = m, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(N)), m && m !== "new") {
2163
- const Z = n.value.getRecordById(N, m);
2138
+ }, C = await e.getMeta?.(A);
2139
+ if (C) {
2140
+ if (e.addDoctype(C), n.value.setup(C), s.value = C, a.value = g, o.value = n.value.getStore(), e && (u.value = e.resolveSchema(C)), g && g !== "new") {
2141
+ const Z = n.value.getRecordById(C, g);
2164
2142
  if (Z)
2165
2143
  i.value = Z.get("") || {};
2166
2144
  else
2167
2145
  try {
2168
- await n.value.getRecord(N, m);
2169
- const Y = n.value.getRecordById(N, m);
2146
+ await n.value.getRecord(C, g);
2147
+ const Y = n.value.getRecordById(C, g);
2170
2148
  Y && (i.value = Y.get("") || {});
2171
2149
  } catch {
2172
2150
  i.value = e.initializeRecord(u.value);
2173
2151
  }
2174
2152
  } else
2175
2153
  i.value = e.initializeRecord(u.value);
2176
- o.value && jr(N, m || "new", i, o.value), n.value.runAction(N, "load", m ? [m] : void 0);
2154
+ o.value && xr(C, g || "new", i, o.value), n.value.runAction(C, "load", g ? [g] : void 0);
2177
2155
  }
2178
2156
  }
2179
2157
  }
@@ -2182,41 +2160,41 @@ function Ds(t) {
2182
2160
  if (typeof t.doctype == "string") {
2183
2161
  const w = t.doctype;
2184
2162
  o.value = n.value.getStore(), c.value = !0, l.value = null;
2185
- let m;
2163
+ let g;
2186
2164
  try {
2187
- if (m = e.getDoctype(w), !m && e.getMeta) {
2165
+ if (g = e.getDoctype(w), !g && e.getMeta) {
2188
2166
  const A = {
2189
2167
  path: `/${w}`,
2190
2168
  segments: [w]
2191
2169
  };
2192
- m = await e.getMeta(A), m && e.addDoctype(m);
2170
+ g = await e.getMeta(A), g && e.addDoctype(g);
2193
2171
  }
2194
- m || (l.value = new Error(`Doctype '${w}' not found in registry and getMeta returned no result`));
2172
+ g || (l.value = new Error(`Doctype '${w}' not found in registry and getMeta returned no result`));
2195
2173
  } catch (A) {
2196
2174
  l.value = A instanceof Error ? A : new Error(String(A));
2197
2175
  } finally {
2198
2176
  c.value = !1;
2199
2177
  }
2200
- if (f.value = m, !m) return;
2201
- if (u.value = e.resolveSchema(m), p && p !== "new") {
2202
- const A = n.value.getRecordById(m, p);
2178
+ if (f.value = g, !g) return;
2179
+ if (u.value = e.resolveSchema(g), p && p !== "new") {
2180
+ const A = n.value.getRecordById(g, p);
2203
2181
  if (A)
2204
2182
  i.value = A.get("") || {};
2205
2183
  else
2206
2184
  try {
2207
- await n.value.getRecord(m, p);
2208
- const N = n.value.getRecordById(m, p);
2209
- N && (i.value = N.get("") || {});
2185
+ await n.value.getRecord(g, p);
2186
+ const C = n.value.getRecordById(g, p);
2187
+ C && (i.value = C.get("") || {});
2210
2188
  } catch {
2211
2189
  i.value = e.initializeRecord(u.value);
2212
2190
  }
2213
2191
  } else
2214
2192
  i.value = e.initializeRecord(u.value);
2215
- o.value && jr(m, p || "new", i, o.value);
2193
+ o.value && xr(g, p || "new", i, o.value);
2216
2194
  } else if (p && p !== "new") {
2217
- const w = t.doctype, m = n.value.getRecordById(w, p);
2218
- if (m)
2219
- i.value = m.get("") || {};
2195
+ const w = t.doctype, g = n.value.getRecordById(w, p);
2196
+ if (g)
2197
+ i.value = g.get("") || {};
2220
2198
  else
2221
2199
  try {
2222
2200
  await n.value.getRecord(w, p);
@@ -2229,67 +2207,67 @@ function Ds(t) {
2229
2207
  }
2230
2208
  }
2231
2209
  });
2232
- const jt = (p, w) => {
2233
- const m = f.value || s.value;
2234
- if (!m) return "";
2210
+ const xt = (p, w) => {
2211
+ const g = f.value || s.value;
2212
+ if (!g) return "";
2235
2213
  const A = w || t.recordId || a.value || "new";
2236
- return `${m.slug}.${A}.${p}`;
2237
- }, at = (p) => {
2214
+ return `${g.slug}.${A}.${p}`;
2215
+ }, st = (p) => {
2238
2216
  const w = f.value || s.value;
2239
2217
  if (!(!o.value || !n.value || !w))
2240
2218
  try {
2241
- const m = p.path.split(".");
2242
- if (m.length >= 2) {
2243
- const Z = m[0], Y = m[1];
2244
- if (o.value.has(`${Z}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), m.length > 3) {
2245
- const Ke = `${Z}.${Y}`, Dr = m.slice(2);
2246
- let Ar = Ke;
2247
- for (let Je = 0; Je < Dr.length - 1; Je++)
2248
- if (Ar += `.${Dr[Je]}`, !o.value.has(Ar)) {
2249
- const Di = Dr[Je + 1], Ai = !isNaN(Number(Di));
2219
+ const g = p.path.split(".");
2220
+ if (g.length >= 2) {
2221
+ const Z = g[0], Y = g[1];
2222
+ if (o.value.has(`${Z}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), g.length > 3) {
2223
+ const Je = `${Z}.${Y}`, Dr = g.slice(2);
2224
+ let Ar = Je;
2225
+ for (let Ge = 0; Ge < Dr.length - 1; Ge++)
2226
+ if (Ar += `.${Dr[Ge]}`, !o.value.has(Ar)) {
2227
+ const Di = Dr[Ge + 1], Ai = !isNaN(Number(Di));
2250
2228
  o.value.set(Ar, Ai ? [] : {});
2251
2229
  }
2252
2230
  }
2253
2231
  }
2254
2232
  o.value.set(p.path, p.value);
2255
- const A = p.fieldname.split("."), N = { ...i.value };
2256
- A.length === 1 ? N[A[0]] = p.value : As(N, A, p.value), i.value = N;
2233
+ const A = p.fieldname.split("."), C = { ...i.value };
2234
+ A.length === 1 ? C[A[0]] = p.value : Cs(C, A, p.value), i.value = C;
2257
2235
  } catch {
2258
2236
  }
2259
2237
  };
2260
- (t.doctype || e?.router) && (Kr("hstPathProvider", jt), Kr("hstChangeHandler", at));
2238
+ (t.doctype || e?.router) && (Hr("hstPathProvider", xt), Hr("hstChangeHandler", st));
2261
2239
  const _ = (p, w) => {
2262
2240
  if (!n.value)
2263
2241
  throw new Error("Stonecrop instance not available");
2264
2242
  return n.value.initializeNestedData(p, w);
2265
- }, I = async (p, w, m, A) => {
2243
+ }, I = async (p, w, g, A) => {
2266
2244
  if (!n.value)
2267
2245
  throw new Error("Stonecrop instance not available");
2268
- return n.value.fetchNestedData(p, w, m, A);
2246
+ return n.value.fetchNestedData(p, w, g, A);
2269
2247
  }, E = (p, w) => {
2270
2248
  if (!n.value)
2271
2249
  throw new Error("Stonecrop instance not available");
2272
2250
  return n.value.collectRecordPayload(p, w);
2273
- }, K = (p, w) => ({
2274
- provideHSTPath: (m) => `${p}.${m}`,
2275
- handleHSTChange: (m) => {
2276
- const A = m.path.startsWith(p) ? m.path : `${p}.${m.fieldname}`;
2277
- at({
2278
- ...m,
2251
+ }, H = (p, w) => ({
2252
+ provideHSTPath: (g) => `${p}.${g}`,
2253
+ handleHSTChange: (g) => {
2254
+ const A = g.path.startsWith(p) ? g.path : `${p}.${g.fieldname}`;
2255
+ st({
2256
+ ...g,
2279
2257
  path: A
2280
2258
  });
2281
2259
  }
2282
2260
  }), v = {
2283
- operations: g,
2261
+ operations: m,
2284
2262
  currentIndex: D,
2285
2263
  undoRedoState: X,
2286
- canUndo: z,
2287
- canRedo: et,
2288
- undoCount: st,
2264
+ canUndo: T,
2265
+ canRedo: rt,
2266
+ undoCount: lt,
2289
2267
  redoCount: Ot,
2290
2268
  undo: mt,
2291
2269
  redo: O,
2292
- startBatch: Ct,
2270
+ startBatch: jt,
2293
2271
  commitBatch: q,
2294
2272
  cancelBatch: S,
2295
2273
  clear: b,
@@ -2302,15 +2280,15 @@ function Ds(t) {
2302
2280
  return t.doctype ? {
2303
2281
  stonecrop: n,
2304
2282
  operationLog: v,
2305
- provideHSTPath: jt,
2306
- handleHSTChange: at,
2283
+ provideHSTPath: xt,
2284
+ handleHSTChange: st,
2307
2285
  hstStore: o,
2308
2286
  formData: i,
2309
2287
  resolvedSchema: u,
2310
2288
  initializeNestedData: _,
2311
2289
  fetchNestedData: I,
2312
2290
  collectRecordPayload: E,
2313
- createNestedContext: K,
2291
+ createNestedContext: H,
2314
2292
  isLoading: c,
2315
2293
  error: l,
2316
2294
  resolvedDoctype: f,
@@ -2319,15 +2297,15 @@ function Ds(t) {
2319
2297
  } : !t.doctype && e?.router ? {
2320
2298
  stonecrop: n,
2321
2299
  operationLog: v,
2322
- provideHSTPath: jt,
2323
- handleHSTChange: at,
2300
+ provideHSTPath: xt,
2301
+ handleHSTChange: st,
2324
2302
  hstStore: o,
2325
2303
  formData: i,
2326
2304
  resolvedSchema: u,
2327
2305
  initializeNestedData: _,
2328
2306
  fetchNestedData: I,
2329
2307
  collectRecordPayload: E,
2330
- createNestedContext: K,
2308
+ createNestedContext: H,
2331
2309
  isLoading: c,
2332
2310
  error: l,
2333
2311
  resolvedDoctype: f,
@@ -2338,7 +2316,7 @@ function Ds(t) {
2338
2316
  operationLog: v
2339
2317
  };
2340
2318
  }
2341
- function jr(t, e, r, n) {
2319
+ function xr(t, e, r, n) {
2342
2320
  ot(
2343
2321
  r,
2344
2322
  (o) => {
@@ -2354,7 +2332,7 @@ function jr(t, e, r, n) {
2354
2332
  { deep: !0 }
2355
2333
  );
2356
2334
  }
2357
- function As(t, e, r) {
2335
+ function Cs(t, e, r) {
2358
2336
  let n = t;
2359
2337
  for (let i = 0; i < e.length - 1; i++) {
2360
2338
  const s = e[i];
@@ -2369,12 +2347,12 @@ function It(t) {
2369
2347
  t[hr]);
2370
2348
  }
2371
2349
  var pr = "@@__IMMUTABLE_KEYED__@@";
2372
- function W(t) {
2350
+ function B(t) {
2373
2351
  return !!(t && // @ts-expect-error: maybeKeyed is typed as `{}`, need to change in 6.0 to `maybeKeyed && typeof maybeKeyed === 'object' && IS_KEYED_SYMBOL in maybeKeyed`
2374
2352
  t[pr]);
2375
2353
  }
2376
2354
  function fn(t) {
2377
- return W(t) || It(t);
2355
+ return B(t) || It(t);
2378
2356
  }
2379
2357
  var $o = "@@__IMMUTABLE_ITERABLE__@@";
2380
2358
  function yt(t) {
@@ -2385,47 +2363,47 @@ var nt = function(t) {
2385
2363
  return yt(t) ? t : ft(t);
2386
2364
  }, Et = /* @__PURE__ */ (function(t) {
2387
2365
  function e(r) {
2388
- return W(r) ? r : Ut(r);
2366
+ return B(r) ? r : Ut(r);
2389
2367
  }
2390
2368
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2391
- })(nt), Kt = /* @__PURE__ */ (function(t) {
2369
+ })(nt), Ht = /* @__PURE__ */ (function(t) {
2392
2370
  function e(r) {
2393
2371
  return It(r) ? r : kt(r);
2394
2372
  }
2395
2373
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2396
- })(nt), pe = /* @__PURE__ */ (function(t) {
2374
+ })(nt), de = /* @__PURE__ */ (function(t) {
2397
2375
  function e(r) {
2398
- return yt(r) && !fn(r) ? r : ye(r);
2376
+ return yt(r) && !fn(r) ? r : _e(r);
2399
2377
  }
2400
2378
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e;
2401
2379
  })(nt);
2402
2380
  nt.Keyed = Et;
2403
- nt.Indexed = Kt;
2404
- nt.Set = pe;
2405
- var de = 0, _t = 1, gt = 2, Xr = typeof Symbol == "function" && Symbol.iterator, Mo = "@@iterator", mr = Xr || Mo, $ = function(t) {
2381
+ nt.Indexed = Ht;
2382
+ nt.Set = de;
2383
+ var ve = 0, _t = 1, gt = 2, Xr = typeof Symbol == "function" && Symbol.iterator, Mo = "@@iterator", mr = Xr || Mo, x = function(t) {
2406
2384
  this.next = t;
2407
2385
  };
2408
- $.prototype.toString = function() {
2386
+ x.prototype.toString = function() {
2409
2387
  return "[Iterator]";
2410
2388
  };
2411
- $.KEYS = de;
2412
- $.VALUES = _t;
2413
- $.ENTRIES = gt;
2414
- $.prototype.inspect = $.prototype.toSource = function() {
2389
+ x.KEYS = ve;
2390
+ x.VALUES = _t;
2391
+ x.ENTRIES = gt;
2392
+ x.prototype.inspect = x.prototype.toSource = function() {
2415
2393
  return this.toString();
2416
2394
  };
2417
- $.prototype[mr] = function() {
2395
+ x.prototype[mr] = function() {
2418
2396
  return this;
2419
2397
  };
2420
- function H(t, e, r, n) {
2421
- var o = t === de ? e : t === _t ? r : [e, r];
2398
+ function K(t, e, r, n) {
2399
+ var o = t === ve ? e : t === _t ? r : [e, r];
2422
2400
  return n ? n.value = o : n = {
2423
2401
  // @ts-expect-error ensure value is not undefined
2424
2402
  value: o,
2425
2403
  done: !1
2426
2404
  }, n;
2427
2405
  }
2428
- function ct() {
2406
+ function ut() {
2429
2407
  return { value: void 0, done: !0 };
2430
2408
  }
2431
2409
  function To(t) {
@@ -2446,15 +2424,15 @@ function wr(t) {
2446
2424
  if (typeof e == "function")
2447
2425
  return e;
2448
2426
  }
2449
- function zs(t) {
2427
+ function Ns(t) {
2450
2428
  var e = wr(t);
2451
2429
  return e && e === t.entries;
2452
2430
  }
2453
- function xs(t) {
2431
+ function js(t) {
2454
2432
  var e = wr(t);
2455
2433
  return e && e === t.keys;
2456
2434
  }
2457
- var Ve = "delete", V = 5, dt = 1 << V, ut = dt - 1, j = {};
2435
+ var Ue = "delete", L = 5, dt = 1 << L, at = dt - 1, j = {};
2458
2436
  function tn() {
2459
2437
  return { value: !1 };
2460
2438
  }
@@ -2463,7 +2441,7 @@ function bt(t) {
2463
2441
  }
2464
2442
  function hn() {
2465
2443
  }
2466
- function ie(t) {
2444
+ function se(t) {
2467
2445
  return t.size === void 0 && (t.size = t.__iterate(Po)), t.size;
2468
2446
  }
2469
2447
  function qt(t, e) {
@@ -2473,46 +2451,46 @@ function qt(t, e) {
2473
2451
  return NaN;
2474
2452
  e = r;
2475
2453
  }
2476
- return e < 0 ? ie(t) + e : e;
2454
+ return e < 0 ? se(t) + e : e;
2477
2455
  }
2478
2456
  function Po() {
2479
2457
  return !0;
2480
2458
  }
2481
2459
  function br(t, e, r) {
2482
- return (t === 0 && !Lo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
2460
+ return (t === 0 && !Vo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
2483
2461
  }
2484
- function Ue(t, e) {
2462
+ function Fe(t, e) {
2485
2463
  return qo(t, e, 0);
2486
2464
  }
2487
2465
  function Sr(t, e) {
2488
2466
  return qo(t, e, e);
2489
2467
  }
2490
2468
  function qo(t, e, r) {
2491
- return t === void 0 ? r : Lo(t) ? e === 1 / 0 ? e : Math.max(0, e + t) | 0 : e === void 0 || e === t ? t : Math.min(e, t) | 0;
2469
+ return t === void 0 ? r : Vo(t) ? e === 1 / 0 ? e : Math.max(0, e + t) | 0 : e === void 0 || e === t ? t : Math.min(e, t) | 0;
2492
2470
  }
2493
- function Lo(t) {
2471
+ function Vo(t) {
2494
2472
  return t < 0 || t === 0 && 1 / t === -1 / 0;
2495
2473
  }
2496
- var Vo = "@@__IMMUTABLE_RECORD__@@";
2474
+ var Lo = "@@__IMMUTABLE_RECORD__@@";
2497
2475
  function Jt(t) {
2498
2476
  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`
2499
- t[Vo]);
2477
+ t[Lo]);
2500
2478
  }
2501
- function Rt(t) {
2479
+ function Ct(t) {
2502
2480
  return yt(t) || Jt(t);
2503
2481
  }
2504
- var Lt = "@@__IMMUTABLE_ORDERED__@@";
2505
- function xt(t) {
2482
+ var Vt = "@@__IMMUTABLE_ORDERED__@@";
2483
+ function Rt(t) {
2506
2484
  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`
2507
- t[Lt]);
2485
+ t[Vt]);
2508
2486
  }
2509
2487
  var Uo = "@@__IMMUTABLE_SEQ__@@";
2510
2488
  function pn(t) {
2511
2489
  return !!(t && // @ts-expect-error: maybeSeq is typed as `{}`, need to change in 6.0 to `maybeSeq && typeof maybeSeq === 'object' && MAYBE_SEQ_SYMBOL in maybeSeq`
2512
2490
  t[Uo]);
2513
2491
  }
2514
- var ve = Object.prototype.hasOwnProperty;
2515
- function Bo(t) {
2492
+ var ye = Object.prototype.hasOwnProperty;
2493
+ function Fo(t) {
2516
2494
  return Array.isArray(t) || typeof t == "string" ? !0 : t && typeof t == "object" && // @ts-expect-error check that `'length' in value &&`
2517
2495
  Number.isInteger(t.length) && // @ts-expect-error check that `'length' in value &&`
2518
2496
  t.length >= 0 && // @ts-expect-error check that `'length' in value &&`
@@ -2528,7 +2506,7 @@ function Bo(t) {
2528
2506
  }
2529
2507
  var ft = /* @__PURE__ */ (function(t) {
2530
2508
  function e(r) {
2531
- return r == null ? vn() : Rt(r) ? r.toSeq() : Ns(r);
2509
+ return r == null ? vn() : Ct(r) ? r.toSeq() : $s(r);
2532
2510
  }
2533
2511
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
2534
2512
  return this;
@@ -2551,25 +2529,25 @@ var ft = /* @__PURE__ */ (function(t) {
2551
2529
  var o = this._cache;
2552
2530
  if (o) {
2553
2531
  var i = o.length, s = 0;
2554
- return new $(function() {
2532
+ return new x(function() {
2555
2533
  if (s === i)
2556
- return ct();
2534
+ return ut();
2557
2535
  var a = o[n ? i - ++s : s++];
2558
- return H(r, a[0], a[1]);
2536
+ return K(r, a[0], a[1]);
2559
2537
  });
2560
2538
  }
2561
2539
  return this.__iteratorUncached(r, n);
2562
2540
  }, e;
2563
2541
  })(nt), Ut = /* @__PURE__ */ (function(t) {
2564
2542
  function e(r) {
2565
- return r == null ? vn().toKeyedSeq() : yt(r) ? W(r) ? r.toSeq() : r.fromEntrySeq() : Jt(r) ? r.toSeq() : yn(r);
2543
+ return r == null ? vn().toKeyedSeq() : yt(r) ? B(r) ? r.toSeq() : r.fromEntrySeq() : Jt(r) ? r.toSeq() : yn(r);
2566
2544
  }
2567
2545
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toKeyedSeq = function() {
2568
2546
  return this;
2569
2547
  }, e;
2570
2548
  })(ft), kt = /* @__PURE__ */ (function(t) {
2571
2549
  function e(r) {
2572
- return r == null ? vn() : yt(r) ? W(r) ? r.entrySeq() : r.toIndexedSeq() : Jt(r) ? r.toSeq().entrySeq() : Fo(r);
2550
+ return r == null ? vn() : yt(r) ? B(r) ? r.entrySeq() : r.toIndexedSeq() : Jt(r) ? r.toSeq().entrySeq() : Wo(r);
2573
2551
  }
2574
2552
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
2575
2553
  return e(arguments);
@@ -2578,7 +2556,7 @@ var ft = /* @__PURE__ */ (function(t) {
2578
2556
  }, e.prototype.toString = function() {
2579
2557
  return this.__toString("Seq [", "]");
2580
2558
  }, e;
2581
- })(ft), ye = /* @__PURE__ */ (function(t) {
2559
+ })(ft), _e = /* @__PURE__ */ (function(t) {
2582
2560
  function e(r) {
2583
2561
  return (yt(r) && !fn(r) ? r : kt(r)).toSetSeq();
2584
2562
  }
@@ -2590,10 +2568,10 @@ var ft = /* @__PURE__ */ (function(t) {
2590
2568
  })(ft);
2591
2569
  ft.isSeq = pn;
2592
2570
  ft.Keyed = Ut;
2593
- ft.Set = ye;
2571
+ ft.Set = _e;
2594
2572
  ft.Indexed = kt;
2595
2573
  ft.prototype[Uo] = !0;
2596
- var se = /* @__PURE__ */ (function(t) {
2574
+ var ae = /* @__PURE__ */ (function(t) {
2597
2575
  function e(r) {
2598
2576
  this._array = r, this.size = r.length;
2599
2577
  }
@@ -2608,11 +2586,11 @@ var se = /* @__PURE__ */ (function(t) {
2608
2586
  return s;
2609
2587
  }, e.prototype.__iterator = function(r, n) {
2610
2588
  var o = this._array, i = o.length, s = 0;
2611
- return new $(function() {
2589
+ return new x(function() {
2612
2590
  if (s === i)
2613
- return ct();
2591
+ return ut();
2614
2592
  var a = n ? i - ++s : s++;
2615
- return H(r, a, o[a]);
2593
+ return K(r, a, o[a]);
2616
2594
  });
2617
2595
  }, e;
2618
2596
  })(kt), dn = /* @__PURE__ */ (function(t) {
@@ -2625,7 +2603,7 @@ var se = /* @__PURE__ */ (function(t) {
2625
2603
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.get = function(r, n) {
2626
2604
  return n !== void 0 && !this.has(r) ? n : this._object[r];
2627
2605
  }, e.prototype.has = function(r) {
2628
- return ve.call(this._object, r);
2606
+ return ye.call(this._object, r);
2629
2607
  }, e.prototype.__iterate = function(r, n) {
2630
2608
  for (var o = this._object, i = this._keys, s = i.length, a = 0; a !== s; ) {
2631
2609
  var u = i[n ? s - ++a : a++];
@@ -2635,16 +2613,16 @@ var se = /* @__PURE__ */ (function(t) {
2635
2613
  return a;
2636
2614
  }, e.prototype.__iterator = function(r, n) {
2637
2615
  var o = this._object, i = this._keys, s = i.length, a = 0;
2638
- return new $(function() {
2616
+ return new x(function() {
2639
2617
  if (a === s)
2640
- return ct();
2618
+ return ut();
2641
2619
  var u = i[n ? s - ++a : a++];
2642
- return H(r, u, o[u]);
2620
+ return K(r, u, o[u]);
2643
2621
  });
2644
2622
  }, e;
2645
2623
  })(Ut);
2646
- dn.prototype[Lt] = !0;
2647
- var Rs = /* @__PURE__ */ (function(t) {
2624
+ dn.prototype[Vt] = !0;
2625
+ var xs = /* @__PURE__ */ (function(t) {
2648
2626
  function e(r) {
2649
2627
  this._collection = r, this.size = r.length || r.size;
2650
2628
  }
@@ -2661,16 +2639,16 @@ var Rs = /* @__PURE__ */ (function(t) {
2661
2639
  return this.cacheResult().__iterator(r, n);
2662
2640
  var o = this._collection, i = Zr(o);
2663
2641
  if (!Yn(i))
2664
- return new $(ct);
2642
+ return new x(ut);
2665
2643
  var s = 0;
2666
- return new $(function() {
2644
+ return new x(function() {
2667
2645
  var a = i.next();
2668
- return a.done ? a : H(r, s++, a.value);
2646
+ return a.done ? a : K(r, s++, a.value);
2669
2647
  });
2670
2648
  }, e;
2671
2649
  })(kt), Xn;
2672
2650
  function vn() {
2673
- return Xn || (Xn = new se([]));
2651
+ return Xn || (Xn = new ae([]));
2674
2652
  }
2675
2653
  function yn(t) {
2676
2654
  var e = _n(t);
@@ -2682,7 +2660,7 @@ function yn(t) {
2682
2660
  "Expected Array or collection object of [k, v] entries, or keyed object: " + t
2683
2661
  );
2684
2662
  }
2685
- function Fo(t) {
2663
+ function Wo(t) {
2686
2664
  var e = _n(t);
2687
2665
  if (e)
2688
2666
  return e;
@@ -2690,10 +2668,10 @@ function Fo(t) {
2690
2668
  "Expected Array or collection object of values: " + t
2691
2669
  );
2692
2670
  }
2693
- function Ns(t) {
2671
+ function $s(t) {
2694
2672
  var e = _n(t);
2695
2673
  if (e)
2696
- return zs(t) ? e.fromEntrySeq() : xs(t) ? e.toSetSeq() : e;
2674
+ return Ns(t) ? e.fromEntrySeq() : js(t) ? e.toSetSeq() : e;
2697
2675
  if (typeof t == "object")
2698
2676
  return new dn(t);
2699
2677
  throw new TypeError(
@@ -2701,15 +2679,15 @@ function Ns(t) {
2701
2679
  );
2702
2680
  }
2703
2681
  function _n(t) {
2704
- return Bo(t) ? new se(t) : To(t) ? new Rs(t) : void 0;
2682
+ return Fo(t) ? new ae(t) : To(t) ? new xs(t) : void 0;
2705
2683
  }
2706
- function Be() {
2684
+ function We() {
2707
2685
  return this.__ensureOwner();
2708
2686
  }
2709
- function Fe() {
2687
+ function Be() {
2710
2688
  return this.__ownerID ? this : this.__ensureOwner(new hn());
2711
2689
  }
2712
- var be = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
2690
+ var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
2713
2691
  t |= 0, e |= 0;
2714
2692
  var r = t & 65535, n = e & 65535;
2715
2693
  return r * n + ((t >>> 16) * n + r * (e >>> 16) << 16 >>> 0) | 0;
@@ -2717,27 +2695,27 @@ var be = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
2717
2695
  function Ir(t) {
2718
2696
  return t >>> 1 & 1073741824 | t & 3221225471;
2719
2697
  }
2720
- var Cs = Object.prototype.valueOf;
2698
+ var Ms = Object.prototype.valueOf;
2721
2699
  function ht(t) {
2722
2700
  if (t == null)
2723
2701
  return Zn(t);
2724
2702
  if (typeof t.hashCode == "function")
2725
2703
  return Ir(t.hashCode(t));
2726
- var e = qs(t);
2704
+ var e = Us(t);
2727
2705
  if (e == null)
2728
2706
  return Zn(e);
2729
2707
  switch (typeof e) {
2730
2708
  case "boolean":
2731
2709
  return e ? 1108378657 : 1108378656;
2732
2710
  case "number":
2733
- return js(e);
2711
+ return Ts(e);
2734
2712
  case "string":
2735
- return e.length > Ls ? $s(e) : en(e);
2713
+ return e.length > Fs ? Ps(e) : en(e);
2736
2714
  case "object":
2737
2715
  case "function":
2738
- return Ts(e);
2716
+ return Vs(e);
2739
2717
  case "symbol":
2740
- return Ms(e);
2718
+ return qs(e);
2741
2719
  default:
2742
2720
  if (typeof e.toString == "function")
2743
2721
  return en(e.toString());
@@ -2750,7 +2728,7 @@ function Zn(t) {
2750
2728
  1108378659
2751
2729
  );
2752
2730
  }
2753
- function js(t) {
2731
+ function Ts(t) {
2754
2732
  if (t !== t || t === 1 / 0)
2755
2733
  return 0;
2756
2734
  var e = t | 0;
@@ -2758,30 +2736,30 @@ function js(t) {
2758
2736
  t /= 4294967295, e ^= t;
2759
2737
  return Ir(e);
2760
2738
  }
2761
- function $s(t) {
2739
+ function Ps(t) {
2762
2740
  var e = Tr[t];
2763
- return e === void 0 && (e = en(t), Mr === Vs && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
2741
+ return e === void 0 && (e = en(t), Mr === Ws && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
2764
2742
  }
2765
2743
  function en(t) {
2766
2744
  for (var e = 0, r = 0; r < t.length; r++)
2767
2745
  e = 31 * e + t.charCodeAt(r) | 0;
2768
2746
  return Ir(e);
2769
2747
  }
2770
- function Ms(t) {
2748
+ function qs(t) {
2771
2749
  var e = ro[t];
2772
- return e !== void 0 || (e = Wo(), ro[t] = e), e;
2750
+ return e !== void 0 || (e = Bo(), ro[t] = e), e;
2773
2751
  }
2774
- function Ts(t) {
2752
+ function Vs(t) {
2775
2753
  var e;
2776
- if (rn && (e = nn.get(t), e !== void 0) || (e = t[Bt], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Bt], e !== void 0 || (e = Ps(t), e !== void 0)))
2754
+ if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Ls(t), e !== void 0)))
2777
2755
  return e;
2778
- if (e = Wo(), rn)
2756
+ if (e = Bo(), rn)
2779
2757
  nn.set(t, e);
2780
2758
  else {
2781
2759
  if (to !== void 0 && to(t) === !1)
2782
2760
  throw new Error("Non-extensible objects are not allowed as keys.");
2783
2761
  if (eo)
2784
- Object.defineProperty(t, Bt, {
2762
+ Object.defineProperty(t, Ft, {
2785
2763
  enumerable: !1,
2786
2764
  configurable: !1,
2787
2765
  writable: !1,
@@ -2794,9 +2772,9 @@ function Ts(t) {
2794
2772
  // eslint-disable-next-line prefer-rest-params
2795
2773
  arguments
2796
2774
  );
2797
- }, t.propertyIsEnumerable[Bt] = e;
2775
+ }, t.propertyIsEnumerable[Ft] = e;
2798
2776
  else if (t.nodeType !== void 0)
2799
- t[Bt] = e;
2777
+ t[Ft] = e;
2800
2778
  else
2801
2779
  throw new Error("Unable to set a non-enumerable property on object.");
2802
2780
  }
@@ -2809,7 +2787,7 @@ var to = Object.isExtensible, eo = (function() {
2809
2787
  return !1;
2810
2788
  }
2811
2789
  })();
2812
- function Ps(t) {
2790
+ function Ls(t) {
2813
2791
  if (t && t.nodeType > 0)
2814
2792
  switch (t.nodeType) {
2815
2793
  case 1:
@@ -2818,21 +2796,21 @@ function Ps(t) {
2818
2796
  return t.documentElement && t.documentElement.uniqueID;
2819
2797
  }
2820
2798
  }
2821
- function qs(t) {
2822
- return t.valueOf !== Cs && typeof t.valueOf == "function" ? (
2799
+ function Us(t) {
2800
+ return t.valueOf !== Ms && typeof t.valueOf == "function" ? (
2823
2801
  // @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
2824
2802
  t.valueOf(t)
2825
2803
  ) : t;
2826
2804
  }
2827
- function Wo() {
2805
+ function Bo() {
2828
2806
  var t = ++$r;
2829
2807
  return $r & 1073741824 && ($r = 0), t;
2830
2808
  }
2831
2809
  var rn = typeof WeakMap == "function", nn;
2832
2810
  rn && (nn = /* @__PURE__ */ new WeakMap());
2833
- var ro = /* @__PURE__ */ Object.create(null), $r = 0, Bt = "__immutablehash__";
2834
- typeof Symbol == "function" && (Bt = Symbol(Bt));
2835
- var Ls = 16, Vs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
2811
+ var ro = /* @__PURE__ */ Object.create(null), $r = 0, Ft = "__immutablehash__";
2812
+ typeof Symbol == "function" && (Ft = Symbol(Ft));
2813
+ var Fs = 16, Ws = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
2836
2814
  function e(r, n) {
2837
2815
  this._iter = r, this._useKeys = n, this.size = r.size;
2838
2816
  }
@@ -2861,8 +2839,8 @@ var Ls = 16, Vs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
2861
2839
  return this._iter.__iterator(r, n);
2862
2840
  }, e;
2863
2841
  })(Ut);
2864
- Er.prototype[Lt] = !0;
2865
- var Ho = /* @__PURE__ */ (function(t) {
2842
+ Er.prototype[Vt] = !0;
2843
+ var Ko = /* @__PURE__ */ (function(t) {
2866
2844
  function e(r) {
2867
2845
  this._iter = r, this.size = r.size;
2868
2846
  }
@@ -2870,7 +2848,7 @@ var Ho = /* @__PURE__ */ (function(t) {
2870
2848
  return this._iter.includes(r);
2871
2849
  }, e.prototype.__iterate = function(r, n) {
2872
2850
  var o = this, i = 0;
2873
- return n && ie(this), this._iter.__iterate(
2851
+ return n && se(this), this._iter.__iterate(
2874
2852
  function(s) {
2875
2853
  return r(s, n ? o.size - ++i : i++, o);
2876
2854
  },
@@ -2878,9 +2856,9 @@ var Ho = /* @__PURE__ */ (function(t) {
2878
2856
  );
2879
2857
  }, e.prototype.__iterator = function(r, n) {
2880
2858
  var o = this, i = this._iter.__iterator(_t, n), s = 0;
2881
- return n && ie(this), new $(function() {
2859
+ return n && se(this), new x(function() {
2882
2860
  var a = i.next();
2883
- return a.done ? a : H(
2861
+ return a.done ? a : K(
2884
2862
  r,
2885
2863
  n ? o.size - ++s : s++,
2886
2864
  a.value,
@@ -2888,7 +2866,7 @@ var Ho = /* @__PURE__ */ (function(t) {
2888
2866
  );
2889
2867
  });
2890
2868
  }, e;
2891
- })(kt), Ko = /* @__PURE__ */ (function(t) {
2869
+ })(kt), Ho = /* @__PURE__ */ (function(t) {
2892
2870
  function e(r) {
2893
2871
  this._iter = r, this.size = r.size;
2894
2872
  }
@@ -2901,12 +2879,12 @@ var Ho = /* @__PURE__ */ (function(t) {
2901
2879
  }, n);
2902
2880
  }, e.prototype.__iterator = function(r, n) {
2903
2881
  var o = this._iter.__iterator(_t, n);
2904
- return new $(function() {
2882
+ return new x(function() {
2905
2883
  var i = o.next();
2906
- return i.done ? i : H(r, i.value, i.value, i);
2884
+ return i.done ? i : K(r, i.value, i.value, i);
2907
2885
  });
2908
2886
  }, e;
2909
- })(ye), Jo = /* @__PURE__ */ (function(t) {
2887
+ })(_e), Jo = /* @__PURE__ */ (function(t) {
2910
2888
  function e(r) {
2911
2889
  this._iter = r, this.size = r.size;
2912
2890
  }
@@ -2927,7 +2905,7 @@ var Ho = /* @__PURE__ */ (function(t) {
2927
2905
  }, n);
2928
2906
  }, e.prototype.__iterator = function(r, n) {
2929
2907
  var o = this._iter.__iterator(_t, n);
2930
- return new $(function() {
2908
+ return new x(function() {
2931
2909
  for (; ; ) {
2932
2910
  var i = o.next();
2933
2911
  if (i.done)
@@ -2936,7 +2914,7 @@ var Ho = /* @__PURE__ */ (function(t) {
2936
2914
  if (s) {
2937
2915
  oo(s);
2938
2916
  var a = yt(s);
2939
- return H(
2917
+ return K(
2940
2918
  r,
2941
2919
  a ? s.get(0) : s[0],
2942
2920
  a ? s.get(1) : s[1],
@@ -2947,7 +2925,7 @@ var Ho = /* @__PURE__ */ (function(t) {
2947
2925
  });
2948
2926
  }, e;
2949
2927
  })(Ut);
2950
- Ho.prototype.cacheResult = Er.prototype.cacheResult = Ko.prototype.cacheResult = Jo.prototype.cacheResult = bn;
2928
+ Ko.prototype.cacheResult = Er.prototype.cacheResult = Ho.prototype.cacheResult = Jo.prototype.cacheResult = bn;
2951
2929
  function Go(t) {
2952
2930
  var e = Nt(t);
2953
2931
  return e._iter = t, e.size = t.size, e.flip = function() {
@@ -2969,7 +2947,7 @@ function Go(t) {
2969
2947
  }, e.__iteratorUncached = function(r, n) {
2970
2948
  if (r === gt) {
2971
2949
  var o = t.__iterator(r, n);
2972
- return new $(function() {
2950
+ return new x(function() {
2973
2951
  var i = o.next();
2974
2952
  if (!i.done) {
2975
2953
  var s = i.value[0];
@@ -2979,7 +2957,7 @@ function Go(t) {
2979
2957
  });
2980
2958
  }
2981
2959
  return t.__iterator(
2982
- r === _t ? de : _t,
2960
+ r === _t ? ve : _t,
2983
2961
  n
2984
2962
  );
2985
2963
  }, e;
@@ -3001,12 +2979,12 @@ function Qo(t, e, r) {
3001
2979
  );
3002
2980
  }, n.__iteratorUncached = function(o, i) {
3003
2981
  var s = t.__iterator(gt, i);
3004
- return new $(function() {
2982
+ return new x(function() {
3005
2983
  var a = s.next();
3006
2984
  if (a.done)
3007
2985
  return a;
3008
2986
  var u = a.value, c = u[0];
3009
- return H(
2987
+ return K(
3010
2988
  o,
3011
2989
  c,
3012
2990
  e.call(r, u[1], c, t),
@@ -3032,7 +3010,7 @@ function gn(t, e) {
3032
3010
  return t.includes(o);
3033
3011
  }, n.cacheResult = bn, n.__iterate = function(o, i) {
3034
3012
  var s = this, a = 0;
3035
- return i && ie(t), t.__iterate(
3013
+ return i && se(t), t.__iterate(
3036
3014
  function(u, c) {
3037
3015
  return o(u, e ? c : i ? s.size - ++a : a++, s);
3038
3016
  },
@@ -3040,14 +3018,14 @@ function gn(t, e) {
3040
3018
  );
3041
3019
  }, n.__iterator = function(o, i) {
3042
3020
  var s = 0;
3043
- i && ie(t);
3021
+ i && se(t);
3044
3022
  var a = t.__iterator(gt, !i);
3045
- return new $(function() {
3023
+ return new x(function() {
3046
3024
  var u = a.next();
3047
3025
  if (u.done)
3048
3026
  return u;
3049
3027
  var c = u.value;
3050
- return H(
3028
+ return K(
3051
3029
  o,
3052
3030
  e ? c[0] : i ? r.size - ++s : s++,
3053
3031
  c[1],
@@ -3072,28 +3050,28 @@ function Yo(t, e, r, n) {
3072
3050
  }, s), u;
3073
3051
  }, o.__iteratorUncached = function(i, s) {
3074
3052
  var a = t.__iterator(gt, s), u = 0;
3075
- return new $(function() {
3053
+ return new x(function() {
3076
3054
  for (; ; ) {
3077
3055
  var c = a.next();
3078
3056
  if (c.done)
3079
3057
  return c;
3080
3058
  var l = c.value, f = l[0], h = l[1];
3081
3059
  if (e.call(r, h, f, t))
3082
- return H(i, n ? f : u++, h, c);
3060
+ return K(i, n ? f : u++, h, c);
3083
3061
  }
3084
3062
  });
3085
3063
  }, o;
3086
3064
  }
3087
- function Us(t, e, r) {
3088
- var n = _e().asMutable();
3065
+ function Bs(t, e, r) {
3066
+ var n = ge().asMutable();
3089
3067
  return t.__iterate(function(o, i) {
3090
3068
  n.update(e.call(r, o, i, t), 0, function(s) {
3091
3069
  return s + 1;
3092
3070
  });
3093
3071
  }), n.asImmutable();
3094
3072
  }
3095
- function Bs(t, e, r) {
3096
- var n = W(t), o = (xt(t) ? Mt() : _e()).asMutable();
3073
+ function Ks(t, e, r) {
3074
+ var n = B(t), o = (Rt(t) ? Mt() : ge()).asMutable();
3097
3075
  t.__iterate(function(s, a) {
3098
3076
  o.update(
3099
3077
  e.call(r, s, a, t),
@@ -3104,11 +3082,11 @@ function Bs(t, e, r) {
3104
3082
  });
3105
3083
  var i = wn(t);
3106
3084
  return o.map(function(s) {
3107
- return L(t, i(s));
3085
+ return V(t, i(s));
3108
3086
  }).asImmutable();
3109
3087
  }
3110
- function Fs(t, e, r) {
3111
- var n = W(t), o = [[], []];
3088
+ function Hs(t, e, r) {
3089
+ var n = B(t), o = [[], []];
3112
3090
  t.__iterate(function(s, a) {
3113
3091
  o[e.call(r, s, a, t) ? 1 : 0].push(
3114
3092
  n ? [a, s] : s
@@ -3116,7 +3094,7 @@ function Fs(t, e, r) {
3116
3094
  });
3117
3095
  var i = wn(t);
3118
3096
  return o.map(function(s) {
3119
- return L(t, i(s));
3097
+ return V(t, i(s));
3120
3098
  });
3121
3099
  }
3122
3100
  function mn(t, e, r, n) {
@@ -3125,7 +3103,7 @@ function mn(t, e, r, n) {
3125
3103
  return t;
3126
3104
  if (typeof o > "u" && (e < 0 || r < 0))
3127
3105
  return mn(t.toSeq().cacheResult(), e, r, n);
3128
- var i = Ue(e, o), s = Sr(r, o), a = s - i, u;
3106
+ var i = Fe(e, o), s = Sr(r, o), a = s - i, u;
3129
3107
  a === a && (u = a < 0 ? 0 : a);
3130
3108
  var c = Nt(t);
3131
3109
  return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
@@ -3136,28 +3114,28 @@ function mn(t, e, r, n) {
3136
3114
  return 0;
3137
3115
  if (f)
3138
3116
  return this.cacheResult().__iterate(l, f);
3139
- var d = 0, y = !0, g = 0;
3140
- return t.__iterate(function(D, z) {
3117
+ var d = 0, y = !0, m = 0;
3118
+ return t.__iterate(function(D, T) {
3141
3119
  if (!(y && (y = d++ < i)))
3142
- return g++, l(D, n ? z : g - 1, h) !== !1 && g !== u;
3143
- }), g;
3120
+ return m++, l(D, n ? T : m - 1, h) !== !1 && m !== u;
3121
+ }), m;
3144
3122
  }, c.__iteratorUncached = function(l, f) {
3145
3123
  if (u !== 0 && f)
3146
3124
  return this.cacheResult().__iterator(l, f);
3147
3125
  if (u === 0)
3148
- return new $(ct);
3126
+ return new x(ut);
3149
3127
  var h = t.__iterator(l, f), d = 0, y = 0;
3150
- return new $(function() {
3128
+ return new x(function() {
3151
3129
  for (; d++ < i; )
3152
3130
  h.next();
3153
3131
  if (++y > u)
3154
- return ct();
3155
- var g = h.next();
3156
- return n || l === _t || g.done ? g : l === de ? H(l, y - 1, void 0, g) : H(l, y - 1, g.value[1], g);
3132
+ return ut();
3133
+ var m = h.next();
3134
+ return n || l === _t || m.done ? m : l === ve ? K(l, y - 1, void 0, m) : K(l, y - 1, m.value[1], m);
3157
3135
  });
3158
3136
  }, c;
3159
3137
  }
3160
- function Ws(t, e, r) {
3138
+ function Js(t, e, r) {
3161
3139
  var n = Nt(t);
3162
3140
  return n.__iterateUncached = function(o, i) {
3163
3141
  var s = this;
@@ -3174,14 +3152,14 @@ function Ws(t, e, r) {
3174
3152
  if (i)
3175
3153
  return this.cacheResult().__iterator(o, i);
3176
3154
  var a = t.__iterator(gt, i), u = !0;
3177
- return new $(function() {
3155
+ return new x(function() {
3178
3156
  if (!u)
3179
- return ct();
3157
+ return ut();
3180
3158
  var c = a.next();
3181
3159
  if (c.done)
3182
3160
  return c;
3183
3161
  var l = c.value, f = l[0], h = l[1];
3184
- return e.call(r, h, f, s) ? o === gt ? c : H(o, f, h, c) : (u = !1, ct());
3162
+ return e.call(r, h, f, s) ? o === gt ? c : K(o, f, h, c) : (u = !1, ut());
3185
3163
  });
3186
3164
  }, n;
3187
3165
  }
@@ -3201,19 +3179,19 @@ function Xo(t, e, r, n) {
3201
3179
  if (s)
3202
3180
  return this.cacheResult().__iterator(i, s);
3203
3181
  var u = t.__iterator(gt, s), c = !0, l = 0;
3204
- return new $(function() {
3182
+ return new x(function() {
3205
3183
  var f, h, d;
3206
3184
  do {
3207
3185
  if (f = u.next(), f.done)
3208
- return n || i === _t ? f : i === de ? H(i, l++, void 0, f) : H(i, l++, f.value[1], f);
3186
+ return n || i === _t ? f : i === ve ? K(i, l++, void 0, f) : K(i, l++, f.value[1], f);
3209
3187
  var y = f.value;
3210
3188
  h = y[0], d = y[1], c && (c = e.call(r, d, h, a));
3211
3189
  } while (c);
3212
- return i === gt ? f : H(i, h, d, f);
3190
+ return i === gt ? f : K(i, h, d, f);
3213
3191
  });
3214
3192
  }, o;
3215
3193
  }
3216
- var Hs = /* @__PURE__ */ (function(t) {
3194
+ var Gs = /* @__PURE__ */ (function(t) {
3217
3195
  function e(r) {
3218
3196
  this._wrappedIterables = r.flatMap(function(n) {
3219
3197
  return n._wrappedIterables ? n._wrappedIterables : [n];
@@ -3223,13 +3201,13 @@ var Hs = /* @__PURE__ */ (function(t) {
3223
3201
  if (i !== void 0)
3224
3202
  return n + i;
3225
3203
  }
3226
- }, 0), this[pr] = this._wrappedIterables[0][pr], this[hr] = this._wrappedIterables[0][hr], this[Lt] = this._wrappedIterables[0][Lt];
3204
+ }, 0), this[pr] = this._wrappedIterables[0][pr], this[hr] = this._wrappedIterables[0][hr], this[Vt] = this._wrappedIterables[0][Vt];
3227
3205
  }
3228
3206
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.__iterateUncached = function(r, n) {
3229
3207
  if (this._wrappedIterables.length !== 0) {
3230
3208
  if (n)
3231
3209
  return this.cacheResult().__iterate(r, n);
3232
- for (var o = 0, i = W(this), s = i ? gt : _t, a = this._wrappedIterables[o].__iterator(
3210
+ for (var o = 0, i = B(this), s = i ? gt : _t, a = this._wrappedIterables[o].__iterator(
3233
3211
  s,
3234
3212
  n
3235
3213
  ), u = !0, c = 0; u; ) {
@@ -3249,14 +3227,14 @@ var Hs = /* @__PURE__ */ (function(t) {
3249
3227
  }, e.prototype.__iteratorUncached = function(r, n) {
3250
3228
  var o = this;
3251
3229
  if (this._wrappedIterables.length === 0)
3252
- return new $(ct);
3230
+ return new x(ut);
3253
3231
  if (n)
3254
3232
  return this.cacheResult().__iterator(r, n);
3255
3233
  var i = 0, s = this._wrappedIterables[i].__iterator(
3256
3234
  r,
3257
3235
  n
3258
3236
  );
3259
- return new $(function() {
3237
+ return new x(function() {
3260
3238
  for (var a = s.next(); a.done; ) {
3261
3239
  if (i++, i === o._wrappedIterables.length)
3262
3240
  return a;
@@ -3269,9 +3247,9 @@ var Hs = /* @__PURE__ */ (function(t) {
3269
3247
  });
3270
3248
  }, e;
3271
3249
  })(ft);
3272
- function Ks(t, e) {
3273
- var r = W(t), n = [t].concat(e).map(function(i) {
3274
- return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Fo(Array.isArray(i) ? i : [i]), i;
3250
+ function Qs(t, e) {
3251
+ var r = B(t), n = [t].concat(e).map(function(i) {
3252
+ return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Wo(Array.isArray(i) ? i : [i]), i;
3275
3253
  }).filter(function(i) {
3276
3254
  return i.size !== 0;
3277
3255
  });
@@ -3279,10 +3257,10 @@ function Ks(t, e) {
3279
3257
  return t;
3280
3258
  if (n.length === 1) {
3281
3259
  var o = n[0];
3282
- if (o === t || r && W(o) || It(t) && It(o))
3260
+ if (o === t || r && B(o) || It(t) && It(o))
3283
3261
  return o;
3284
3262
  }
3285
- return new Hs(n);
3263
+ return new Gs(n);
3286
3264
  }
3287
3265
  function Zo(t, e, r) {
3288
3266
  var n = Nt(t);
@@ -3300,7 +3278,7 @@ function Zo(t, e, r) {
3300
3278
  if (i)
3301
3279
  return this.cacheResult().__iterator(o, i);
3302
3280
  var s = t.__iterator(o, i), a = [], u = 0;
3303
- return new $(function() {
3281
+ return new x(function() {
3304
3282
  for (; s; ) {
3305
3283
  var c = s.next();
3306
3284
  if (c.done !== !1) {
@@ -3311,19 +3289,19 @@ function Zo(t, e, r) {
3311
3289
  if (o === gt && (l = l[1]), (!e || a.length < e) && yt(l))
3312
3290
  a.push(s), s = l.__iterator(o, i);
3313
3291
  else
3314
- return r ? c : H(o, u++, l, c);
3292
+ return r ? c : K(o, u++, l, c);
3315
3293
  }
3316
- return ct();
3294
+ return ut();
3317
3295
  });
3318
3296
  }, n;
3319
3297
  }
3320
- function Js(t, e, r) {
3298
+ function Ys(t, e, r) {
3321
3299
  var n = wn(t);
3322
3300
  return t.toSeq().map(function(o, i) {
3323
3301
  return n(e.call(r, o, i, t));
3324
3302
  }).flatten(!0);
3325
3303
  }
3326
- function Gs(t, e) {
3304
+ function Xs(t, e) {
3327
3305
  var r = Nt(t);
3328
3306
  return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
3329
3307
  var i = this, s = 0;
@@ -3335,14 +3313,14 @@ function Gs(t, e) {
3335
3313
  ), s;
3336
3314
  }, r.__iteratorUncached = function(n, o) {
3337
3315
  var i = t.__iterator(_t, o), s = 0, a;
3338
- return new $(function() {
3339
- return (!a || s % 2) && (a = i.next(), a.done) ? a : s % 2 ? H(n, s++, e) : H(n, s++, a.value, a);
3316
+ return new x(function() {
3317
+ return (!a || s % 2) && (a = i.next(), a.done) ? a : s % 2 ? K(n, s++, e) : K(n, s++, a.value, a);
3340
3318
  });
3341
3319
  }, r;
3342
3320
  }
3343
- function ae(t, e, r) {
3321
+ function ue(t, e, r) {
3344
3322
  e || (e = ti);
3345
- var n = W(t), o = 0, i = t.toSeq().map(function(s, a) {
3323
+ var n = B(t), o = 0, i = t.toSeq().map(function(s, a) {
3346
3324
  return [a, s, o++, r ? r(s, a, t) : s];
3347
3325
  }).valueSeq().toArray();
3348
3326
  return i.sort(function(s, a) {
@@ -3353,9 +3331,9 @@ function ae(t, e, r) {
3353
3331
  } : function(s, a) {
3354
3332
  i[a] = s[1];
3355
3333
  }
3356
- ), n ? Ut(i) : It(t) ? kt(i) : ye(i);
3334
+ ), n ? Ut(i) : It(t) ? kt(i) : _e(i);
3357
3335
  }
3358
- function Xe(t, e, r) {
3336
+ function Ze(t, e, r) {
3359
3337
  if (e || (e = ti), r) {
3360
3338
  var n = t.toSeq().map(function(o, i) {
3361
3339
  return [o, r(o, i, t)];
@@ -3372,8 +3350,8 @@ function no(t, e, r) {
3372
3350
  var n = t(r, e);
3373
3351
  return n === 0 && r !== e && (r == null || r !== r) || n > 0;
3374
3352
  }
3375
- function Ze(t, e, r, n) {
3376
- var o = Nt(t), i = new se(r).map(function(s) {
3353
+ function tr(t, e, r, n) {
3354
+ var o = Nt(t), i = new ae(r).map(function(s) {
3377
3355
  return s.size;
3378
3356
  });
3379
3357
  return o.size = n ? i.max() : i.min(), o.__iterate = function(s, a) {
@@ -3386,7 +3364,7 @@ function Ze(t, e, r, n) {
3386
3364
  return f = nt(f), Zr(a ? f.reverse() : f);
3387
3365
  }
3388
3366
  ), c = 0, l = !1;
3389
- return new $(function() {
3367
+ return new x(function() {
3390
3368
  var f;
3391
3369
  return l || (f = u.map(function(h) {
3392
3370
  return h.next();
@@ -3394,7 +3372,7 @@ function Ze(t, e, r, n) {
3394
3372
  return h.done;
3395
3373
  }) : f.some(function(h) {
3396
3374
  return h.done;
3397
- })), l ? ct() : H(
3375
+ })), l ? ut() : K(
3398
3376
  s,
3399
3377
  c++,
3400
3378
  e.apply(
@@ -3407,7 +3385,7 @@ function Ze(t, e, r, n) {
3407
3385
  });
3408
3386
  }, o;
3409
3387
  }
3410
- function L(t, e) {
3388
+ function V(t, e) {
3411
3389
  return t === e ? t : pn(t) ? e : t.constructor(e);
3412
3390
  }
3413
3391
  function oo(t) {
@@ -3415,11 +3393,11 @@ function oo(t) {
3415
3393
  throw new TypeError("Expected [K, V] tuple: " + t);
3416
3394
  }
3417
3395
  function wn(t) {
3418
- return W(t) ? Et : It(t) ? Kt : pe;
3396
+ return B(t) ? Et : It(t) ? Ht : de;
3419
3397
  }
3420
3398
  function Nt(t) {
3421
3399
  return Object.create(
3422
- (W(t) ? Ut : It(t) ? kt : ye).prototype
3400
+ (B(t) ? Ut : It(t) ? kt : _e).prototype
3423
3401
  );
3424
3402
  }
3425
3403
  function bn() {
@@ -3447,7 +3425,7 @@ function vt(t, e) {
3447
3425
  return !!(io(t) && io(e) && t.equals(e));
3448
3426
  }
3449
3427
  function ei(t, e, r, n) {
3450
- return ge(
3428
+ return me(
3451
3429
  // @ts-expect-error Index signature for type string is missing in type V[]
3452
3430
  t,
3453
3431
  [e],
@@ -3486,9 +3464,9 @@ function oi(t, e, r) {
3486
3464
  n[u].forEach(a);
3487
3465
  });
3488
3466
  }
3489
- var Qs = Object.prototype.toString;
3490
- function Ys(t) {
3491
- if (!t || typeof t != "object" || Qs.call(t) !== "[object Object]")
3467
+ var Zs = Object.prototype.toString;
3468
+ function ta(t) {
3469
+ if (!t || typeof t != "object" || Zs.call(t) !== "[object Object]")
3492
3470
  return !1;
3493
3471
  var e = Object.getPrototypeOf(t);
3494
3472
  if (e === null)
@@ -3497,8 +3475,8 @@ function Ys(t) {
3497
3475
  r = n, n = Object.getPrototypeOf(r);
3498
3476
  return r === e;
3499
3477
  }
3500
- function Vt(t) {
3501
- return typeof t == "object" && (Rt(t) || Array.isArray(t) || Ys(t));
3478
+ function Lt(t) {
3479
+ return typeof t == "object" && (Ct(t) || Array.isArray(t) || ta(t));
3502
3480
  }
3503
3481
  function Dt(t, e) {
3504
3482
  e = e || 0;
@@ -3511,37 +3489,37 @@ function dr(t) {
3511
3489
  return Dt(t);
3512
3490
  var e = {};
3513
3491
  for (var r in t)
3514
- ve.call(t, r) && (e[r] = t[r]);
3492
+ ye.call(t, r) && (e[r] = t[r]);
3515
3493
  return e;
3516
3494
  }
3517
3495
  function Sn(t, e, r) {
3518
- return In(t, e, Xs(r));
3496
+ return In(t, e, ea(r));
3519
3497
  }
3520
3498
  function In(t, e, r) {
3521
- if (!Vt(t))
3499
+ if (!Lt(t))
3522
3500
  throw new TypeError(
3523
3501
  "Cannot merge into non-data-structure value: " + t
3524
3502
  );
3525
- if (Rt(t))
3503
+ if (Ct(t))
3526
3504
  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);
3527
- for (var n = Array.isArray(t), o = t, i = n ? Kt : Et, s = n ? function(u) {
3505
+ for (var n = Array.isArray(t), o = t, i = n ? Ht : Et, s = n ? function(u) {
3528
3506
  o === t && (o = dr(o)), o.push(u);
3529
3507
  } : function(u, c) {
3530
- var l = ve.call(o, c), f = l && r ? r(o[c], u, c) : u;
3508
+ var l = ye.call(o, c), f = l && r ? r(o[c], u, c) : u;
3531
3509
  (!l || f !== o[c]) && (o === t && (o = dr(o)), o[c] = f);
3532
3510
  }, a = 0; a < e.length; a++)
3533
3511
  i(e[a]).forEach(s);
3534
3512
  return o;
3535
3513
  }
3536
- function Xs(t) {
3514
+ function ea(t) {
3537
3515
  function e(r, n, o) {
3538
- return Vt(r) && Vt(n) && Zs(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
3516
+ return Lt(r) && Lt(n) && ra(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
3539
3517
  }
3540
3518
  return e;
3541
3519
  }
3542
- function Zs(t, e) {
3520
+ function ra(t, e) {
3543
3521
  var r = ft(t), n = ft(e);
3544
- return It(r) === It(n) && W(r) === W(n);
3522
+ return It(r) === It(n) && B(r) === B(n);
3545
3523
  }
3546
3524
  function ii() {
3547
3525
  for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
@@ -3553,7 +3531,7 @@ function si(t) {
3553
3531
  }
3554
3532
  function En(t) {
3555
3533
  for (var e = [], r = arguments.length - 1; r-- > 0; ) e[r] = arguments[r + 1];
3556
- return ge(
3534
+ return me(
3557
3535
  this,
3558
3536
  t,
3559
3537
  zt(),
@@ -3564,46 +3542,46 @@ function En(t) {
3564
3542
  }
3565
3543
  function On(t) {
3566
3544
  for (var e = [], r = arguments.length - 1; r-- > 0; ) e[r] = arguments[r + 1];
3567
- return ge(this, t, zt(), function(n) {
3545
+ return me(this, t, zt(), function(n) {
3568
3546
  return In(n, e);
3569
3547
  });
3570
3548
  }
3571
- function ta(t, e, r) {
3572
- return ge(t, e, j, function() {
3549
+ function na(t, e, r) {
3550
+ return me(t, e, j, function() {
3573
3551
  return r;
3574
3552
  });
3575
3553
  }
3576
3554
  function kn(t, e) {
3577
- return ta(this, t, e);
3555
+ return na(this, t, e);
3578
3556
  }
3579
3557
  function Dn(t, e, r) {
3580
3558
  return arguments.length === 1 ? t(this) : ei(this, t, e, r);
3581
3559
  }
3582
3560
  function An(t, e, r) {
3583
- return ge(this, t, e, r);
3561
+ return me(this, t, e, r);
3584
3562
  }
3585
3563
  function zn() {
3586
3564
  return this.__altered;
3587
3565
  }
3588
- function We(t) {
3566
+ function Ke(t) {
3589
3567
  var e = this.asMutable();
3590
3568
  return t(e), e.wasAltered() ? e.__ensureOwner(this.__ownerID) : this;
3591
3569
  }
3592
3570
  var ai = "@@__IMMUTABLE_MAP__@@";
3593
- function xn(t) {
3571
+ function Rn(t) {
3594
3572
  return !!(t && // @ts-expect-error: maybeMap is typed as `{}`, need to change in 6.0 to `maybeMap && typeof maybeMap === 'object' && IS_MAP_SYMBOL in maybeMap`
3595
3573
  t[ai]);
3596
3574
  }
3597
- function Ae(t, e) {
3575
+ function ze(t, e) {
3598
3576
  if (!t)
3599
3577
  throw new Error(e);
3600
3578
  }
3601
3579
  function pt(t) {
3602
- Ae(t !== 1 / 0, "Cannot perform this action with an infinite size.");
3580
+ ze(t !== 1 / 0, "Cannot perform this action with an infinite size.");
3603
3581
  }
3604
- var _e = /* @__PURE__ */ (function(t) {
3582
+ var ge = /* @__PURE__ */ (function(t) {
3605
3583
  function e(r) {
3606
- return r == null ? zt() : xn(r) && !xt(r) ? r : zt().withMutations(function(n) {
3584
+ return r == null ? zt() : Rn(r) && !Rt(r) ? r : zt().withMutations(function(n) {
3607
3585
  var o = t(r);
3608
3586
  pt(o.size), o.forEach(function(i, s) {
3609
3587
  return n.set(s, i);
@@ -3628,9 +3606,9 @@ var _e = /* @__PURE__ */ (function(t) {
3628
3606
  }, e.prototype.clear = function() {
3629
3607
  return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : zt();
3630
3608
  }, e.prototype.sort = function(r) {
3631
- return Mt(ae(this, r));
3609
+ return Mt(ue(this, r));
3632
3610
  }, e.prototype.sortBy = function(r, n) {
3633
- return Mt(ae(this, n, r));
3611
+ return Mt(ue(this, n, r));
3634
3612
  }, e.prototype.map = function(r, n) {
3635
3613
  var o = this;
3636
3614
  return this.withMutations(function(i) {
@@ -3639,85 +3617,85 @@ var _e = /* @__PURE__ */ (function(t) {
3639
3617
  });
3640
3618
  });
3641
3619
  }, e.prototype.__iterator = function(r, n) {
3642
- return new ea(this, r, n);
3620
+ return new oa(this, r, n);
3643
3621
  }, e.prototype.__iterate = function(r, n) {
3644
3622
  var o = this, i = 0;
3645
3623
  return this._root && this._root.iterate(function(s) {
3646
3624
  return i++, r(s[1], s[0], o);
3647
3625
  }, n), i;
3648
3626
  }, e.prototype.__ensureOwner = function(r) {
3649
- return r === this.__ownerID ? this : r ? Rn(this.size, this._root, r, this.__hash) : this.size === 0 ? zt() : (this.__ownerID = r, this.__altered = !1, this);
3627
+ return r === this.__ownerID ? this : r ? Cn(this.size, this._root, r, this.__hash) : this.size === 0 ? zt() : (this.__ownerID = r, this.__altered = !1, this);
3650
3628
  }, e;
3651
3629
  })(Et);
3652
- _e.isMap = xn;
3653
- var F = _e.prototype;
3654
- F[ai] = !0;
3655
- F[Ve] = F.remove;
3656
- F.removeAll = F.deleteAll;
3657
- F.setIn = kn;
3658
- F.removeIn = F.deleteIn = jn;
3659
- F.update = Dn;
3660
- F.updateIn = An;
3661
- F.merge = F.concat = ri;
3662
- F.mergeWith = ni;
3663
- F.mergeDeep = ii;
3664
- F.mergeDeepWith = si;
3665
- F.mergeIn = On;
3666
- F.mergeDeepIn = En;
3667
- F.withMutations = We;
3668
- F.wasAltered = zn;
3669
- F.asImmutable = Be;
3670
- F["@@transducer/init"] = F.asMutable = Fe;
3671
- F["@@transducer/step"] = function(t, e) {
3630
+ ge.isMap = Rn;
3631
+ var W = ge.prototype;
3632
+ W[ai] = !0;
3633
+ W[Ue] = W.remove;
3634
+ W.removeAll = W.deleteAll;
3635
+ W.setIn = kn;
3636
+ W.removeIn = W.deleteIn = xn;
3637
+ W.update = Dn;
3638
+ W.updateIn = An;
3639
+ W.merge = W.concat = ri;
3640
+ W.mergeWith = ni;
3641
+ W.mergeDeep = ii;
3642
+ W.mergeDeepWith = si;
3643
+ W.mergeIn = On;
3644
+ W.mergeDeepIn = En;
3645
+ W.withMutations = Ke;
3646
+ W.wasAltered = zn;
3647
+ W.asImmutable = We;
3648
+ W["@@transducer/init"] = W.asMutable = Be;
3649
+ W["@@transducer/step"] = function(t, e) {
3672
3650
  return t.set(e[0], e[1]);
3673
3651
  };
3674
- F["@@transducer/result"] = function(t) {
3652
+ W["@@transducer/result"] = function(t) {
3675
3653
  return t.asImmutable();
3676
3654
  };
3677
- var Ce = function(t, e) {
3655
+ var xe = function(t, e) {
3678
3656
  this.ownerID = t, this.entries = e;
3679
3657
  };
3680
- Ce.prototype.get = function(t, e, r, n) {
3658
+ xe.prototype.get = function(t, e, r, n) {
3681
3659
  for (var o = this.entries, i = 0, s = o.length; i < s; i++)
3682
3660
  if (vt(r, o[i][0]))
3683
3661
  return o[i][1];
3684
3662
  return n;
3685
3663
  };
3686
- Ce.prototype.update = function(t, e, r, n, o, i, s) {
3664
+ xe.prototype.update = function(t, e, r, n, o, i, s) {
3687
3665
  for (var a = o === j, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
3688
3666
  ;
3689
3667
  var f = c < l;
3690
3668
  if (f ? u[c][1] === o : a)
3691
3669
  return this;
3692
3670
  if (bt(s), (a || !f) && bt(i), !(a && u.length === 1)) {
3693
- if (!f && !a && u.length >= aa)
3694
- return ra(t, u, n, o);
3671
+ if (!f && !a && u.length >= la)
3672
+ return ia(t, u, n, o);
3695
3673
  var h = t && t === this.ownerID, d = h ? u : Dt(u);
3696
- return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new Ce(t, d);
3674
+ return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new xe(t, d);
3697
3675
  }
3698
3676
  };
3699
- var ue = function(t, e, r) {
3677
+ var ce = function(t, e, r) {
3700
3678
  this.ownerID = t, this.bitmap = e, this.nodes = r;
3701
3679
  };
3702
- ue.prototype.get = function(t, e, r, n) {
3680
+ ce.prototype.get = function(t, e, r, n) {
3703
3681
  e === void 0 && (e = ht(r));
3704
- var o = 1 << ((t === 0 ? e : e >>> t) & ut), i = this.bitmap;
3682
+ var o = 1 << ((t === 0 ? e : e >>> t) & at), i = this.bitmap;
3705
3683
  return (i & o) === 0 ? n : this.nodes[ui(i & o - 1)].get(
3706
- t + V,
3684
+ t + L,
3707
3685
  e,
3708
3686
  r,
3709
3687
  n
3710
3688
  );
3711
3689
  };
3712
- ue.prototype.update = function(t, e, r, n, o, i, s) {
3690
+ ce.prototype.update = function(t, e, r, n, o, i, s) {
3713
3691
  r === void 0 && (r = ht(n));
3714
- var a = (e === 0 ? r : r >>> e) & ut, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
3692
+ var a = (e === 0 ? r : r >>> e) & at, u = 1 << a, c = this.bitmap, l = (c & u) !== 0;
3715
3693
  if (!l && o === j)
3716
3694
  return this;
3717
3695
  var f = ui(c & u - 1), h = this.nodes, d = l ? h[f] : void 0, y = Nn(
3718
3696
  d,
3719
3697
  t,
3720
- e + V,
3698
+ e + L,
3721
3699
  r,
3722
3700
  n,
3723
3701
  o,
@@ -3726,32 +3704,32 @@ ue.prototype.update = function(t, e, r, n, o, i, s) {
3726
3704
  );
3727
3705
  if (y === d)
3728
3706
  return this;
3729
- if (!l && y && h.length >= ua)
3730
- return oa(t, h, c, a, y);
3707
+ if (!l && y && h.length >= fa)
3708
+ return aa(t, h, c, a, y);
3731
3709
  if (l && !y && h.length === 2 && co(h[f ^ 1]))
3732
3710
  return h[f ^ 1];
3733
3711
  if (l && y && h.length === 1 && co(y))
3734
3712
  return y;
3735
- var g = t && t === this.ownerID, D = l ? y ? c : c ^ u : c | u, z = l ? y ? ci(h, f, y, g) : sa(h, f, g) : ia(h, f, y, g);
3736
- return g ? (this.bitmap = D, this.nodes = z, this) : new ue(t, D, z);
3713
+ var m = t && t === this.ownerID, D = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) : ca(h, f, m) : ua(h, f, y, m);
3714
+ return m ? (this.bitmap = D, this.nodes = T, this) : new ce(t, D, T);
3737
3715
  };
3738
- var je = function(t, e, r) {
3716
+ var $e = function(t, e, r) {
3739
3717
  this.ownerID = t, this.count = e, this.nodes = r;
3740
3718
  };
3741
- je.prototype.get = function(t, e, r, n) {
3719
+ $e.prototype.get = function(t, e, r, n) {
3742
3720
  e === void 0 && (e = ht(r));
3743
- var o = (t === 0 ? e : e >>> t) & ut, i = this.nodes[o];
3744
- return i ? i.get(t + V, e, r, n) : n;
3721
+ var o = (t === 0 ? e : e >>> t) & at, i = this.nodes[o];
3722
+ return i ? i.get(t + L, e, r, n) : n;
3745
3723
  };
3746
- je.prototype.update = function(t, e, r, n, o, i, s) {
3724
+ $e.prototype.update = function(t, e, r, n, o, i, s) {
3747
3725
  r === void 0 && (r = ht(n));
3748
- var a = (e === 0 ? r : r >>> e) & ut, u = o === j, c = this.nodes, l = c[a];
3726
+ var a = (e === 0 ? r : r >>> e) & at, u = o === j, c = this.nodes, l = c[a];
3749
3727
  if (u && !l)
3750
3728
  return this;
3751
3729
  var f = Nn(
3752
3730
  l,
3753
3731
  t,
3754
- e + V,
3732
+ e + L,
3755
3733
  r,
3756
3734
  n,
3757
3735
  o,
@@ -3763,25 +3741,25 @@ je.prototype.update = function(t, e, r, n, o, i, s) {
3763
3741
  var h = this.count;
3764
3742
  if (!l)
3765
3743
  h++;
3766
- else if (!f && (h--, h < ca))
3767
- return na(t, c, h, a);
3744
+ else if (!f && (h--, h < ha))
3745
+ return sa(t, c, h, a);
3768
3746
  var d = t && t === this.ownerID, y = ci(c, a, f, d);
3769
- return d ? (this.count = h, this.nodes = y, this) : new je(t, h, y);
3747
+ return d ? (this.count = h, this.nodes = y, this) : new $e(t, h, y);
3770
3748
  };
3771
- var ce = function(t, e, r) {
3749
+ var le = function(t, e, r) {
3772
3750
  this.ownerID = t, this.keyHash = e, this.entries = r;
3773
3751
  };
3774
- ce.prototype.get = function(t, e, r, n) {
3752
+ le.prototype.get = function(t, e, r, n) {
3775
3753
  for (var o = this.entries, i = 0, s = o.length; i < s; i++)
3776
3754
  if (vt(r, o[i][0]))
3777
3755
  return o[i][1];
3778
3756
  return n;
3779
3757
  };
3780
- ce.prototype.update = function(t, e, r, n, o, i, s) {
3758
+ le.prototype.update = function(t, e, r, n, o, i, s) {
3781
3759
  r === void 0 && (r = ht(n));
3782
3760
  var a = o === j;
3783
3761
  if (r !== this.keyHash)
3784
- return a ? this : (bt(s), bt(i), Cn(this, t, e, r, [n, o]));
3762
+ return a ? this : (bt(s), bt(i), jn(this, t, e, r, [n, o]));
3785
3763
  for (var u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
3786
3764
  ;
3787
3765
  var f = c < l;
@@ -3790,7 +3768,7 @@ ce.prototype.update = function(t, e, r, n, o, i, s) {
3790
3768
  if (bt(s), (a || !f) && bt(i), a && l === 2)
3791
3769
  return new $t(t, this.keyHash, u[c ^ 1]);
3792
3770
  var h = t && t === this.ownerID, d = h ? u : Dt(u);
3793
- return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new ce(t, this.keyHash, d);
3771
+ return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new le(t, this.keyHash, d);
3794
3772
  };
3795
3773
  var $t = function(t, e, r) {
3796
3774
  this.ownerID = t, this.keyHash = e, this.entry = r;
@@ -3806,14 +3784,14 @@ $t.prototype.update = function(t, e, r, n, o, i, s) {
3806
3784
  bt(i);
3807
3785
  return;
3808
3786
  }
3809
- return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), Cn(this, t, e, ht(n), [n, o]));
3787
+ return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), jn(this, t, e, ht(n), [n, o]));
3810
3788
  };
3811
- Ce.prototype.iterate = ce.prototype.iterate = function(t, e) {
3789
+ xe.prototype.iterate = le.prototype.iterate = function(t, e) {
3812
3790
  for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
3813
3791
  if (t(r[e ? o - n : n]) === !1)
3814
3792
  return !1;
3815
3793
  };
3816
- ue.prototype.iterate = je.prototype.iterate = function(t, e) {
3794
+ ce.prototype.iterate = $e.prototype.iterate = function(t, e) {
3817
3795
  for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
3818
3796
  var i = r[e ? o - n : n];
3819
3797
  if (i && i.iterate(t, e) === !1)
@@ -3823,7 +3801,7 @@ ue.prototype.iterate = je.prototype.iterate = function(t, e) {
3823
3801
  $t.prototype.iterate = function(t, e) {
3824
3802
  return t(this.entry);
3825
3803
  };
3826
- var ea = /* @__PURE__ */ (function(t) {
3804
+ var oa = /* @__PURE__ */ (function(t) {
3827
3805
  function e(r, n, o) {
3828
3806
  this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
3829
3807
  }
@@ -3850,11 +3828,11 @@ var ea = /* @__PURE__ */ (function(t) {
3850
3828
  }
3851
3829
  n = this._stack = this._stack.__prev;
3852
3830
  }
3853
- return ct();
3831
+ return ut();
3854
3832
  }, e;
3855
- })($);
3833
+ })(x);
3856
3834
  function Pr(t, e) {
3857
- return H(t, e[0], e[1]);
3835
+ return K(t, e[0], e[1]);
3858
3836
  }
3859
3837
  function so(t, e) {
3860
3838
  return {
@@ -3863,13 +3841,13 @@ function so(t, e) {
3863
3841
  __prev: e
3864
3842
  };
3865
3843
  }
3866
- function Rn(t, e, r, n) {
3867
- var o = Object.create(F);
3844
+ function Cn(t, e, r, n) {
3845
+ var o = Object.create(W);
3868
3846
  return o.size = t, o._root = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
3869
3847
  }
3870
3848
  var ao;
3871
3849
  function zt() {
3872
- return ao || (ao = Rn(0));
3850
+ return ao || (ao = Cn(0));
3873
3851
  }
3874
3852
  function uo(t, e, r) {
3875
3853
  var n, o;
@@ -3890,9 +3868,9 @@ function uo(t, e, r) {
3890
3868
  } else {
3891
3869
  if (r === j)
3892
3870
  return t;
3893
- o = 1, n = new Ce(t.__ownerID, [[e, r]]);
3871
+ o = 1, n = new xe(t.__ownerID, [[e, r]]);
3894
3872
  }
3895
- return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Rn(o, n) : zt();
3873
+ return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Cn(o, n) : zt();
3896
3874
  }
3897
3875
  function Nn(t, e, r, n, o, i, s, a) {
3898
3876
  return t ? t.update(
@@ -3906,15 +3884,15 @@ function Nn(t, e, r, n, o, i, s, a) {
3906
3884
  ) : i === j ? t : (bt(a), bt(s), new $t(e, n, [o, i]));
3907
3885
  }
3908
3886
  function co(t) {
3909
- return t.constructor === $t || t.constructor === ce;
3887
+ return t.constructor === $t || t.constructor === le;
3910
3888
  }
3911
- function Cn(t, e, r, n, o) {
3889
+ function jn(t, e, r, n, o) {
3912
3890
  if (t.keyHash === n)
3913
- return new ce(e, n, [t.entry, o]);
3914
- var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & ut, s = (r === 0 ? n : n >>> r) & ut, a, u = i === s ? [Cn(t, e, r + V, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
3915
- return new ue(e, 1 << i | 1 << s, u);
3891
+ return new le(e, n, [t.entry, o]);
3892
+ var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & at, s = (r === 0 ? n : n >>> r) & at, a, u = i === s ? [jn(t, e, r + L, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
3893
+ return new ce(e, 1 << i | 1 << s, u);
3916
3894
  }
3917
- function ra(t, e, r, n) {
3895
+ function ia(t, e, r, n) {
3918
3896
  t || (t = new hn());
3919
3897
  for (var o = new $t(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
3920
3898
  var s = e[i];
@@ -3922,17 +3900,17 @@ function ra(t, e, r, n) {
3922
3900
  }
3923
3901
  return o;
3924
3902
  }
3925
- function na(t, e, r, n) {
3903
+ function sa(t, e, r, n) {
3926
3904
  for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
3927
3905
  var l = e[a];
3928
3906
  l !== void 0 && a !== n && (o |= u, s[i++] = l);
3929
3907
  }
3930
- return new ue(t, o, s);
3908
+ return new ce(t, o, s);
3931
3909
  }
3932
- function oa(t, e, r, n, o) {
3910
+ function aa(t, e, r, n, o) {
3933
3911
  for (var i = 0, s = new Array(dt), a = 0; r !== 0; a++, r >>>= 1)
3934
3912
  s[a] = r & 1 ? e[i++] : void 0;
3935
- return s[n] = o, new je(t, i + 1, s);
3913
+ return s[n] = o, new $e(t, i + 1, s);
3936
3914
  }
3937
3915
  function ui(t) {
3938
3916
  return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
@@ -3941,7 +3919,7 @@ function ci(t, e, r, n) {
3941
3919
  var o = n ? t : Dt(t);
3942
3920
  return o[e] = r, o;
3943
3921
  }
3944
- function ia(t, e, r, n) {
3922
+ function ua(t, e, r, n) {
3945
3923
  var o = t.length + 1;
3946
3924
  if (n && e + 1 === o)
3947
3925
  return t[e] = r, t;
@@ -3949,7 +3927,7 @@ function ia(t, e, r, n) {
3949
3927
  a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
3950
3928
  return i;
3951
3929
  }
3952
- function sa(t, e, r) {
3930
+ function ca(t, e, r) {
3953
3931
  var n = t.length - 1;
3954
3932
  if (r && e === n)
3955
3933
  return t.pop(), t;
@@ -3957,32 +3935,32 @@ function sa(t, e, r) {
3957
3935
  s === e && (i = 1), o[s] = t[s + i];
3958
3936
  return o;
3959
3937
  }
3960
- var aa = dt / 4, ua = dt / 2, ca = dt / 4;
3938
+ var la = dt / 4, fa = dt / 2, ha = dt / 4;
3961
3939
  function li(t) {
3962
- if (Bo(t) && typeof t != "string")
3940
+ if (Fo(t) && typeof t != "string")
3963
3941
  return t;
3964
- if (xt(t))
3942
+ if (Rt(t))
3965
3943
  return t.toArray();
3966
3944
  throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
3967
3945
  }
3968
- function $e(t) {
3946
+ function Me(t) {
3969
3947
  try {
3970
3948
  return typeof t == "string" ? JSON.stringify(t) : String(t);
3971
3949
  } catch {
3972
3950
  return JSON.stringify(t);
3973
3951
  }
3974
3952
  }
3975
- function la(t, e) {
3976
- return Rt(t) ? (
3953
+ function pa(t, e) {
3954
+ return Ct(t) ? (
3977
3955
  // @ts-expect-error key might be a number or symbol, which is not handled be Record key type
3978
3956
  t.has(e)
3979
3957
  ) : (
3980
3958
  // @ts-expect-error key might be anything else than PropertyKey, and will return false in that case but runtime is OK
3981
- Vt(t) && ve.call(t, e)
3959
+ Lt(t) && ye.call(t, e)
3982
3960
  );
3983
3961
  }
3984
3962
  function fi(t, e, r) {
3985
- return Rt(t) ? t.get(e, r) : la(t, e) ? (
3963
+ return Ct(t) ? t.get(e, r) : pa(t, e) ? (
3986
3964
  // @ts-expect-error weird "get" here,
3987
3965
  typeof t.get == "function" ? (
3988
3966
  // @ts-expect-error weird "get" here,
@@ -3993,36 +3971,36 @@ function fi(t, e, r) {
3993
3971
  )
3994
3972
  ) : r;
3995
3973
  }
3996
- function fa(t, e) {
3997
- if (!Vt(t))
3974
+ function da(t, e) {
3975
+ if (!Lt(t))
3998
3976
  throw new TypeError("Cannot update non-data-structure value: " + t);
3999
- if (Rt(t)) {
3977
+ if (Ct(t)) {
4000
3978
  if (!t.remove)
4001
3979
  throw new TypeError("Cannot update immutable value without .remove() method: " + t);
4002
3980
  return t.remove(e);
4003
3981
  }
4004
- if (!ve.call(t, e))
3982
+ if (!ye.call(t, e))
4005
3983
  return t;
4006
3984
  var r = dr(t);
4007
3985
  return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
4008
3986
  }
4009
- function ha(t, e, r) {
4010
- if (!Vt(t))
3987
+ function va(t, e, r) {
3988
+ if (!Lt(t))
4011
3989
  throw new TypeError("Cannot update non-data-structure value: " + t);
4012
- if (Rt(t)) {
3990
+ if (Ct(t)) {
4013
3991
  if (!t.set)
4014
3992
  throw new TypeError("Cannot update immutable value without .set() method: " + t);
4015
3993
  return t.set(e, r);
4016
3994
  }
4017
- if (ve.call(t, e) && r === t[e])
3995
+ if (ye.call(t, e) && r === t[e])
4018
3996
  return t;
4019
3997
  var n = dr(t);
4020
3998
  return n[e] = r, n;
4021
3999
  }
4022
- function ge(t, e, r, n) {
4000
+ function me(t, e, r, n) {
4023
4001
  n || (n = r, r = void 0);
4024
4002
  var o = hi(
4025
- Rt(t),
4003
+ Ct(t),
4026
4004
  // @ts-expect-error type issues with Record and mixed types
4027
4005
  t,
4028
4006
  li(e),
@@ -4038,10 +4016,10 @@ function hi(t, e, r, n, o, i) {
4038
4016
  var a = s ? o : e, u = i(a);
4039
4017
  return u === a ? e : u;
4040
4018
  }
4041
- if (!s && !Vt(e))
4042
- throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map($e) + "]: " + e);
4019
+ if (!s && !Lt(e))
4020
+ throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Me) + "]: " + e);
4043
4021
  var c = r[n], l = s ? j : fi(e, c, j), f = hi(
4044
- l === j ? t : Rt(l),
4022
+ l === j ? t : Ct(l),
4045
4023
  // @ts-expect-error mixed type
4046
4024
  l,
4047
4025
  r,
@@ -4049,15 +4027,15 @@ function hi(t, e, r, n, o, i) {
4049
4027
  o,
4050
4028
  i
4051
4029
  );
4052
- return f === l ? e : f === j ? fa(e, c) : ha(s ? t ? zt() : {} : e, c, f);
4030
+ return f === l ? e : f === j ? da(e, c) : va(s ? t ? zt() : {} : e, c, f);
4053
4031
  }
4054
- function pa(t, e) {
4055
- return ge(t, e, function() {
4032
+ function ya(t, e) {
4033
+ return me(t, e, function() {
4056
4034
  return j;
4057
4035
  });
4058
4036
  }
4059
- function jn(t) {
4060
- return pa(this, t);
4037
+ function xn(t) {
4038
+ return ya(this, t);
4061
4039
  }
4062
4040
  var pi = "@@__IMMUTABLE_LIST__@@";
4063
4041
  function di(t) {
@@ -4066,13 +4044,13 @@ function di(t) {
4066
4044
  }
4067
4045
  var Or = /* @__PURE__ */ (function(t) {
4068
4046
  function e(r) {
4069
- var n = or();
4047
+ var n = ir();
4070
4048
  if (r == null)
4071
4049
  return n;
4072
4050
  if (di(r))
4073
4051
  return r;
4074
4052
  var o = t(r), i = o.size;
4075
- return i === 0 ? n : (pt(i), i > 0 && i < dt ? Me(0, i, V, null, new Pt(o.toArray())) : n.withMutations(function(s) {
4053
+ return i === 0 ? n : (pt(i), i > 0 && i < dt ? Te(0, i, L, null, new Pt(o.toArray())) : n.withMutations(function(s) {
4076
4054
  s.setSize(i), o.forEach(function(a, u) {
4077
4055
  return s.set(u, a);
4078
4056
  });
@@ -4086,17 +4064,17 @@ var Or = /* @__PURE__ */ (function(t) {
4086
4064
  if (r = qt(this, r), r >= 0 && r < this.size) {
4087
4065
  r += this._origin;
4088
4066
  var o = vi(this, r);
4089
- return o && o.array[r & ut];
4067
+ return o && o.array[r & at];
4090
4068
  }
4091
4069
  return n;
4092
4070
  }, e.prototype.set = function(r, n) {
4093
- return da(this, r, n);
4071
+ return _a(this, r, n);
4094
4072
  }, e.prototype.remove = function(r) {
4095
4073
  return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
4096
4074
  }, e.prototype.insert = function(r, n) {
4097
4075
  return this.splice(r, 0, n);
4098
4076
  }, e.prototype.clear = function() {
4099
- return this.size === 0 ? this : this.__ownerID ? (this.size = this._origin = this._capacity = 0, this._level = V, this._root = this._tail = this.__hash = void 0, this.__altered = !0, this) : or();
4077
+ return this.size === 0 ? this : this.__ownerID ? (this.size = this._origin = this._capacity = 0, this._level = L, this._root = this._tail = this.__hash = void 0, this.__altered = !0, this) : ir();
4100
4078
  }, e.prototype.push = function() {
4101
4079
  var r = arguments, n = this.size;
4102
4080
  return this.withMutations(function(o) {
@@ -4146,21 +4124,21 @@ var Or = /* @__PURE__ */ (function(t) {
4146
4124
  var o = this.size;
4147
4125
  return br(r, n, o) ? this : Tt(
4148
4126
  this,
4149
- Ue(r, o),
4127
+ Fe(r, o),
4150
4128
  Sr(n, o)
4151
4129
  );
4152
4130
  }, e.prototype.__iterator = function(r, n) {
4153
4131
  var o = n ? this.size : 0, i = lo(this, n);
4154
- return new $(function() {
4132
+ return new x(function() {
4155
4133
  var s = i();
4156
- return s === ze ? ct() : H(r, n ? --o : o++, s);
4134
+ return s === Re ? ut() : K(r, n ? --o : o++, s);
4157
4135
  });
4158
4136
  }, e.prototype.__iterate = function(r, n) {
4159
- for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== ze && r(s, n ? --o : o++, this) !== !1; )
4137
+ for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Re && r(s, n ? --o : o++, this) !== !1; )
4160
4138
  ;
4161
4139
  return o;
4162
4140
  }, e.prototype.__ensureOwner = function(r) {
4163
- return r === this.__ownerID ? this : r ? Me(
4141
+ return r === this.__ownerID ? this : r ? Te(
4164
4142
  this._origin,
4165
4143
  this._capacity,
4166
4144
  this._level,
@@ -4168,24 +4146,24 @@ var Or = /* @__PURE__ */ (function(t) {
4168
4146
  this._tail,
4169
4147
  r,
4170
4148
  this.__hash
4171
- ) : this.size === 0 ? or() : (this.__ownerID = r, this.__altered = !1, this);
4149
+ ) : this.size === 0 ? ir() : (this.__ownerID = r, this.__altered = !1, this);
4172
4150
  }, e;
4173
- })(Kt);
4151
+ })(Ht);
4174
4152
  Or.isList = di;
4175
4153
  var Q = Or.prototype;
4176
4154
  Q[pi] = !0;
4177
- Q[Ve] = Q.remove;
4155
+ Q[Ue] = Q.remove;
4178
4156
  Q.merge = Q.concat;
4179
4157
  Q.setIn = kn;
4180
- Q.deleteIn = Q.removeIn = jn;
4158
+ Q.deleteIn = Q.removeIn = xn;
4181
4159
  Q.update = Dn;
4182
4160
  Q.updateIn = An;
4183
4161
  Q.mergeIn = On;
4184
4162
  Q.mergeDeepIn = En;
4185
- Q.withMutations = We;
4163
+ Q.withMutations = Ke;
4186
4164
  Q.wasAltered = zn;
4187
- Q.asImmutable = Be;
4188
- Q["@@transducer/init"] = Q.asMutable = Fe;
4165
+ Q.asImmutable = We;
4166
+ Q["@@transducer/init"] = Q.asMutable = Be;
4189
4167
  Q["@@transducer/step"] = function(t, e) {
4190
4168
  return t.push(e);
4191
4169
  };
@@ -4196,43 +4174,43 @@ var Pt = function(t, e) {
4196
4174
  this.array = t, this.ownerID = e;
4197
4175
  };
4198
4176
  Pt.prototype.removeBefore = function(t, e, r) {
4199
- if ((r & (1 << e + V) - 1) === 0 || this.array.length === 0)
4177
+ if ((r & (1 << e + L) - 1) === 0 || this.array.length === 0)
4200
4178
  return this;
4201
- var n = r >>> e & ut;
4179
+ var n = r >>> e & at;
4202
4180
  if (n >= this.array.length)
4203
4181
  return new Pt([], t);
4204
4182
  var o = n === 0, i;
4205
4183
  if (e > 0) {
4206
4184
  var s = this.array[n];
4207
- if (i = s && s.removeBefore(t, e - V, r), i === s && o)
4185
+ if (i = s && s.removeBefore(t, e - L, r), i === s && o)
4208
4186
  return this;
4209
4187
  }
4210
4188
  if (o && !i)
4211
4189
  return this;
4212
- var a = le(this, t);
4190
+ var a = fe(this, t);
4213
4191
  if (!o)
4214
4192
  for (var u = 0; u < n; u++)
4215
4193
  a.array[u] = void 0;
4216
4194
  return i && (a.array[n] = i), a;
4217
4195
  };
4218
4196
  Pt.prototype.removeAfter = function(t, e, r) {
4219
- if (r === (e ? 1 << e + V : dt) || this.array.length === 0)
4197
+ if (r === (e ? 1 << e + L : dt) || this.array.length === 0)
4220
4198
  return this;
4221
- var n = r - 1 >>> e & ut;
4199
+ var n = r - 1 >>> e & at;
4222
4200
  if (n >= this.array.length)
4223
4201
  return this;
4224
4202
  var o;
4225
4203
  if (e > 0) {
4226
4204
  var i = this.array[n];
4227
- if (o = i && i.removeAfter(t, e - V, r), o === i && n === this.array.length - 1)
4205
+ if (o = i && i.removeAfter(t, e - L, r), o === i && n === this.array.length - 1)
4228
4206
  return this;
4229
4207
  }
4230
- var s = le(this, t);
4208
+ var s = fe(this, t);
4231
4209
  return s.array.splice(n + 1), o && (s.array[n] = o), s;
4232
4210
  };
4233
- var ze = {};
4211
+ var Re = {};
4234
4212
  function lo(t, e) {
4235
- var r = t._origin, n = t._capacity, o = Te(n), i = t._tail;
4213
+ var r = t._origin, n = t._capacity, o = Pe(n), i = t._tail;
4236
4214
  return s(t._root, t._level, 0);
4237
4215
  function s(c, l, f) {
4238
4216
  return l === 0 ? a(c, f) : u(c, l, f);
@@ -4241,41 +4219,41 @@ function lo(t, e) {
4241
4219
  var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
4242
4220
  return d > dt && (d = dt), function() {
4243
4221
  if (h === d)
4244
- return ze;
4222
+ return Re;
4245
4223
  var y = e ? --d : h++;
4246
4224
  return f && f[y];
4247
4225
  };
4248
4226
  }
4249
4227
  function u(c, l, f) {
4250
- var h, d = c && c.array, y = f > r ? 0 : r - f >> l, g = (n - f >> l) + 1;
4251
- return g > dt && (g = dt), function() {
4228
+ var h, d = c && c.array, y = f > r ? 0 : r - f >> l, m = (n - f >> l) + 1;
4229
+ return m > dt && (m = dt), function() {
4252
4230
  for (; ; ) {
4253
4231
  if (h) {
4254
4232
  var D = h();
4255
- if (D !== ze)
4233
+ if (D !== Re)
4256
4234
  return D;
4257
4235
  h = null;
4258
4236
  }
4259
- if (y === g)
4260
- return ze;
4261
- var z = e ? --g : y++;
4237
+ if (y === m)
4238
+ return Re;
4239
+ var T = e ? --m : y++;
4262
4240
  h = s(
4263
- d && d[z],
4264
- l - V,
4265
- f + (z << l)
4241
+ d && d[T],
4242
+ l - L,
4243
+ f + (T << l)
4266
4244
  );
4267
4245
  }
4268
4246
  };
4269
4247
  }
4270
4248
  }
4271
- function Me(t, e, r, n, o, i, s) {
4249
+ function Te(t, e, r, n, o, i, s) {
4272
4250
  var a = Object.create(Q);
4273
4251
  return a.size = e - t, a._origin = t, a._capacity = e, a._level = r, a._root = n, a._tail = o, a.__ownerID = i, a.__hash = s, a.__altered = !1, a;
4274
4252
  }
4275
- function or() {
4276
- return Me(0, 0, V);
4253
+ function ir() {
4254
+ return Te(0, 0, L);
4277
4255
  }
4278
- function da(t, e, r) {
4256
+ function _a(t, e, r) {
4279
4257
  if (e = qt(t, e), e !== e)
4280
4258
  return t;
4281
4259
  if (e >= t.size || e < 0)
@@ -4284,17 +4262,17 @@ function da(t, e, r) {
4284
4262
  });
4285
4263
  e += t._origin;
4286
4264
  var n = t._tail, o = t._root, i = tn();
4287
- return e >= Te(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
4265
+ return e >= Pe(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
4288
4266
  o,
4289
4267
  t.__ownerID,
4290
4268
  t._level,
4291
4269
  e,
4292
4270
  r,
4293
4271
  i
4294
- ), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Me(t._origin, t._capacity, t._level, o, n) : t;
4272
+ ), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Te(t._origin, t._capacity, t._level, o, n) : t;
4295
4273
  }
4296
4274
  function on(t, e, r, n, o, i) {
4297
- var s = n >>> r & ut, a = t && s < t.array.length;
4275
+ var s = n >>> r & at, a = t && s < t.array.length;
4298
4276
  if (!a && o === void 0)
4299
4277
  return t;
4300
4278
  var u;
@@ -4302,24 +4280,24 @@ function on(t, e, r, n, o, i) {
4302
4280
  var c = t && t.array[s], l = on(
4303
4281
  c,
4304
4282
  e,
4305
- r - V,
4283
+ r - L,
4306
4284
  n,
4307
4285
  o,
4308
4286
  i
4309
4287
  );
4310
- return l === c ? t : (u = le(t, e), u.array[s] = l, u);
4288
+ return l === c ? t : (u = fe(t, e), u.array[s] = l, u);
4311
4289
  }
4312
- return a && t.array[s] === o ? t : (i && bt(i), u = le(t, e), o === void 0 && s === u.array.length - 1 ? u.array.pop() : u.array[s] = o, u);
4290
+ return a && t.array[s] === o ? t : (i && bt(i), u = fe(t, e), o === void 0 && s === u.array.length - 1 ? u.array.pop() : u.array[s] = o, u);
4313
4291
  }
4314
- function le(t, e) {
4292
+ function fe(t, e) {
4315
4293
  return e && t && e === t.ownerID ? t : new Pt(t ? t.array.slice() : [], e);
4316
4294
  }
4317
4295
  function vi(t, e) {
4318
- if (e >= Te(t._capacity))
4296
+ if (e >= Pe(t._capacity))
4319
4297
  return t._tail;
4320
- if (e < 1 << t._level + V) {
4298
+ if (e < 1 << t._level + L) {
4321
4299
  for (var r = t._root, n = t._level; r && n > 0; )
4322
- r = r.array[e >>> n & ut], n -= V;
4300
+ r = r.array[e >>> n & at], n -= L;
4323
4301
  return r;
4324
4302
  }
4325
4303
  }
@@ -4334,30 +4312,30 @@ function Tt(t, e, r) {
4334
4312
  c = new Pt(
4335
4313
  c && c.array.length ? [void 0, c] : [],
4336
4314
  n
4337
- ), u += V, l += 1 << u;
4315
+ ), u += L, l += 1 << u;
4338
4316
  l && (s += l, o += l, a += l, i += l);
4339
- for (var f = Te(i), h = Te(a); h >= 1 << u + V; )
4317
+ for (var f = Pe(i), h = Pe(a); h >= 1 << u + L; )
4340
4318
  c = new Pt(
4341
4319
  c && c.array.length ? [c] : [],
4342
4320
  n
4343
- ), u += V;
4321
+ ), u += L;
4344
4322
  var d = t._tail, y = h < f ? vi(t, a - 1) : h > f ? new Pt([], n) : d;
4345
4323
  if (d && h > f && s < i && d.array.length) {
4346
- c = le(c, n);
4347
- for (var g = c, D = u; D > V; D -= V) {
4348
- var z = f >>> D & ut;
4349
- g = g.array[z] = le(g.array[z], n);
4324
+ c = fe(c, n);
4325
+ for (var m = c, D = u; D > L; D -= L) {
4326
+ var T = f >>> D & at;
4327
+ m = m.array[T] = fe(m.array[T], n);
4350
4328
  }
4351
- g.array[f >>> V & ut] = d;
4329
+ m.array[f >>> L & at] = d;
4352
4330
  }
4353
4331
  if (a < i && (y = y && y.removeAfter(n, 0, a)), s >= h)
4354
- s -= h, a -= h, u = V, c = null, y = y && y.removeBefore(n, 0, s);
4332
+ s -= h, a -= h, u = L, c = null, y = y && y.removeBefore(n, 0, s);
4355
4333
  else if (s > o || h < f) {
4356
4334
  for (l = 0; c; ) {
4357
- var et = s >>> u & ut;
4358
- if (et !== h >>> u & ut)
4335
+ var rt = s >>> u & at;
4336
+ if (rt !== h >>> u & at)
4359
4337
  break;
4360
- et && (l += (1 << u) * et), u -= V, c = c.array[et];
4338
+ rt && (l += (1 << u) * rt), u -= L, c = c.array[rt];
4361
4339
  }
4362
4340
  c && s > o && (c = c.removeBefore(n, u, s - l)), c && h < f && (c = c.removeAfter(
4363
4341
  n,
@@ -4365,17 +4343,17 @@ function Tt(t, e, r) {
4365
4343
  h - l
4366
4344
  )), l && (s -= l, a -= l);
4367
4345
  }
4368
- return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Me(s, a, u, c, y);
4346
+ return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Te(s, a, u, c, y);
4369
4347
  }
4370
- function Te(t) {
4371
- return t < dt ? 0 : t - 1 >>> V << V;
4348
+ function Pe(t) {
4349
+ return t < dt ? 0 : t - 1 >>> L << L;
4372
4350
  }
4373
4351
  function yi(t) {
4374
- return xn(t) && xt(t);
4352
+ return Rn(t) && Rt(t);
4375
4353
  }
4376
4354
  var Mt = /* @__PURE__ */ (function(t) {
4377
4355
  function e(r) {
4378
- return r == null ? Ie() : yi(r) ? r : Ie().withMutations(function(n) {
4356
+ return r == null ? Ee() : yi(r) ? r : Ee().withMutations(function(n) {
4379
4357
  var o = Et(r);
4380
4358
  pt(o.size), o.forEach(function(i, s) {
4381
4359
  return n.set(s, i);
@@ -4390,7 +4368,7 @@ var Mt = /* @__PURE__ */ (function(t) {
4390
4368
  var o = this._map.get(r);
4391
4369
  return o !== void 0 ? this._list.get(o)[1] : n;
4392
4370
  }, e.prototype.clear = function() {
4393
- return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._map.clear(), this._list.clear(), this.__altered = !0, this) : Ie();
4371
+ return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._map.clear(), this._list.clear(), this.__altered = !0, this) : Ee();
4394
4372
  }, e.prototype.set = function(r, n) {
4395
4373
  return ho(this, r, n);
4396
4374
  }, e.prototype.remove = function(r) {
@@ -4409,19 +4387,19 @@ var Mt = /* @__PURE__ */ (function(t) {
4409
4387
  if (r === this.__ownerID)
4410
4388
  return this;
4411
4389
  var n = this._map.__ensureOwner(r), o = this._list.__ensureOwner(r);
4412
- return r ? $n(n, o, r, this.__hash) : this.size === 0 ? Ie() : (this.__ownerID = r, this.__altered = !1, this._map = n, this._list = o, this);
4390
+ return r ? $n(n, o, r, this.__hash) : this.size === 0 ? Ee() : (this.__ownerID = r, this.__altered = !1, this._map = n, this._list = o, this);
4413
4391
  }, e;
4414
- })(_e);
4392
+ })(ge);
4415
4393
  Mt.isOrderedMap = yi;
4416
- Mt.prototype[Lt] = !0;
4417
- Mt.prototype[Ve] = Mt.prototype.remove;
4394
+ Mt.prototype[Vt] = !0;
4395
+ Mt.prototype[Ue] = Mt.prototype.remove;
4418
4396
  function $n(t, e, r, n) {
4419
4397
  var o = Object.create(Mt.prototype);
4420
4398
  return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4421
4399
  }
4422
4400
  var fo;
4423
- function Ie() {
4424
- return fo || (fo = $n(zt(), or()));
4401
+ function Ee() {
4402
+ return fo || (fo = $n(zt(), ir()));
4425
4403
  }
4426
4404
  function ho(t, e, r) {
4427
4405
  var n = t._map, o = t._list, i = n.get(e), s = i !== void 0, a, u;
@@ -4448,7 +4426,7 @@ function sn(t) {
4448
4426
  }
4449
4427
  var Mn = /* @__PURE__ */ (function(t) {
4450
4428
  function e(r) {
4451
- return r == null ? tr() : sn(r) ? r : tr().pushAll(r);
4429
+ return r == null ? er() : sn(r) ? r : er().pushAll(r);
4452
4430
  }
4453
4431
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
4454
4432
  return this(arguments);
@@ -4470,7 +4448,7 @@ var Mn = /* @__PURE__ */ (function(t) {
4470
4448
  value: r[i],
4471
4449
  next: o
4472
4450
  };
4473
- return this.__ownerID ? (this.size = n, this._head = o, this.__hash = void 0, this.__altered = !0, this) : Ee(n, o);
4451
+ return this.__ownerID ? (this.size = n, this._head = o, this.__hash = void 0, this.__altered = !0, this) : Oe(n, o);
4474
4452
  }, e.prototype.pushAll = function(r) {
4475
4453
  if (r = t(r), r.size === 0)
4476
4454
  return this;
@@ -4487,26 +4465,26 @@ var Mn = /* @__PURE__ */ (function(t) {
4487
4465
  },
4488
4466
  /* reverse */
4489
4467
  !0
4490
- ), this.__ownerID ? (this.size = n, this._head = o, this.__hash = void 0, this.__altered = !0, this) : Ee(n, o);
4468
+ ), this.__ownerID ? (this.size = n, this._head = o, this.__hash = void 0, this.__altered = !0, this) : Oe(n, o);
4491
4469
  }, e.prototype.pop = function() {
4492
4470
  return this.slice(1);
4493
4471
  }, e.prototype.clear = function() {
4494
- return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : tr();
4472
+ return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : er();
4495
4473
  }, e.prototype.slice = function(r, n) {
4496
4474
  if (br(r, n, this.size))
4497
4475
  return this;
4498
- var o = Ue(r, this.size), i = Sr(n, this.size);
4476
+ var o = Fe(r, this.size), i = Sr(n, this.size);
4499
4477
  if (i !== this.size)
4500
4478
  return t.prototype.slice.call(this, r, n);
4501
4479
  for (var s = this.size - o, a = this._head; o--; )
4502
4480
  a = a.next;
4503
- return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Ee(s, a);
4481
+ return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Oe(s, a);
4504
4482
  }, e.prototype.__ensureOwner = function(r) {
4505
- return r === this.__ownerID ? this : r ? Ee(this.size, this._head, r, this.__hash) : this.size === 0 ? tr() : (this.__ownerID = r, this.__altered = !1, this);
4483
+ return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ? er() : (this.__ownerID = r, this.__altered = !1, this);
4506
4484
  }, e.prototype.__iterate = function(r, n) {
4507
4485
  var o = this;
4508
4486
  if (n)
4509
- return new se(this.toArray()).__iterate(
4487
+ return new ae(this.toArray()).__iterate(
4510
4488
  function(a, u) {
4511
4489
  return r(a, u, o);
4512
4490
  },
@@ -4517,50 +4495,50 @@ var Mn = /* @__PURE__ */ (function(t) {
4517
4495
  return i;
4518
4496
  }, e.prototype.__iterator = function(r, n) {
4519
4497
  if (n)
4520
- return new se(this.toArray()).__iterator(r, n);
4498
+ return new ae(this.toArray()).__iterator(r, n);
4521
4499
  var o = 0, i = this._head;
4522
- return new $(function() {
4500
+ return new x(function() {
4523
4501
  if (i) {
4524
4502
  var s = i.value;
4525
- return i = i.next, H(r, o++, s);
4503
+ return i = i.next, K(r, o++, s);
4526
4504
  }
4527
- return ct();
4505
+ return ut();
4528
4506
  });
4529
4507
  }, e;
4530
- })(Kt);
4508
+ })(Ht);
4531
4509
  Mn.isStack = sn;
4532
- var lt = Mn.prototype;
4533
- lt[_i] = !0;
4534
- lt.shift = lt.pop;
4535
- lt.unshift = lt.push;
4536
- lt.unshiftAll = lt.pushAll;
4537
- lt.withMutations = We;
4538
- lt.wasAltered = zn;
4539
- lt.asImmutable = Be;
4540
- lt["@@transducer/init"] = lt.asMutable = Fe;
4541
- lt["@@transducer/step"] = function(t, e) {
4510
+ var ct = Mn.prototype;
4511
+ ct[_i] = !0;
4512
+ ct.shift = ct.pop;
4513
+ ct.unshift = ct.push;
4514
+ ct.unshiftAll = ct.pushAll;
4515
+ ct.withMutations = Ke;
4516
+ ct.wasAltered = zn;
4517
+ ct.asImmutable = We;
4518
+ ct["@@transducer/init"] = ct.asMutable = Be;
4519
+ ct["@@transducer/step"] = function(t, e) {
4542
4520
  return t.unshift(e);
4543
4521
  };
4544
- lt["@@transducer/result"] = function(t) {
4522
+ ct["@@transducer/result"] = function(t) {
4545
4523
  return t.asImmutable();
4546
4524
  };
4547
- function Ee(t, e, r, n) {
4548
- var o = Object.create(lt);
4525
+ function Oe(t, e, r, n) {
4526
+ var o = Object.create(ct);
4549
4527
  return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
4550
4528
  }
4551
4529
  var po;
4552
- function tr() {
4553
- return po || (po = Ee(0));
4530
+ function er() {
4531
+ return po || (po = Oe(0));
4554
4532
  }
4555
4533
  function vo(t, e, r, n, o, i) {
4556
4534
  return pt(t.size), t.__iterate(function(s, a, u) {
4557
4535
  o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
4558
4536
  }, i), r;
4559
4537
  }
4560
- function va(t, e) {
4538
+ function ga(t, e) {
4561
4539
  return e;
4562
4540
  }
4563
- function ya(t, e) {
4541
+ function ma(t, e) {
4564
4542
  return [e, t];
4565
4543
  }
4566
4544
  function qr(t) {
@@ -4585,13 +4563,13 @@ function gi(t, e) {
4585
4563
  t.size !== void 0 && e.size !== void 0 && t.size !== e.size || // @ts-expect-error __hash exists on Collection
4586
4564
  t.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
4587
4565
  e.__hash !== void 0 && // @ts-expect-error __hash exists on Collection
4588
- t.__hash !== e.__hash || W(t) !== W(e) || It(t) !== It(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
4589
- xt(t) !== xt(e))
4566
+ t.__hash !== e.__hash || B(t) !== B(e) || It(t) !== It(e) || // @ts-expect-error Range extends Collection, which implements [Symbol.iterator], so it is valid
4567
+ Rt(t) !== Rt(e))
4590
4568
  return !1;
4591
4569
  if (t.size === 0 && e.size === 0)
4592
4570
  return !0;
4593
4571
  var r = !fn(t);
4594
- if (xt(t)) {
4572
+ if (Rt(t)) {
4595
4573
  var n = t.entries();
4596
4574
  return e.every(function(u, c) {
4597
4575
  var l = n.next().value;
@@ -4626,20 +4604,20 @@ function gi(t, e) {
4626
4604
  return s && // @ts-expect-error size should exists on Collection
4627
4605
  t.size === a;
4628
4606
  }
4629
- var _a = /* @__PURE__ */ (function(t) {
4607
+ var wa = /* @__PURE__ */ (function(t) {
4630
4608
  function e(r, n, o) {
4631
4609
  if (o === void 0 && (o = 1), !(this instanceof e))
4632
4610
  return new e(r, n, o);
4633
- if (Ae(o !== 0, "Cannot step a Range by 0"), Ae(
4611
+ if (ze(o !== 0, "Cannot step a Range by 0"), ze(
4634
4612
  r !== void 0,
4635
4613
  "You must define a start value when using Range"
4636
- ), Ae(
4614
+ ), ze(
4637
4615
  n !== void 0,
4638
4616
  "You must define an end value when using Range"
4639
4617
  ), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
4640
- if (Lr)
4641
- return Lr;
4642
- Lr = this;
4618
+ if (Vr)
4619
+ return Vr;
4620
+ Vr = this;
4643
4621
  }
4644
4622
  }
4645
4623
  return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toString = function() {
@@ -4650,7 +4628,7 @@ var _a = /* @__PURE__ */ (function(t) {
4650
4628
  var n = (r - this._start) / this._step;
4651
4629
  return n >= 0 && n < this.size && n === Math.floor(n);
4652
4630
  }, e.prototype.slice = function(r, n) {
4653
- return br(r, n, this.size) ? this : (r = Ue(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
4631
+ return br(r, n, this.size) ? this : (r = Fe(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
4654
4632
  this.get(r, this._end),
4655
4633
  this.get(n, this._end),
4656
4634
  this._step
@@ -4671,23 +4649,23 @@ var _a = /* @__PURE__ */ (function(t) {
4671
4649
  return a;
4672
4650
  }, e.prototype.__iterator = function(r, n) {
4673
4651
  var o = this.size, i = this._step, s = n ? this._start + (o - 1) * i : this._start, a = 0;
4674
- return new $(function() {
4652
+ return new x(function() {
4675
4653
  if (a === o)
4676
- return ct();
4654
+ return ut();
4677
4655
  var u = s;
4678
- return s += n ? -i : i, H(r, n ? o - ++a : a++, u);
4656
+ return s += n ? -i : i, K(r, n ? o - ++a : a++, u);
4679
4657
  });
4680
4658
  }, e.prototype.equals = function(r) {
4681
4659
  return r instanceof e ? this._start === r._start && this._end === r._end && this._step === r._step : gi(this, r);
4682
4660
  }, e;
4683
- })(kt), Lr, mi = "@@__IMMUTABLE_SET__@@";
4661
+ })(kt), Vr, mi = "@@__IMMUTABLE_SET__@@";
4684
4662
  function Tn(t) {
4685
4663
  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`
4686
4664
  t[mi]);
4687
4665
  }
4688
4666
  var kr = /* @__PURE__ */ (function(t) {
4689
4667
  function e(r) {
4690
- return r == null ? Oe() : Tn(r) && !xt(r) ? r : Oe().withMutations(function(n) {
4668
+ return r == null ? ke() : Tn(r) && !Rt(r) ? r : ke().withMutations(function(n) {
4691
4669
  var o = t(r);
4692
4670
  pt(o.size), o.forEach(function(i) {
4693
4671
  return n.add(i);
@@ -4699,21 +4677,21 @@ var kr = /* @__PURE__ */ (function(t) {
4699
4677
  }, e.fromKeys = function(r) {
4700
4678
  return this(Et(r).keySeq());
4701
4679
  }, e.intersect = function(r) {
4702
- return r = nt(r).toArray(), r.length ? rt.intersect.apply(e(r.pop()), r) : Oe();
4680
+ return r = nt(r).toArray(), r.length ? et.intersect.apply(e(r.pop()), r) : ke();
4703
4681
  }, e.union = function(r) {
4704
- return r = nt(r).toArray(), r.length ? rt.union.apply(e(r.pop()), r) : Oe();
4682
+ return r = nt(r).toArray(), r.length ? et.union.apply(e(r.pop()), r) : ke();
4705
4683
  }, e.prototype.toString = function() {
4706
4684
  return this.__toString("Set {", "}");
4707
4685
  }, e.prototype.has = function(r) {
4708
4686
  return this._map.has(r);
4709
4687
  }, e.prototype.add = function(r) {
4710
- return er(this, this._map.set(r, r));
4688
+ return rr(this, this._map.set(r, r));
4711
4689
  }, e.prototype.remove = function(r) {
4712
- return er(this, this._map.remove(r));
4690
+ return rr(this, this._map.remove(r));
4713
4691
  }, e.prototype.clear = function() {
4714
- return er(this, this._map.clear());
4692
+ return rr(this, this._map.clear());
4715
4693
  }, e.prototype.map = function(r, n) {
4716
- var o = this, i = !1, s = er(
4694
+ var o = this, i = !1, s = rr(
4717
4695
  this,
4718
4696
  this._map.mapEntries(function(a) {
4719
4697
  var u = a[1], c = r.call(n, u, u, o);
@@ -4766,9 +4744,9 @@ var kr = /* @__PURE__ */ (function(t) {
4766
4744
  });
4767
4745
  });
4768
4746
  }, e.prototype.sort = function(r) {
4769
- return Pe(ae(this, r));
4747
+ return qe(ue(this, r));
4770
4748
  }, e.prototype.sortBy = function(r, n) {
4771
- return Pe(ae(this, n, r));
4749
+ return qe(ue(this, n, r));
4772
4750
  }, e.prototype.wasAltered = function() {
4773
4751
  return this._map.wasAltered();
4774
4752
  }, e.prototype.__iterate = function(r, n) {
@@ -4784,32 +4762,32 @@ var kr = /* @__PURE__ */ (function(t) {
4784
4762
  var n = this._map.__ensureOwner(r);
4785
4763
  return r ? this.__make(n, r) : this.size === 0 ? this.__empty() : (this.__ownerID = r, this._map = n, this);
4786
4764
  }, e;
4787
- })(pe);
4765
+ })(de);
4788
4766
  kr.isSet = Tn;
4789
- var rt = kr.prototype;
4790
- rt[mi] = !0;
4791
- rt[Ve] = rt.remove;
4792
- rt.merge = rt.concat = rt.union;
4793
- rt.withMutations = We;
4794
- rt.asImmutable = Be;
4795
- rt["@@transducer/init"] = rt.asMutable = Fe;
4796
- rt["@@transducer/step"] = function(t, e) {
4767
+ var et = kr.prototype;
4768
+ et[mi] = !0;
4769
+ et[Ue] = et.remove;
4770
+ et.merge = et.concat = et.union;
4771
+ et.withMutations = Ke;
4772
+ et.asImmutable = We;
4773
+ et["@@transducer/init"] = et.asMutable = Be;
4774
+ et["@@transducer/step"] = function(t, e) {
4797
4775
  return t.add(e);
4798
4776
  };
4799
- rt["@@transducer/result"] = function(t) {
4777
+ et["@@transducer/result"] = function(t) {
4800
4778
  return t.asImmutable();
4801
4779
  };
4802
- rt.__empty = Oe;
4803
- rt.__make = wi;
4804
- function er(t, e) {
4780
+ et.__empty = ke;
4781
+ et.__make = wi;
4782
+ function rr(t, e) {
4805
4783
  return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
4806
4784
  }
4807
4785
  function wi(t, e) {
4808
- var r = Object.create(rt);
4786
+ var r = Object.create(et);
4809
4787
  return r.size = t ? t.size : 0, r._map = t, r.__ownerID = e, r;
4810
4788
  }
4811
4789
  var go;
4812
- function Oe() {
4790
+ function ke() {
4813
4791
  return go || (go = wi(zt()));
4814
4792
  }
4815
4793
  function bi(t, e, r) {
@@ -4821,11 +4799,11 @@ function bi(t, e, r) {
4821
4799
  function Si(t, e) {
4822
4800
  return bi(this, t, e);
4823
4801
  }
4824
- function ga(t, e) {
4802
+ function ba(t, e) {
4825
4803
  return bi(t, e, j) !== j;
4826
4804
  }
4827
- function ma(t) {
4828
- return ga(this, t);
4805
+ function Sa(t) {
4806
+ return ba(this, t);
4829
4807
  }
4830
4808
  function Ii() {
4831
4809
  pt(this.size);
@@ -4838,11 +4816,11 @@ function vr(t) {
4838
4816
  if (!t || typeof t != "object")
4839
4817
  return t;
4840
4818
  if (!yt(t)) {
4841
- if (!Vt(t))
4819
+ if (!Lt(t))
4842
4820
  return t;
4843
4821
  t = ft(t);
4844
4822
  }
4845
- if (W(t)) {
4823
+ if (B(t)) {
4846
4824
  var e = {};
4847
4825
  return t.__iterate(function(n, o) {
4848
4826
  e[o] = vr(n);
@@ -4853,10 +4831,10 @@ function vr(t) {
4853
4831
  r.push(vr(n));
4854
4832
  }), r;
4855
4833
  }
4856
- function wa(t) {
4834
+ function Ia(t) {
4857
4835
  if (t.size === 1 / 0)
4858
4836
  return 0;
4859
- var e = xt(t), r = W(t), n = e ? 1 : 0;
4837
+ var e = Rt(t), r = B(t), n = e ? 1 : 0;
4860
4838
  return t.__iterate(r ? e ? function(o, i) {
4861
4839
  n = 31 * n + mo(ht(o), ht(i)) | 0;
4862
4840
  } : function(o, i) {
@@ -4865,10 +4843,10 @@ function wa(t) {
4865
4843
  n = 31 * n + ht(o) | 0;
4866
4844
  } : function(o) {
4867
4845
  n = n + ht(o) | 0;
4868
- }), ba(t.size, n);
4846
+ }), Ea(t.size, n);
4869
4847
  }
4870
- function ba(t, e) {
4871
- return e = be(e, 3432918353), e = be(e << 15 | e >>> -15, 461845907), e = be(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = be(e ^ e >>> 16, 2246822507), e = be(e ^ e >>> 13, 3266489909), e = Ir(e ^ e >>> 16), e;
4848
+ function Ea(t, e) {
4849
+ return e = Se(e, 3432918353), e = Se(e << 15 | e >>> -15, 461845907), e = Se(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Se(e ^ e >>> 16, 2246822507), e = Se(e ^ e >>> 13, 3266489909), e = Ir(e ^ e >>> 16), e;
4872
4850
  }
4873
4851
  function mo(t, e) {
4874
4852
  return t ^ e + 2654435769 + (t << 6) + (t >> 2) | 0;
@@ -4879,18 +4857,18 @@ function Gt(t, e) {
4879
4857
  };
4880
4858
  return Object.keys(e).forEach(r), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(e).forEach(r), t;
4881
4859
  }
4882
- nt.Iterator = $;
4860
+ nt.Iterator = x;
4883
4861
  Gt(nt, {
4884
4862
  // ### Conversion to other types
4885
4863
  toArray: function() {
4886
4864
  pt(this.size);
4887
- var t = new Array(this.size || 0), e = W(this), r = 0;
4865
+ var t = new Array(this.size || 0), e = B(this), r = 0;
4888
4866
  return this.__iterate(function(n, o) {
4889
4867
  t[r++] = e ? [o, n] : n;
4890
4868
  }), t;
4891
4869
  },
4892
4870
  toIndexedSeq: function() {
4893
- return new Ho(this);
4871
+ return new Ko(this);
4894
4872
  },
4895
4873
  toJS: function() {
4896
4874
  return vr(this);
@@ -4899,29 +4877,29 @@ Gt(nt, {
4899
4877
  return new Er(this, !0);
4900
4878
  },
4901
4879
  toMap: function() {
4902
- return _e(this.toKeyedSeq());
4880
+ return ge(this.toKeyedSeq());
4903
4881
  },
4904
4882
  toObject: Ii,
4905
4883
  toOrderedMap: function() {
4906
4884
  return Mt(this.toKeyedSeq());
4907
4885
  },
4908
4886
  toOrderedSet: function() {
4909
- return Pe(W(this) ? this.valueSeq() : this);
4887
+ return qe(B(this) ? this.valueSeq() : this);
4910
4888
  },
4911
4889
  toSet: function() {
4912
- return kr(W(this) ? this.valueSeq() : this);
4890
+ return kr(B(this) ? this.valueSeq() : this);
4913
4891
  },
4914
4892
  toSetSeq: function() {
4915
- return new Ko(this);
4893
+ return new Ho(this);
4916
4894
  },
4917
4895
  toSeq: function() {
4918
- return It(this) ? this.toIndexedSeq() : W(this) ? this.toKeyedSeq() : this.toSetSeq();
4896
+ return It(this) ? this.toIndexedSeq() : B(this) ? this.toKeyedSeq() : this.toSetSeq();
4919
4897
  },
4920
4898
  toStack: function() {
4921
- return Mn(W(this) ? this.valueSeq() : this);
4899
+ return Mn(B(this) ? this.valueSeq() : this);
4922
4900
  },
4923
4901
  toList: function() {
4924
- return Or(W(this) ? this.valueSeq() : this);
4902
+ return Or(B(this) ? this.valueSeq() : this);
4925
4903
  },
4926
4904
  // ### Common JavaScript methods and properties
4927
4905
  toString: function() {
@@ -4933,7 +4911,7 @@ Gt(nt, {
4933
4911
  // ### ES6 Collection methods (ES6 Array and Map)
4934
4912
  concat: function() {
4935
4913
  for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
4936
- return L(this, Ks(this, t));
4914
+ return V(this, Qs(this, t));
4937
4915
  },
4938
4916
  includes: function(t) {
4939
4917
  return this.some(function(e) {
@@ -4952,10 +4930,10 @@ Gt(nt, {
4952
4930
  }), r;
4953
4931
  },
4954
4932
  filter: function(t, e) {
4955
- return L(this, Yo(this, t, e, !0));
4933
+ return V(this, Yo(this, t, e, !0));
4956
4934
  },
4957
4935
  partition: function(t, e) {
4958
- return Fs(this, t, e);
4936
+ return Hs(this, t, e);
4959
4937
  },
4960
4938
  find: function(t, e, r) {
4961
4939
  var n = this.findEntry(t, e);
@@ -4972,10 +4950,10 @@ Gt(nt, {
4972
4950
  }), e;
4973
4951
  },
4974
4952
  keys: function() {
4975
- return this.__iterator(de);
4953
+ return this.__iterator(ve);
4976
4954
  },
4977
4955
  map: function(t, e) {
4978
- return L(this, Qo(this, t, e));
4956
+ return V(this, Qo(this, t, e));
4979
4957
  },
4980
4958
  reduce: function(t, e, r) {
4981
4959
  return vo(
@@ -4998,10 +4976,10 @@ Gt(nt, {
4998
4976
  );
4999
4977
  },
5000
4978
  reverse: function() {
5001
- return L(this, gn(this, !0));
4979
+ return V(this, gn(this, !0));
5002
4980
  },
5003
4981
  slice: function(t, e) {
5004
- return L(this, mn(this, t, e, !0));
4982
+ return V(this, mn(this, t, e, !0));
5005
4983
  },
5006
4984
  some: function(t, e) {
5007
4985
  pt(this.size);
@@ -5012,7 +4990,7 @@ Gt(nt, {
5012
4990
  }), r;
5013
4991
  },
5014
4992
  sort: function(t) {
5015
- return L(this, ae(this, t));
4993
+ return V(this, ue(this, t));
5016
4994
  },
5017
4995
  values: function() {
5018
4996
  return this.__iterator(_t);
@@ -5027,12 +5005,12 @@ Gt(nt, {
5027
5005
  });
5028
5006
  },
5029
5007
  count: function(t, e) {
5030
- return ie(
5008
+ return se(
5031
5009
  t ? this.toSeq().filter(t, e) : this
5032
5010
  );
5033
5011
  },
5034
5012
  countBy: function(t, e) {
5035
- return Us(this, t, e);
5013
+ return Bs(this, t, e);
5036
5014
  },
5037
5015
  equals: function(t) {
5038
5016
  return gi(this, t);
@@ -5040,8 +5018,8 @@ Gt(nt, {
5040
5018
  entrySeq: function() {
5041
5019
  var t = this;
5042
5020
  if (t._cache)
5043
- return new se(t._cache);
5044
- var e = t.toSeq().map(ya).toIndexedSeq();
5021
+ return new ae(t._cache);
5022
+ var e = t.toSeq().map(ma).toIndexedSeq();
5045
5023
  return e.fromEntrySeq = function() {
5046
5024
  return t.toSeq();
5047
5025
  }, e;
@@ -5073,10 +5051,10 @@ Gt(nt, {
5073
5051
  return this.find(Po, null, t);
5074
5052
  },
5075
5053
  flatMap: function(t, e) {
5076
- return L(this, Js(this, t, e));
5054
+ return V(this, Ys(this, t, e));
5077
5055
  },
5078
5056
  flatten: function(t) {
5079
- return L(this, Zo(this, t, !0));
5057
+ return V(this, Zo(this, t, !0));
5080
5058
  },
5081
5059
  fromEntrySeq: function() {
5082
5060
  return new Jo(this);
@@ -5088,12 +5066,12 @@ Gt(nt, {
5088
5066
  },
5089
5067
  getIn: Si,
5090
5068
  groupBy: function(t, e) {
5091
- return Bs(this, t, e);
5069
+ return Ks(this, t, e);
5092
5070
  },
5093
5071
  has: function(t) {
5094
5072
  return this.get(t, j) !== j;
5095
5073
  },
5096
- hasIn: ma,
5074
+ hasIn: Sa,
5097
5075
  isSubset: function(t) {
5098
5076
  return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
5099
5077
  return t.includes(e);
@@ -5108,7 +5086,7 @@ Gt(nt, {
5108
5086
  });
5109
5087
  },
5110
5088
  keySeq: function() {
5111
- return this.toSeq().map(va).toIndexedSeq();
5089
+ return this.toSeq().map(ga).toIndexedSeq();
5112
5090
  },
5113
5091
  last: function(t) {
5114
5092
  return this.toSeq().reverse().first(t);
@@ -5117,19 +5095,19 @@ Gt(nt, {
5117
5095
  return this.toKeyedSeq().reverse().keyOf(t);
5118
5096
  },
5119
5097
  max: function(t) {
5120
- return Xe(this, t);
5098
+ return Ze(this, t);
5121
5099
  },
5122
5100
  maxBy: function(t, e) {
5123
- return Xe(this, e, t);
5101
+ return Ze(this, e, t);
5124
5102
  },
5125
5103
  min: function(t) {
5126
- return Xe(
5104
+ return Ze(
5127
5105
  this,
5128
5106
  t ? yo(t) : _o
5129
5107
  );
5130
5108
  },
5131
5109
  minBy: function(t, e) {
5132
- return Xe(
5110
+ return Ze(
5133
5111
  this,
5134
5112
  e ? yo(e) : _o,
5135
5113
  t
@@ -5145,13 +5123,13 @@ Gt(nt, {
5145
5123
  return t === 0 ? this : this.slice(0, -Math.max(0, t));
5146
5124
  },
5147
5125
  skipWhile: function(t, e) {
5148
- return L(this, Xo(this, t, e, !0));
5126
+ return V(this, Xo(this, t, e, !0));
5149
5127
  },
5150
5128
  skipUntil: function(t, e) {
5151
5129
  return this.skipWhile(qr(t), e);
5152
5130
  },
5153
5131
  sortBy: function(t, e) {
5154
- return L(this, ae(this, e, t));
5132
+ return V(this, ue(this, e, t));
5155
5133
  },
5156
5134
  take: function(t) {
5157
5135
  return this.slice(0, Math.max(0, t));
@@ -5160,7 +5138,7 @@ Gt(nt, {
5160
5138
  return this.slice(-Math.max(0, t));
5161
5139
  },
5162
5140
  takeWhile: function(t, e) {
5163
- return L(this, Ws(this, t, e));
5141
+ return V(this, Js(this, t, e));
5164
5142
  },
5165
5143
  takeUntil: function(t, e) {
5166
5144
  return this.takeWhile(qr(t), e);
@@ -5173,7 +5151,7 @@ Gt(nt, {
5173
5151
  },
5174
5152
  // ### Hashable Object
5175
5153
  hashCode: function() {
5176
- return this.__hash || (this.__hash = wa(this));
5154
+ return this.__hash || (this.__hash = Ia(this));
5177
5155
  }
5178
5156
  // ### Internal
5179
5157
  // abstract __iterate(fn, reverse)
@@ -5183,7 +5161,7 @@ var it = nt.prototype;
5183
5161
  it[$o] = !0;
5184
5162
  it[mr] = it.values;
5185
5163
  it.toJSON = it.toArray;
5186
- it.__toStringMapper = $e;
5164
+ it.__toStringMapper = Me;
5187
5165
  it.inspect = it.toSource = function() {
5188
5166
  return this.toString();
5189
5167
  };
@@ -5192,11 +5170,11 @@ it.contains = it.includes;
5192
5170
  Gt(Et, {
5193
5171
  // ### More sequential methods
5194
5172
  flip: function() {
5195
- return L(this, Go(this));
5173
+ return V(this, Go(this));
5196
5174
  },
5197
5175
  mapEntries: function(t, e) {
5198
5176
  var r = this, n = 0;
5199
- return L(
5177
+ return V(
5200
5178
  this,
5201
5179
  this.toSeq().map(function(o, i) {
5202
5180
  return t.call(e, [i, o], n++, r);
@@ -5205,7 +5183,7 @@ Gt(Et, {
5205
5183
  },
5206
5184
  mapKeys: function(t, e) {
5207
5185
  var r = this;
5208
- return L(
5186
+ return V(
5209
5187
  this,
5210
5188
  this.toSeq().flip().map(function(n, o) {
5211
5189
  return t.call(e, n, o, r);
@@ -5218,16 +5196,16 @@ He[pr] = !0;
5218
5196
  He[mr] = it.entries;
5219
5197
  He.toJSON = Ii;
5220
5198
  He.__toStringMapper = function(t, e) {
5221
- return $e(e) + ": " + $e(t);
5199
+ return Me(e) + ": " + Me(t);
5222
5200
  };
5223
- Gt(Kt, {
5201
+ Gt(Ht, {
5224
5202
  // ### Conversion to other types
5225
5203
  toKeyedSeq: function() {
5226
5204
  return new Er(this, !1);
5227
5205
  },
5228
5206
  // ### ES6 Collection methods (ES6 Array and Map)
5229
5207
  filter: function(t, e) {
5230
- return L(this, Yo(this, t, e, !1));
5208
+ return V(this, Yo(this, t, e, !1));
5231
5209
  },
5232
5210
  findIndex: function(t, e) {
5233
5211
  var r = this.findEntry(t, e);
@@ -5242,18 +5220,18 @@ Gt(Kt, {
5242
5220
  return e === void 0 ? -1 : e;
5243
5221
  },
5244
5222
  reverse: function() {
5245
- return L(this, gn(this, !1));
5223
+ return V(this, gn(this, !1));
5246
5224
  },
5247
5225
  slice: function(t, e) {
5248
- return L(this, mn(this, t, e, !1));
5226
+ return V(this, mn(this, t, e, !1));
5249
5227
  },
5250
5228
  splice: function(t, e) {
5251
5229
  var r = arguments.length;
5252
5230
  if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
5253
5231
  return this;
5254
- t = Ue(t, t < 0 ? this.count() : this.size);
5232
+ t = Fe(t, t < 0 ? this.count() : this.size);
5255
5233
  var n = this.slice(0, t);
5256
- return L(
5234
+ return V(
5257
5235
  this,
5258
5236
  r === 1 ? n : n.concat(Dt(arguments, 2), this.slice(t + e))
5259
5237
  );
@@ -5267,7 +5245,7 @@ Gt(Kt, {
5267
5245
  return this.get(0, t);
5268
5246
  },
5269
5247
  flatten: function(t) {
5270
- return L(this, Zo(this, t, !1));
5248
+ return V(this, Zo(this, t, !1));
5271
5249
  },
5272
5250
  get: function(t, e) {
5273
5251
  return t = qt(this, t), t < 0 || this.size === 1 / 0 || this.size !== void 0 && t > this.size ? e : this.find(function(r, n) {
@@ -5278,38 +5256,38 @@ Gt(Kt, {
5278
5256
  return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
5279
5257
  },
5280
5258
  interpose: function(t) {
5281
- return L(this, Gs(this, t));
5259
+ return V(this, Xs(this, t));
5282
5260
  },
5283
5261
  interleave: function() {
5284
- var t = [this].concat(Dt(arguments)), e = Ze(this.toSeq(), kt.of, t), r = e.flatten(!0);
5285
- return e.size && (r.size = e.size * t.length), L(this, r);
5262
+ var t = [this].concat(Dt(arguments)), e = tr(this.toSeq(), kt.of, t), r = e.flatten(!0);
5263
+ return e.size && (r.size = e.size * t.length), V(this, r);
5286
5264
  },
5287
5265
  keySeq: function() {
5288
- return _a(0, this.size);
5266
+ return wa(0, this.size);
5289
5267
  },
5290
5268
  last: function(t) {
5291
5269
  return this.get(-1, t);
5292
5270
  },
5293
5271
  skipWhile: function(t, e) {
5294
- return L(this, Xo(this, t, e, !1));
5272
+ return V(this, Xo(this, t, e, !1));
5295
5273
  },
5296
5274
  zip: function() {
5297
5275
  var t = [this].concat(Dt(arguments));
5298
- return L(this, Ze(this, wo, t));
5276
+ return V(this, tr(this, wo, t));
5299
5277
  },
5300
5278
  zipAll: function() {
5301
5279
  var t = [this].concat(Dt(arguments));
5302
- return L(this, Ze(this, wo, t, !0));
5280
+ return V(this, tr(this, wo, t, !0));
5303
5281
  },
5304
5282
  zipWith: function(t) {
5305
5283
  var e = Dt(arguments);
5306
- return e[0] = this, L(this, Ze(this, t, e));
5284
+ return e[0] = this, V(this, tr(this, t, e));
5307
5285
  }
5308
5286
  });
5309
- var me = Kt.prototype;
5310
- me[hr] = !0;
5311
- me[Lt] = !0;
5312
- Gt(pe, {
5287
+ var we = Ht.prototype;
5288
+ we[hr] = !0;
5289
+ we[Vt] = !0;
5290
+ Gt(de, {
5313
5291
  // ### ES6 Collection methods (ES6 Array and Map)
5314
5292
  get: function(t, e) {
5315
5293
  return this.has(t) ? t : e;
@@ -5322,23 +5300,23 @@ Gt(pe, {
5322
5300
  return this.valueSeq();
5323
5301
  }
5324
5302
  });
5325
- var fe = pe.prototype;
5326
- fe.has = it.includes;
5327
- fe.contains = fe.includes;
5328
- fe.keys = fe.values;
5303
+ var he = de.prototype;
5304
+ he.has = it.includes;
5305
+ he.contains = he.includes;
5306
+ he.keys = he.values;
5329
5307
  Gt(Ut, He);
5330
- Gt(kt, me);
5331
- Gt(ye, fe);
5308
+ Gt(kt, we);
5309
+ Gt(_e, he);
5332
5310
  function wo() {
5333
5311
  return Dt(arguments);
5334
5312
  }
5335
5313
  function Ei(t) {
5336
- return Tn(t) && xt(t);
5314
+ return Tn(t) && Rt(t);
5337
5315
  }
5338
- var Pe = /* @__PURE__ */ (function(t) {
5316
+ var qe = /* @__PURE__ */ (function(t) {
5339
5317
  function e(r) {
5340
5318
  return r == null ? an() : Ei(r) ? r : an().withMutations(function(n) {
5341
- var o = pe(r);
5319
+ var o = de(r);
5342
5320
  pt(o.size), o.forEach(function(i) {
5343
5321
  return n.add(i);
5344
5322
  });
@@ -5352,12 +5330,12 @@ var Pe = /* @__PURE__ */ (function(t) {
5352
5330
  return this.__toString("OrderedSet {", "}");
5353
5331
  }, e;
5354
5332
  })(kr);
5355
- Pe.isOrderedSet = Ei;
5356
- var Qt = Pe.prototype;
5357
- Qt[Lt] = !0;
5358
- Qt.zip = me.zip;
5359
- Qt.zipWith = me.zipWith;
5360
- Qt.zipAll = me.zipAll;
5333
+ qe.isOrderedSet = Ei;
5334
+ var Qt = qe.prototype;
5335
+ Qt[Vt] = !0;
5336
+ Qt.zip = we.zip;
5337
+ Qt.zipWith = we.zipWith;
5338
+ Qt.zipAll = we.zipAll;
5361
5339
  Qt.__empty = an;
5362
5340
  Qt.__make = Oi;
5363
5341
  function Oi(t, e) {
@@ -5366,14 +5344,14 @@ function Oi(t, e) {
5366
5344
  }
5367
5345
  var bo;
5368
5346
  function an() {
5369
- return bo || (bo = Oi(Ie()));
5347
+ return bo || (bo = Oi(Ee()));
5370
5348
  }
5371
- function Sa(t) {
5349
+ function Oa(t) {
5372
5350
  if (Jt(t))
5373
5351
  throw new Error(
5374
5352
  "Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
5375
5353
  );
5376
- if (Rt(t))
5354
+ if (Ct(t))
5377
5355
  throw new Error(
5378
5356
  "Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead."
5379
5357
  );
@@ -5384,7 +5362,7 @@ function Sa(t) {
5384
5362
  }
5385
5363
  var tt = function(t, e) {
5386
5364
  var r;
5387
- Sa(t);
5365
+ Oa(t);
5388
5366
  var n = function(i) {
5389
5367
  var s = this;
5390
5368
  if (i instanceof n)
@@ -5399,7 +5377,7 @@ var tt = function(t, e) {
5399
5377
  var l = a[c];
5400
5378
  u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
5401
5379
  "Cannot define " + qn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
5402
- ) : Ia(o, l);
5380
+ ) : ka(o, l);
5403
5381
  }
5404
5382
  }
5405
5383
  return this.__ownerID = void 0, this._values = Or().withMutations(function(f) {
@@ -5407,19 +5385,19 @@ var tt = function(t, e) {
5407
5385
  f.set(s._indices[d], h === s._defaultValues[d] ? void 0 : h);
5408
5386
  });
5409
5387
  }), this;
5410
- }, o = n.prototype = Object.create(B);
5388
+ }, o = n.prototype = Object.create(F);
5411
5389
  return o.constructor = n, e && (n.displayName = e), n;
5412
5390
  };
5413
5391
  tt.prototype.toString = function() {
5414
5392
  for (var t = qn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
5415
- r = e[n], t += (n ? ", " : "") + r + ": " + $e(this.get(r));
5393
+ r = e[n], t += (n ? ", " : "") + r + ": " + Me(this.get(r));
5416
5394
  return t + " }";
5417
5395
  };
5418
5396
  tt.prototype.equals = function(t) {
5419
- return this === t || Jt(t) && he(this).equals(he(t));
5397
+ return this === t || Jt(t) && pe(this).equals(pe(t));
5420
5398
  };
5421
5399
  tt.prototype.hashCode = function() {
5422
- return he(this).hashCode();
5400
+ return pe(this).hashCode();
5423
5401
  };
5424
5402
  tt.prototype.has = function(t) {
5425
5403
  return this._indices.hasOwnProperty(t);
@@ -5452,7 +5430,7 @@ tt.prototype.wasAltered = function() {
5452
5430
  return this._values.wasAltered();
5453
5431
  };
5454
5432
  tt.prototype.toSeq = function() {
5455
- return he(this);
5433
+ return pe(this);
5456
5434
  };
5457
5435
  tt.prototype.toJS = function() {
5458
5436
  return vr(this);
@@ -5461,10 +5439,10 @@ tt.prototype.entries = function() {
5461
5439
  return this.__iterator(gt);
5462
5440
  };
5463
5441
  tt.prototype.__iterator = function(t, e) {
5464
- return he(this).__iterator(t, e);
5442
+ return pe(this).__iterator(t, e);
5465
5443
  };
5466
5444
  tt.prototype.__iterate = function(t, e) {
5467
- return he(this).__iterate(t, e);
5445
+ return pe(this).__iterate(t, e);
5468
5446
  };
5469
5447
  tt.prototype.__ensureOwner = function(t) {
5470
5448
  if (t === this.__ownerID)
@@ -5474,27 +5452,27 @@ tt.prototype.__ensureOwner = function(t) {
5474
5452
  };
5475
5453
  tt.isRecord = Jt;
5476
5454
  tt.getDescriptiveName = qn;
5477
- var B = tt.prototype;
5478
- B[Vo] = !0;
5479
- B[Ve] = B.remove;
5480
- B.deleteIn = B.removeIn = jn;
5481
- B.getIn = Si;
5482
- B.hasIn = it.hasIn;
5483
- B.merge = ri;
5484
- B.mergeWith = ni;
5485
- B.mergeIn = On;
5486
- B.mergeDeep = ii;
5487
- B.mergeDeepWith = si;
5488
- B.mergeDeepIn = En;
5489
- B.setIn = kn;
5490
- B.update = Dn;
5491
- B.updateIn = An;
5492
- B.withMutations = We;
5493
- B.asMutable = Fe;
5494
- B.asImmutable = Be;
5495
- B[mr] = B.entries;
5496
- B.toJSON = B.toObject = it.toObject;
5497
- B.inspect = B.toSource = function() {
5455
+ var F = tt.prototype;
5456
+ F[Lo] = !0;
5457
+ F[Ue] = F.remove;
5458
+ F.deleteIn = F.removeIn = xn;
5459
+ F.getIn = Si;
5460
+ F.hasIn = it.hasIn;
5461
+ F.merge = ri;
5462
+ F.mergeWith = ni;
5463
+ F.mergeIn = On;
5464
+ F.mergeDeep = ii;
5465
+ F.mergeDeepWith = si;
5466
+ F.mergeDeepIn = En;
5467
+ F.setIn = kn;
5468
+ F.update = Dn;
5469
+ F.updateIn = An;
5470
+ F.withMutations = Ke;
5471
+ F.asMutable = Be;
5472
+ F.asImmutable = We;
5473
+ F[mr] = F.entries;
5474
+ F.toJSON = F.toObject = it.toObject;
5475
+ F.inspect = F.toSource = function() {
5498
5476
  return this.toString();
5499
5477
  };
5500
5478
  function Pn(t, e, r) {
@@ -5504,48 +5482,48 @@ function Pn(t, e, r) {
5504
5482
  function qn(t) {
5505
5483
  return t.constructor.displayName || t.constructor.name || "Record";
5506
5484
  }
5507
- function he(t) {
5485
+ function pe(t) {
5508
5486
  return yn(t._keys.map(function(e) {
5509
5487
  return [e, t.get(e)];
5510
5488
  }));
5511
5489
  }
5512
- function Ia(t, e) {
5490
+ function ka(t, e) {
5513
5491
  try {
5514
5492
  Object.defineProperty(t, e, {
5515
5493
  get: function() {
5516
5494
  return this.get(e);
5517
5495
  },
5518
5496
  set: function(r) {
5519
- Ae(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
5497
+ ze(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
5520
5498
  }
5521
5499
  });
5522
5500
  } catch {
5523
5501
  }
5524
5502
  }
5525
5503
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5526
- function Ea(t, e) {
5504
+ function Da(t, e) {
5527
5505
  return un() ? (cn(t, e), !0) : !1;
5528
5506
  }
5529
5507
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5530
- const Oa = () => {
5508
+ const Aa = () => {
5531
5509
  };
5532
- function ka(...t) {
5533
- if (t.length !== 1) return Wt(...t);
5510
+ function za(...t) {
5511
+ if (t.length !== 1) return Bt(...t);
5534
5512
  const e = t[0];
5535
5513
  return typeof e == "function" ? gr(ln(() => ({
5536
5514
  get: e,
5537
- set: Oa
5538
- }))) : x(e);
5515
+ set: Aa
5516
+ }))) : z(e);
5539
5517
  }
5540
- function Vr(t) {
5518
+ function Lr(t) {
5541
5519
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5542
5520
  }
5543
5521
  const Ur = /* @__PURE__ */ new WeakMap();
5544
- function Da(t, e = !1) {
5522
+ function Ra(t, e = !1) {
5545
5523
  const r = Le(e);
5546
5524
  let n = "";
5547
- ot(ka(t), (s) => {
5548
- const a = Vr(St(s));
5525
+ ot(za(t), (s) => {
5526
+ const a = Lr(St(s));
5549
5527
  if (a) {
5550
5528
  const u = a;
5551
5529
  if (Ur.get(u) || Ur.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
@@ -5553,13 +5531,13 @@ function Da(t, e = !1) {
5553
5531
  }
5554
5532
  }, { immediate: !0 });
5555
5533
  const o = () => {
5556
- const s = Vr(St(t));
5534
+ const s = Lr(St(t));
5557
5535
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
5558
5536
  }, i = () => {
5559
- const s = Vr(St(t));
5537
+ const s = Lr(St(t));
5560
5538
  !s || !r.value || (s.style.overflow = n, Ur.delete(s), r.value = !1);
5561
5539
  };
5562
- return Ea(i), C({
5540
+ return Da(i), N({
5563
5541
  get() {
5564
5542
  return r.value;
5565
5543
  },
@@ -5568,60 +5546,60 @@ function Da(t, e = !1) {
5568
5546
  }
5569
5547
  });
5570
5548
  }
5571
- function Aa() {
5549
+ function Ca() {
5572
5550
  let t = !1;
5573
5551
  const e = Le(!1);
5574
5552
  return (r, n) => {
5575
5553
  if (e.value = n.value, t) return;
5576
5554
  t = !0;
5577
- const o = Da(r, n.value);
5555
+ const o = Ra(r, n.value);
5578
5556
  ot(e, (i) => o.value = i);
5579
5557
  };
5580
5558
  }
5581
- Aa();
5582
- const za = (t, e) => {
5559
+ Ca();
5560
+ const Na = (t, e) => {
5583
5561
  const r = t.__vccOpts || t;
5584
5562
  for (const [n, o] of e)
5585
5563
  r[n] = o;
5586
5564
  return r;
5587
5565
  };
5588
- function xa(t, e) {
5566
+ function ja(t, e) {
5589
5567
  return un() ? (cn(t, e), !0) : !1;
5590
5568
  }
5591
5569
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5592
- const Ra = () => {
5570
+ const xa = () => {
5593
5571
  };
5594
- function Na(...t) {
5595
- if (t.length !== 1) return Wt(...t);
5572
+ function $a(...t) {
5573
+ if (t.length !== 1) return Bt(...t);
5596
5574
  const e = t[0];
5597
5575
  return typeof e == "function" ? gr(ln(() => ({
5598
5576
  get: e,
5599
- set: Ra
5600
- }))) : x(e);
5577
+ set: xa
5578
+ }))) : z(e);
5601
5579
  }
5602
- function Br(t) {
5580
+ function Fr(t) {
5603
5581
  return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
5604
5582
  }
5605
- const Fr = /* @__PURE__ */ new WeakMap();
5606
- function Ca(t, e = !1) {
5583
+ const Wr = /* @__PURE__ */ new WeakMap();
5584
+ function Ma(t, e = !1) {
5607
5585
  const r = Le(e);
5608
5586
  let n = "";
5609
- ot(Na(t), (s) => {
5610
- const a = Br(St(s));
5587
+ ot($a(t), (s) => {
5588
+ const a = Fr(St(s));
5611
5589
  if (a) {
5612
5590
  const u = a;
5613
- if (Fr.get(u) || Fr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5591
+ if (Wr.get(u) || Wr.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return r.value = !0;
5614
5592
  if (r.value) return u.style.overflow = "hidden";
5615
5593
  }
5616
5594
  }, { immediate: !0 });
5617
5595
  const o = () => {
5618
- const s = Br(St(t));
5596
+ const s = Fr(St(t));
5619
5597
  !s || r.value || (s.style.overflow = "hidden", r.value = !0);
5620
5598
  }, i = () => {
5621
- const s = Br(St(t));
5622
- !s || !r.value || (s.style.overflow = n, Fr.delete(s), r.value = !1);
5599
+ const s = Fr(St(t));
5600
+ !s || !r.value || (s.style.overflow = n, Wr.delete(s), r.value = !1);
5623
5601
  };
5624
- return xa(i), C({
5602
+ return ja(i), N({
5625
5603
  get() {
5626
5604
  return r.value;
5627
5605
  },
@@ -5630,25 +5608,25 @@ function Ca(t, e = !1) {
5630
5608
  }
5631
5609
  });
5632
5610
  }
5633
- function ja() {
5611
+ function Ta() {
5634
5612
  let t = !1;
5635
5613
  const e = Le(!1);
5636
5614
  return (r, n) => {
5637
5615
  if (e.value = n.value, t) return;
5638
5616
  t = !0;
5639
- const o = Ca(r, n.value);
5617
+ const o = Ma(r, n.value);
5640
5618
  ot(e, (i) => o.value = i);
5641
5619
  };
5642
5620
  }
5643
- ja();
5621
+ Ta();
5644
5622
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5645
- const $a = { class: "aform" }, Ma = {
5623
+ const Pa = { class: "aform" }, qa = {
5646
5624
  key: 0,
5647
5625
  class: "aform-nested-section"
5648
- }, Ta = {
5626
+ }, Va = {
5649
5627
  key: 0,
5650
5628
  class: "aform-nested-label"
5651
- }, Pa = /* @__PURE__ */ qe({
5629
+ }, La = /* @__PURE__ */ Ve({
5652
5630
  __name: "AForm",
5653
5631
  props: /* @__PURE__ */ Un({
5654
5632
  schema: {},
@@ -5659,7 +5637,7 @@ const $a = { class: "aform" }, Ma = {
5659
5637
  }),
5660
5638
  emits: /* @__PURE__ */ Un(["update:schema", "update:data"], ["update:data"]),
5661
5639
  setup(t, { emit: e }) {
5662
- const r = e, n = Ni(t, "data"), o = x({});
5640
+ const r = e, n = Ni(t, "data"), o = z({});
5663
5641
  ot(
5664
5642
  () => n.value,
5665
5643
  (f) => {
@@ -5680,13 +5658,13 @@ const $a = { class: "aform" }, Ma = {
5680
5658
  (!d || Array.isArray(d) && d.length === 0) && (h.rows = n.value[f.fieldname] || []);
5681
5659
  }
5682
5660
  return h;
5683
- }, a = C(() => t.mode ?? "edit");
5661
+ }, a = N(() => t.mode ?? "edit");
5684
5662
  function u(f) {
5685
5663
  return f.mode || a.value;
5686
5664
  }
5687
- const c = x([]);
5688
- Ci(() => {
5689
- t.schema && c.value.length !== t.schema.length && (c.value = t.schema.map((f, h) => C({
5665
+ const c = z([]);
5666
+ ji(() => {
5667
+ t.schema && c.value.length !== t.schema.length && (c.value = t.schema.map((f, h) => N({
5690
5668
  get() {
5691
5669
  return n.value?.[t.schema[h].fieldname];
5692
5670
  },
@@ -5696,23 +5674,23 @@ const $a = { class: "aform" }, Ma = {
5696
5674
  }
5697
5675
  })));
5698
5676
  });
5699
- const l = C(() => c.value);
5700
- return (f, h) => (T(), U("form", $a, [
5701
- (T(!0), U(re, null, xe(t.schema, (d, y) => (T(), U(re, { key: y }, [
5702
- "schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (T(), U("div", Ma, [
5703
- d.label && !("collapsible" in d) ? (T(), U("h4", Ta, At(d.label), 1)) : te("", !0),
5704
- (T(), ar(Vn(d.component ?? "AForm"), {
5677
+ const l = N(() => c.value);
5678
+ return (f, h) => (M(), U("form", Pa, [
5679
+ (M(!0), U(ne, null, Ce(t.schema, (d, y) => (M(), U(ne, { key: y }, [
5680
+ "schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", qa, [
5681
+ d.label && !("collapsible" in d) ? (M(), U("h4", Va, At(d.label), 1)) : ee("", !0),
5682
+ (M(), ar(Ln(d.component ?? "AForm"), {
5705
5683
  data: o.value[d.fieldname],
5706
5684
  mode: u(d),
5707
5685
  schema: d.schema,
5708
5686
  label: d.label,
5709
5687
  collapsible: d.collapsible,
5710
- "onUpdate:data": (g) => i(d.fieldname, g)
5688
+ "onUpdate:data": (m) => i(d.fieldname, m)
5711
5689
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
5712
- ])) : (T(), ar(Vn(d.component), ji({
5690
+ ])) : (M(), ar(Ln(d.component), xi({
5713
5691
  key: 1,
5714
5692
  modelValue: l.value[y].value,
5715
- "onUpdate:modelValue": (g) => l.value[y].value = g,
5693
+ "onUpdate:modelValue": (m) => l.value[y].value = m,
5716
5694
  schema: d,
5717
5695
  data: n.value[d.fieldname],
5718
5696
  mode: u(d)
@@ -5720,16 +5698,16 @@ const $a = { class: "aform" }, Ma = {
5720
5698
  ], 64))), 128))
5721
5699
  ]));
5722
5700
  }
5723
- }), qa = /* @__PURE__ */ za(Pa, [["__scopeId", "data-v-976e189b"]]), La = { class: "tabs" }, Va = { tabindex: "0" }, Ua = { tabindex: "0" }, Ba = /* @__PURE__ */ qe({
5701
+ }), Ua = /* @__PURE__ */ Na(La, [["__scopeId", "data-v-976e189b"]]), Fa = { class: "tabs" }, Wa = { tabindex: "0" }, Ba = { tabindex: "0" }, Ka = /* @__PURE__ */ Ve({
5724
5702
  __name: "SheetNav",
5725
5703
  props: {
5726
5704
  breadcrumbs: { default: () => [] }
5727
5705
  },
5728
5706
  setup(t) {
5729
- const e = x(!0), r = x(!1), n = x(""), o = So("searchinput"), i = C(() => e.value ? "unrotated" : "rotated"), s = () => {
5707
+ const e = z(!0), r = z(!1), n = z(""), o = So("searchinput"), i = N(() => e.value ? "unrotated" : "rotated"), s = () => {
5730
5708
  e.value = !e.value;
5731
5709
  }, a = async () => {
5732
- r.value = !r.value, await ne(() => {
5710
+ r.value = !r.value, await oe(() => {
5733
5711
  o.value?.focus();
5734
5712
  });
5735
5713
  }, u = (f) => {
@@ -5740,31 +5718,31 @@ const $a = { class: "aform" }, Ma = {
5740
5718
  };
5741
5719
  return (f, h) => {
5742
5720
  const d = $i("router-link");
5743
- return T(), U("footer", null, [
5744
- M("ul", La, [
5745
- M("li", {
5721
+ return M(), U("footer", null, [
5722
+ $("ul", Fa, [
5723
+ $("li", {
5746
5724
  class: "hidebreadcrumbs",
5747
5725
  onClick: s,
5748
- onKeydown: we(s, ["enter"])
5726
+ onKeydown: be(s, ["enter"])
5749
5727
  }, [
5750
- M("a", Va, [
5751
- M("div", {
5752
- class: ir(i.value)
5728
+ $("a", Wa, [
5729
+ $("div", {
5730
+ class: te(i.value)
5753
5731
  }, "×", 2)
5754
5732
  ])
5755
5733
  ], 32),
5756
- M("li", {
5734
+ $("li", {
5757
5735
  class: "hometab",
5758
- style: xr({ display: e.value ? "block" : "none" }),
5736
+ style: Rr({ display: e.value ? "block" : "none" }),
5759
5737
  onClick: l,
5760
- onKeydown: we(l, ["enter"])
5738
+ onKeydown: be(l, ["enter"])
5761
5739
  }, [
5762
- ee(d, {
5740
+ re(d, {
5763
5741
  to: "/",
5764
5742
  tabindex: "0"
5765
5743
  }, {
5766
- default: Re(() => [...h[5] || (h[5] = [
5767
- M("svg", {
5744
+ default: Ne(() => [...h[5] || (h[5] = [
5745
+ $("svg", {
5768
5746
  class: "icon",
5769
5747
  "aria-label": "Home",
5770
5748
  viewBox: "0 0 24 24",
@@ -5772,19 +5750,19 @@ const $a = { class: "aform" }, Ma = {
5772
5750
  stroke: "currentColor",
5773
5751
  "stroke-width": "2"
5774
5752
  }, [
5775
- M("path", { d: "M3 12l9-9 9 9" }),
5776
- M("path", { d: "M9 21V12h6v9" })
5753
+ $("path", { d: "M3 12l9-9 9 9" }),
5754
+ $("path", { d: "M9 21V12h6v9" })
5777
5755
  ], -1)
5778
5756
  ])]),
5779
5757
  _: 1
5780
5758
  })
5781
5759
  ], 36),
5782
- M("li", {
5783
- class: ir(["searchtab", { "search-active": r.value }]),
5784
- style: xr({ display: e.value ? "block" : "none" })
5760
+ $("li", {
5761
+ class: te(["searchtab", { "search-active": r.value }]),
5762
+ style: Rr({ display: e.value ? "block" : "none" })
5785
5763
  }, [
5786
- M("a", Ua, [
5787
- sr((T(), U("svg", {
5764
+ $("a", Ba, [
5765
+ sr((M(), U("svg", {
5788
5766
  class: "icon search-icon",
5789
5767
  role: "button",
5790
5768
  "aria-label": "Search",
@@ -5793,18 +5771,18 @@ const $a = { class: "aform" }, Ma = {
5793
5771
  stroke: "currentColor",
5794
5772
  "stroke-width": "2",
5795
5773
  onClick: a,
5796
- onKeydown: we(a, ["enter"])
5774
+ onKeydown: be(a, ["enter"])
5797
5775
  }, [...h[6] || (h[6] = [
5798
- M("circle", {
5776
+ $("circle", {
5799
5777
  cx: "11",
5800
5778
  cy: "11",
5801
5779
  r: "7"
5802
5780
  }, null, -1),
5803
- M("path", { d: "M21 21l-4.35-4.35" }, null, -1)
5781
+ $("path", { d: "M21 21l-4.35-4.35" }, null, -1)
5804
5782
  ])], 544)), [
5805
- [Wr, !r.value]
5783
+ [Br, !r.value]
5806
5784
  ]),
5807
- sr(M("input", {
5785
+ sr($("input", {
5808
5786
  ref: "searchinput",
5809
5787
  "onUpdate:modelValue": h[0] || (h[0] = (y) => n.value = y),
5810
5788
  type: "text",
@@ -5814,24 +5792,24 @@ const $a = { class: "aform" }, Ma = {
5814
5792
  onInput: h[2] || (h[2] = (y) => u(y)),
5815
5793
  onBlur: h[3] || (h[3] = (y) => c(y)),
5816
5794
  onKeydown: [
5817
- h[4] || (h[4] = we((y) => c(y), ["enter"])),
5818
- we(a, ["escape"])
5795
+ h[4] || (h[4] = be((y) => c(y), ["enter"])),
5796
+ be(a, ["escape"])
5819
5797
  ]
5820
5798
  }, null, 544), [
5821
- [Wr, r.value],
5799
+ [Br, r.value],
5822
5800
  [Eo, n.value]
5823
5801
  ])
5824
5802
  ])
5825
5803
  ], 6),
5826
- (T(!0), U(re, null, xe(t.breadcrumbs, (y) => (T(), U("li", {
5804
+ (M(!0), U(ne, null, Ce(t.breadcrumbs, (y) => (M(), U("li", {
5827
5805
  key: y.title,
5828
- style: xr({ display: e.value ? "block" : "none" })
5806
+ style: Rr({ display: e.value ? "block" : "none" })
5829
5807
  }, [
5830
- ee(d, {
5808
+ re(d, {
5831
5809
  tabindex: "0",
5832
5810
  to: y.to
5833
5811
  }, {
5834
- default: Re(() => [
5812
+ default: Ne(() => [
5835
5813
  ur(At(y.title), 1)
5836
5814
  ]),
5837
5815
  _: 2
@@ -5841,13 +5819,13 @@ const $a = { class: "aform" }, Ma = {
5841
5819
  ]);
5842
5820
  };
5843
5821
  }
5844
- }), ki = /* @__PURE__ */ Ao(Ba, [["__scopeId", "data-v-eb5bcbb6"]]), Fa = {
5822
+ }), ki = /* @__PURE__ */ Ao(Ka, [["__scopeId", "data-v-eb5bcbb6"]]), Ha = {
5845
5823
  key: 1,
5846
5824
  class: "loading"
5847
- }, Wa = {
5825
+ }, Ja = {
5848
5826
  key: 2,
5849
5827
  class: "loading"
5850
- }, Ha = /* @__PURE__ */ qe({
5828
+ }, Ga = /* @__PURE__ */ Ve({
5851
5829
  __name: "Desktop",
5852
5830
  props: {
5853
5831
  availableDoctypes: {},
@@ -5857,7 +5835,7 @@ const $a = { class: "aform" }, Ma = {
5857
5835
  },
5858
5836
  emits: ["action", "navigate", "record:open", "load-records", "load-record"],
5859
5837
  setup(t, { emit: e }) {
5860
- const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Ds(), s = x(!1), a = x(!1), u = C({
5838
+ const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = Rs(), s = z(!1), a = z(!1), u = N({
5861
5839
  get() {
5862
5840
  if (!i.value || !f.value || !d.value)
5863
5841
  return {};
@@ -5871,15 +5849,15 @@ const $a = { class: "aform" }, Ma = {
5871
5849
  if (!(!i.value || !f.value || !d.value))
5872
5850
  try {
5873
5851
  const p = i.value.getStore();
5874
- for (const [w, m] of Object.entries(v)) {
5852
+ for (const [w, g] of Object.entries(v)) {
5875
5853
  const A = `${f.value}.${d.value}.${w}`;
5876
- (p.has(A) ? p.get(A) : void 0) !== m && p.set(A, m);
5854
+ (p.has(A) ? p.get(A) : void 0) !== g && p.set(A, g);
5877
5855
  }
5878
5856
  } catch (p) {
5879
5857
  console.warn("HST update failed:", p);
5880
5858
  }
5881
5859
  }
5882
- }), c = C(() => r.routeAdapter ? null : rr(i.value?.registry.router?.currentRoute)), l = C(() => r.routeAdapter ? null : i.value?.registry.router), f = C(() => {
5860
+ }), c = N(() => r.routeAdapter ? null : nr(i.value?.registry.router?.currentRoute)), l = N(() => r.routeAdapter ? null : i.value?.registry.router), f = N(() => {
5883
5861
  if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
5884
5862
  if (!c.value) return "";
5885
5863
  if (c.value.meta?.actualDoctype)
@@ -5888,7 +5866,7 @@ const $a = { class: "aform" }, Ma = {
5888
5866
  return c.value.params.doctype;
5889
5867
  const v = c.value.params.pathMatch;
5890
5868
  return v && v.length > 0 ? v[0] : "";
5891
- }), h = C(() => {
5869
+ }), h = N(() => {
5892
5870
  if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
5893
5871
  if (!c.value) return "";
5894
5872
  if (c.value.meta?.doctype)
@@ -5897,14 +5875,14 @@ const $a = { class: "aform" }, Ma = {
5897
5875
  return c.value.params.doctype;
5898
5876
  const v = c.value.params.pathMatch;
5899
5877
  return v && v.length > 0 ? v[0] : "";
5900
- }), d = C(() => {
5878
+ }), d = N(() => {
5901
5879
  if (r.routeAdapter) return r.routeAdapter.getCurrentRecordId();
5902
5880
  if (!c.value) return "";
5903
5881
  if (c.value.params.recordId)
5904
5882
  return c.value.params.recordId;
5905
5883
  const v = c.value.params.pathMatch;
5906
5884
  return v && v.length > 1 ? v[1] : "";
5907
- }), y = C(() => d.value?.startsWith("new-")), g = C(() => {
5885
+ }), y = N(() => d.value?.startsWith("new-")), m = N(() => {
5908
5886
  if (r.routeAdapter) return r.routeAdapter.getCurrentView();
5909
5887
  if (!c.value || c.value.name === "home" || c.value.path === "/")
5910
5888
  return "doctypes";
@@ -5923,24 +5901,24 @@ const $a = { class: "aform" }, Ma = {
5923
5901
  try {
5924
5902
  const v = i.value.registry.getDoctype(f.value);
5925
5903
  if (!v?.workflow) return [];
5926
- const p = i.value.getRecordState(f.value, d.value), w = v.getAvailableTransitions(p), m = u.value || {};
5927
- return w.map(({ name: A, targetState: N }) => ({
5928
- label: `${A} (→ ${N})`,
5904
+ const p = i.value.getRecordState(f.value, d.value), w = v.getAvailableTransitions(p), g = u.value || {};
5905
+ return w.map(({ name: A, targetState: C }) => ({
5906
+ label: `${A} (→ ${C})`,
5929
5907
  action: () => {
5930
5908
  n("action", {
5931
5909
  name: A,
5932
5910
  doctype: f.value,
5933
5911
  recordId: d.value,
5934
- data: m
5912
+ data: g
5935
5913
  });
5936
5914
  }
5937
5915
  }));
5938
5916
  } catch (v) {
5939
5917
  return console.warn("Error getting available transitions:", v), [];
5940
5918
  }
5941
- }, z = C(() => {
5919
+ }, T = N(() => {
5942
5920
  const v = [];
5943
- switch (g.value) {
5921
+ switch (m.value) {
5944
5922
  case "records":
5945
5923
  v.push({
5946
5924
  type: "button",
@@ -5961,14 +5939,14 @@ const $a = { class: "aform" }, Ma = {
5961
5939
  }
5962
5940
  }
5963
5941
  return v;
5964
- }), et = C(() => {
5942
+ }), rt = N(() => {
5965
5943
  const v = [];
5966
- if (g.value === "records" && h.value)
5944
+ if (m.value === "records" && h.value)
5967
5945
  v.push(
5968
5946
  { title: "Home", to: "/" },
5969
5947
  { title: X(h.value), to: `/${h.value}` }
5970
5948
  );
5971
- else if (g.value === "record" && h.value) {
5949
+ else if (m.value === "record" && h.value) {
5972
5950
  const p = d.value ? `/${h.value}/${d.value}` : c.value?.fullPath ?? "";
5973
5951
  v.push(
5974
5952
  { title: "Home", to: "/" },
@@ -5977,7 +5955,7 @@ const $a = { class: "aform" }, Ma = {
5977
5955
  );
5978
5956
  }
5979
5957
  return v;
5980
- }), st = (v) => {
5958
+ }), lt = (v) => {
5981
5959
  const p = [
5982
5960
  {
5983
5961
  title: "Go Home",
@@ -6019,7 +5997,7 @@ const $a = { class: "aform" }, Ma = {
6019
5997
  v.action(), a.value = !1;
6020
5998
  }, X = (v) => v.split("-").map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" "), mt = (v) => i.value ? i.value.getRecordIds(v).length : 0, O = async (v) => {
6021
5999
  n("navigate", v), r.routeAdapter ? await r.routeAdapter.navigate(v) : v.view === "doctypes" ? await l.value?.push("/") : v.view === "records" && v.doctype ? await l.value?.push(`/${v.doctype}`) : v.view === "record" && v.doctype && v.recordId && await l.value?.push(`/${v.doctype}/${v.recordId}`);
6022
- }, Ct = async (v) => {
6000
+ }, jt = async (v) => {
6023
6001
  await O({ view: "records", doctype: v });
6024
6002
  }, q = async (v) => {
6025
6003
  const p = h.value;
@@ -6087,7 +6065,7 @@ const $a = { class: "aform" }, Ma = {
6087
6065
  const v = k(), p = P(), w = r.recordIdField || "id";
6088
6066
  if (p.length === 0)
6089
6067
  return [];
6090
- const m = p.find((Y) => Y.fieldname === w), A = p.filter((Y) => Y.fieldname !== w), N = m ? [m, ...A] : p, Z = v.map((Y) => ({
6068
+ const g = p.find((Y) => Y.fieldname === w), A = p.filter((Y) => Y.fieldname !== w), C = g ? [g, ...A] : p, Z = v.map((Y) => ({
6091
6069
  ...Y,
6092
6070
  // Use the canonical ID field for navigation
6093
6071
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
@@ -6099,7 +6077,7 @@ const $a = { class: "aform" }, Ma = {
6099
6077
  fieldname: "records_table",
6100
6078
  component: "ATable",
6101
6079
  columns: [
6102
- ...N.map((Y) => ({
6080
+ ...C.map((Y) => ({
6103
6081
  label: Y.label,
6104
6082
  name: Y.fieldname,
6105
6083
  fieldtype: Y.fieldtype,
@@ -6142,16 +6120,16 @@ const $a = { class: "aform" }, Ma = {
6142
6120
  try {
6143
6121
  const p = i.value.registry.registry[f.value];
6144
6122
  if (p?.schema)
6145
- return ("toArray" in p.schema ? p.schema.toArray() : p.schema).map((m) => ({
6146
- fieldname: m.fieldname,
6147
- label: "label" in m && m.label || m.fieldname,
6148
- fieldtype: "fieldtype" in m && m.fieldtype || "Data"
6123
+ return ("toArray" in p.schema ? p.schema.toArray() : p.schema).map((g) => ({
6124
+ fieldname: g.fieldname,
6125
+ label: "label" in g && g.label || g.fieldname,
6126
+ fieldtype: "fieldtype" in g && g.fieldtype || "Data"
6149
6127
  }));
6150
6128
  } catch {
6151
6129
  }
6152
6130
  return [];
6153
- }, G = C(() => {
6154
- switch (g.value) {
6131
+ }, G = N(() => {
6132
+ switch (m.value) {
6155
6133
  case "doctypes":
6156
6134
  return b();
6157
6135
  case "records":
@@ -6161,9 +6139,9 @@ const $a = { class: "aform" }, Ma = {
6161
6139
  default:
6162
6140
  return [];
6163
6141
  }
6164
- }), jt = (v, p) => {
6142
+ }), xt = (v, p) => {
6165
6143
  p && p();
6166
- }, at = async (v) => {
6144
+ }, st = async (v) => {
6167
6145
  const p = v || d.value;
6168
6146
  if (!p) return;
6169
6147
  (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", {
@@ -6177,30 +6155,30 @@ const $a = { class: "aform" }, Ma = {
6177
6155
  if (!p) return null;
6178
6156
  const w = p.getAttribute("data-rowindex");
6179
6157
  if (w === null) return null;
6180
- const m = parseInt(w, 10);
6181
- if (isNaN(m)) return null;
6182
- const N = k()[m];
6183
- if (!N) return null;
6158
+ const g = parseInt(w, 10);
6159
+ if (isNaN(g)) return null;
6160
+ const C = k()[g];
6161
+ if (!C) return null;
6184
6162
  const Z = r.recordIdField || "id";
6185
- return N[Z] || N.id || null;
6163
+ return C[Z] || C.id || null;
6186
6164
  }, I = async (v) => {
6187
6165
  const p = v.target;
6188
6166
  p.getAttribute("data-action") === "create" && await S();
6189
- const m = p.closest("td, th");
6190
- if (m) {
6191
- const A = m.textContent?.trim(), N = m.closest("tr");
6192
- if (A === "View Records" && N) {
6193
- const Z = N.querySelectorAll("td");
6167
+ const g = p.closest("td, th");
6168
+ if (g) {
6169
+ const A = g.textContent?.trim(), C = g.closest("tr");
6170
+ if (A === "View Records" && C) {
6171
+ const Z = C.querySelectorAll("td");
6194
6172
  if (Z.length > 0) {
6195
- const Ke = Z[1].textContent?.trim();
6196
- Ke && await Ct(Ke);
6173
+ const Je = Z[1].textContent?.trim();
6174
+ Je && await jt(Je);
6197
6175
  }
6198
- } else if (A?.includes("Edit") && N) {
6199
- const Z = _(N);
6176
+ } else if (A?.includes("Edit") && C) {
6177
+ const Z = _(C);
6200
6178
  Z && await q(Z);
6201
- } else if (A?.includes("Delete") && N) {
6202
- const Z = _(N);
6203
- Z && await at(Z);
6179
+ } else if (A?.includes("Delete") && C) {
6180
+ const Z = _(C);
6181
+ Z && await st(Z);
6204
6182
  }
6205
6183
  }
6206
6184
  }, E = () => {
@@ -6216,16 +6194,16 @@ const $a = { class: "aform" }, Ma = {
6216
6194
  }
6217
6195
  };
6218
6196
  return ot(
6219
- [g, f, d],
6197
+ [m, f, d],
6220
6198
  () => {
6221
- g.value === "records" && f.value ? n("load-records", { doctype: f.value }) : g.value === "record" && f.value && d.value && (n("load-record", { doctype: f.value, recordId: d.value }), E());
6199
+ m.value === "records" && f.value ? n("load-records", { doctype: f.value }) : m.value === "record" && f.value && d.value && (n("load-record", { doctype: f.value, recordId: d.value }), E());
6222
6200
  },
6223
6201
  { immediate: !0 }
6224
- ), Kr("desktopMethods", {
6225
- navigateToDoctype: Ct,
6202
+ ), Hr("desktopMethods", {
6203
+ navigateToDoctype: jt,
6226
6204
  openRecord: q,
6227
6205
  createNewRecord: S,
6228
- handleDelete: at,
6206
+ handleDelete: st,
6229
6207
  /**
6230
6208
  * Convenience wrapper so child components (e.g. slot content) can emit
6231
6209
  * an action event without needing a direct reference to the emit function.
@@ -6245,52 +6223,52 @@ const $a = { class: "aform" }, Ma = {
6245
6223
  return document.addEventListener("keydown", v), () => {
6246
6224
  document.removeEventListener("keydown", v);
6247
6225
  };
6248
- }), (v, p) => (T(), U("div", {
6226
+ }), (v, p) => (M(), U("div", {
6249
6227
  class: "desktop",
6250
6228
  onClick: I
6251
6229
  }, [
6252
- ee(zo, {
6253
- elements: z.value,
6254
- onActionClick: jt
6230
+ re(zo, {
6231
+ elements: T.value,
6232
+ onActionClick: xt
6255
6233
  }, null, 8, ["elements"]),
6256
- G.value.length > 0 ? (T(), ar(rr(qa), {
6234
+ G.value.length > 0 ? (M(), ar(nr(Ua), {
6257
6235
  key: 0,
6258
6236
  data: u.value,
6259
6237
  "onUpdate:data": p[0] || (p[0] = (w) => u.value = w),
6260
6238
  schema: G.value
6261
- }, null, 8, ["data", "schema"])) : rr(i) ? (T(), U("div", Wa, [
6262
- M("p", null, "Loading " + At(g.value) + " data...", 1)
6263
- ])) : (T(), U("div", Fa, [...p[2] || (p[2] = [
6264
- M("p", null, "Initializing Stonecrop...", -1)
6239
+ }, null, 8, ["data", "schema"])) : nr(i) ? (M(), U("div", Ja, [
6240
+ $("p", null, "Loading " + At(m.value) + " data...", 1)
6241
+ ])) : (M(), U("div", Ha, [...p[2] || (p[2] = [
6242
+ $("p", null, "Initializing Stonecrop...", -1)
6265
6243
  ])])),
6266
- ee(ki, { breadcrumbs: et.value }, null, 8, ["breadcrumbs"]),
6267
- ee(xo, {
6244
+ re(ki, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
6245
+ re(Ro, {
6268
6246
  "is-open": a.value,
6269
- search: st,
6247
+ search: lt,
6270
6248
  placeholder: "Type a command or search...",
6271
6249
  onSelect: Ot,
6272
6250
  onClose: p[1] || (p[1] = (w) => a.value = !1)
6273
6251
  }, {
6274
- title: Re(({ result: w }) => [
6252
+ title: Ne(({ result: w }) => [
6275
6253
  ur(At(w.title), 1)
6276
6254
  ]),
6277
- content: Re(({ result: w }) => [
6255
+ content: Ne(({ result: w }) => [
6278
6256
  ur(At(w.description), 1)
6279
6257
  ]),
6280
6258
  _: 1
6281
6259
  }, 8, ["is-open"])
6282
6260
  ]));
6283
6261
  }
6284
- }), Ja = {
6262
+ }), Ya = {
6285
6263
  install: (t) => {
6286
- t.component("ActionSet", zo), t.component("CommandPalette", xo), t.component("Desktop", Ha), t.component("SheetNav", ki);
6264
+ t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop", Ga), t.component("SheetNav", ki);
6287
6265
  }
6288
6266
  };
6289
6267
  export {
6290
6268
  zo as ActionSet,
6291
- xo as CommandPalette,
6292
- Ha as Desktop,
6269
+ Ro as CommandPalette,
6270
+ Ga as Desktop,
6293
6271
  ki as SheetNav,
6294
- Ja as StonecropDesktop
6272
+ Ya as StonecropDesktop
6295
6273
  };
6296
6274
  //# sourceMappingURL=desktop.js.map