@stonecrop/desktop 0.4.4 → 0.4.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,18 +1,18 @@
1
- import { defineComponent as Q, ref as b, onMounted as ge, openBlock as x, createElementBlock as O, normalizeClass as de, createElementVNode as P, Fragment as fe, renderList as pe, toDisplayString as Z, createCommentVNode as ee, withDirectives as Ve, vShow as It, watch as D, computed as N, getCurrentScope as Re, onScopeDispose as Be, unref as k, toRef as ie, readonly as Sn, customRef as On, createBlock as ue, resolveDynamicComponent as Ct, mergeProps as Dt, effectScope as At, markRaw as F, inject as Tt, toRaw as $e, hasInjectionContext as Nn, getCurrentInstance as Ue, reactive as Pn, isRef as X, isReactive as Se, nextTick as he, toRefs as nt, useTemplateRef as We, normalizeStyle as G, renderSlot as re, createVNode as ot, withCtx as rt, createTextVNode as In, onBeforeUnmount as ko, resolveComponent as xo, withKeys as ze, vModelText as So } from "vue";
2
- const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io = ["onClick"], Co = { class: "dropdown-container" }, Do = { class: "dropdown" }, Ao = ["onclick"], To = ["href"], Vo = { class: "dropdown-item" }, jo = /* @__PURE__ */ Q({
1
+ import { defineComponent as q, ref as _, onMounted as ge, openBlock as x, createElementBlock as O, normalizeClass as de, createElementVNode as N, Fragment as fe, renderList as pe, toDisplayString as Z, createCommentVNode as ee, withDirectives as Te, vShow as Nt, watch as D, computed as P, getCurrentScope as Re, onScopeDispose as Be, unref as k, toRef as ie, readonly as On, customRef as Nn, createBlock as ue, resolveDynamicComponent as Pt, mergeProps as It, effectScope as Ct, markRaw as F, inject as Dt, toRaw as $e, hasInjectionContext as Pn, getCurrentInstance as Ue, reactive as In, isRef as Q, isReactive as Se, nextTick as he, toRefs as nt, useTemplateRef as We, normalizeStyle as G, renderSlot as re, createVNode as ot, withCtx as rt, createTextVNode as Cn, withModifiers as Xt, onBeforeUnmount as xo, resolveComponent as So, withKeys as ze, vModelText as Oo } from "vue";
2
+ const No = { class: "action-menu-icon" }, Po = ["onclick"], Io = { key: 1 }, Co = ["onClick"], Do = { class: "dropdown-container" }, Ao = { class: "dropdown" }, Vo = ["onclick"], To = ["href"], jo = { class: "dropdown-item" }, Lo = /* @__PURE__ */ q({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: {}
6
6
  },
7
7
  setup(e) {
8
- const t = b(e.elements), n = b(!1), o = b(null), r = b(!1), s = b(!1);
8
+ const t = _(e.elements), n = _(!1), o = _(null), r = _(!1), s = _(!1);
9
9
  ge(() => {
10
- i();
10
+ a();
11
11
  });
12
- const i = () => {
12
+ const a = () => {
13
13
  for (const u of t.value)
14
14
  u.type === "dropdown" && (u.show = !1);
15
- }, a = () => {
15
+ }, i = () => {
16
16
  r.value = !0, o.value = setTimeout(() => {
17
17
  r.value && (n.value = !0);
18
18
  }, 500);
@@ -20,19 +20,19 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
20
20
  r.value = !1, s.value = !1, clearTimeout(o.value), n.value = !1;
21
21
  }, l = (u) => {
22
22
  const d = !t.value[u].show;
23
- i(), t.value[u].show = d;
23
+ a(), t.value[u].show = d;
24
24
  };
25
25
  return (u, d) => (x(), O("div", {
26
26
  class: de([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
27
- onMouseover: a,
27
+ onMouseover: i,
28
28
  onMouseleave: c
29
29
  }, [
30
- P("div", Oo, [
31
- P("div", {
30
+ N("div", No, [
31
+ N("div", {
32
32
  id: "chevron",
33
33
  onClick: d[0] || (d[0] = (f) => s.value = !s.value)
34
34
  }, d[1] || (d[1] = [
35
- P("svg", {
35
+ N("svg", {
36
36
  class: "leftBar",
37
37
  version: "1.1",
38
38
  id: "Layer_1",
@@ -45,9 +45,9 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
45
45
  width: "50",
46
46
  height: "50"
47
47
  }, [
48
- P("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
48
+ N("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
49
49
  ], -1),
50
- P("svg", {
50
+ N("svg", {
51
51
  class: "rightBar",
52
52
  version: "1.1",
53
53
  id: "Layer_1",
@@ -60,11 +60,11 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
60
60
  width: "50",
61
61
  height: "50"
62
62
  }, [
63
- P("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
63
+ N("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
64
64
  ], -1)
65
65
  ]))
66
66
  ]),
67
- d[2] || (d[2] = P("div", { style: { "margin-right": "30px" } }, null, -1)),
67
+ d[2] || (d[2] = N("div", { style: { "margin-right": "30px" } }, null, -1)),
68
68
  (x(!0), O(fe, null, pe(t.value, (f, g) => (x(), O("div", {
69
69
  class: "action-element",
70
70
  key: f.label
@@ -73,101 +73,101 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
73
73
  key: 0,
74
74
  onclick: f.action,
75
75
  class: "button-default"
76
- }, Z(f.label), 9, No)) : ee("", !0),
77
- f.type == "dropdown" ? (x(), O("div", Po, [
78
- P("button", {
76
+ }, Z(f.label), 9, Po)) : ee("", !0),
77
+ f.type == "dropdown" ? (x(), O("div", Io, [
78
+ N("button", {
79
79
  class: "button-default",
80
- onClick: (m) => l(g)
81
- }, Z(f.label), 9, Io),
82
- Ve(P("div", Co, [
83
- P("div", Do, [
84
- (x(!0), O(fe, null, pe(f.actions, (m) => (x(), O("div", {
85
- key: m.label
80
+ onClick: (h) => l(g)
81
+ }, Z(f.label), 9, Co),
82
+ Te(N("div", Do, [
83
+ N("div", Ao, [
84
+ (x(!0), O(fe, null, pe(f.actions, (h) => (x(), O("div", {
85
+ key: h.label
86
86
  }, [
87
- m.action != null ? (x(), O("button", {
87
+ h.action != null ? (x(), O("button", {
88
88
  key: 0,
89
- onclick: m.action,
89
+ onclick: h.action,
90
90
  class: "dropdown-item"
91
- }, Z(m.label), 9, Ao)) : m.link != null ? (x(), O("a", {
91
+ }, Z(h.label), 9, Vo)) : h.link != null ? (x(), O("a", {
92
92
  key: 1,
93
- href: m.link
93
+ href: h.link
94
94
  }, [
95
- P("button", Vo, Z(m.label), 1)
95
+ N("button", jo, Z(h.label), 1)
96
96
  ], 8, To)) : ee("", !0)
97
97
  ]))), 128))
98
98
  ])
99
99
  ], 512), [
100
- [It, f.show]
100
+ [Nt, f.show]
101
101
  ])
102
102
  ])) : ee("", !0)
103
103
  ]))), 128))
104
104
  ], 34));
105
105
  }
106
- }), Vt = (e, t) => {
106
+ }), At = (e, t) => {
107
107
  const n = e.__vccOpts || e;
108
108
  for (const [o, r] of t)
109
109
  n[o] = r;
110
110
  return n;
111
- }, Mo = /* @__PURE__ */ Vt(jo, [["__scopeId", "data-v-38e7af34"]]), Lo = {};
112
- function Ro(e, t) {
111
+ }, Mo = /* @__PURE__ */ At(Lo, [["__scopeId", "data-v-38e7af34"]]), Ro = {};
112
+ function Bo(e, t) {
113
113
  return x(), O("dialog");
114
114
  }
115
- const Bo = /* @__PURE__ */ Vt(Lo, [["render", Ro]]), Uo = (e, t) => {
115
+ const Uo = /* @__PURE__ */ At(Ro, [["render", Bo]]), Wo = (e, t) => {
116
116
  const n = e.__vccOpts || e;
117
117
  for (const [o, r] of t)
118
118
  n[o] = r;
119
119
  return n;
120
120
  };
121
- function Cn(e) {
121
+ function Dn(e) {
122
122
  return Re() ? (Be(e), !0) : !1;
123
123
  }
124
124
  function Ae(e) {
125
125
  return typeof e == "function" ? e() : k(e);
126
126
  }
127
- const Dn = typeof window < "u" && typeof document < "u";
127
+ const An = typeof window < "u" && typeof document < "u";
128
128
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
129
- const Wo = Object.prototype.toString, Ho = (e) => Wo.call(e) === "[object Object]", An = () => {
130
- }, Kt = /* @__PURE__ */ Fo();
131
- function Fo() {
129
+ const Ho = Object.prototype.toString, Fo = (e) => Ho.call(e) === "[object Object]", Vn = () => {
130
+ }, Kt = /* @__PURE__ */ zo();
131
+ function zo() {
132
132
  var e, t;
133
- return Dn && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
133
+ return An && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
134
134
  }
135
- function zo(...e) {
135
+ function Jo(...e) {
136
136
  if (e.length !== 1)
137
137
  return ie(...e);
138
138
  const t = e[0];
139
- return typeof t == "function" ? Sn(On(() => ({ get: t, set: An }))) : b(t);
139
+ return typeof t == "function" ? On(Nn(() => ({ get: t, set: Vn }))) : _(t);
140
140
  }
141
- const Jo = Dn ? window : void 0;
142
- function Go(e) {
141
+ const Go = An ? window : void 0;
142
+ function Yo(e) {
143
143
  var t;
144
144
  const n = Ae(e);
145
145
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
146
146
  }
147
- function Yo(...e) {
147
+ function Qo(...e) {
148
148
  let t, n, o, r;
149
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Jo) : [t, n, o, r] = e, !t)
150
- return An;
149
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Go) : [t, n, o, r] = e, !t)
150
+ return Vn;
151
151
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
152
- const s = [], i = () => {
152
+ const s = [], a = () => {
153
153
  s.forEach((u) => u()), s.length = 0;
154
- }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
155
- () => [Go(t), Ae(r)],
154
+ }, i = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
155
+ () => [Yo(t), Ae(r)],
156
156
  ([u, d]) => {
157
- if (i(), !u)
157
+ if (a(), !u)
158
158
  return;
159
- const f = Ho(d) ? { ...d } : d;
159
+ const f = Fo(d) ? { ...d } : d;
160
160
  s.push(
161
- ...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
161
+ ...n.flatMap((g) => o.map((h) => i(u, g, h, f)))
162
162
  );
163
163
  },
164
164
  { immediate: !0, flush: "post" }
165
165
  ), l = () => {
166
- c(), i();
166
+ c(), a();
167
167
  };
168
- return Cn(l), l;
168
+ return Dn(l), l;
169
169
  }
170
- function dt(e) {
170
+ function ut(e) {
171
171
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
172
172
  }
173
173
  function Tn(e) {
@@ -179,19 +179,19 @@ function Tn(e) {
179
179
  return !n || n.tagName === "BODY" ? !1 : Tn(n);
180
180
  }
181
181
  }
182
- function Xo(e) {
182
+ function qo(e) {
183
183
  const t = e || window.event, n = t.target;
184
184
  return Tn(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
185
185
  }
186
- const ft = /* @__PURE__ */ new WeakMap();
187
- function Qo(e, t = !1) {
188
- const n = b(t);
186
+ const dt = /* @__PURE__ */ new WeakMap();
187
+ function Xo(e, t = !1) {
188
+ const n = _(t);
189
189
  let o = null, r = "";
190
- D(zo(e), (a) => {
191
- const c = dt(Ae(a));
190
+ D(Jo(e), (i) => {
191
+ const c = ut(Ae(i));
192
192
  if (c) {
193
193
  const l = c;
194
- if (ft.get(l) || ft.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
194
+ if (dt.get(l) || dt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
195
195
  return n.value = !0;
196
196
  if (n.value)
197
197
  return l.style.overflow = "hidden";
@@ -200,42 +200,42 @@ function Qo(e, t = !1) {
200
200
  immediate: !0
201
201
  });
202
202
  const s = () => {
203
- const a = dt(Ae(e));
204
- !a || n.value || (Kt && (o = Yo(
205
- a,
203
+ const i = ut(Ae(e));
204
+ !i || n.value || (Kt && (o = Qo(
205
+ i,
206
206
  "touchmove",
207
207
  (c) => {
208
- Xo(c);
208
+ qo(c);
209
209
  },
210
210
  { passive: !1 }
211
- )), a.style.overflow = "hidden", n.value = !0);
212
- }, i = () => {
213
- const a = dt(Ae(e));
214
- !a || !n.value || (Kt && (o == null || o()), a.style.overflow = r, ft.delete(a), n.value = !1);
211
+ )), i.style.overflow = "hidden", n.value = !0);
212
+ }, a = () => {
213
+ const i = ut(Ae(e));
214
+ !i || !n.value || (Kt && (o == null || o()), i.style.overflow = r, dt.delete(i), n.value = !1);
215
215
  };
216
- return Cn(i), N({
216
+ return Dn(a), P({
217
217
  get() {
218
218
  return n.value;
219
219
  },
220
- set(a) {
221
- a ? s() : i();
220
+ set(i) {
221
+ i ? s() : a();
222
222
  }
223
223
  });
224
224
  }
225
- function qo() {
225
+ function Ko() {
226
226
  let e = !1;
227
- const t = b(!1);
227
+ const t = _(!1);
228
228
  return (n, o) => {
229
229
  if (t.value = o.value, e)
230
230
  return;
231
231
  e = !0;
232
- const r = Qo(n, o.value);
232
+ const r = Xo(n, o.value);
233
233
  D(t, (s) => r.value = s);
234
234
  };
235
235
  }
236
- qo();
236
+ Ko();
237
237
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
238
- const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Q({
238
+ const Zo = { class: "aform" }, er = /* @__PURE__ */ q({
239
239
  __name: "AForm",
240
240
  props: {
241
241
  modelValue: {},
@@ -244,42 +244,42 @@ const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Q({
244
244
  },
245
245
  emits: ["update:modelValue"],
246
246
  setup(e, { emit: t }) {
247
- const n = t, o = b(e.data || {}), r = (i) => {
248
- let a = {};
249
- for (const [c, l] of Object.entries(i))
250
- ["component", "fieldtype"].includes(c) || (a[c] = l), c === "rows" && l && l.length === 0 && (a.rows = o.value[i.fieldname]);
251
- return a;
252
- }, s = N({
253
- get: () => e.modelValue.map((i, a) => N({
247
+ const n = t, o = _(e.data || {}), r = (a) => {
248
+ let i = {};
249
+ for (const [c, l] of Object.entries(a))
250
+ ["component", "fieldtype"].includes(c) || (i[c] = l), c === "rows" && l && l.length === 0 && (i.rows = o.value[a.fieldname]);
251
+ return i;
252
+ }, s = P({
253
+ get: () => e.modelValue.map((a, i) => P({
254
254
  get() {
255
- return i.value;
255
+ return a.value;
256
256
  },
257
257
  set: (c) => {
258
- e.modelValue[a].value = c, n("update:modelValue", e.modelValue);
258
+ e.modelValue[i].value = c, n("update:modelValue", e.modelValue);
259
259
  }
260
260
  })),
261
261
  set: () => {
262
262
  }
263
263
  });
264
- return (i, a) => (x(), O("form", Ko, [
265
- (x(!0), O(fe, null, pe(i.modelValue, (c, l) => (x(), ue(Ct(c.component), Dt({
264
+ return (a, i) => (x(), O("form", Zo, [
265
+ (x(!0), O(fe, null, pe(a.modelValue, (c, l) => (x(), ue(Pt(c.component), It({
266
266
  key: l,
267
267
  schema: c,
268
268
  modelValue: s.value[l].value,
269
269
  "onUpdate:modelValue": (u) => s.value[l].value = u,
270
270
  data: o.value[c.fieldname],
271
- readonly: i.readonly,
271
+ readonly: a.readonly,
272
272
  ref_for: !0
273
273
  }, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
274
274
  ]));
275
275
  }
276
- }), er = /* @__PURE__ */ Uo(Zo, [["__scopeId", "data-v-68845234"]]);
277
- var tr = Object.defineProperty, nr = (e, t, n) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, H = (e, t, n) => nr(e, typeof t != "symbol" ? t + "" : t, n);
278
- function Et(e) {
276
+ }), tr = /* @__PURE__ */ Wo(er, [["__scopeId", "data-v-68845234"]]);
277
+ var nr = Object.defineProperty, or = (e, t, n) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, H = (e, t, n) => or(e, typeof t != "symbol" ? t + "" : t, n);
278
+ function _t(e) {
279
279
  this.message = e || "";
280
280
  }
281
- Et.prototype = Object.create(Error.prototype, {
282
- constructor: { value: Et },
281
+ _t.prototype = Object.create(Error.prototype, {
282
+ constructor: { value: _t },
283
283
  name: { value: "NotImplemented" },
284
284
  stack: {
285
285
  get: function() {
@@ -287,7 +287,7 @@ Et.prototype = Object.create(Error.prototype, {
287
287
  }
288
288
  }
289
289
  });
290
- const Vn = class Xe {
290
+ const jn = class Qe {
291
291
  /**
292
292
  * @param registry - The immutable registry
293
293
  * @param store - The mutable Pinia store
@@ -303,9 +303,9 @@ const Vn = class Xe {
303
303
  * ```
304
304
  */
305
305
  constructor(t, n, o, r, s) {
306
- if (H(this, "name", "Stonecrop"), H(this, "registry"), H(this, "store"), H(this, "schema"), H(this, "workflow"), H(this, "actions"), Xe._root)
307
- return Xe._root;
308
- Xe._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
306
+ if (H(this, "name", "Stonecrop"), H(this, "registry"), H(this, "store"), H(this, "schema"), H(this, "workflow"), H(this, "actions"), Qe._root)
307
+ return Qe._root;
308
+ Qe._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
309
309
  }
310
310
  /**
311
311
  * Sets up the Stonecrop instance with the given doctype
@@ -332,7 +332,7 @@ const Vn = class Xe {
332
332
  * @see {@link DoctypeMeta}
333
333
  */
334
334
  getMeta(t) {
335
- return this.registry.getMeta ? this.registry.getMeta(t.doctype) : new Et(t.doctype);
335
+ return this.registry.getMeta ? this.registry.getMeta(t.doctype) : new _t(t.doctype);
336
336
  }
337
337
  /**
338
338
  * Gets the workflow for the given doctype
@@ -426,89 +426,89 @@ const Vn = class Xe {
426
426
  var r;
427
427
  const s = (r = this.registry.registry[t.slug].actions) == null ? void 0 : r.get(n);
428
428
  if (this.workflow) {
429
- const { initialState: i } = this.workflow;
430
- this.workflow.transition(i, { type: n }), s && s.length > 0 && s.forEach((a) => {
431
- new Function(a)(o);
429
+ const { initialState: a } = this.workflow;
430
+ this.workflow.transition(a, { type: n }), s && s.length > 0 && s.forEach((i) => {
431
+ new Function(i)(o);
432
432
  });
433
433
  }
434
434
  }
435
435
  };
436
- H(Vn, "_root");
437
- let or = Vn;
438
- var jn = !1;
436
+ H(jn, "_root");
437
+ let rr = jn;
438
+ var Ln = !1;
439
439
  function Je(e, t, n) {
440
440
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
441
441
  }
442
- function pt(e, t) {
442
+ function ft(e, t) {
443
443
  if (Array.isArray(e)) {
444
444
  e.splice(t, 1);
445
445
  return;
446
446
  }
447
447
  delete e[t];
448
448
  }
449
- function rr() {
449
+ function sr() {
450
450
  return Mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
451
451
  }
452
452
  function Mn() {
453
453
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
454
454
  }
455
- const sr = typeof Proxy == "function", ar = "devtools-plugin:setup", ir = "plugin:settings:set";
456
- let Ne, $t;
457
- function lr() {
455
+ const ar = typeof Proxy == "function", ir = "devtools-plugin:setup", lr = "plugin:settings:set";
456
+ let Ne, Et;
457
+ function cr() {
458
458
  var e;
459
- return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, $t = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ne = !0, $t = globalThis.perf_hooks.performance) : Ne = !1), Ne;
459
+ return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, Et = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ne = !0, Et = globalThis.perf_hooks.performance) : Ne = !1), Ne;
460
460
  }
461
- function cr() {
462
- return lr() ? $t.now() : Date.now();
461
+ function ur() {
462
+ return cr() ? Et.now() : Date.now();
463
463
  }
464
- class ur {
464
+ class dr {
465
465
  constructor(t, n) {
466
466
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
467
467
  const o = {};
468
468
  if (t.settings)
469
- for (const i in t.settings) {
470
- const a = t.settings[i];
471
- o[i] = a.defaultValue;
469
+ for (const a in t.settings) {
470
+ const i = t.settings[a];
471
+ o[a] = i.defaultValue;
472
472
  }
473
473
  const r = `__vue-devtools-plugin-settings__${t.id}`;
474
474
  let s = Object.assign({}, o);
475
475
  try {
476
- const i = localStorage.getItem(r), a = JSON.parse(i);
477
- Object.assign(s, a);
476
+ const a = localStorage.getItem(r), i = JSON.parse(a);
477
+ Object.assign(s, i);
478
478
  } catch {
479
479
  }
480
480
  this.fallbacks = {
481
481
  getSettings() {
482
482
  return s;
483
483
  },
484
- setSettings(i) {
484
+ setSettings(a) {
485
485
  try {
486
- localStorage.setItem(r, JSON.stringify(i));
486
+ localStorage.setItem(r, JSON.stringify(a));
487
487
  } catch {
488
488
  }
489
- s = i;
489
+ s = a;
490
490
  },
491
491
  now() {
492
- return cr();
492
+ return ur();
493
493
  }
494
- }, n && n.on(ir, (i, a) => {
495
- i === this.plugin.id && this.fallbacks.setSettings(a);
494
+ }, n && n.on(lr, (a, i) => {
495
+ a === this.plugin.id && this.fallbacks.setSettings(i);
496
496
  }), this.proxiedOn = new Proxy({}, {
497
- get: (i, a) => this.target ? this.target.on[a] : (...c) => {
497
+ get: (a, i) => this.target ? this.target.on[i] : (...c) => {
498
498
  this.onQueue.push({
499
- method: a,
499
+ method: i,
500
500
  args: c
501
501
  });
502
502
  }
503
503
  }), this.proxiedTarget = new Proxy({}, {
504
- get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...c) => (this.targetQueue.push({
505
- method: a,
504
+ get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...c) => (this.targetQueue.push({
505
+ method: i,
506
506
  args: c,
507
507
  resolve: () => {
508
508
  }
509
- }), this.fallbacks[a](...c)) : (...c) => new Promise((l) => {
509
+ }), this.fallbacks[i](...c)) : (...c) => new Promise((l) => {
510
510
  this.targetQueue.push({
511
- method: a,
511
+ method: i,
512
512
  args: c,
513
513
  resolve: l
514
514
  });
@@ -523,17 +523,17 @@ class ur {
523
523
  n.resolve(await this.target[n.method](...n.args));
524
524
  }
525
525
  }
526
- function Ln(e, t) {
527
- const n = e, o = Mn(), r = rr(), s = sr && n.enableEarlyProxy;
526
+ function Rn(e, t) {
527
+ const n = e, o = Mn(), r = sr(), s = ar && n.enableEarlyProxy;
528
528
  if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
529
- r.emit(ar, e, t);
529
+ r.emit(ir, e, t);
530
530
  else {
531
- const i = s ? new ur(n, r) : null;
531
+ const a = s ? new dr(n, r) : null;
532
532
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
533
533
  pluginDescriptor: n,
534
534
  setupFn: t,
535
- proxy: i
536
- }), i && t(i.proxiedTarget);
535
+ proxy: a
536
+ }), a && t(a.proxiedTarget);
537
537
  }
538
538
  }
539
539
  /*!
@@ -542,7 +542,7 @@ function Ln(e, t) {
542
542
  * @license MIT
543
543
  */
544
544
  let Pe;
545
- const je = (e) => Pe = e, Rn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
545
+ const je = (e) => Pe = e, Bn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
546
546
  /* istanbul ignore next */
547
547
  Symbol()
548
548
  );
@@ -554,18 +554,18 @@ var Y;
554
554
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
555
555
  })(Y || (Y = {}));
556
556
  const se = typeof window < "u", Zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
557
- function dr(e, { autoBom: t = !1 } = {}) {
557
+ function fr(e, { autoBom: t = !1 } = {}) {
558
558
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
559
559
  }
560
- function jt(e, t, n) {
560
+ function Vt(e, t, n) {
561
561
  const o = new XMLHttpRequest();
562
562
  o.open("GET", e), o.responseType = "blob", o.onload = function() {
563
- Wn(o.response, t, n);
563
+ Hn(o.response, t, n);
564
564
  }, o.onerror = function() {
565
565
  console.error("could not download file");
566
566
  }, o.send();
567
567
  }
568
- function Bn(e) {
568
+ function Un(e) {
569
569
  const t = new XMLHttpRequest();
570
570
  t.open("HEAD", e, !1);
571
571
  try {
@@ -574,7 +574,7 @@ function Bn(e) {
574
574
  }
575
575
  return t.status >= 200 && t.status <= 299;
576
576
  }
577
- function Qe(e) {
577
+ function qe(e) {
578
578
  try {
579
579
  e.dispatchEvent(new MouseEvent("click"));
580
580
  } catch {
@@ -582,102 +582,102 @@ function Qe(e) {
582
582
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
583
583
  }
584
584
  }
585
- const qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Un = /Macintosh/.test(qe.userAgent) && /AppleWebKit/.test(qe.userAgent) && !/Safari/.test(qe.userAgent), Wn = se ? (
585
+ const Xe = typeof navigator == "object" ? navigator : { userAgent: "" }, Wn = /Macintosh/.test(Xe.userAgent) && /AppleWebKit/.test(Xe.userAgent) && !/Safari/.test(Xe.userAgent), Hn = se ? (
586
586
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
587
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Un ? fr : (
587
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Wn ? pr : (
588
588
  // Use msSaveOrOpenBlob as a second approach
589
- "msSaveOrOpenBlob" in qe ? pr : (
589
+ "msSaveOrOpenBlob" in Xe ? hr : (
590
590
  // Fallback to using FileReader and a popup
591
- hr
591
+ mr
592
592
  )
593
593
  )
594
594
  ) : () => {
595
595
  };
596
- function fr(e, t = "download", n) {
596
+ function pr(e, t = "download", n) {
597
597
  const o = document.createElement("a");
598
- o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Bn(o.href) ? jt(e, t, n) : (o.target = "_blank", Qe(o)) : Qe(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
598
+ o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Un(o.href) ? Vt(e, t, n) : (o.target = "_blank", qe(o)) : qe(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
599
599
  URL.revokeObjectURL(o.href);
600
600
  }, 4e4), setTimeout(function() {
601
- Qe(o);
601
+ qe(o);
602
602
  }, 0));
603
603
  }
604
- function pr(e, t = "download", n) {
604
+ function hr(e, t = "download", n) {
605
605
  if (typeof e == "string")
606
- if (Bn(e))
607
- jt(e, t, n);
606
+ if (Un(e))
607
+ Vt(e, t, n);
608
608
  else {
609
609
  const o = document.createElement("a");
610
610
  o.href = e, o.target = "_blank", setTimeout(function() {
611
- Qe(o);
611
+ qe(o);
612
612
  });
613
613
  }
614
614
  else
615
- navigator.msSaveOrOpenBlob(dr(e, n), t);
615
+ navigator.msSaveOrOpenBlob(fr(e, n), t);
616
616
  }
617
- function hr(e, t, n, o) {
617
+ function mr(e, t, n, o) {
618
618
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
619
- return jt(e, t, n);
620
- const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Zt.HTMLElement)) || "safari" in Zt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
621
- if ((i || r && s || Un) && typeof FileReader < "u") {
622
- const a = new FileReader();
623
- a.onloadend = function() {
624
- let c = a.result;
619
+ return Vt(e, t, n);
620
+ const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Zt.HTMLElement)) || "safari" in Zt, a = /CriOS\/[\d]+/.test(navigator.userAgent);
621
+ if ((a || r && s || Wn) && typeof FileReader < "u") {
622
+ const i = new FileReader();
623
+ i.onloadend = function() {
624
+ let c = i.result;
625
625
  if (typeof c != "string")
626
626
  throw o = null, new Error("Wrong reader.result type");
627
- c = i ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location.assign(c), o = null;
628
- }, a.readAsDataURL(e);
627
+ c = a ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location.assign(c), o = null;
628
+ }, i.readAsDataURL(e);
629
629
  } else {
630
- const a = URL.createObjectURL(e);
631
- o ? o.location.assign(a) : location.href = a, o = null, setTimeout(function() {
632
- URL.revokeObjectURL(a);
630
+ const i = URL.createObjectURL(e);
631
+ o ? o.location.assign(i) : location.href = i, o = null, setTimeout(function() {
632
+ URL.revokeObjectURL(i);
633
633
  }, 4e4);
634
634
  }
635
635
  }
636
- function V(e, t) {
636
+ function T(e, t) {
637
637
  const n = "🍍 " + e;
638
638
  typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
639
639
  }
640
- function Mt(e) {
640
+ function Tt(e) {
641
641
  return "_a" in e && "install" in e;
642
642
  }
643
- function Hn() {
643
+ function Fn() {
644
644
  if (!("clipboard" in navigator))
645
- return V("Your browser doesn't support the Clipboard API", "error"), !0;
645
+ return T("Your browser doesn't support the Clipboard API", "error"), !0;
646
646
  }
647
- function Fn(e) {
648
- return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (V('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
647
+ function zn(e) {
648
+ return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (T('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
649
649
  }
650
- async function mr(e) {
651
- if (!Hn())
650
+ async function vr(e) {
651
+ if (!Fn())
652
652
  try {
653
- await navigator.clipboard.writeText(JSON.stringify(e.state.value)), V("Global state copied to clipboard.");
653
+ await navigator.clipboard.writeText(JSON.stringify(e.state.value)), T("Global state copied to clipboard.");
654
654
  } catch (t) {
655
- if (Fn(t))
655
+ if (zn(t))
656
656
  return;
657
- V("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
657
+ T("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
658
658
  }
659
659
  }
660
- async function vr(e) {
661
- if (!Hn())
660
+ async function gr(e) {
661
+ if (!Fn())
662
662
  try {
663
- zn(e, JSON.parse(await navigator.clipboard.readText())), V("Global state pasted from clipboard.");
663
+ Jn(e, JSON.parse(await navigator.clipboard.readText())), T("Global state pasted from clipboard.");
664
664
  } catch (t) {
665
- if (Fn(t))
665
+ if (zn(t))
666
666
  return;
667
- V("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
667
+ T("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
668
668
  }
669
669
  }
670
- async function gr(e) {
670
+ async function yr(e) {
671
671
  try {
672
- Wn(new Blob([JSON.stringify(e.state.value)], {
672
+ Hn(new Blob([JSON.stringify(e.state.value)], {
673
673
  type: "text/plain;charset=utf-8"
674
674
  }), "pinia-state.json");
675
675
  } catch (t) {
676
- V("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
676
+ T("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
677
677
  }
678
678
  }
679
679
  let K;
680
- function yr() {
680
+ function wr() {
681
681
  K || (K = document.createElement("input"), K.type = "file", K.accept = ".json");
682
682
  function e() {
683
683
  return new Promise((t, n) => {
@@ -692,18 +692,18 @@ function yr() {
692
692
  }
693
693
  return e;
694
694
  }
695
- async function wr(e) {
695
+ async function br(e) {
696
696
  try {
697
- const t = await yr()();
697
+ const t = await wr()();
698
698
  if (!t)
699
699
  return;
700
700
  const { text: n, file: o } = t;
701
- zn(e, JSON.parse(n)), V(`Global state imported from "${o.name}".`);
701
+ Jn(e, JSON.parse(n)), T(`Global state imported from "${o.name}".`);
702
702
  } catch (t) {
703
- V("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
703
+ T("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(t);
704
704
  }
705
705
  }
706
- function zn(e, t) {
706
+ function Jn(e, t) {
707
707
  for (const n in t) {
708
708
  const o = e.state.value[n];
709
709
  o ? Object.assign(o, t[n]) : e.state.value[n] = t[n];
@@ -716,18 +716,18 @@ function J(e) {
716
716
  }
717
717
  };
718
718
  }
719
- const Jn = "🍍 Pinia (root)", Ke = "_root";
720
- function br(e) {
721
- return Mt(e) ? {
719
+ const Gn = "🍍 Pinia (root)", Ke = "_root";
720
+ function _r(e) {
721
+ return Tt(e) ? {
722
722
  id: Ke,
723
- label: Jn
723
+ label: Gn
724
724
  } : {
725
725
  id: e.$id,
726
726
  label: e.$id
727
727
  };
728
728
  }
729
- function _r(e) {
730
- if (Mt(e)) {
729
+ function Er(e) {
730
+ if (Tt(e)) {
731
731
  const n = Array.from(e._s.keys()), o = e._s;
732
732
  return {
733
733
  state: n.map((r) => ({
@@ -740,7 +740,7 @@ function _r(e) {
740
740
  return {
741
741
  editable: !1,
742
742
  key: r,
743
- value: s._getters.reduce((i, a) => (i[a] = s[a], i), {})
743
+ value: s._getters.reduce((a, i) => (a[i] = s[i], a), {})
744
744
  };
745
745
  })
746
746
  };
@@ -762,7 +762,7 @@ function _r(e) {
762
762
  value: e[n]
763
763
  }))), t;
764
764
  }
765
- function Er(e) {
765
+ function $r(e) {
766
766
  return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
767
767
  oldValue: {},
768
768
  keys: [],
@@ -775,7 +775,7 @@ function Er(e) {
775
775
  newValue: e.newValue
776
776
  } : {};
777
777
  }
778
- function $r(e) {
778
+ function kr(e) {
779
779
  switch (e) {
780
780
  case Y.direct:
781
781
  return "mutation";
@@ -788,9 +788,9 @@ function $r(e) {
788
788
  }
789
789
  }
790
790
  let be = !0;
791
- const Ze = [], ce = "pinia:mutations", M = "pinia", { assign: kr } = Object, st = (e) => "🍍 " + e;
792
- function xr(e, t) {
793
- Ln({
791
+ const Ze = [], ce = "pinia:mutations", L = "pinia", { assign: xr } = Object, st = (e) => "🍍 " + e;
792
+ function Sr(e, t) {
793
+ Rn({
794
794
  id: "dev.esm.pinia",
795
795
  label: "Pinia 🍍",
796
796
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -799,12 +799,12 @@ function xr(e, t) {
799
799
  componentStateTypes: Ze,
800
800
  app: e
801
801
  }, (n) => {
802
- typeof n.now != "function" && V("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
802
+ typeof n.now != "function" && T("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
803
803
  id: ce,
804
804
  label: "Pinia 🍍",
805
805
  color: 15064968
806
806
  }), n.addInspector({
807
- id: M,
807
+ id: L,
808
808
  label: "Pinia 🍍",
809
809
  icon: "storage",
810
810
  treeFilterPlaceholder: "Search stores",
@@ -812,28 +812,28 @@ function xr(e, t) {
812
812
  {
813
813
  icon: "content_copy",
814
814
  action: () => {
815
- mr(t);
815
+ vr(t);
816
816
  },
817
817
  tooltip: "Serialize and copy the state"
818
818
  },
819
819
  {
820
820
  icon: "content_paste",
821
821
  action: async () => {
822
- await vr(t), n.sendInspectorTree(M), n.sendInspectorState(M);
822
+ await gr(t), n.sendInspectorTree(L), n.sendInspectorState(L);
823
823
  },
824
824
  tooltip: "Replace the state with the content of your clipboard"
825
825
  },
826
826
  {
827
827
  icon: "save",
828
828
  action: () => {
829
- gr(t);
829
+ yr(t);
830
830
  },
831
831
  tooltip: "Save the state as a JSON file"
832
832
  },
833
833
  {
834
834
  icon: "folder_open",
835
835
  action: async () => {
836
- await wr(t), n.sendInspectorTree(M), n.sendInspectorState(M);
836
+ await br(t), n.sendInspectorTree(L), n.sendInspectorState(L);
837
837
  },
838
838
  tooltip: "Import the state from a JSON file"
839
839
  }
@@ -844,41 +844,41 @@ function xr(e, t) {
844
844
  tooltip: 'Reset the state (with "$reset")',
845
845
  action: (o) => {
846
846
  const r = t._s.get(o);
847
- r ? typeof r.$reset != "function" ? V(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`, "warn") : (r.$reset(), V(`Store "${o}" reset.`)) : V(`Cannot reset "${o}" store because it wasn't found.`, "warn");
847
+ r ? typeof r.$reset != "function" ? T(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`, "warn") : (r.$reset(), T(`Store "${o}" reset.`)) : T(`Cannot reset "${o}" store because it wasn't found.`, "warn");
848
848
  }
849
849
  }
850
850
  ]
851
851
  }), n.on.inspectComponent((o, r) => {
852
852
  const s = o.componentInstance && o.componentInstance.proxy;
853
853
  if (s && s._pStores) {
854
- const i = o.componentInstance.proxy._pStores;
855
- Object.values(i).forEach((a) => {
854
+ const a = o.componentInstance.proxy._pStores;
855
+ Object.values(a).forEach((i) => {
856
856
  o.instanceData.state.push({
857
- type: st(a.$id),
857
+ type: st(i.$id),
858
858
  key: "state",
859
859
  editable: !0,
860
- value: a._isOptionsAPI ? {
860
+ value: i._isOptionsAPI ? {
861
861
  _custom: {
862
- value: $e(a.$state),
862
+ value: $e(i.$state),
863
863
  actions: [
864
864
  {
865
865
  icon: "restore",
866
866
  tooltip: "Reset the state of this store",
867
- action: () => a.$reset()
867
+ action: () => i.$reset()
868
868
  }
869
869
  ]
870
870
  }
871
871
  } : (
872
872
  // NOTE: workaround to unwrap transferred refs
873
- Object.keys(a.$state).reduce((c, l) => (c[l] = a.$state[l], c), {})
873
+ Object.keys(i.$state).reduce((c, l) => (c[l] = i.$state[l], c), {})
874
874
  )
875
- }), a._getters && a._getters.length && o.instanceData.state.push({
876
- type: st(a.$id),
875
+ }), i._getters && i._getters.length && o.instanceData.state.push({
876
+ type: st(i.$id),
877
877
  key: "getters",
878
878
  editable: !1,
879
- value: a._getters.reduce((c, l) => {
879
+ value: i._getters.reduce((c, l) => {
880
880
  try {
881
- c[l] = a[l];
881
+ c[l] = i[l];
882
882
  } catch (u) {
883
883
  c[l] = u;
884
884
  }
@@ -888,42 +888,42 @@ function xr(e, t) {
888
888
  });
889
889
  }
890
890
  }), n.on.getInspectorTree((o) => {
891
- if (o.app === e && o.inspectorId === M) {
891
+ if (o.app === e && o.inspectorId === L) {
892
892
  let r = [t];
893
- r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Jn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(br);
893
+ r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Gn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(_r);
894
894
  }
895
895
  }), globalThis.$pinia = t, n.on.getInspectorState((o) => {
896
- if (o.app === e && o.inspectorId === M) {
896
+ if (o.app === e && o.inspectorId === L) {
897
897
  const r = o.nodeId === Ke ? t : t._s.get(o.nodeId);
898
898
  if (!r)
899
899
  return;
900
- r && (o.nodeId !== Ke && (globalThis.$store = $e(r)), o.state = _r(r));
900
+ r && (o.nodeId !== Ke && (globalThis.$store = $e(r)), o.state = Er(r));
901
901
  }
902
902
  }), n.on.editInspectorState((o, r) => {
903
- if (o.app === e && o.inspectorId === M) {
903
+ if (o.app === e && o.inspectorId === L) {
904
904
  const s = o.nodeId === Ke ? t : t._s.get(o.nodeId);
905
905
  if (!s)
906
- return V(`store "${o.nodeId}" not found`, "error");
907
- const { path: i } = o;
908
- Mt(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), be = !1, o.set(s, i, o.state.value), be = !0;
906
+ return T(`store "${o.nodeId}" not found`, "error");
907
+ const { path: a } = o;
908
+ Tt(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), be = !1, o.set(s, a, o.state.value), be = !0;
909
909
  }
910
910
  }), n.on.editComponentState((o) => {
911
911
  if (o.type.startsWith("🍍")) {
912
912
  const r = o.type.replace(/^🍍\s*/, ""), s = t._s.get(r);
913
913
  if (!s)
914
- return V(`store "${r}" not found`, "error");
915
- const { path: i } = o;
916
- if (i[0] !== "state")
917
- return V(`Invalid path for store "${r}":
918
- ${i}
914
+ return T(`store "${r}" not found`, "error");
915
+ const { path: a } = o;
916
+ if (a[0] !== "state")
917
+ return T(`Invalid path for store "${r}":
918
+ ${a}
919
919
  Only state can be modified.`);
920
- i[0] = "$state", be = !1, o.set(s, i, o.state.value), be = !0;
920
+ a[0] = "$state", be = !1, o.set(s, a, o.state.value), be = !0;
921
921
  }
922
922
  });
923
923
  });
924
924
  }
925
- function Sr(e, t) {
926
- Ze.includes(st(t.$id)) || Ze.push(st(t.$id)), Ln({
925
+ function Or(e, t) {
926
+ Ze.includes(st(t.$id)) || Ze.push(st(t.$id)), Rn({
927
927
  id: "dev.esm.pinia",
928
928
  label: "Pinia 🍍",
929
929
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -945,8 +945,8 @@ function Sr(e, t) {
945
945
  }
946
946
  }, (n) => {
947
947
  const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
948
- t.$onAction(({ after: i, onError: a, name: c, args: l }) => {
949
- const u = Gn++;
948
+ t.$onAction(({ after: a, onError: i, name: c, args: l }) => {
949
+ const u = Yn++;
950
950
  n.addTimelineEvent({
951
951
  layerId: ce,
952
952
  event: {
@@ -960,7 +960,7 @@ function Sr(e, t) {
960
960
  },
961
961
  groupId: u
962
962
  }
963
- }), i((d) => {
963
+ }), a((d) => {
964
964
  ae = void 0, n.addTimelineEvent({
965
965
  layerId: ce,
966
966
  event: {
@@ -976,7 +976,7 @@ function Sr(e, t) {
976
976
  groupId: u
977
977
  }
978
978
  });
979
- }), a((d) => {
979
+ }), i((d) => {
980
980
  ae = void 0, n.addTimelineEvent({
981
981
  layerId: ce,
982
982
  event: {
@@ -994,37 +994,37 @@ function Sr(e, t) {
994
994
  }
995
995
  });
996
996
  });
997
- }, !0), t._customProperties.forEach((i) => {
998
- D(() => k(t[i]), (a, c) => {
999
- n.notifyComponentUpdate(), n.sendInspectorState(M), be && n.addTimelineEvent({
997
+ }, !0), t._customProperties.forEach((a) => {
998
+ D(() => k(t[a]), (i, c) => {
999
+ n.notifyComponentUpdate(), n.sendInspectorState(L), be && n.addTimelineEvent({
1000
1000
  layerId: ce,
1001
1001
  event: {
1002
1002
  time: o(),
1003
1003
  title: "Change",
1004
- subtitle: i,
1004
+ subtitle: a,
1005
1005
  data: {
1006
- newValue: a,
1006
+ newValue: i,
1007
1007
  oldValue: c
1008
1008
  },
1009
1009
  groupId: ae
1010
1010
  }
1011
1011
  });
1012
1012
  }, { deep: !0 });
1013
- }), t.$subscribe(({ events: i, type: a }, c) => {
1014
- if (n.notifyComponentUpdate(), n.sendInspectorState(M), !be)
1013
+ }), t.$subscribe(({ events: a, type: i }, c) => {
1014
+ if (n.notifyComponentUpdate(), n.sendInspectorState(L), !be)
1015
1015
  return;
1016
1016
  const l = {
1017
1017
  time: o(),
1018
- title: $r(a),
1019
- data: kr({ store: J(t.$id) }, Er(i)),
1018
+ title: kr(i),
1019
+ data: xr({ store: J(t.$id) }, $r(a)),
1020
1020
  groupId: ae
1021
1021
  };
1022
- a === Y.patchFunction ? l.subtitle = "⤵️" : a === Y.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
1022
+ i === Y.patchFunction ? l.subtitle = "⤵️" : i === Y.patchObject ? l.subtitle = "🧩" : a && !Array.isArray(a) && (l.subtitle = a.type), a && (l.data["rawEvent(s)"] = {
1023
1023
  _custom: {
1024
1024
  display: "DebuggerEvent",
1025
1025
  type: "object",
1026
1026
  tooltip: "raw DebuggerEvent[]",
1027
- value: i
1027
+ value: a
1028
1028
  }
1029
1029
  }), n.addTimelineEvent({
1030
1030
  layerId: ce,
@@ -1032,8 +1032,8 @@ function Sr(e, t) {
1032
1032
  });
1033
1033
  }, { detached: !0, flush: "sync" });
1034
1034
  const r = t._hotUpdate;
1035
- t._hotUpdate = F((i) => {
1036
- r(i), n.addTimelineEvent({
1035
+ t._hotUpdate = F((a) => {
1036
+ r(a), n.addTimelineEvent({
1037
1037
  layerId: ce,
1038
1038
  event: {
1039
1039
  time: o(),
@@ -1044,20 +1044,20 @@ function Sr(e, t) {
1044
1044
  info: J("HMR update")
1045
1045
  }
1046
1046
  }
1047
- }), n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M);
1047
+ }), n.notifyComponentUpdate(), n.sendInspectorTree(L), n.sendInspectorState(L);
1048
1048
  });
1049
1049
  const { $dispose: s } = t;
1050
1050
  t.$dispose = () => {
1051
- s(), n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M), n.getSettings().logStoreChanges && V(`Disposed "${t.$id}" store 🗑`);
1052
- }, n.notifyComponentUpdate(), n.sendInspectorTree(M), n.sendInspectorState(M), n.getSettings().logStoreChanges && V(`"${t.$id}" store installed 🆕`);
1051
+ s(), n.notifyComponentUpdate(), n.sendInspectorTree(L), n.sendInspectorState(L), n.getSettings().logStoreChanges && T(`Disposed "${t.$id}" store 🗑`);
1052
+ }, n.notifyComponentUpdate(), n.sendInspectorTree(L), n.sendInspectorState(L), n.getSettings().logStoreChanges && T(`"${t.$id}" store installed 🆕`);
1053
1053
  });
1054
1054
  }
1055
- let Gn = 0, ae;
1055
+ let Yn = 0, ae;
1056
1056
  function en(e, t, n) {
1057
1057
  const o = t.reduce((r, s) => (r[s] = $e(e)[s], r), {});
1058
1058
  for (const r in o)
1059
1059
  e[r] = function() {
1060
- const s = Gn, i = n ? new Proxy(e, {
1060
+ const s = Yn, a = n ? new Proxy(e, {
1061
1061
  get(...c) {
1062
1062
  return ae = s, Reflect.get(...c);
1063
1063
  },
@@ -1066,11 +1066,11 @@ function en(e, t, n) {
1066
1066
  }
1067
1067
  }) : e;
1068
1068
  ae = s;
1069
- const a = o[r].apply(i, arguments);
1070
- return ae = void 0, a;
1069
+ const i = o[r].apply(a, arguments);
1070
+ return ae = void 0, i;
1071
1071
  };
1072
1072
  }
1073
- function Or({ app: e, store: t, options: n }) {
1073
+ function Nr({ app: e, store: t, options: n }) {
1074
1074
  if (!t.$id.startsWith("__hot:")) {
1075
1075
  if (t._isOptionsAPI = !!n.state, !t._p._testing) {
1076
1076
  en(t, Object.keys(n.actions), t._isOptionsAPI);
@@ -1079,22 +1079,22 @@ function Or({ app: e, store: t, options: n }) {
1079
1079
  o.apply(this, arguments), en(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
1080
1080
  };
1081
1081
  }
1082
- Sr(
1082
+ Or(
1083
1083
  e,
1084
1084
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
1085
1085
  t
1086
1086
  );
1087
1087
  }
1088
1088
  }
1089
- function Nr() {
1090
- const e = At(!0), t = e.run(() => b({}));
1089
+ function Pr() {
1090
+ const e = Ct(!0), t = e.run(() => _({}));
1091
1091
  let n = [], o = [];
1092
1092
  const r = F({
1093
1093
  install(s) {
1094
- je(r), r._a = s, s.provide(Rn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && xr(s, r), o.forEach((i) => n.push(i)), o = [];
1094
+ je(r), r._a = s, s.provide(Bn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && Sr(s, r), o.forEach((a) => n.push(a)), o = [];
1095
1095
  },
1096
1096
  use(s) {
1097
- return !this._a && !jn ? o.push(s) : n.push(s), this;
1097
+ return !this._a && !Ln ? o.push(s) : n.push(s), this;
1098
1098
  },
1099
1099
  _p: n,
1100
1100
  // it's actually undefined here
@@ -1104,21 +1104,21 @@ function Nr() {
1104
1104
  _s: /* @__PURE__ */ new Map(),
1105
1105
  state: t
1106
1106
  });
1107
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && typeof Proxy < "u" && r.use(Or), r;
1107
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se && typeof Proxy < "u" && r.use(Nr), r;
1108
1108
  }
1109
- function Yn(e, t) {
1109
+ function Qn(e, t) {
1110
1110
  for (const n in t) {
1111
1111
  const o = t[n];
1112
1112
  if (!(n in e))
1113
1113
  continue;
1114
1114
  const r = e[n];
1115
- me(r) && me(o) && !X(o) && !Se(o) ? e[n] = Yn(r, o) : e[n] = o;
1115
+ me(r) && me(o) && !Q(o) && !Se(o) ? e[n] = Qn(r, o) : e[n] = o;
1116
1116
  }
1117
1117
  return e;
1118
1118
  }
1119
- const Xn = () => {
1119
+ const qn = () => {
1120
1120
  };
1121
- function tn(e, t, n, o = Xn) {
1121
+ function tn(e, t, n, o = qn) {
1122
1122
  e.push(t);
1123
1123
  const r = () => {
1124
1124
  const s = e.indexOf(t);
@@ -1131,74 +1131,74 @@ function ye(e, ...t) {
1131
1131
  n(...t);
1132
1132
  });
1133
1133
  }
1134
- const Pr = (e) => e(), nn = Symbol(), ht = Symbol();
1135
- function kt(e, t) {
1134
+ const Ir = (e) => e(), nn = Symbol(), pt = Symbol();
1135
+ function $t(e, t) {
1136
1136
  e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
1137
1137
  for (const n in t) {
1138
1138
  if (!t.hasOwnProperty(n))
1139
1139
  continue;
1140
1140
  const o = t[n], r = e[n];
1141
- me(r) && me(o) && e.hasOwnProperty(n) && !X(o) && !Se(o) ? e[n] = kt(r, o) : e[n] = o;
1141
+ me(r) && me(o) && e.hasOwnProperty(n) && !Q(o) && !Se(o) ? e[n] = $t(r, o) : e[n] = o;
1142
1142
  }
1143
1143
  return e;
1144
1144
  }
1145
- const Ir = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1145
+ const Cr = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1146
1146
  /* istanbul ignore next */
1147
1147
  Symbol()
1148
1148
  );
1149
- function Cr(e) {
1150
- return !me(e) || !e.hasOwnProperty(Ir);
1149
+ function Dr(e) {
1150
+ return !me(e) || !e.hasOwnProperty(Cr);
1151
1151
  }
1152
1152
  const { assign: U } = Object;
1153
1153
  function on(e) {
1154
- return !!(X(e) && e.effect);
1154
+ return !!(Q(e) && e.effect);
1155
1155
  }
1156
1156
  function rn(e, t, n, o) {
1157
- const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
1157
+ const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
1158
1158
  let c;
1159
1159
  function l() {
1160
- !a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1160
+ !i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1161
1161
  const u = process.env.NODE_ENV !== "production" && o ? (
1162
1162
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1163
- nt(b(r ? r() : {}).value)
1163
+ nt(_(r ? r() : {}).value)
1164
1164
  ) : nt(n.state.value[e]);
1165
- return U(u, s, Object.keys(i || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(N(() => {
1165
+ return U(u, s, Object.keys(a || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(P(() => {
1166
1166
  je(n);
1167
1167
  const g = n._s.get(e);
1168
- return i[f].call(g, g);
1168
+ return a[f].call(g, g);
1169
1169
  })), d), {}));
1170
1170
  }
1171
- return c = xt(e, l, t, n, o, !0), c;
1171
+ return c = kt(e, l, t, n, o, !0), c;
1172
1172
  }
1173
- function xt(e, t, n = {}, o, r, s) {
1174
- let i;
1175
- const a = U({ actions: {} }, n);
1173
+ function kt(e, t, n = {}, o, r, s) {
1174
+ let a;
1175
+ const i = U({ actions: {} }, n);
1176
1176
  if (process.env.NODE_ENV !== "production" && !o._e.active)
1177
1177
  throw new Error("Pinia destroyed");
1178
1178
  const c = { deep: !0 };
1179
- process.env.NODE_ENV !== "production" && !jn && (c.onTrigger = (y) => {
1180
- l ? g = y : l == !1 && !h._hotUpdating && (Array.isArray(g) ? g.push(y) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1179
+ process.env.NODE_ENV !== "production" && !Ln && (c.onTrigger = (y) => {
1180
+ l ? g = y : l == !1 && !m._hotUpdating && (Array.isArray(g) ? g.push(y) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1181
1181
  });
1182
1182
  let l, u, d = [], f = [], g;
1183
- const m = o.state.value[e];
1184
- !s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1185
- const w = b({});
1186
- let _;
1183
+ const h = o.state.value[e];
1184
+ !s && !h && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1185
+ const w = _({});
1186
+ let b;
1187
1187
  function I(y) {
1188
1188
  let p;
1189
1189
  l = u = !1, process.env.NODE_ENV !== "production" && (g = []), typeof y == "function" ? (y(o.state.value[e]), p = {
1190
1190
  type: Y.patchFunction,
1191
1191
  storeId: e,
1192
1192
  events: g
1193
- }) : (kt(o.state.value[e], y), p = {
1193
+ }) : ($t(o.state.value[e], y), p = {
1194
1194
  type: Y.patchObject,
1195
1195
  payload: y,
1196
1196
  storeId: e,
1197
1197
  events: g
1198
1198
  });
1199
- const v = _ = Symbol();
1199
+ const v = b = Symbol();
1200
1200
  he().then(() => {
1201
- _ === v && (l = !0);
1201
+ b === v && (l = !0);
1202
1202
  }), u = !0, ye(d, p, o.state.value[e]);
1203
1203
  }
1204
1204
  const S = s ? function() {
@@ -1210,40 +1210,40 @@ function xt(e, t, n = {}, o, r, s) {
1210
1210
  /* istanbul ignore next */
1211
1211
  process.env.NODE_ENV !== "production" ? () => {
1212
1212
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1213
- } : Xn
1213
+ } : qn
1214
1214
  );
1215
1215
  function j() {
1216
- i.stop(), d = [], f = [], o._s.delete(e);
1216
+ a.stop(), d = [], f = [], o._s.delete(e);
1217
1217
  }
1218
1218
  const R = (y, p = "") => {
1219
1219
  if (nn in y)
1220
- return y[ht] = p, y;
1220
+ return y[pt] = p, y;
1221
1221
  const v = function() {
1222
1222
  je(o);
1223
- const $ = Array.from(arguments), A = [], q = [];
1224
- function Oe(T) {
1225
- A.push(T);
1223
+ const $ = Array.from(arguments), A = [], X = [];
1224
+ function Oe(V) {
1225
+ A.push(V);
1226
1226
  }
1227
- function ut(T) {
1228
- q.push(T);
1227
+ function ct(V) {
1228
+ X.push(V);
1229
1229
  }
1230
1230
  ye(f, {
1231
1231
  args: $,
1232
- name: v[ht],
1233
- store: h,
1232
+ name: v[pt],
1233
+ store: m,
1234
1234
  after: Oe,
1235
- onError: ut
1235
+ onError: ct
1236
1236
  });
1237
1237
  let le;
1238
1238
  try {
1239
- le = y.apply(this && this.$id === e ? this : h, $);
1240
- } catch (T) {
1241
- throw ye(q, T), T;
1239
+ le = y.apply(this && this.$id === e ? this : m, $);
1240
+ } catch (V) {
1241
+ throw ye(X, V), V;
1242
1242
  }
1243
- return le instanceof Promise ? le.then((T) => (ye(A, T), T)).catch((T) => (ye(q, T), Promise.reject(T))) : (ye(A, le), le);
1243
+ return le instanceof Promise ? le.then((V) => (ye(A, V), V)).catch((V) => (ye(X, V), Promise.reject(V))) : (ye(A, le), le);
1244
1244
  };
1245
- return v[nn] = !0, v[ht] = p, v;
1246
- }, L = /* @__PURE__ */ F({
1245
+ return v[nn] = !0, v[pt] = p, v;
1246
+ }, M = /* @__PURE__ */ F({
1247
1247
  actions: {},
1248
1248
  getters: {},
1249
1249
  state: [],
@@ -1256,7 +1256,7 @@ function xt(e, t, n = {}, o, r, s) {
1256
1256
  $patch: I,
1257
1257
  $reset: S,
1258
1258
  $subscribe(y, p = {}) {
1259
- const v = tn(d, y, p.detached, () => $()), $ = i.run(() => D(() => o.state.value[e], (A) => {
1259
+ const v = tn(d, y, p.detached, () => $()), $ = a.run(() => D(() => o.state.value[e], (A) => {
1260
1260
  (p.flush === "sync" ? u : l) && y({
1261
1261
  storeId: e,
1262
1262
  type: Y.direct,
@@ -1266,9 +1266,9 @@ function xt(e, t, n = {}, o, r, s) {
1266
1266
  return v;
1267
1267
  },
1268
1268
  $dispose: j
1269
- }, h = Pn(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se ? U(
1269
+ }, m = In(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se ? U(
1270
1270
  {
1271
- _hmrPayload: L,
1271
+ _hmrPayload: M,
1272
1272
  _customProperties: F(/* @__PURE__ */ new Set())
1273
1273
  // devtools custom properties
1274
1274
  },
@@ -1276,22 +1276,22 @@ function xt(e, t, n = {}, o, r, s) {
1276
1276
  // must be added later
1277
1277
  // setupStore
1278
1278
  ) : C);
1279
- o._s.set(e, h);
1280
- const E = (o._a && o._a.runWithContext || Pr)(() => o._e.run(() => (i = At()).run(() => t({ action: R }))));
1279
+ o._s.set(e, m);
1280
+ const E = (o._a && o._a.runWithContext || Ir)(() => o._e.run(() => (a = Ct()).run(() => t({ action: R }))));
1281
1281
  for (const y in E) {
1282
1282
  const p = E[y];
1283
- if (X(p) && !on(p) || Se(p))
1284
- process.env.NODE_ENV !== "production" && r ? Je(w.value, y, ie(E, y)) : s || (m && Cr(p) && (X(p) ? p.value = m[y] : kt(p, m[y])), o.state.value[e][y] = p), process.env.NODE_ENV !== "production" && L.state.push(y);
1283
+ if (Q(p) && !on(p) || Se(p))
1284
+ process.env.NODE_ENV !== "production" && r ? Je(w.value, y, ie(E, y)) : s || (h && Dr(p) && (Q(p) ? p.value = h[y] : $t(p, h[y])), o.state.value[e][y] = p), process.env.NODE_ENV !== "production" && M.state.push(y);
1285
1285
  else if (typeof p == "function") {
1286
1286
  const v = process.env.NODE_ENV !== "production" && r ? p : R(p, y);
1287
- E[y] = v, process.env.NODE_ENV !== "production" && (L.actions[y] = p), a.actions[y] = p;
1288
- } else process.env.NODE_ENV !== "production" && on(p) && (L.getters[y] = s ? (
1287
+ E[y] = v, process.env.NODE_ENV !== "production" && (M.actions[y] = p), i.actions[y] = p;
1288
+ } else process.env.NODE_ENV !== "production" && on(p) && (M.getters[y] = s ? (
1289
1289
  // @ts-expect-error
1290
1290
  n.getters[y]
1291
1291
  ) : p, se && (E._getters || // @ts-expect-error: same
1292
1292
  (E._getters = F([]))).push(y));
1293
1293
  }
1294
- if (U(h, E), U($e(h), E), Object.defineProperty(h, "$state", {
1294
+ if (U(m, E), U($e(m), E), Object.defineProperty(m, "$state", {
1295
1295
  get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
1296
1296
  set: (y) => {
1297
1297
  if (process.env.NODE_ENV !== "production" && r)
@@ -1300,34 +1300,34 @@ function xt(e, t, n = {}, o, r, s) {
1300
1300
  U(p, y);
1301
1301
  });
1302
1302
  }
1303
- }), process.env.NODE_ENV !== "production" && (h._hotUpdate = F((y) => {
1304
- h._hotUpdating = !0, y._hmrPayload.state.forEach((p) => {
1305
- if (p in h.$state) {
1306
- const v = y.$state[p], $ = h.$state[p];
1307
- typeof v == "object" && me(v) && me($) ? Yn(v, $) : y.$state[p] = $;
1303
+ }), process.env.NODE_ENV !== "production" && (m._hotUpdate = F((y) => {
1304
+ m._hotUpdating = !0, y._hmrPayload.state.forEach((p) => {
1305
+ if (p in m.$state) {
1306
+ const v = y.$state[p], $ = m.$state[p];
1307
+ typeof v == "object" && me(v) && me($) ? Qn(v, $) : y.$state[p] = $;
1308
1308
  }
1309
- Je(h, p, ie(y.$state, p));
1310
- }), Object.keys(h.$state).forEach((p) => {
1311
- p in y.$state || pt(h, p);
1309
+ Je(m, p, ie(y.$state, p));
1310
+ }), Object.keys(m.$state).forEach((p) => {
1311
+ p in y.$state || ft(m, p);
1312
1312
  }), l = !1, u = !1, o.state.value[e] = ie(y._hmrPayload, "hotState"), u = !0, he().then(() => {
1313
1313
  l = !0;
1314
1314
  });
1315
1315
  for (const p in y._hmrPayload.actions) {
1316
1316
  const v = y[p];
1317
- Je(h, p, R(v, p));
1317
+ Je(m, p, R(v, p));
1318
1318
  }
1319
1319
  for (const p in y._hmrPayload.getters) {
1320
1320
  const v = y._hmrPayload.getters[p], $ = s ? (
1321
1321
  // special handling of options api
1322
- N(() => (je(o), v.call(h, h)))
1322
+ P(() => (je(o), v.call(m, m)))
1323
1323
  ) : v;
1324
- Je(h, p, $);
1324
+ Je(m, p, $);
1325
1325
  }
1326
- Object.keys(h._hmrPayload.getters).forEach((p) => {
1327
- p in y._hmrPayload.getters || pt(h, p);
1328
- }), Object.keys(h._hmrPayload.actions).forEach((p) => {
1329
- p in y._hmrPayload.actions || pt(h, p);
1330
- }), h._hmrPayload = y._hmrPayload, h._getters = y._getters, h._hotUpdating = !1;
1326
+ Object.keys(m._hmrPayload.getters).forEach((p) => {
1327
+ p in y._hmrPayload.getters || ft(m, p);
1328
+ }), Object.keys(m._hmrPayload.actions).forEach((p) => {
1329
+ p in y._hmrPayload.actions || ft(m, p);
1330
+ }), m._hmrPayload = y._hmrPayload, m._getters = y._getters, m._hotUpdating = !1;
1331
1331
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se) {
1332
1332
  const y = {
1333
1333
  writable: !0,
@@ -1336,48 +1336,48 @@ function xt(e, t, n = {}, o, r, s) {
1336
1336
  enumerable: !1
1337
1337
  };
1338
1338
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p) => {
1339
- Object.defineProperty(h, p, U({ value: h[p] }, y));
1339
+ Object.defineProperty(m, p, U({ value: m[p] }, y));
1340
1340
  });
1341
1341
  }
1342
1342
  return o._p.forEach((y) => {
1343
1343
  if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && se) {
1344
- const p = i.run(() => y({
1345
- store: h,
1344
+ const p = a.run(() => y({
1345
+ store: m,
1346
1346
  app: o._a,
1347
1347
  pinia: o,
1348
- options: a
1348
+ options: i
1349
1349
  }));
1350
- Object.keys(p || {}).forEach((v) => h._customProperties.add(v)), U(h, p);
1350
+ Object.keys(p || {}).forEach((v) => m._customProperties.add(v)), U(m, p);
1351
1351
  } else
1352
- U(h, i.run(() => y({
1353
- store: h,
1352
+ U(m, a.run(() => y({
1353
+ store: m,
1354
1354
  app: o._a,
1355
1355
  pinia: o,
1356
- options: a
1356
+ options: i
1357
1357
  })));
1358
- }), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1358
+ }), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1359
1359
  state: () => new MyClass()
1360
- Found in store "${h.$id}".`), m && s && n.hydrate && n.hydrate(h.$state, m), l = !0, u = !0, h;
1360
+ Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), l = !0, u = !0, m;
1361
1361
  }
1362
1362
  /*! #__NO_SIDE_EFFECTS__ */
1363
1363
  // @__NO_SIDE_EFFECTS__
1364
- function Dr(e, t, n) {
1364
+ function Ar(e, t, n) {
1365
1365
  let o, r;
1366
1366
  const s = typeof t == "function";
1367
1367
  o = e, r = s ? n : t;
1368
- function i(a, c) {
1369
- const l = Nn();
1370
- if (a = // in test mode, ignore the argument provided as we can always retrieve a
1368
+ function a(i, c) {
1369
+ const l = Pn();
1370
+ if (i = // in test mode, ignore the argument provided as we can always retrieve a
1371
1371
  // pinia instance with getActivePinia()
1372
- (process.env.NODE_ENV === "test" && Pe && Pe._testing ? null : a) || (l ? Tt(Rn, null) : null), a && je(a), process.env.NODE_ENV !== "production" && !Pe)
1372
+ (process.env.NODE_ENV === "test" && Pe && Pe._testing ? null : i) || (l ? Dt(Bn, null) : null), i && je(i), process.env.NODE_ENV !== "production" && !Pe)
1373
1373
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1374
1374
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1375
1375
  This will fail in production.`);
1376
- a = Pe, a._s.has(o) || (s ? xt(o, t, r, a) : rn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
1377
- const u = a._s.get(o);
1376
+ i = Pe, i._s.has(o) || (s ? kt(o, t, r, i) : rn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
1377
+ const u = i._s.get(o);
1378
1378
  if (process.env.NODE_ENV !== "production" && c) {
1379
- const d = "__hot:" + o, f = s ? xt(d, t, r, a, !0) : rn(d, U({}, r), a, !0);
1380
- c._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
1379
+ const d = "__hot:" + o, f = s ? kt(d, t, r, i, !0) : rn(d, U({}, r), i, !0);
1380
+ c._hotUpdate(f), delete i.state.value[d], i._s.delete(d);
1381
1381
  }
1382
1382
  if (process.env.NODE_ENV !== "production" && se) {
1383
1383
  const d = Ue();
@@ -1389,29 +1389,29 @@ This will fail in production.`);
1389
1389
  }
1390
1390
  return u;
1391
1391
  }
1392
- return i.$id = o, i;
1392
+ return a.$id = o, a;
1393
1393
  }
1394
- const Ar = /* @__PURE__ */ Dr("data", () => {
1395
- const e = b([]), t = b({});
1394
+ const Vr = /* @__PURE__ */ Ar("data", () => {
1395
+ const e = _([]), t = _({});
1396
1396
  return { records: e, record: t };
1397
1397
  });
1398
- function Qn(e) {
1399
- const t = b();
1398
+ function Xn(e) {
1399
+ const t = _();
1400
1400
  return ge(async () => {
1401
1401
  var n, o, r;
1402
- e || (e = Tt("$registry"));
1402
+ e || (e = Dt("$registry"));
1403
1403
  let s;
1404
1404
  try {
1405
- s = Ar();
1405
+ s = Vr();
1406
1406
  } catch {
1407
1407
  throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable");
1408
1408
  }
1409
- if (t.value = new or(e, s), !e || !e.router) return;
1410
- const i = e.router.currentRoute.value, a = (n = i.params.records) == null ? void 0 : n.toString().toLowerCase(), c = (o = i.params.record) == null ? void 0 : o.toString().toLowerCase();
1411
- if (!a && !c)
1409
+ if (t.value = new rr(e, s), !e || !e.router) return;
1410
+ const a = e.router.currentRoute.value, i = (n = a.params.records) == null ? void 0 : n.toString().toLowerCase(), c = (o = a.params.record) == null ? void 0 : o.toString().toLowerCase();
1411
+ if (!i && !c)
1412
1412
  return;
1413
- const l = await ((r = e.getMeta) == null ? void 0 : r.call(e, a));
1414
- l && (e.addDoctype(l), t.value.setup(l), a && (c ? await t.value.getRecord(l, c) : await t.value.getRecords(l)), t.value.runAction(l, "LOAD", c ? [c] : void 0));
1413
+ const l = await ((r = e.getMeta) == null ? void 0 : r.call(e, i));
1414
+ l && (e.addDoctype(l), t.value.setup(l), i && (c ? await t.value.getRecord(l, c) : await t.value.getRecords(l)), t.value.runAction(l, "LOAD", c ? [c] : void 0));
1415
1415
  }), { stonecrop: t };
1416
1416
  }
1417
1417
  const Tr = class et {
@@ -1435,32 +1435,32 @@ const Tr = class et {
1435
1435
  }
1436
1436
  };
1437
1437
  H(Tr, "_root");
1438
- function Vr(e) {
1438
+ function jr(e) {
1439
1439
  return e && typeof e.then == "function";
1440
1440
  }
1441
1441
  Promise.resolve(!1);
1442
1442
  Promise.resolve(!0);
1443
1443
  var ke = Promise.resolve();
1444
- function qn(e, t) {
1444
+ function Kn(e, t) {
1445
1445
  return e || (e = 0), new Promise(function(n) {
1446
1446
  return setTimeout(function() {
1447
1447
  return n(t);
1448
1448
  }, e);
1449
1449
  });
1450
1450
  }
1451
- function jr(e, t) {
1451
+ function Lr(e, t) {
1452
1452
  return Math.floor(Math.random() * (t - e + 1) + e);
1453
1453
  }
1454
- function Lt() {
1454
+ function jt() {
1455
1455
  return Math.random().toString(36).substring(2);
1456
1456
  }
1457
- var sn = 0, mt = 0;
1457
+ var sn = 0, ht = 0;
1458
1458
  function it() {
1459
1459
  var e = (/* @__PURE__ */ new Date()).getTime();
1460
- return e === sn ? (mt++, e * 1e3 + mt) : (sn = e, mt = 0, e * 1e3);
1460
+ return e === sn ? (ht++, e * 1e3 + ht) : (sn = e, ht = 0, e * 1e3);
1461
1461
  }
1462
- var Mr = it, Lr = "native";
1463
- function Rr(e) {
1462
+ var Mr = it, Rr = "native";
1463
+ function Br(e) {
1464
1464
  var t = {
1465
1465
  messagesCallback: null,
1466
1466
  bc: new BroadcastChannel(e),
@@ -1471,20 +1471,20 @@ function Rr(e) {
1471
1471
  t.messagesCallback && t.messagesCallback(n.data);
1472
1472
  }, t;
1473
1473
  }
1474
- function Br(e) {
1474
+ function Ur(e) {
1475
1475
  e.bc.close(), e.subFns = [];
1476
1476
  }
1477
- function Ur(e, t) {
1477
+ function Wr(e, t) {
1478
1478
  try {
1479
1479
  return e.bc.postMessage(t, !1), ke;
1480
1480
  } catch (n) {
1481
1481
  return Promise.reject(n);
1482
1482
  }
1483
1483
  }
1484
- function Wr(e, t) {
1484
+ function Hr(e, t) {
1485
1485
  e.messagesCallback = t;
1486
1486
  }
1487
- function Hr() {
1487
+ function Fr() {
1488
1488
  if (typeof window > "u")
1489
1489
  return !1;
1490
1490
  if (typeof BroadcastChannel == "function") {
@@ -1494,19 +1494,19 @@ function Hr() {
1494
1494
  } else
1495
1495
  return !1;
1496
1496
  }
1497
- function Fr() {
1497
+ function zr() {
1498
1498
  return 150;
1499
1499
  }
1500
- var zr = {
1501
- create: Rr,
1502
- close: Br,
1503
- onMessage: Wr,
1504
- postMessage: Ur,
1505
- canBeUsed: Hr,
1506
- type: Lr,
1507
- averageResponseTime: Fr,
1500
+ var Jr = {
1501
+ create: Br,
1502
+ close: Ur,
1503
+ onMessage: Hr,
1504
+ postMessage: Wr,
1505
+ canBeUsed: Fr,
1506
+ type: Rr,
1507
+ averageResponseTime: zr,
1508
1508
  microSeconds: Mr
1509
- }, Kn = (
1509
+ }, Zn = (
1510
1510
  /** @class */
1511
1511
  function() {
1512
1512
  function e(t) {
@@ -1516,16 +1516,16 @@ var zr = {
1516
1516
  return this.map.has(t);
1517
1517
  }, e.prototype.add = function(t) {
1518
1518
  var n = this;
1519
- this.map.set(t, Zn()), this._to || (this._to = !0, setTimeout(function() {
1520
- n._to = !1, Jr(n);
1519
+ this.map.set(t, eo()), this._to || (this._to = !0, setTimeout(function() {
1520
+ n._to = !1, Gr(n);
1521
1521
  }, 0));
1522
1522
  }, e.prototype.clear = function() {
1523
1523
  this.map.clear();
1524
1524
  }, e;
1525
1525
  }()
1526
1526
  );
1527
- function Jr(e) {
1528
- for (var t = Zn() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
1527
+ function Gr(e) {
1528
+ for (var t = eo() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
1529
1529
  var o = n.next().value;
1530
1530
  if (!o)
1531
1531
  return;
@@ -1536,17 +1536,17 @@ function Jr(e) {
1536
1536
  return;
1537
1537
  }
1538
1538
  }
1539
- function Zn() {
1539
+ function eo() {
1540
1540
  return (/* @__PURE__ */ new Date()).getTime();
1541
1541
  }
1542
- function Rt() {
1542
+ function Lt() {
1543
1543
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
1544
1544
  return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
1545
1545
  }
1546
- var Gr = it, Yr = "pubkey.broadcast-channel-0-", te = "messages", lt = {
1546
+ var Yr = it, Qr = "pubkey.broadcast-channel-0-", te = "messages", lt = {
1547
1547
  durability: "relaxed"
1548
- }, Xr = "idb";
1549
- function eo() {
1548
+ }, qr = "idb";
1549
+ function to() {
1550
1550
  if (typeof indexedDB < "u") return indexedDB;
1551
1551
  if (typeof window < "u") {
1552
1552
  if (typeof window.mozIndexedDB < "u") return window.mozIndexedDB;
@@ -1555,11 +1555,11 @@ function eo() {
1555
1555
  }
1556
1556
  return !1;
1557
1557
  }
1558
- function Bt(e) {
1558
+ function Mt(e) {
1559
1559
  e.commit && e.commit();
1560
1560
  }
1561
- function Qr(e) {
1562
- var t = eo(), n = Yr + e, o = t.open(n);
1561
+ function Xr(e) {
1562
+ var t = to(), n = Qr + e, o = t.open(n);
1563
1563
  return o.onupgradeneeded = function(r) {
1564
1564
  var s = r.target.result;
1565
1565
  s.createObjectStore(te, {
@@ -1567,42 +1567,42 @@ function Qr(e) {
1567
1567
  autoIncrement: !0
1568
1568
  });
1569
1569
  }, new Promise(function(r, s) {
1570
- o.onerror = function(i) {
1571
- return s(i);
1570
+ o.onerror = function(a) {
1571
+ return s(a);
1572
1572
  }, o.onsuccess = function() {
1573
1573
  r(o.result);
1574
1574
  };
1575
1575
  });
1576
1576
  }
1577
- function qr(e, t, n) {
1577
+ function Kr(e, t, n) {
1578
1578
  var o = (/* @__PURE__ */ new Date()).getTime(), r = {
1579
1579
  uuid: t,
1580
1580
  time: o,
1581
1581
  data: n
1582
1582
  }, s = e.transaction([te], "readwrite", lt);
1583
- return new Promise(function(i, a) {
1583
+ return new Promise(function(a, i) {
1584
1584
  s.oncomplete = function() {
1585
- return i();
1585
+ return a();
1586
1586
  }, s.onerror = function(l) {
1587
- return a(l);
1587
+ return i(l);
1588
1588
  };
1589
1589
  var c = s.objectStore(te);
1590
- c.add(r), Bt(s);
1590
+ c.add(r), Mt(s);
1591
1591
  });
1592
1592
  }
1593
- function Kr(e, t) {
1593
+ function Zr(e, t) {
1594
1594
  var n = e.transaction(te, "readonly", lt), o = n.objectStore(te), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
1595
1595
  if (o.getAll) {
1596
- var i = o.getAll(s);
1596
+ var a = o.getAll(s);
1597
1597
  return new Promise(function(c, l) {
1598
- i.onerror = function(u) {
1598
+ a.onerror = function(u) {
1599
1599
  return l(u);
1600
- }, i.onsuccess = function(u) {
1600
+ }, a.onsuccess = function(u) {
1601
1601
  c(u.target.result);
1602
1602
  };
1603
1603
  });
1604
1604
  }
1605
- function a() {
1605
+ function i() {
1606
1606
  try {
1607
1607
  return s = IDBKeyRange.bound(t + 1, 1 / 0), o.openCursor(s);
1608
1608
  } catch {
@@ -1610,62 +1610,62 @@ function Kr(e, t) {
1610
1610
  }
1611
1611
  }
1612
1612
  return new Promise(function(c, l) {
1613
- var u = a();
1613
+ var u = i();
1614
1614
  u.onerror = function(d) {
1615
1615
  return l(d);
1616
1616
  }, u.onsuccess = function(d) {
1617
1617
  var f = d.target.result;
1618
- f ? f.value.id < t + 1 ? f.continue(t + 1) : (r.push(f.value), f.continue()) : (Bt(n), c(r));
1618
+ f ? f.value.id < t + 1 ? f.continue(t + 1) : (r.push(f.value), f.continue()) : (Mt(n), c(r));
1619
1619
  };
1620
1620
  });
1621
1621
  }
1622
- function Zr(e, t) {
1622
+ function es(e, t) {
1623
1623
  if (e.closed)
1624
1624
  return Promise.resolve([]);
1625
1625
  var n = e.db.transaction(te, "readwrite", lt), o = n.objectStore(te);
1626
1626
  return Promise.all(t.map(function(r) {
1627
1627
  var s = o.delete(r);
1628
- return new Promise(function(i) {
1628
+ return new Promise(function(a) {
1629
1629
  s.onsuccess = function() {
1630
- return i();
1630
+ return a();
1631
1631
  };
1632
1632
  });
1633
1633
  }));
1634
1634
  }
1635
- function es(e, t) {
1635
+ function ts(e, t) {
1636
1636
  var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(te, "readonly", lt), r = o.objectStore(te), s = [];
1637
- return new Promise(function(i) {
1638
- r.openCursor().onsuccess = function(a) {
1639
- var c = a.target.result;
1637
+ return new Promise(function(a) {
1638
+ r.openCursor().onsuccess = function(i) {
1639
+ var c = i.target.result;
1640
1640
  if (c) {
1641
1641
  var l = c.value;
1642
- l.time < n ? (s.push(l), c.continue()) : (Bt(o), i(s));
1642
+ l.time < n ? (s.push(l), c.continue()) : (Mt(o), a(s));
1643
1643
  } else
1644
- i(s);
1644
+ a(s);
1645
1645
  };
1646
1646
  });
1647
1647
  }
1648
- function ts(e) {
1649
- return es(e.db, e.options.idb.ttl).then(function(t) {
1650
- return Zr(e, t.map(function(n) {
1648
+ function ns(e) {
1649
+ return ts(e.db, e.options.idb.ttl).then(function(t) {
1650
+ return es(e, t.map(function(n) {
1651
1651
  return n.id;
1652
1652
  }));
1653
1653
  });
1654
1654
  }
1655
- function ns(e, t) {
1656
- return t = Rt(t), Qr(e).then(function(n) {
1655
+ function os(e, t) {
1656
+ return t = Lt(t), Xr(e).then(function(n) {
1657
1657
  var o = {
1658
1658
  closed: !1,
1659
1659
  lastCursorId: 0,
1660
1660
  channelName: e,
1661
1661
  options: t,
1662
- uuid: Lt(),
1662
+ uuid: jt(),
1663
1663
  /**
1664
1664
  * emittedMessagesIds
1665
1665
  * contains all messages that have been emitted before
1666
1666
  * @type {ObliviousSet}
1667
1667
  */
1668
- eMIs: new Kn(t.idb.ttl * 2),
1668
+ eMIs: new Zn(t.idb.ttl * 2),
1669
1669
  // ensures we do not read messages in parallel
1670
1670
  writeBlockPromise: ke,
1671
1671
  messagesCallback: null,
@@ -1674,27 +1674,27 @@ function ns(e, t) {
1674
1674
  };
1675
1675
  return n.onclose = function() {
1676
1676
  o.closed = !0, t.idb.onclose && t.idb.onclose();
1677
- }, to(o), o;
1677
+ }, no(o), o;
1678
1678
  });
1679
1679
  }
1680
- function to(e) {
1681
- e.closed || no(e).then(function() {
1682
- return qn(e.options.idb.fallbackInterval);
1680
+ function no(e) {
1681
+ e.closed || oo(e).then(function() {
1682
+ return Kn(e.options.idb.fallbackInterval);
1683
1683
  }).then(function() {
1684
- return to(e);
1684
+ return no(e);
1685
1685
  });
1686
1686
  }
1687
- function os(e, t) {
1687
+ function rs(e, t) {
1688
1688
  return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
1689
1689
  }
1690
- function no(e) {
1691
- return e.closed || !e.messagesCallback ? ke : Kr(e.db, e.lastCursorId).then(function(t) {
1690
+ function oo(e) {
1691
+ return e.closed || !e.messagesCallback ? ke : Zr(e.db, e.lastCursorId).then(function(t) {
1692
1692
  var n = t.filter(function(o) {
1693
1693
  return !!o;
1694
1694
  }).map(function(o) {
1695
1695
  return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
1696
1696
  }).filter(function(o) {
1697
- return os(o, e);
1697
+ return rs(o, e);
1698
1698
  }).sort(function(o, r) {
1699
1699
  return o.time - r.time;
1700
1700
  });
@@ -1703,36 +1703,36 @@ function no(e) {
1703
1703
  }), ke;
1704
1704
  });
1705
1705
  }
1706
- function rs(e) {
1706
+ function ss(e) {
1707
1707
  e.closed = !0, e.db.close();
1708
1708
  }
1709
- function ss(e, t) {
1709
+ function as(e, t) {
1710
1710
  return e.writeBlockPromise = e.writeBlockPromise.then(function() {
1711
- return qr(e.db, e.uuid, t);
1711
+ return Kr(e.db, e.uuid, t);
1712
1712
  }).then(function() {
1713
- jr(0, 10) === 0 && ts(e);
1713
+ Lr(0, 10) === 0 && ns(e);
1714
1714
  }), e.writeBlockPromise;
1715
1715
  }
1716
- function as(e, t, n) {
1717
- e.messagesCallbackTime = n, e.messagesCallback = t, no(e);
1716
+ function is(e, t, n) {
1717
+ e.messagesCallbackTime = n, e.messagesCallback = t, oo(e);
1718
1718
  }
1719
- function is() {
1720
- return !!eo();
1719
+ function ls() {
1720
+ return !!to();
1721
1721
  }
1722
- function ls(e) {
1722
+ function cs(e) {
1723
1723
  return e.idb.fallbackInterval * 2;
1724
1724
  }
1725
- var cs = {
1726
- create: ns,
1727
- close: rs,
1728
- onMessage: as,
1729
- postMessage: ss,
1730
- canBeUsed: is,
1731
- type: Xr,
1732
- averageResponseTime: ls,
1733
- microSeconds: Gr
1734
- }, us = it, ds = "pubkey.broadcastChannel-", fs = "localstorage";
1735
- function oo() {
1725
+ var us = {
1726
+ create: os,
1727
+ close: ss,
1728
+ onMessage: is,
1729
+ postMessage: as,
1730
+ canBeUsed: ls,
1731
+ type: qr,
1732
+ averageResponseTime: cs,
1733
+ microSeconds: Yr
1734
+ }, ds = it, fs = "pubkey.broadcastChannel-", ps = "localstorage";
1735
+ function ro() {
1736
1736
  var e;
1737
1737
  if (typeof window > "u") return null;
1738
1738
  try {
@@ -1741,54 +1741,54 @@ function oo() {
1741
1741
  }
1742
1742
  return e;
1743
1743
  }
1744
- function ro(e) {
1745
- return ds + e;
1744
+ function so(e) {
1745
+ return fs + e;
1746
1746
  }
1747
- function ps(e, t) {
1747
+ function hs(e, t) {
1748
1748
  return new Promise(function(n) {
1749
- qn().then(function() {
1750
- var o = ro(e.channelName), r = {
1751
- token: Lt(),
1749
+ Kn().then(function() {
1750
+ var o = so(e.channelName), r = {
1751
+ token: jt(),
1752
1752
  time: (/* @__PURE__ */ new Date()).getTime(),
1753
1753
  data: t,
1754
1754
  uuid: e.uuid
1755
1755
  }, s = JSON.stringify(r);
1756
- oo().setItem(o, s);
1757
- var i = document.createEvent("Event");
1758
- i.initEvent("storage", !0, !0), i.key = o, i.newValue = s, window.dispatchEvent(i), n();
1756
+ ro().setItem(o, s);
1757
+ var a = document.createEvent("Event");
1758
+ a.initEvent("storage", !0, !0), a.key = o, a.newValue = s, window.dispatchEvent(a), n();
1759
1759
  });
1760
1760
  });
1761
1761
  }
1762
- function hs(e, t) {
1763
- var n = ro(e), o = function(r) {
1762
+ function ms(e, t) {
1763
+ var n = so(e), o = function(r) {
1764
1764
  r.key === n && t(JSON.parse(r.newValue));
1765
1765
  };
1766
1766
  return window.addEventListener("storage", o), o;
1767
1767
  }
1768
- function ms(e) {
1768
+ function vs(e) {
1769
1769
  window.removeEventListener("storage", e);
1770
1770
  }
1771
- function vs(e, t) {
1772
- if (t = Rt(t), !so())
1771
+ function gs(e, t) {
1772
+ if (t = Lt(t), !ao())
1773
1773
  throw new Error("BroadcastChannel: localstorage cannot be used");
1774
- var n = Lt(), o = new Kn(t.localstorage.removeTimeout), r = {
1774
+ var n = jt(), o = new Zn(t.localstorage.removeTimeout), r = {
1775
1775
  channelName: e,
1776
1776
  uuid: n,
1777
1777
  eMIs: o
1778
1778
  // emittedMessagesIds
1779
1779
  };
1780
- return r.listener = hs(e, function(s) {
1780
+ return r.listener = ms(e, function(s) {
1781
1781
  r.messagesCallback && s.uuid !== n && (!s.token || o.has(s.token) || s.data.time && s.data.time < r.messagesCallbackTime || (o.add(s.token), r.messagesCallback(s.data)));
1782
1782
  }), r;
1783
1783
  }
1784
- function gs(e) {
1785
- ms(e.listener);
1784
+ function ys(e) {
1785
+ vs(e.listener);
1786
1786
  }
1787
- function ys(e, t, n) {
1787
+ function ws(e, t, n) {
1788
1788
  e.messagesCallbackTime = n, e.messagesCallback = t;
1789
1789
  }
1790
- function so() {
1791
- var e = oo();
1790
+ function ao() {
1791
+ var e = ro();
1792
1792
  if (!e) return !1;
1793
1793
  try {
1794
1794
  var t = "__broadcastchannel_check";
@@ -1798,34 +1798,34 @@ function so() {
1798
1798
  }
1799
1799
  return !0;
1800
1800
  }
1801
- function ws() {
1801
+ function bs() {
1802
1802
  var e = 120, t = navigator.userAgent.toLowerCase();
1803
1803
  return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
1804
1804
  }
1805
- var bs = {
1806
- create: vs,
1807
- close: gs,
1808
- onMessage: ys,
1809
- postMessage: ps,
1810
- canBeUsed: so,
1811
- type: fs,
1812
- averageResponseTime: ws,
1813
- microSeconds: us
1814
- }, _s = it, Es = "simulate", Ut = /* @__PURE__ */ new Set();
1815
- function $s(e) {
1805
+ var _s = {
1806
+ create: gs,
1807
+ close: ys,
1808
+ onMessage: ws,
1809
+ postMessage: hs,
1810
+ canBeUsed: ao,
1811
+ type: ps,
1812
+ averageResponseTime: bs,
1813
+ microSeconds: ds
1814
+ }, Es = it, $s = "simulate", Rt = /* @__PURE__ */ new Set();
1815
+ function ks(e) {
1816
1816
  var t = {
1817
1817
  name: e,
1818
1818
  messagesCallback: null
1819
1819
  };
1820
- return Ut.add(t), t;
1820
+ return Rt.add(t), t;
1821
1821
  }
1822
- function ks(e) {
1823
- Ut.delete(e);
1822
+ function xs(e) {
1823
+ Rt.delete(e);
1824
1824
  }
1825
- function xs(e, t) {
1825
+ function Ss(e, t) {
1826
1826
  return new Promise(function(n) {
1827
1827
  return setTimeout(function() {
1828
- var o = Array.from(Ut);
1828
+ var o = Array.from(Rt);
1829
1829
  o.filter(function(r) {
1830
1830
  return r.name === e.name;
1831
1831
  }).filter(function(r) {
@@ -1838,35 +1838,35 @@ function xs(e, t) {
1838
1838
  }, 5);
1839
1839
  });
1840
1840
  }
1841
- function Ss(e, t) {
1841
+ function Os(e, t) {
1842
1842
  e.messagesCallback = t;
1843
1843
  }
1844
- function Os() {
1844
+ function Ns() {
1845
1845
  return !0;
1846
1846
  }
1847
- function Ns() {
1847
+ function Ps() {
1848
1848
  return 5;
1849
1849
  }
1850
- var Ps = {
1851
- create: $s,
1852
- close: ks,
1853
- onMessage: Ss,
1854
- postMessage: xs,
1855
- canBeUsed: Os,
1856
- type: Es,
1857
- averageResponseTime: Ns,
1858
- microSeconds: _s
1850
+ var Is = {
1851
+ create: ks,
1852
+ close: xs,
1853
+ onMessage: Os,
1854
+ postMessage: Ss,
1855
+ canBeUsed: Ns,
1856
+ type: $s,
1857
+ averageResponseTime: Ps,
1858
+ microSeconds: Es
1859
1859
  }, an = [
1860
- zr,
1860
+ Jr,
1861
1861
  // fastest
1862
- cs,
1863
- bs
1862
+ us,
1863
+ _s
1864
1864
  ];
1865
- function Is(e) {
1865
+ function Cs(e) {
1866
1866
  var t = [].concat(e.methods, an).filter(Boolean);
1867
1867
  if (e.type) {
1868
1868
  if (e.type === "simulate")
1869
- return Ps;
1869
+ return Is;
1870
1870
  var n = t.find(function(r) {
1871
1871
  return r.type === e.type;
1872
1872
  });
@@ -1884,14 +1884,14 @@ function Is(e) {
1884
1884
  return r.type;
1885
1885
  })));
1886
1886
  }
1887
- var ao = /* @__PURE__ */ new Set(), Cs = 0, Wt = function(e, t) {
1888
- this.id = Cs++, ao.add(this), this.name = e, this.options = Rt(t), this.method = Is(this.options), this._iL = !1, this._onML = null, this._addEL = {
1887
+ var io = /* @__PURE__ */ new Set(), Ds = 0, Bt = function(e, t) {
1888
+ this.id = Ds++, io.add(this), this.name = e, this.options = Lt(t), this.method = Cs(this.options), this._iL = !1, this._onML = null, this._addEL = {
1889
1889
  message: [],
1890
1890
  internal: []
1891
- }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Ds(this);
1891
+ }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, As(this);
1892
1892
  };
1893
- Wt._pubkey = !0;
1894
- Wt.prototype = {
1893
+ Bt._pubkey = !0;
1894
+ Bt.prototype = {
1895
1895
  postMessage: function(e) {
1896
1896
  if (this.closed)
1897
1897
  throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed " + /**
@@ -1928,7 +1928,7 @@ Wt.prototype = {
1928
1928
  close: function() {
1929
1929
  var e = this;
1930
1930
  if (!this.closed) {
1931
- ao.delete(this), this.closed = !0;
1931
+ io.delete(this), this.closed = !0;
1932
1932
  var t = this._prepP ? this._prepP : ke;
1933
1933
  return this._onML = null, this._addEL.message = [], t.then(function() {
1934
1934
  return Promise.all(Array.from(e._uMP));
@@ -1955,35 +1955,35 @@ function ln(e, t, n) {
1955
1955
  data: n
1956
1956
  }, s = e._prepP ? e._prepP : ke;
1957
1957
  return s.then(function() {
1958
- var i = e.method.postMessage(e._state, r);
1959
- return e._uMP.add(i), i.catch().then(function() {
1960
- return e._uMP.delete(i);
1961
- }), i;
1958
+ var a = e.method.postMessage(e._state, r);
1959
+ return e._uMP.add(a), a.catch().then(function() {
1960
+ return e._uMP.delete(a);
1961
+ }), a;
1962
1962
  });
1963
1963
  }
1964
- function Ds(e) {
1964
+ function As(e) {
1965
1965
  var t = e.method.create(e.name, e.options);
1966
- Vr(t) ? (e._prepP = t, t.then(function(n) {
1966
+ jr(t) ? (e._prepP = t, t.then(function(n) {
1967
1967
  e._state = n;
1968
1968
  })) : e._state = t;
1969
1969
  }
1970
- function io(e) {
1970
+ function lo(e) {
1971
1971
  return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
1972
1972
  }
1973
1973
  function cn(e, t, n) {
1974
- e._addEL[t].push(n), As(e);
1974
+ e._addEL[t].push(n), Vs(e);
1975
1975
  }
1976
1976
  function un(e, t, n) {
1977
1977
  e._addEL[t] = e._addEL[t].filter(function(o) {
1978
1978
  return o !== n;
1979
1979
  }), Ts(e);
1980
1980
  }
1981
- function As(e) {
1982
- if (!e._iL && io(e)) {
1981
+ function Vs(e) {
1982
+ if (!e._iL && lo(e)) {
1983
1983
  var t = function(o) {
1984
1984
  e._addEL[o.type].forEach(function(r) {
1985
- var s = 1e5, i = r.time - s;
1986
- o.time >= i && r.fn(o.data);
1985
+ var s = 1e5, a = r.time - s;
1986
+ o.time >= a && r.fn(o.data);
1987
1987
  });
1988
1988
  }, n = e.method.microSeconds();
1989
1989
  e._prepP ? e._prepP.then(function() {
@@ -1992,13 +1992,13 @@ function As(e) {
1992
1992
  }
1993
1993
  }
1994
1994
  function Ts(e) {
1995
- if (e._iL && !io(e)) {
1995
+ if (e._iL && !lo(e)) {
1996
1996
  e._iL = !1;
1997
1997
  var t = e.method.microSeconds();
1998
1998
  e.method.onMessage(e._state, null, t);
1999
1999
  }
2000
2000
  }
2001
- let vt = class extends Error {
2001
+ let mt = class extends Error {
2002
2002
  /**
2003
2003
  * @param {string} message
2004
2004
  * @param {string[]} keys
@@ -2010,17 +2010,17 @@ let vt = class extends Error {
2010
2010
  function dn(e) {
2011
2011
  return Object(e) !== e;
2012
2012
  }
2013
- const Vs = /* @__PURE__ */ Object.getOwnPropertyNames(
2013
+ const js = /* @__PURE__ */ Object.getOwnPropertyNames(
2014
2014
  Object.prototype
2015
2015
  ).sort().join("\0");
2016
- function js(e) {
2016
+ function Ls(e) {
2017
2017
  const t = Object.getPrototypeOf(e);
2018
- return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === Vs;
2018
+ return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === js;
2019
2019
  }
2020
2020
  function Ms(e) {
2021
2021
  return Object.prototype.toString.call(e).slice(8, -1);
2022
2022
  }
2023
- function Ls(e) {
2023
+ function Rs(e) {
2024
2024
  switch (e) {
2025
2025
  case '"':
2026
2026
  return '\\"';
@@ -2051,16 +2051,16 @@ function _e(e) {
2051
2051
  let t = "", n = 0;
2052
2052
  const o = e.length;
2053
2053
  for (let r = 0; r < o; r += 1) {
2054
- const s = e[r], i = Ls(s);
2055
- i && (t += e.slice(n, r) + i, n = r + 1);
2054
+ const s = e[r], a = Rs(s);
2055
+ a && (t += e.slice(n, r) + a, n = r + 1);
2056
2056
  }
2057
2057
  return `"${n === 0 ? e : t + e.slice(n)}"`;
2058
2058
  }
2059
- const Ht = -1, lo = -2, co = -3, uo = -4, fo = -5, Ft = -6;
2059
+ const Ut = -1, co = -2, uo = -3, fo = -4, po = -5, Wt = -6;
2060
2060
  function fn(e, t) {
2061
- return Rs(JSON.parse(e));
2061
+ return Bs(JSON.parse(e));
2062
2062
  }
2063
- function Rs(e, t) {
2063
+ function Bs(e, t) {
2064
2064
  if (typeof e == "number") return r(e, !0);
2065
2065
  if (!Array.isArray(e) || e.length === 0)
2066
2066
  throw new Error("Invalid input");
@@ -2068,67 +2068,67 @@ function Rs(e, t) {
2068
2068
  /** @type {any[]} */
2069
2069
  e
2070
2070
  ), o = Array(n.length);
2071
- function r(s, i = !1) {
2072
- if (s === Ht) return;
2073
- if (s === co) return NaN;
2074
- if (s === uo) return 1 / 0;
2075
- if (s === fo) return -1 / 0;
2076
- if (s === Ft) return -0;
2077
- if (i) throw new Error("Invalid input");
2071
+ function r(s, a = !1) {
2072
+ if (s === Ut) return;
2073
+ if (s === uo) return NaN;
2074
+ if (s === fo) return 1 / 0;
2075
+ if (s === po) return -1 / 0;
2076
+ if (s === Wt) return -0;
2077
+ if (a) throw new Error("Invalid input");
2078
2078
  if (s in o) return o[s];
2079
- const a = n[s];
2080
- if (!a || typeof a != "object")
2081
- o[s] = a;
2082
- else if (Array.isArray(a))
2083
- if (typeof a[0] == "string") {
2084
- const c = a[0];
2079
+ const i = n[s];
2080
+ if (!i || typeof i != "object")
2081
+ o[s] = i;
2082
+ else if (Array.isArray(i))
2083
+ if (typeof i[0] == "string") {
2084
+ const c = i[0];
2085
2085
  switch (c) {
2086
2086
  case "Date":
2087
- o[s] = new Date(a[1]);
2087
+ o[s] = new Date(i[1]);
2088
2088
  break;
2089
2089
  case "Set":
2090
2090
  const l = /* @__PURE__ */ new Set();
2091
2091
  o[s] = l;
2092
- for (let f = 1; f < a.length; f += 1)
2093
- l.add(r(a[f]));
2092
+ for (let f = 1; f < i.length; f += 1)
2093
+ l.add(r(i[f]));
2094
2094
  break;
2095
2095
  case "Map":
2096
2096
  const u = /* @__PURE__ */ new Map();
2097
2097
  o[s] = u;
2098
- for (let f = 1; f < a.length; f += 2)
2099
- u.set(r(a[f]), r(a[f + 1]));
2098
+ for (let f = 1; f < i.length; f += 2)
2099
+ u.set(r(i[f]), r(i[f + 1]));
2100
2100
  break;
2101
2101
  case "RegExp":
2102
- o[s] = new RegExp(a[1], a[2]);
2102
+ o[s] = new RegExp(i[1], i[2]);
2103
2103
  break;
2104
2104
  case "Object":
2105
- o[s] = Object(a[1]);
2105
+ o[s] = Object(i[1]);
2106
2106
  break;
2107
2107
  case "BigInt":
2108
- o[s] = BigInt(a[1]);
2108
+ o[s] = BigInt(i[1]);
2109
2109
  break;
2110
2110
  case "null":
2111
2111
  const d = /* @__PURE__ */ Object.create(null);
2112
2112
  o[s] = d;
2113
- for (let f = 1; f < a.length; f += 2)
2114
- d[a[f]] = r(a[f + 1]);
2113
+ for (let f = 1; f < i.length; f += 2)
2114
+ d[i[f]] = r(i[f + 1]);
2115
2115
  break;
2116
2116
  default:
2117
2117
  throw new Error(`Unknown type ${c}`);
2118
2118
  }
2119
2119
  } else {
2120
- const c = new Array(a.length);
2120
+ const c = new Array(i.length);
2121
2121
  o[s] = c;
2122
- for (let l = 0; l < a.length; l += 1) {
2123
- const u = a[l];
2124
- u !== lo && (c[l] = r(u));
2122
+ for (let l = 0; l < i.length; l += 1) {
2123
+ const u = i[l];
2124
+ u !== co && (c[l] = r(u));
2125
2125
  }
2126
2126
  }
2127
2127
  else {
2128
2128
  const c = {};
2129
2129
  o[s] = c;
2130
- for (const l in a) {
2131
- const u = a[l];
2130
+ for (const l in i) {
2131
+ const u = i[l];
2132
2132
  c[l] = r(u);
2133
2133
  }
2134
2134
  }
@@ -2141,32 +2141,32 @@ function pn(e, t) {
2141
2141
  for (const l in t)
2142
2142
  r.push({ key: l, fn: t[l] });
2143
2143
  const s = [];
2144
- let i = 0;
2145
- function a(l) {
2144
+ let a = 0;
2145
+ function i(l) {
2146
2146
  if (typeof l == "function")
2147
- throw new vt("Cannot stringify a function", s);
2147
+ throw new mt("Cannot stringify a function", s);
2148
2148
  if (o.has(l)) return o.get(l);
2149
- if (l === void 0) return Ht;
2150
- if (Number.isNaN(l)) return co;
2151
- if (l === 1 / 0) return uo;
2152
- if (l === -1 / 0) return fo;
2153
- if (l === 0 && 1 / l < 0) return Ft;
2154
- const u = i++;
2149
+ if (l === void 0) return Ut;
2150
+ if (Number.isNaN(l)) return uo;
2151
+ if (l === 1 / 0) return fo;
2152
+ if (l === -1 / 0) return po;
2153
+ if (l === 0 && 1 / l < 0) return Wt;
2154
+ const u = a++;
2155
2155
  o.set(l, u);
2156
2156
  for (const { key: f, fn: g } of r) {
2157
- const m = g(l);
2158
- if (m)
2159
- return n[u] = `["${f}",${a(m)}]`, u;
2157
+ const h = g(l);
2158
+ if (h)
2159
+ return n[u] = `["${f}",${i(h)}]`, u;
2160
2160
  }
2161
2161
  let d = "";
2162
2162
  if (dn(l))
2163
- d = gt(l);
2163
+ d = vt(l);
2164
2164
  else
2165
2165
  switch (Ms(l)) {
2166
2166
  case "Number":
2167
2167
  case "String":
2168
2168
  case "Boolean":
2169
- d = `["Object",${gt(l)}]`;
2169
+ d = `["Object",${vt(l)}]`;
2170
2170
  break;
2171
2171
  case "BigInt":
2172
2172
  d = `["BigInt",${l}]`;
@@ -2180,111 +2180,111 @@ function pn(e, t) {
2180
2180
  break;
2181
2181
  case "Array":
2182
2182
  d = "[";
2183
- for (let m = 0; m < l.length; m += 1)
2184
- m > 0 && (d += ","), m in l ? (s.push(`[${m}]`), d += a(l[m]), s.pop()) : d += lo;
2183
+ for (let h = 0; h < l.length; h += 1)
2184
+ h > 0 && (d += ","), h in l ? (s.push(`[${h}]`), d += i(l[h]), s.pop()) : d += co;
2185
2185
  d += "]";
2186
2186
  break;
2187
2187
  case "Set":
2188
2188
  d = '["Set"';
2189
- for (const m of l)
2190
- d += `,${a(m)}`;
2189
+ for (const h of l)
2190
+ d += `,${i(h)}`;
2191
2191
  d += "]";
2192
2192
  break;
2193
2193
  case "Map":
2194
2194
  d = '["Map"';
2195
- for (const [m, w] of l)
2195
+ for (const [h, w] of l)
2196
2196
  s.push(
2197
- `.get(${dn(m) ? gt(m) : "..."})`
2198
- ), d += `,${a(m)},${a(w)}`, s.pop();
2197
+ `.get(${dn(h) ? vt(h) : "..."})`
2198
+ ), d += `,${i(h)},${i(w)}`, s.pop();
2199
2199
  d += "]";
2200
2200
  break;
2201
2201
  default:
2202
- if (!js(l))
2203
- throw new vt(
2202
+ if (!Ls(l))
2203
+ throw new mt(
2204
2204
  "Cannot stringify arbitrary non-POJOs",
2205
2205
  s
2206
2206
  );
2207
2207
  if (Object.getOwnPropertySymbols(l).length > 0)
2208
- throw new vt(
2208
+ throw new mt(
2209
2209
  "Cannot stringify POJOs with symbolic keys",
2210
2210
  s
2211
2211
  );
2212
2212
  if (Object.getPrototypeOf(l) === null) {
2213
2213
  d = '["null"';
2214
- for (const m in l)
2215
- s.push(`.${m}`), d += `,${_e(m)},${a(l[m])}`, s.pop();
2214
+ for (const h in l)
2215
+ s.push(`.${h}`), d += `,${_e(h)},${i(l[h])}`, s.pop();
2216
2216
  d += "]";
2217
2217
  } else {
2218
2218
  d = "{";
2219
- let m = !1;
2219
+ let h = !1;
2220
2220
  for (const w in l)
2221
- m && (d += ","), m = !0, s.push(`.${w}`), d += `${_e(w)}:${a(l[w])}`, s.pop();
2221
+ h && (d += ","), h = !0, s.push(`.${w}`), d += `${_e(w)}:${i(l[w])}`, s.pop();
2222
2222
  d += "}";
2223
2223
  }
2224
2224
  }
2225
2225
  return n[u] = d, u;
2226
2226
  }
2227
- const c = a(e);
2227
+ const c = i(e);
2228
2228
  return c < 0 ? `${c}` : `[${n.join(",")}]`;
2229
2229
  }
2230
- function gt(e) {
2230
+ function vt(e) {
2231
2231
  const t = typeof e;
2232
- return t === "string" ? _e(e) : e instanceof String ? _e(e.toString()) : e === void 0 ? Ht.toString() : e === 0 && 1 / e < 0 ? Ft.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
2232
+ return t === "string" ? _e(e) : e instanceof String ? _e(e.toString()) : e === void 0 ? Ut.toString() : e === 0 && 1 / e < 0 ? Wt.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
2233
2233
  }
2234
- function Bs(e, t, { initialize: n, type: o }) {
2235
- let r = `${t.$id}-${e.toString()}`, s = new Wt(r, { type: o }), i = !1, a = 0;
2234
+ function Us(e, t, { initialize: n, type: o }) {
2235
+ let r = `${t.$id}-${e.toString()}`, s = new Bt(r, { type: o }), a = !1, i = 0;
2236
2236
  D(() => t[e], (u) => {
2237
- i || (a = Date.now(), s.postMessage({ timestamp: a, state: fn(pn(u)) })), i = !1;
2237
+ a || (i = Date.now(), s.postMessage({ timestamp: i, state: fn(pn(u)) })), a = !1;
2238
2238
  }, { deep: !0 }), s.onmessage = (u) => {
2239
2239
  if (u === void 0) {
2240
- s.postMessage({ timestamp: a, state: fn(pn(t[e])) });
2240
+ s.postMessage({ timestamp: i, state: fn(pn(t[e])) });
2241
2241
  return;
2242
2242
  }
2243
- u.timestamp <= a || (i = !0, a = u.timestamp, t[e] = u.state);
2243
+ u.timestamp <= i || (a = !0, i = u.timestamp, t[e] = u.state);
2244
2244
  };
2245
2245
  let c = () => s.postMessage(void 0), l = () => s.close();
2246
2246
  return n && c(), { sync: c, unshare: l };
2247
2247
  }
2248
- var Us = (e, t) => Object.keys(t).includes(e), Ws = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
2249
- var s, i;
2250
- let a = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((i = r == null ? void 0 : r.share) == null ? void 0 : i.omit) ?? [];
2251
- !a || Object.keys(o.$state).forEach((l) => {
2248
+ var Ws = (e, t) => Object.keys(t).includes(e), Hs = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
2249
+ var s, a;
2250
+ let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
2251
+ !i || Object.keys(o.$state).forEach((l) => {
2252
2252
  var u;
2253
- c.includes(l) || !Us(l, o.$state) || Bs(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
2253
+ c.includes(l) || !Ws(l, o.$state) || Us(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
2254
2254
  });
2255
2255
  };
2256
- const Hs = Nr();
2257
- Hs.use(
2258
- Ws({
2256
+ const Fs = Pr();
2257
+ Fs.use(
2258
+ Hs({
2259
2259
  enable: !0,
2260
2260
  initialize: !0
2261
2261
  })
2262
2262
  );
2263
- const Fs = /* @__PURE__ */ Q({
2263
+ const zs = /* @__PURE__ */ q({
2264
2264
  __name: "Doctype",
2265
2265
  setup(e) {
2266
- const { stonecrop: t, isReady: n } = Qn(), o = b([]);
2266
+ const { stonecrop: t, isReady: n } = Xn(), o = _([]);
2267
2267
  return D(n, () => {
2268
2268
  if (n.value) {
2269
2269
  let r = t.value.schema.schema.toArray();
2270
- r.forEach((s, i) => {
2270
+ r.forEach((s, a) => {
2271
2271
  const c = t.value.store.record[s.fieldname];
2272
- r[i].value = c;
2272
+ r[a].value = c;
2273
2273
  }), o.value = r;
2274
2274
  }
2275
- }), (r, s) => k(n) ? (x(), ue(k(er), {
2275
+ }), (r, s) => k(n) ? (x(), ue(k(tr), {
2276
2276
  key: 0,
2277
2277
  class: "aform-main",
2278
2278
  modelValue: o.value,
2279
- "onUpdate:modelValue": s[0] || (s[0] = (i) => o.value = i)
2279
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a)
2280
2280
  }, null, 8, ["modelValue"])) : ee("", !0);
2281
2281
  }
2282
2282
  });
2283
- var zs = !1;
2283
+ var Js = !1;
2284
2284
  function Ge(e, t, n) {
2285
2285
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
2286
2286
  }
2287
- function yt(e, t) {
2287
+ function gt(e, t) {
2288
2288
  if (Array.isArray(e)) {
2289
2289
  e.splice(t, 1);
2290
2290
  return;
@@ -2297,31 +2297,31 @@ function yt(e, t) {
2297
2297
  * @license MIT
2298
2298
  */
2299
2299
  let Ie;
2300
- const at = (e) => Ie = e, Js = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
2300
+ const at = (e) => Ie = e, Gs = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
2301
2301
  /* istanbul ignore next */
2302
2302
  Symbol()
2303
2303
  );
2304
2304
  function ve(e) {
2305
2305
  return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
2306
2306
  }
2307
- var Te;
2307
+ var Ve;
2308
2308
  (function(e) {
2309
2309
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
2310
- })(Te || (Te = {}));
2310
+ })(Ve || (Ve = {}));
2311
2311
  const Ce = typeof window < "u";
2312
- function po(e, t) {
2312
+ function ho(e, t) {
2313
2313
  for (const n in t) {
2314
2314
  const o = t[n];
2315
2315
  if (!(n in e))
2316
2316
  continue;
2317
2317
  const r = e[n];
2318
- ve(r) && ve(o) && !X(o) && !Se(o) ? e[n] = po(r, o) : e[n] = o;
2318
+ ve(r) && ve(o) && !Q(o) && !Se(o) ? e[n] = ho(r, o) : e[n] = o;
2319
2319
  }
2320
2320
  return e;
2321
2321
  }
2322
- const ho = () => {
2322
+ const mo = () => {
2323
2323
  };
2324
- function hn(e, t, n, o = ho) {
2324
+ function hn(e, t, n, o = mo) {
2325
2325
  e.push(t);
2326
2326
  const r = () => {
2327
2327
  const s = e.indexOf(t);
@@ -2334,74 +2334,74 @@ function we(e, ...t) {
2334
2334
  n(...t);
2335
2335
  });
2336
2336
  }
2337
- const Gs = (e) => e(), mn = Symbol(), wt = Symbol();
2338
- function St(e, t) {
2337
+ const Ys = (e) => e(), mn = Symbol(), yt = Symbol();
2338
+ function xt(e, t) {
2339
2339
  e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
2340
2340
  for (const n in t) {
2341
2341
  if (!t.hasOwnProperty(n))
2342
2342
  continue;
2343
2343
  const o = t[n], r = e[n];
2344
- ve(r) && ve(o) && e.hasOwnProperty(n) && !X(o) && !Se(o) ? e[n] = St(r, o) : e[n] = o;
2344
+ ve(r) && ve(o) && e.hasOwnProperty(n) && !Q(o) && !Se(o) ? e[n] = xt(r, o) : e[n] = o;
2345
2345
  }
2346
2346
  return e;
2347
2347
  }
2348
- const Ys = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2348
+ const Qs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2349
2349
  /* istanbul ignore next */
2350
2350
  Symbol()
2351
2351
  );
2352
- function Xs(e) {
2353
- return !ve(e) || !e.hasOwnProperty(Ys);
2352
+ function qs(e) {
2353
+ return !ve(e) || !e.hasOwnProperty(Qs);
2354
2354
  }
2355
2355
  const { assign: W } = Object;
2356
2356
  function vn(e) {
2357
- return !!(X(e) && e.effect);
2357
+ return !!(Q(e) && e.effect);
2358
2358
  }
2359
2359
  function gn(e, t, n, o) {
2360
- const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
2360
+ const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
2361
2361
  let c;
2362
2362
  function l() {
2363
- !a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
2363
+ !i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
2364
2364
  const u = process.env.NODE_ENV !== "production" && o ? (
2365
2365
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
2366
- nt(b(r ? r() : {}).value)
2366
+ nt(_(r ? r() : {}).value)
2367
2367
  ) : nt(n.state.value[e]);
2368
- return W(u, s, Object.keys(i || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(N(() => {
2368
+ return W(u, s, Object.keys(a || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = F(P(() => {
2369
2369
  at(n);
2370
2370
  const g = n._s.get(e);
2371
- return i[f].call(g, g);
2371
+ return a[f].call(g, g);
2372
2372
  })), d), {}));
2373
2373
  }
2374
- return c = Ot(e, l, t, n, o, !0), c;
2374
+ return c = St(e, l, t, n, o, !0), c;
2375
2375
  }
2376
- function Ot(e, t, n = {}, o, r, s) {
2377
- let i;
2378
- const a = W({ actions: {} }, n);
2376
+ function St(e, t, n = {}, o, r, s) {
2377
+ let a;
2378
+ const i = W({ actions: {} }, n);
2379
2379
  if (process.env.NODE_ENV !== "production" && !o._e.active)
2380
2380
  throw new Error("Pinia destroyed");
2381
2381
  const c = { deep: !0 };
2382
- process.env.NODE_ENV !== "production" && !zs && (c.onTrigger = (p) => {
2383
- l ? g = p : l == !1 && !h._hotUpdating && (Array.isArray(g) ? g.push(p) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2382
+ process.env.NODE_ENV !== "production" && !Js && (c.onTrigger = (p) => {
2383
+ l ? g = p : l == !1 && !m._hotUpdating && (Array.isArray(g) ? g.push(p) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2384
2384
  });
2385
2385
  let l, u, d = [], f = [], g;
2386
- const m = o.state.value[e];
2387
- !s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
2388
- const w = b({});
2389
- let _;
2386
+ const h = o.state.value[e];
2387
+ !s && !h && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
2388
+ const w = _({});
2389
+ let b;
2390
2390
  function I(p) {
2391
2391
  let v;
2392
2392
  l = u = !1, process.env.NODE_ENV !== "production" && (g = []), typeof p == "function" ? (p(o.state.value[e]), v = {
2393
- type: Te.patchFunction,
2393
+ type: Ve.patchFunction,
2394
2394
  storeId: e,
2395
2395
  events: g
2396
- }) : (St(o.state.value[e], p), v = {
2397
- type: Te.patchObject,
2396
+ }) : (xt(o.state.value[e], p), v = {
2397
+ type: Ve.patchObject,
2398
2398
  payload: p,
2399
2399
  storeId: e,
2400
2400
  events: g
2401
2401
  });
2402
- const $ = _ = Symbol();
2402
+ const $ = b = Symbol();
2403
2403
  he().then(() => {
2404
- _ === $ && (l = !0);
2404
+ b === $ && (l = !0);
2405
2405
  }), u = !0, we(d, v, o.state.value[e]);
2406
2406
  }
2407
2407
  const S = s ? function() {
@@ -2413,40 +2413,40 @@ function Ot(e, t, n = {}, o, r, s) {
2413
2413
  /* istanbul ignore next */
2414
2414
  process.env.NODE_ENV !== "production" ? () => {
2415
2415
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
2416
- } : ho
2416
+ } : mo
2417
2417
  );
2418
2418
  function j() {
2419
- i.stop(), d = [], f = [], o._s.delete(e);
2419
+ a.stop(), d = [], f = [], o._s.delete(e);
2420
2420
  }
2421
2421
  const R = (p, v = "") => {
2422
2422
  if (mn in p)
2423
- return p[wt] = v, p;
2423
+ return p[yt] = v, p;
2424
2424
  const $ = function() {
2425
2425
  at(o);
2426
- const A = Array.from(arguments), q = [], Oe = [];
2427
- function ut(B) {
2428
- q.push(B);
2426
+ const A = Array.from(arguments), X = [], Oe = [];
2427
+ function ct(B) {
2428
+ X.push(B);
2429
2429
  }
2430
2430
  function le(B) {
2431
2431
  Oe.push(B);
2432
2432
  }
2433
2433
  we(f, {
2434
2434
  args: A,
2435
- name: $[wt],
2436
- store: h,
2437
- after: ut,
2435
+ name: $[yt],
2436
+ store: m,
2437
+ after: ct,
2438
2438
  onError: le
2439
2439
  });
2440
- let T;
2440
+ let V;
2441
2441
  try {
2442
- T = p.apply(this && this.$id === e ? this : h, A);
2442
+ V = p.apply(this && this.$id === e ? this : m, A);
2443
2443
  } catch (B) {
2444
2444
  throw we(Oe, B), B;
2445
2445
  }
2446
- return T instanceof Promise ? T.then((B) => (we(q, B), B)).catch((B) => (we(Oe, B), Promise.reject(B))) : (we(q, T), T);
2446
+ return V instanceof Promise ? V.then((B) => (we(X, B), B)).catch((B) => (we(Oe, B), Promise.reject(B))) : (we(X, V), V);
2447
2447
  };
2448
- return $[mn] = !0, $[wt] = v, $;
2449
- }, L = /* @__PURE__ */ F({
2448
+ return $[mn] = !0, $[yt] = v, $;
2449
+ }, M = /* @__PURE__ */ F({
2450
2450
  actions: {},
2451
2451
  getters: {},
2452
2452
  state: [],
@@ -2459,19 +2459,19 @@ function Ot(e, t, n = {}, o, r, s) {
2459
2459
  $patch: I,
2460
2460
  $reset: S,
2461
2461
  $subscribe(p, v = {}) {
2462
- const $ = hn(d, p, v.detached, () => A()), A = i.run(() => D(() => o.state.value[e], (q) => {
2462
+ const $ = hn(d, p, v.detached, () => A()), A = a.run(() => D(() => o.state.value[e], (X) => {
2463
2463
  (v.flush === "sync" ? u : l) && p({
2464
2464
  storeId: e,
2465
- type: Te.direct,
2465
+ type: Ve.direct,
2466
2466
  events: g
2467
- }, q);
2467
+ }, X);
2468
2468
  }, W({}, c, v)));
2469
2469
  return $;
2470
2470
  },
2471
2471
  $dispose: j
2472
- }, h = Pn(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce ? W(
2472
+ }, m = In(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce ? W(
2473
2473
  {
2474
- _hmrPayload: L,
2474
+ _hmrPayload: M,
2475
2475
  _customProperties: F(/* @__PURE__ */ new Set())
2476
2476
  // devtools custom properties
2477
2477
  },
@@ -2479,22 +2479,22 @@ function Ot(e, t, n = {}, o, r, s) {
2479
2479
  // must be added later
2480
2480
  // setupStore
2481
2481
  ) : C);
2482
- o._s.set(e, h);
2483
- const y = (o._a && o._a.runWithContext || Gs)(() => o._e.run(() => (i = At()).run(() => t({ action: R }))));
2482
+ o._s.set(e, m);
2483
+ const y = (o._a && o._a.runWithContext || Ys)(() => o._e.run(() => (a = Ct()).run(() => t({ action: R }))));
2484
2484
  for (const p in y) {
2485
2485
  const v = y[p];
2486
- if (X(v) && !vn(v) || Se(v))
2487
- process.env.NODE_ENV !== "production" && r ? Ge(w.value, p, ie(y, p)) : s || (m && Xs(v) && (X(v) ? v.value = m[p] : St(v, m[p])), o.state.value[e][p] = v), process.env.NODE_ENV !== "production" && L.state.push(p);
2486
+ if (Q(v) && !vn(v) || Se(v))
2487
+ process.env.NODE_ENV !== "production" && r ? Ge(w.value, p, ie(y, p)) : s || (h && qs(v) && (Q(v) ? v.value = h[p] : xt(v, h[p])), o.state.value[e][p] = v), process.env.NODE_ENV !== "production" && M.state.push(p);
2488
2488
  else if (typeof v == "function") {
2489
2489
  const $ = process.env.NODE_ENV !== "production" && r ? v : R(v, p);
2490
- y[p] = $, process.env.NODE_ENV !== "production" && (L.actions[p] = v), a.actions[p] = v;
2491
- } else process.env.NODE_ENV !== "production" && vn(v) && (L.getters[p] = s ? (
2490
+ y[p] = $, process.env.NODE_ENV !== "production" && (M.actions[p] = v), i.actions[p] = v;
2491
+ } else process.env.NODE_ENV !== "production" && vn(v) && (M.getters[p] = s ? (
2492
2492
  // @ts-expect-error
2493
2493
  n.getters[p]
2494
2494
  ) : v, Ce && (y._getters || // @ts-expect-error: same
2495
2495
  (y._getters = F([]))).push(p));
2496
2496
  }
2497
- if (W(h, y), W($e(h), y), Object.defineProperty(h, "$state", {
2497
+ if (W(m, y), W($e(m), y), Object.defineProperty(m, "$state", {
2498
2498
  get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
2499
2499
  set: (p) => {
2500
2500
  if (process.env.NODE_ENV !== "production" && r)
@@ -2503,34 +2503,34 @@ function Ot(e, t, n = {}, o, r, s) {
2503
2503
  W(v, p);
2504
2504
  });
2505
2505
  }
2506
- }), process.env.NODE_ENV !== "production" && (h._hotUpdate = F((p) => {
2507
- h._hotUpdating = !0, p._hmrPayload.state.forEach((v) => {
2508
- if (v in h.$state) {
2509
- const $ = p.$state[v], A = h.$state[v];
2510
- typeof $ == "object" && ve($) && ve(A) ? po($, A) : p.$state[v] = A;
2506
+ }), process.env.NODE_ENV !== "production" && (m._hotUpdate = F((p) => {
2507
+ m._hotUpdating = !0, p._hmrPayload.state.forEach((v) => {
2508
+ if (v in m.$state) {
2509
+ const $ = p.$state[v], A = m.$state[v];
2510
+ typeof $ == "object" && ve($) && ve(A) ? ho($, A) : p.$state[v] = A;
2511
2511
  }
2512
- Ge(h, v, ie(p.$state, v));
2513
- }), Object.keys(h.$state).forEach((v) => {
2514
- v in p.$state || yt(h, v);
2512
+ Ge(m, v, ie(p.$state, v));
2513
+ }), Object.keys(m.$state).forEach((v) => {
2514
+ v in p.$state || gt(m, v);
2515
2515
  }), l = !1, u = !1, o.state.value[e] = ie(p._hmrPayload, "hotState"), u = !0, he().then(() => {
2516
2516
  l = !0;
2517
2517
  });
2518
2518
  for (const v in p._hmrPayload.actions) {
2519
2519
  const $ = p[v];
2520
- Ge(h, v, R($, v));
2520
+ Ge(m, v, R($, v));
2521
2521
  }
2522
2522
  for (const v in p._hmrPayload.getters) {
2523
2523
  const $ = p._hmrPayload.getters[v], A = s ? (
2524
2524
  // special handling of options api
2525
- N(() => (at(o), $.call(h, h)))
2525
+ P(() => (at(o), $.call(m, m)))
2526
2526
  ) : $;
2527
- Ge(h, v, A);
2527
+ Ge(m, v, A);
2528
2528
  }
2529
- Object.keys(h._hmrPayload.getters).forEach((v) => {
2530
- v in p._hmrPayload.getters || yt(h, v);
2531
- }), Object.keys(h._hmrPayload.actions).forEach((v) => {
2532
- v in p._hmrPayload.actions || yt(h, v);
2533
- }), h._hmrPayload = p._hmrPayload, h._getters = p._getters, h._hotUpdating = !1;
2529
+ Object.keys(m._hmrPayload.getters).forEach((v) => {
2530
+ v in p._hmrPayload.getters || gt(m, v);
2531
+ }), Object.keys(m._hmrPayload.actions).forEach((v) => {
2532
+ v in p._hmrPayload.actions || gt(m, v);
2533
+ }), m._hmrPayload = p._hmrPayload, m._getters = p._getters, m._hotUpdating = !1;
2534
2534
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce) {
2535
2535
  const p = {
2536
2536
  writable: !0,
@@ -2539,51 +2539,51 @@ function Ot(e, t, n = {}, o, r, s) {
2539
2539
  enumerable: !1
2540
2540
  };
2541
2541
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((v) => {
2542
- Object.defineProperty(h, v, W({ value: h[v] }, p));
2542
+ Object.defineProperty(m, v, W({ value: m[v] }, p));
2543
2543
  });
2544
2544
  }
2545
2545
  return o._p.forEach((p) => {
2546
2546
  if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ce) {
2547
- const v = i.run(() => p({
2548
- store: h,
2547
+ const v = a.run(() => p({
2548
+ store: m,
2549
2549
  app: o._a,
2550
2550
  pinia: o,
2551
- options: a
2551
+ options: i
2552
2552
  }));
2553
- Object.keys(v || {}).forEach(($) => h._customProperties.add($)), W(h, v);
2553
+ Object.keys(v || {}).forEach(($) => m._customProperties.add($)), W(m, v);
2554
2554
  } else
2555
- W(h, i.run(() => p({
2556
- store: h,
2555
+ W(m, a.run(() => p({
2556
+ store: m,
2557
2557
  app: o._a,
2558
2558
  pinia: o,
2559
- options: a
2559
+ options: i
2560
2560
  })));
2561
- }), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2561
+ }), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2562
2562
  state: () => new MyClass()
2563
- Found in store "${h.$id}".`), m && s && n.hydrate && n.hydrate(h.$state, m), l = !0, u = !0, h;
2563
+ Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), l = !0, u = !0, m;
2564
2564
  }
2565
2565
  /*! #__NO_SIDE_EFFECTS__ */
2566
2566
  // @__NO_SIDE_EFFECTS__
2567
- function Qs(e, t, n) {
2567
+ function Xs(e, t, n) {
2568
2568
  let o, r;
2569
2569
  const s = typeof t == "function";
2570
2570
  if (typeof e == "string")
2571
2571
  o = e, r = s ? n : t;
2572
2572
  else if (r = e, o = e.id, process.env.NODE_ENV !== "production" && typeof o != "string")
2573
2573
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
2574
- function i(a, c) {
2575
- const l = Nn();
2576
- if (a = // in test mode, ignore the argument provided as we can always retrieve a
2574
+ function a(i, c) {
2575
+ const l = Pn();
2576
+ if (i = // in test mode, ignore the argument provided as we can always retrieve a
2577
2577
  // pinia instance with getActivePinia()
2578
- (process.env.NODE_ENV === "test" && Ie && Ie._testing ? null : a) || (l ? Tt(Js, null) : null), a && at(a), process.env.NODE_ENV !== "production" && !Ie)
2578
+ (process.env.NODE_ENV === "test" && Ie && Ie._testing ? null : i) || (l ? Dt(Gs, null) : null), i && at(i), process.env.NODE_ENV !== "production" && !Ie)
2579
2579
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
2580
2580
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
2581
2581
  This will fail in production.`);
2582
- a = Ie, a._s.has(o) || (s ? Ot(o, t, r, a) : gn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
2583
- const u = a._s.get(o);
2582
+ i = Ie, i._s.has(o) || (s ? St(o, t, r, i) : gn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
2583
+ const u = i._s.get(o);
2584
2584
  if (process.env.NODE_ENV !== "production" && c) {
2585
- const d = "__hot:" + o, f = s ? Ot(d, t, r, a, !0) : gn(d, W({}, r), a, !0);
2586
- c._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
2585
+ const d = "__hot:" + o, f = s ? St(d, t, r, i, !0) : gn(d, W({}, r), i, !0);
2586
+ c._hotUpdate(f), delete i.state.value[d], i._s.delete(d);
2587
2587
  }
2588
2588
  if (process.env.NODE_ENV !== "production" && Ce) {
2589
2589
  const d = Ue();
@@ -2595,138 +2595,138 @@ This will fail in production.`);
2595
2595
  }
2596
2596
  return u;
2597
2597
  }
2598
- return i.$id = o, i;
2598
+ return a.$id = o, a;
2599
2599
  }
2600
- function mo(e) {
2600
+ function vo(e) {
2601
2601
  return Re() ? (Be(e), !0) : !1;
2602
2602
  }
2603
- function zt(e) {
2603
+ function Ht(e) {
2604
2604
  return typeof e == "function" ? e() : k(e);
2605
2605
  }
2606
- const qs = typeof window < "u" && typeof document < "u";
2606
+ const Ks = typeof window < "u" && typeof document < "u";
2607
2607
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2608
- const Ks = (e) => e != null, Zs = Object.prototype.toString, ea = (e) => Zs.call(e) === "[object Object]", ta = () => {
2609
- }, He = qs ? window : void 0;
2610
- function Me(e) {
2608
+ const Zs = (e) => e != null, ea = Object.prototype.toString, ta = (e) => ea.call(e) === "[object Object]", na = () => {
2609
+ }, He = Ks ? window : void 0;
2610
+ function Le(e) {
2611
2611
  var t;
2612
- const n = zt(e);
2612
+ const n = Ht(e);
2613
2613
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
2614
2614
  }
2615
- function Le(...e) {
2615
+ function Me(...e) {
2616
2616
  let t, n, o, r;
2617
2617
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = He) : [t, n, o, r] = e, !t)
2618
- return ta;
2618
+ return na;
2619
2619
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
2620
- const s = [], i = () => {
2620
+ const s = [], a = () => {
2621
2621
  s.forEach((u) => u()), s.length = 0;
2622
- }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
2623
- () => [Me(t), zt(r)],
2622
+ }, i = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
2623
+ () => [Le(t), Ht(r)],
2624
2624
  ([u, d]) => {
2625
- if (i(), !u)
2625
+ if (a(), !u)
2626
2626
  return;
2627
- const f = ea(d) ? { ...d } : d;
2627
+ const f = ta(d) ? { ...d } : d;
2628
2628
  s.push(
2629
- ...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
2629
+ ...n.flatMap((g) => o.map((h) => i(u, g, h, f)))
2630
2630
  );
2631
2631
  },
2632
2632
  { immediate: !0, flush: "post" }
2633
2633
  ), l = () => {
2634
- c(), i();
2634
+ c(), a();
2635
2635
  };
2636
- return mo(l), l;
2636
+ return vo(l), l;
2637
2637
  }
2638
- function na() {
2639
- const e = b(!1), t = Ue();
2638
+ function oa() {
2639
+ const e = _(!1), t = Ue();
2640
2640
  return t && ge(() => {
2641
2641
  e.value = !0;
2642
2642
  }, t), e;
2643
2643
  }
2644
- function oa(e) {
2645
- const t = na();
2646
- return N(() => (t.value, !!e()));
2644
+ function ra(e) {
2645
+ const t = oa();
2646
+ return P(() => (t.value, !!e()));
2647
2647
  }
2648
- function ra(e, t, n = {}) {
2648
+ function sa(e, t, n = {}) {
2649
2649
  const { window: o = He, ...r } = n;
2650
2650
  let s;
2651
- const i = oa(() => o && "MutationObserver" in o), a = () => {
2651
+ const a = ra(() => o && "MutationObserver" in o), i = () => {
2652
2652
  s && (s.disconnect(), s = void 0);
2653
- }, c = N(() => {
2654
- const f = zt(e), g = (Array.isArray(f) ? f : [f]).map(Me).filter(Ks);
2653
+ }, c = P(() => {
2654
+ const f = Ht(e), g = (Array.isArray(f) ? f : [f]).map(Le).filter(Zs);
2655
2655
  return new Set(g);
2656
2656
  }), l = D(
2657
2657
  () => c.value,
2658
2658
  (f) => {
2659
- a(), i.value && f.size && (s = new MutationObserver(t), f.forEach((g) => s.observe(g, r)));
2659
+ i(), a.value && f.size && (s = new MutationObserver(t), f.forEach((g) => s.observe(g, r)));
2660
2660
  },
2661
2661
  { immediate: !0, flush: "post" }
2662
2662
  ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
2663
- l(), a();
2663
+ l(), i();
2664
2664
  };
2665
- return mo(d), {
2666
- isSupported: i,
2665
+ return vo(d), {
2666
+ isSupported: a,
2667
2667
  stop: d,
2668
2668
  takeRecords: u
2669
2669
  };
2670
2670
  }
2671
- function sa(e = {}) {
2671
+ function aa(e = {}) {
2672
2672
  var t;
2673
2673
  const {
2674
2674
  window: n = He,
2675
2675
  deep: o = !0,
2676
2676
  triggerOnRemoval: r = !1
2677
- } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, i = () => {
2677
+ } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
2678
2678
  var l;
2679
2679
  let u = s == null ? void 0 : s.activeElement;
2680
2680
  if (o)
2681
2681
  for (; u != null && u.shadowRoot; )
2682
2682
  u = (l = u == null ? void 0 : u.shadowRoot) == null ? void 0 : l.activeElement;
2683
2683
  return u;
2684
- }, a = b(), c = () => {
2685
- a.value = i();
2684
+ }, i = _(), c = () => {
2685
+ i.value = a();
2686
2686
  };
2687
- return n && (Le(n, "blur", (l) => {
2687
+ return n && (Me(n, "blur", (l) => {
2688
2688
  l.relatedTarget === null && c();
2689
- }, !0), Le(n, "focus", c, !0)), r && ra(s, (l) => {
2689
+ }, !0), Me(n, "focus", c, !0)), r && sa(s, (l) => {
2690
2690
  l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
2691
- u === a.value && c();
2691
+ u === i.value && c();
2692
2692
  });
2693
2693
  }, {
2694
2694
  childList: !0,
2695
2695
  subtree: !0
2696
- }), c(), a;
2696
+ }), c(), i;
2697
2697
  }
2698
- const aa = "focusin", ia = "focusout";
2699
- function la(e, t = {}) {
2700
- const { window: n = He } = t, o = N(() => Me(e)), r = b(!1), s = N(() => r.value), i = sa(t);
2701
- return !n || !i.value ? { focused: s } : (Le(o, aa, () => r.value = !0), Le(o, ia, () => r.value = !1), { focused: s });
2698
+ const ia = "focusin", la = "focusout";
2699
+ function ca(e, t = {}) {
2700
+ const { window: n = He } = t, o = P(() => Le(e)), r = _(!1), s = P(() => r.value), a = aa(t);
2701
+ return !n || !a.value ? { focused: s } : (Me(o, ia, () => r.value = !0), Me(o, la, () => r.value = !1), { focused: s });
2702
2702
  }
2703
- function ca(e, { window: t = He, scrollTarget: n } = {}) {
2704
- const o = b(!1), r = () => {
2703
+ function ua(e, { window: t = He, scrollTarget: n } = {}) {
2704
+ const o = _(!1), r = () => {
2705
2705
  if (!t) return;
2706
- const s = t.document, i = Me(e);
2707
- if (!i)
2706
+ const s = t.document, a = Le(e);
2707
+ if (!a)
2708
2708
  o.value = !1;
2709
2709
  else {
2710
- const a = i.getBoundingClientRect();
2711
- o.value = a.top <= (t.innerHeight || s.documentElement.clientHeight) && a.left <= (t.innerWidth || s.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
2710
+ const i = a.getBoundingClientRect();
2711
+ o.value = i.top <= (t.innerHeight || s.documentElement.clientHeight) && i.left <= (t.innerWidth || s.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
2712
2712
  }
2713
2713
  };
2714
2714
  return D(
2715
- () => Me(e),
2715
+ () => Le(e),
2716
2716
  () => r(),
2717
2717
  { immediate: !0, flush: "post" }
2718
- ), t && Le(n || t, "scroll", r, {
2718
+ ), t && Me(n || t, "scroll", r, {
2719
2719
  capture: !1,
2720
2720
  passive: !0
2721
2721
  }), o;
2722
2722
  }
2723
2723
  const ne = (e) => {
2724
- let t = ca(e).value;
2724
+ let t = ua(e).value;
2725
2725
  return t = t && e.offsetHeight > 0, t;
2726
2726
  }, oe = (e) => e.tabIndex >= 0, yn = (e) => {
2727
2727
  const t = e.target;
2728
- return Jt(t);
2729
- }, Jt = (e) => {
2728
+ return Ft(t);
2729
+ }, Ft = (e) => {
2730
2730
  var t;
2731
2731
  let n;
2732
2732
  if (e instanceof HTMLTableCellElement) {
@@ -2739,16 +2739,16 @@ const ne = (e) => {
2739
2739
  const o = e.previousElementSibling;
2740
2740
  o && (n = o);
2741
2741
  }
2742
- return n && (!oe(n) || !ne(n)) ? Jt(n) : n;
2743
- }, ua = (e) => {
2742
+ return n && (!oe(n) || !ne(n)) ? Ft(n) : n;
2743
+ }, da = (e) => {
2744
2744
  var t;
2745
2745
  const n = e.target;
2746
2746
  let o;
2747
2747
  if (n instanceof HTMLTableCellElement) {
2748
2748
  const r = (t = n.parentElement) == null ? void 0 : t.parentElement;
2749
2749
  if (r) {
2750
- const s = r.firstElementChild, i = s == null ? void 0 : s.children[n.cellIndex];
2751
- i && (o = i);
2750
+ const s = r.firstElementChild, a = s == null ? void 0 : s.children[n.cellIndex];
2751
+ a && (o = a);
2752
2752
  }
2753
2753
  } else if (n instanceof HTMLTableRowElement) {
2754
2754
  const r = n.parentElement;
@@ -2757,11 +2757,11 @@ const ne = (e) => {
2757
2757
  s && (o = s);
2758
2758
  }
2759
2759
  }
2760
- return o && (!oe(o) || !ne(o)) ? Gt(o) : o;
2760
+ return o && (!oe(o) || !ne(o)) ? zt(o) : o;
2761
2761
  }, wn = (e) => {
2762
2762
  const t = e.target;
2763
- return Gt(t);
2764
- }, Gt = (e) => {
2763
+ return zt(t);
2764
+ }, zt = (e) => {
2765
2765
  var t;
2766
2766
  let n;
2767
2767
  if (e instanceof HTMLTableCellElement) {
@@ -2774,16 +2774,16 @@ const ne = (e) => {
2774
2774
  const o = e.nextElementSibling;
2775
2775
  o && (n = o);
2776
2776
  }
2777
- return n && (!oe(n) || !ne(n)) ? Gt(n) : n;
2778
- }, da = (e) => {
2777
+ return n && (!oe(n) || !ne(n)) ? zt(n) : n;
2778
+ }, fa = (e) => {
2779
2779
  var t;
2780
2780
  const n = e.target;
2781
2781
  let o;
2782
2782
  if (n instanceof HTMLTableCellElement) {
2783
2783
  const r = (t = n.parentElement) == null ? void 0 : t.parentElement;
2784
2784
  if (r) {
2785
- const s = r.lastElementChild, i = s == null ? void 0 : s.children[n.cellIndex];
2786
- i && (o = i);
2785
+ const s = r.lastElementChild, a = s == null ? void 0 : s.children[n.cellIndex];
2786
+ a && (o = a);
2787
2787
  }
2788
2788
  } else if (n instanceof HTMLTableRowElement) {
2789
2789
  const r = n.parentElement;
@@ -2792,11 +2792,11 @@ const ne = (e) => {
2792
2792
  s && (o = s);
2793
2793
  }
2794
2794
  }
2795
- return o && (!oe(o) || !ne(o)) ? Jt(o) : o;
2795
+ return o && (!oe(o) || !ne(o)) ? Ft(o) : o;
2796
2796
  }, bn = (e) => {
2797
2797
  const t = e.target;
2798
- return Yt(t);
2799
- }, Yt = (e) => {
2798
+ return Jt(t);
2799
+ }, Jt = (e) => {
2800
2800
  var t;
2801
2801
  let n;
2802
2802
  if (e.previousElementSibling)
@@ -2805,11 +2805,11 @@ const ne = (e) => {
2805
2805
  const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
2806
2806
  n = o == null ? void 0 : o.lastElementChild;
2807
2807
  }
2808
- return n && (!oe(n) || !ne(n)) ? Yt(n) : n;
2808
+ return n && (!oe(n) || !ne(n)) ? Jt(n) : n;
2809
2809
  }, _n = (e) => {
2810
2810
  const t = e.target;
2811
- return Xt(t);
2812
- }, Xt = (e) => {
2811
+ return Gt(t);
2812
+ }, Gt = (e) => {
2813
2813
  var t;
2814
2814
  let n;
2815
2815
  if (e.nextElementSibling)
@@ -2818,19 +2818,19 @@ const ne = (e) => {
2818
2818
  const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
2819
2819
  n = o == null ? void 0 : o.firstElementChild;
2820
2820
  }
2821
- return n && (!oe(n) || !ne(n)) ? Xt(n) : n;
2821
+ return n && (!oe(n) || !ne(n)) ? Gt(n) : n;
2822
2822
  }, En = (e) => {
2823
2823
  const t = e.target.parentElement, n = t == null ? void 0 : t.firstElementChild;
2824
- return n && (!oe(n) || !ne(n)) ? Xt(n) : n;
2824
+ return n && (!oe(n) || !ne(n)) ? Gt(n) : n;
2825
2825
  }, $n = (e) => {
2826
2826
  const t = e.target.parentElement, n = t == null ? void 0 : t.lastElementChild;
2827
- return n && (!oe(n) || !ne(n)) ? Yt(n) : n;
2828
- }, Ye = ["alt", "control", "shift", "meta"], fa = {
2827
+ return n && (!oe(n) || !ne(n)) ? Jt(n) : n;
2828
+ }, Ye = ["alt", "control", "shift", "meta"], pa = {
2829
2829
  ArrowUp: "up",
2830
2830
  ArrowDown: "down",
2831
2831
  ArrowLeft: "left",
2832
2832
  ArrowRight: "right"
2833
- }, Qt = {
2833
+ }, Yt = {
2834
2834
  "keydown.up": (e) => {
2835
2835
  const t = yn(e);
2836
2836
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
@@ -2848,11 +2848,11 @@ const ne = (e) => {
2848
2848
  e.preventDefault(), e.stopPropagation(), t && t.focus();
2849
2849
  },
2850
2850
  "keydown.control.up": (e) => {
2851
- const t = ua(e);
2851
+ const t = da(e);
2852
2852
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
2853
2853
  },
2854
2854
  "keydown.control.down": (e) => {
2855
- const t = da(e);
2855
+ const t = fa(e);
2856
2856
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
2857
2857
  },
2858
2858
  "keydown.control.left": (e) => {
@@ -2894,69 +2894,69 @@ const ne = (e) => {
2894
2894
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
2895
2895
  }
2896
2896
  };
2897
- function vo(e) {
2898
- const t = (i) => {
2899
- let a = null;
2900
- return i.parent && (typeof i.parent == "string" ? a = document.querySelector(i.parent) : i.parent instanceof HTMLElement ? a = i.parent : a = i.parent.value), a;
2901
- }, n = (i) => {
2902
- var a;
2903
- const c = t(i);
2897
+ function go(e) {
2898
+ const t = (a) => {
2899
+ let i = null;
2900
+ return a.parent && (typeof a.parent == "string" ? i = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? i = a.parent : i = a.parent.value), i;
2901
+ }, n = (a) => {
2902
+ var i;
2903
+ const c = t(a);
2904
2904
  let l = [];
2905
- if (typeof i.selectors == "string")
2906
- l = c ? Array.from(c.querySelectorAll(i.selectors)) : Array.from(document.querySelectorAll(i.selectors));
2907
- else if (Array.isArray(i.selectors))
2908
- for (const u of i.selectors)
2905
+ if (typeof a.selectors == "string")
2906
+ l = c ? Array.from(c.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
2907
+ else if (Array.isArray(a.selectors))
2908
+ for (const u of a.selectors)
2909
2909
  u instanceof HTMLElement ? l.push(u) : l.push(u.$el);
2910
- else if (i.selectors instanceof HTMLElement)
2911
- l.push(i.selectors);
2912
- else if ((a = i.selectors) != null && a.value)
2913
- if (Array.isArray(i.selectors.value))
2914
- for (const u of i.selectors.value)
2910
+ else if (a.selectors instanceof HTMLElement)
2911
+ l.push(a.selectors);
2912
+ else if ((i = a.selectors) != null && i.value)
2913
+ if (Array.isArray(a.selectors.value))
2914
+ for (const u of a.selectors.value)
2915
2915
  u instanceof HTMLElement ? l.push(u) : l.push(u.$el);
2916
2916
  else
2917
- l.push(i.selectors.value);
2917
+ l.push(a.selectors.value);
2918
2918
  return l;
2919
- }, o = (i) => {
2920
- const a = t(i);
2919
+ }, o = (a) => {
2920
+ const i = t(a);
2921
2921
  let c = [];
2922
- return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) => oe(l) && ne(l))), c;
2923
- }, r = (i) => (a) => {
2924
- const c = fa[a.key] || a.key.toLowerCase();
2922
+ return a.selectors ? c = n(a) : i && (c = Array.from(i.children).filter((l) => oe(l) && ne(l))), c;
2923
+ }, r = (a) => (i) => {
2924
+ const c = pa[i.key] || i.key.toLowerCase();
2925
2925
  if (Ye.includes(c)) return;
2926
- const l = i.handlers || Qt;
2926
+ const l = a.handlers || Yt;
2927
2927
  for (const u of Object.keys(l)) {
2928
2928
  const [d, ...f] = u.split(".");
2929
2929
  if (d === "keydown" && f.includes(c)) {
2930
- const g = l[u], m = f.filter((_) => Ye.includes(_)), w = Ye.some((_) => {
2931
- const I = _.charAt(0).toUpperCase() + _.slice(1);
2932
- return a.getModifierState(I);
2930
+ const g = l[u], h = f.filter((b) => Ye.includes(b)), w = Ye.some((b) => {
2931
+ const I = b.charAt(0).toUpperCase() + b.slice(1);
2932
+ return i.getModifierState(I);
2933
2933
  });
2934
- if (m.length > 0) {
2934
+ if (h.length > 0) {
2935
2935
  if (w) {
2936
- for (const _ of Ye)
2937
- if (f.includes(_)) {
2938
- const I = _.charAt(0).toUpperCase() + _.slice(1);
2939
- a.getModifierState(I) && g(a);
2936
+ for (const b of Ye)
2937
+ if (f.includes(b)) {
2938
+ const I = b.charAt(0).toUpperCase() + b.slice(1);
2939
+ i.getModifierState(I) && g(i);
2940
2940
  }
2941
2941
  }
2942
2942
  } else
2943
- w || g(a);
2943
+ w || g(i);
2944
2944
  }
2945
2945
  }
2946
2946
  }, s = [];
2947
2947
  ge(() => {
2948
- for (const i of e) {
2949
- const a = t(i), c = o(i), l = r(i), u = a ? [a] : c;
2948
+ for (const a of e) {
2949
+ const i = t(a), c = o(a), l = r(a), u = i ? [i] : c;
2950
2950
  for (const d of u) {
2951
- const { focused: f } = la(b(d)), g = D(f, (m) => {
2952
- m ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
2951
+ const { focused: f } = ca(_(d)), g = D(f, (h) => {
2952
+ h ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
2953
2953
  });
2954
2954
  s.push(g);
2955
2955
  }
2956
2956
  }
2957
- }), ko(() => {
2958
- for (const i of s)
2959
- i();
2957
+ }), xo(() => {
2958
+ for (const a of s)
2959
+ a();
2960
2960
  });
2961
2961
  }
2962
2962
  function Fe(e) {
@@ -2965,100 +2965,100 @@ function Fe(e) {
2965
2965
  function z(e) {
2966
2966
  return typeof e == "function" ? e() : k(e);
2967
2967
  }
2968
- const qt = typeof window < "u" && typeof document < "u";
2968
+ const Qt = typeof window < "u" && typeof document < "u";
2969
2969
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2970
- const pa = (e) => e != null, ha = Object.prototype.toString, go = (e) => ha.call(e) === "[object Object]", Ee = () => {
2971
- }, Nt = /* @__PURE__ */ ma();
2972
- function ma() {
2970
+ const ha = (e) => e != null, ma = Object.prototype.toString, yo = (e) => ma.call(e) === "[object Object]", Ee = () => {
2971
+ }, Ot = /* @__PURE__ */ va();
2972
+ function va() {
2973
2973
  var e, t;
2974
- return qt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
2974
+ return Qt && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
2975
2975
  }
2976
- function va(e) {
2976
+ function ga(e) {
2977
2977
  return Ue();
2978
2978
  }
2979
- function ga(...e) {
2979
+ function ya(...e) {
2980
2980
  if (e.length !== 1)
2981
2981
  return ie(...e);
2982
2982
  const t = e[0];
2983
- return typeof t == "function" ? Sn(On(() => ({ get: t, set: Ee }))) : b(t);
2983
+ return typeof t == "function" ? On(Nn(() => ({ get: t, set: Ee }))) : _(t);
2984
2984
  }
2985
- function ya(e, t = !0, n) {
2986
- va() ? ge(e, n) : t ? e() : he(e);
2985
+ function wa(e, t = !0, n) {
2986
+ ga() ? ge(e, n) : t ? e() : he(e);
2987
2987
  }
2988
- const ct = qt ? window : void 0;
2988
+ const qt = Qt ? window : void 0;
2989
2989
  function xe(e) {
2990
2990
  var t;
2991
2991
  const n = z(e);
2992
2992
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
2993
2993
  }
2994
- function Pt(...e) {
2994
+ function kn(...e) {
2995
2995
  let t, n, o, r;
2996
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = ct) : [t, n, o, r] = e, !t)
2996
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = qt) : [t, n, o, r] = e, !t)
2997
2997
  return Ee;
2998
2998
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
2999
- const s = [], i = () => {
2999
+ const s = [], a = () => {
3000
3000
  s.forEach((u) => u()), s.length = 0;
3001
- }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
3001
+ }, i = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
3002
3002
  () => [xe(t), z(r)],
3003
3003
  ([u, d]) => {
3004
- if (i(), !u)
3004
+ if (a(), !u)
3005
3005
  return;
3006
- const f = go(d) ? { ...d } : d;
3006
+ const f = yo(d) ? { ...d } : d;
3007
3007
  s.push(
3008
- ...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
3008
+ ...n.flatMap((g) => o.map((h) => i(u, g, h, f)))
3009
3009
  );
3010
3010
  },
3011
3011
  { immediate: !0, flush: "post" }
3012
3012
  ), l = () => {
3013
- c(), i();
3013
+ c(), a();
3014
3014
  };
3015
3015
  return Fe(l), l;
3016
3016
  }
3017
- function wa() {
3018
- const e = b(!1), t = Ue();
3017
+ function ba() {
3018
+ const e = _(!1), t = Ue();
3019
3019
  return t && ge(() => {
3020
3020
  e.value = !0;
3021
3021
  }, t), e;
3022
3022
  }
3023
- function yo(e) {
3024
- const t = wa();
3025
- return N(() => (t.value, !!e()));
3023
+ function wo(e) {
3024
+ const t = ba();
3025
+ return P(() => (t.value, !!e()));
3026
3026
  }
3027
- function wo(e, t, n = {}) {
3028
- const { window: o = ct, ...r } = n;
3027
+ function bo(e, t, n = {}) {
3028
+ const { window: o = qt, ...r } = n;
3029
3029
  let s;
3030
- const i = yo(() => o && "MutationObserver" in o), a = () => {
3030
+ const a = wo(() => o && "MutationObserver" in o), i = () => {
3031
3031
  s && (s.disconnect(), s = void 0);
3032
- }, c = N(() => {
3033
- const f = z(e), g = (Array.isArray(f) ? f : [f]).map(xe).filter(pa);
3032
+ }, c = P(() => {
3033
+ const f = z(e), g = (Array.isArray(f) ? f : [f]).map(xe).filter(ha);
3034
3034
  return new Set(g);
3035
3035
  }), l = D(
3036
3036
  () => c.value,
3037
3037
  (f) => {
3038
- a(), i.value && f.size && (s = new MutationObserver(t), f.forEach((g) => s.observe(g, r)));
3038
+ i(), a.value && f.size && (s = new MutationObserver(t), f.forEach((g) => s.observe(g, r)));
3039
3039
  },
3040
3040
  { immediate: !0, flush: "post" }
3041
3041
  ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
3042
- l(), a();
3042
+ l(), i();
3043
3043
  };
3044
3044
  return Fe(d), {
3045
- isSupported: i,
3045
+ isSupported: a,
3046
3046
  stop: d,
3047
3047
  takeRecords: u
3048
3048
  };
3049
3049
  }
3050
- function ba(e, t, n = {}) {
3051
- const { window: o = ct, ...r } = n;
3050
+ function _a(e, t, n = {}) {
3051
+ const { window: o = qt, ...r } = n;
3052
3052
  let s;
3053
- const i = yo(() => o && "ResizeObserver" in o), a = () => {
3053
+ const a = wo(() => o && "ResizeObserver" in o), i = () => {
3054
3054
  s && (s.disconnect(), s = void 0);
3055
- }, c = N(() => {
3055
+ }, c = P(() => {
3056
3056
  const d = z(e);
3057
3057
  return Array.isArray(d) ? d.map((f) => xe(f)) : [xe(d)];
3058
3058
  }), l = D(
3059
3059
  c,
3060
3060
  (d) => {
3061
- if (a(), i.value && o) {
3061
+ if (i(), a.value && o) {
3062
3062
  s = new ResizeObserver(t);
3063
3063
  for (const f of d)
3064
3064
  f && s.observe(f, r);
@@ -3066,87 +3066,53 @@ function ba(e, t, n = {}) {
3066
3066
  },
3067
3067
  { immediate: !0, flush: "post" }
3068
3068
  ), u = () => {
3069
- a(), l();
3069
+ i(), l();
3070
3070
  };
3071
3071
  return Fe(u), {
3072
- isSupported: i,
3072
+ isSupported: a,
3073
3073
  stop: u
3074
3074
  };
3075
3075
  }
3076
- function bo(e, t = {}) {
3076
+ function _o(e, t = {}) {
3077
3077
  const {
3078
3078
  reset: n = !0,
3079
3079
  windowResize: o = !0,
3080
3080
  windowScroll: r = !0,
3081
3081
  immediate: s = !0,
3082
- updateTiming: i = "sync"
3083
- } = t, a = b(0), c = b(0), l = b(0), u = b(0), d = b(0), f = b(0), g = b(0), m = b(0);
3082
+ updateTiming: a = "sync"
3083
+ } = t, i = _(0), c = _(0), l = _(0), u = _(0), d = _(0), f = _(0), g = _(0), h = _(0);
3084
3084
  function w() {
3085
3085
  const I = xe(e);
3086
3086
  if (!I) {
3087
- n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, g.value = 0, m.value = 0);
3087
+ n && (i.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, g.value = 0, h.value = 0);
3088
3088
  return;
3089
3089
  }
3090
3090
  const S = I.getBoundingClientRect();
3091
- a.value = S.height, c.value = S.bottom, l.value = S.left, u.value = S.right, d.value = S.top, f.value = S.width, g.value = S.x, m.value = S.y;
3091
+ i.value = S.height, c.value = S.bottom, l.value = S.left, u.value = S.right, d.value = S.top, f.value = S.width, g.value = S.x, h.value = S.y;
3092
3092
  }
3093
- function _() {
3094
- i === "sync" ? w() : i === "next-frame" && requestAnimationFrame(() => w());
3093
+ function b() {
3094
+ a === "sync" ? w() : a === "next-frame" && requestAnimationFrame(() => w());
3095
3095
  }
3096
- return ba(e, _), D(() => xe(e), (I) => !I && _()), wo(e, _, {
3096
+ return _a(e, b), D(() => xe(e), (I) => !I && b()), bo(e, b, {
3097
3097
  attributeFilter: ["style", "class"]
3098
- }), r && Pt("scroll", _, { capture: !0, passive: !0 }), o && Pt("resize", _, { passive: !0 }), ya(() => {
3099
- s && _();
3098
+ }), r && kn("scroll", b, { capture: !0, passive: !0 }), o && kn("resize", b, { passive: !0 }), wa(() => {
3099
+ s && b();
3100
3100
  }), {
3101
- height: a,
3101
+ height: i,
3102
3102
  bottom: c,
3103
3103
  left: l,
3104
3104
  right: u,
3105
3105
  top: d,
3106
3106
  width: f,
3107
3107
  x: g,
3108
- y: m,
3109
- update: _
3108
+ y: h,
3109
+ update: b
3110
3110
  };
3111
3111
  }
3112
- function _a(e = {}) {
3113
- const { window: t = ct, behavior: n = "auto" } = e;
3114
- if (!t)
3115
- return {
3116
- x: b(0),
3117
- y: b(0)
3118
- };
3119
- const o = b(t.scrollX), r = b(t.scrollY), s = N({
3120
- get() {
3121
- return o.value;
3122
- },
3123
- set(a) {
3124
- scrollTo({ left: a, behavior: n });
3125
- }
3126
- }), i = N({
3127
- get() {
3128
- return r.value;
3129
- },
3130
- set(a) {
3131
- scrollTo({ top: a, behavior: n });
3132
- }
3133
- });
3134
- return Pt(
3135
- t,
3136
- "scroll",
3137
- () => {
3138
- o.value = t.scrollX, r.value = t.scrollY;
3139
- },
3140
- {
3141
- capture: !1,
3142
- passive: !0
3143
- }
3144
- ), { x: s, y: i };
3145
- }
3146
3112
  const Ea = (e) => {
3147
3113
  const t = new DOMParser().parseFromString(e, "text/html");
3148
3114
  return Array.from(t.body.childNodes).some((n) => n.nodeType === 1);
3149
- }, $a = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), ka = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], xa = ["innerHTML"], Sa = { key: 2 }, Oa = /* @__PURE__ */ Q({
3115
+ }, $a = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), ka = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], xa = ["innerHTML"], Sa = { key: 2 }, Oa = /* @__PURE__ */ q({
3150
3116
  __name: "ACell",
3151
3117
  props: {
3152
3118
  colIndex: {},
@@ -3158,26 +3124,26 @@ const Ea = (e) => {
3158
3124
  },
3159
3125
  emits: ["cellInput"],
3160
3126
  setup(e, { emit: t }) {
3161
- const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = b(""), i = b(!1), a = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", d = N(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), f = N(() => typeof d.value == "string" ? Ea(d.value) : !1), g = N(() => {
3127
+ const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = _(""), a = _(!1), i = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = i.align || "center", u = i.width || "40ch", d = P(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), f = P(() => typeof d.value == "string" ? Ea(d.value) : !1), g = P(() => {
3162
3128
  var S;
3163
3129
  return {
3164
3130
  textAlign: l,
3165
3131
  width: u,
3166
- fontWeight: i.value ? "bold" : "inherit",
3132
+ fontWeight: a.value ? "bold" : "inherit",
3167
3133
  paddingLeft: e.store.getIndent(e.colIndex, (S = e.store.display[e.rowIndex]) == null ? void 0 : S.indent)
3168
3134
  };
3169
- }), m = N(() => ({
3135
+ }), h = P(() => ({
3170
3136
  "sticky-column": e.pinned,
3171
- "cell-modified": i.value
3137
+ "cell-modified": a.value
3172
3138
  })), w = () => {
3173
- const { left: S, bottom: j, width: R, height: L } = bo(o);
3174
- a.mask, a.modalComponent && e.store.$patch((C) => {
3175
- C.modal.visible = !0, C.modal.colIndex = e.colIndex, C.modal.rowIndex = e.rowIndex, C.modal.left = S, C.modal.bottom = j, C.modal.width = R, C.modal.height = L, typeof a.modalComponent == "function" ? C.modal.component = a.modalComponent({ table: C.table, row: c, column: a }) : C.modal.component = a.modalComponent, C.modal.componentProps = a.modalComponentExtraProps;
3139
+ const { left: S, bottom: j, width: R, height: M } = _o(o);
3140
+ i.mask, i.modalComponent && e.store.$patch((C) => {
3141
+ C.modal.visible = !0, C.modal.colIndex = e.colIndex, C.modal.rowIndex = e.rowIndex, C.modal.left = S, C.modal.bottom = j, C.modal.width = R, C.modal.height = M, C.modal.cell = o.value, typeof i.modalComponent == "function" ? C.modal.component = i.modalComponent({ table: C.table, row: c, column: i }) : C.modal.component = i.modalComponent, C.modal.componentProps = i.modalComponentExtraProps;
3176
3142
  });
3177
3143
  };
3178
3144
  if (e.addNavigation) {
3179
3145
  let S = {
3180
- ...Qt,
3146
+ ...Yt,
3181
3147
  "keydown.f2": w,
3182
3148
  "keydown.alt.up": w,
3183
3149
  "keydown.alt.down": w,
@@ -3187,49 +3153,49 @@ const Ea = (e) => {
3187
3153
  typeof e.addNavigation == "object" && (S = {
3188
3154
  ...S,
3189
3155
  ...e.addNavigation
3190
- }), vo([
3156
+ }), go([
3191
3157
  {
3192
3158
  selectors: o,
3193
3159
  handlers: S
3194
3160
  }
3195
3161
  ]);
3196
3162
  }
3197
- const _ = () => {
3163
+ const b = () => {
3198
3164
  o.value && (s.value = o.value.textContent);
3199
3165
  }, I = (S) => {
3200
3166
  const j = S.target;
3201
- j.textContent !== s.value && (n("cellInput", e.colIndex, e.rowIndex, j.textContent, s.value), s.value = j.textContent, a.format ? (i.value = j.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, r), e.store.setCellText(e.colIndex, e.rowIndex, j.textContent)) : (i.value = j.textContent !== r, e.store.setCellData(e.colIndex, e.rowIndex, j.textContent)));
3167
+ j.textContent !== s.value && (n("cellInput", e.colIndex, e.rowIndex, j.textContent, s.value), s.value = j.textContent, i.format ? (a.value = j.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, r), e.store.setCellText(e.colIndex, e.rowIndex, j.textContent)) : (a.value = j.textContent !== r, e.store.setCellData(e.colIndex, e.rowIndex, j.textContent)));
3202
3168
  };
3203
3169
  return (S, j) => (x(), O("td", {
3204
3170
  ref: "cell",
3205
3171
  "data-colindex": S.colIndex,
3206
3172
  "data-rowindex": S.rowIndex,
3207
- "data-editable": k(a).edit,
3208
- contenteditable: k(a).edit,
3173
+ "data-editable": k(i).edit,
3174
+ contenteditable: k(i).edit,
3209
3175
  tabindex: S.tabIndex,
3210
3176
  spellcheck: !1,
3211
3177
  style: G(g.value),
3212
- onFocus: _,
3178
+ onFocus: b,
3213
3179
  onPaste: I,
3214
3180
  onInput: I,
3215
3181
  onClick: w,
3216
- class: de(["atable-cell", m.value])
3182
+ class: de(["atable-cell", h.value])
3217
3183
  }, [
3218
- k(a).cellComponent ? (x(), ue(Ct(k(a).cellComponent), Dt({
3184
+ k(i).cellComponent ? (x(), ue(Pt(k(i).cellComponent), It({
3219
3185
  key: 0,
3220
3186
  value: d.value
3221
- }, k(a).cellComponentProps), null, 16, ["value"])) : f.value ? (x(), O("span", {
3187
+ }, k(i).cellComponentProps), null, 16, ["value"])) : f.value ? (x(), O("span", {
3222
3188
  key: 1,
3223
3189
  innerHTML: d.value
3224
3190
  }, null, 8, xa)) : (x(), O("span", Sa, Z(d.value), 1))
3225
3191
  ], 46, ka));
3226
3192
  }
3227
- }), _o = (e, t) => {
3193
+ }), Eo = (e, t) => {
3228
3194
  const n = e.__vccOpts || e;
3229
3195
  for (const [o, r] of t)
3230
3196
  n[o] = r;
3231
3197
  return n;
3232
- }, Na = ["tabindex"], Pa = /* @__PURE__ */ Q({
3198
+ }, Na = ["tabindex"], Pa = /* @__PURE__ */ q({
3233
3199
  __name: "ARow",
3234
3200
  props: {
3235
3201
  rowIndex: {},
@@ -3238,20 +3204,20 @@ const Ea = (e) => {
3238
3204
  addNavigation: { type: [Boolean, Object], default: !1 }
3239
3205
  },
3240
3206
  setup(e) {
3241
- const t = We("rowEl"), n = N(() => e.store.isRowVisible(e.rowIndex)), o = N(() => e.store.getRowExpandSymbol(e.rowIndex));
3207
+ const t = We("rowEl"), n = P(() => e.store.isRowVisible(e.rowIndex)), o = P(() => e.store.getRowExpandSymbol(e.rowIndex));
3242
3208
  if (e.addNavigation) {
3243
- let r = Qt;
3209
+ let r = Yt;
3244
3210
  typeof e.addNavigation == "object" && (r = {
3245
3211
  ...r,
3246
3212
  ...e.addNavigation
3247
- }), vo([
3213
+ }), go([
3248
3214
  {
3249
3215
  selectors: t,
3250
3216
  handlers: r
3251
3217
  }
3252
3218
  ]);
3253
3219
  }
3254
- return (r, s) => Ve((x(), O("tr", {
3220
+ return (r, s) => Te((x(), O("tr", {
3255
3221
  ref: "rowEl",
3256
3222
  tabindex: r.tabIndex,
3257
3223
  class: "atable-row"
@@ -3265,15 +3231,15 @@ const Ea = (e) => {
3265
3231
  key: 1,
3266
3232
  tabIndex: -1,
3267
3233
  class: de(["tree-index", r.store.hasPinnedColumns ? "sticky-index" : ""]),
3268
- onClick: s[0] || (s[0] = (i) => r.store.toggleRowExpand(r.rowIndex))
3234
+ onClick: s[0] || (s[0] = (a) => r.store.toggleRowExpand(r.rowIndex))
3269
3235
  }, Z(o.value), 3)) : ee("", !0)
3270
3236
  ], !0) : ee("", !0),
3271
3237
  re(r.$slots, "default", {}, void 0, !0)
3272
3238
  ], 8, Na)), [
3273
- [It, n.value]
3239
+ [Nt, n.value]
3274
3240
  ]);
3275
3241
  }
3276
- }), Ia = /* @__PURE__ */ _o(Pa, [["__scopeId", "data-v-e02365ea"]]), Eo = qt ? window : void 0;
3242
+ }), Ia = /* @__PURE__ */ Eo(Pa, [["__scopeId", "data-v-9c529d3d"]]), $o = Qt ? window : void 0;
3277
3243
  function De(e) {
3278
3244
  var t;
3279
3245
  const n = z(e);
@@ -3281,120 +3247,120 @@ function De(e) {
3281
3247
  }
3282
3248
  function tt(...e) {
3283
3249
  let t, n, o, r;
3284
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Eo) : [t, n, o, r] = e, !t)
3250
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = $o) : [t, n, o, r] = e, !t)
3285
3251
  return Ee;
3286
3252
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3287
- const s = [], i = () => {
3253
+ const s = [], a = () => {
3288
3254
  s.forEach((u) => u()), s.length = 0;
3289
- }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
3255
+ }, i = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
3290
3256
  () => [De(t), z(r)],
3291
3257
  ([u, d]) => {
3292
- if (i(), !u)
3258
+ if (a(), !u)
3293
3259
  return;
3294
- const f = go(d) ? { ...d } : d;
3260
+ const f = yo(d) ? { ...d } : d;
3295
3261
  s.push(
3296
- ...n.flatMap((g) => o.map((m) => a(u, g, m, f)))
3262
+ ...n.flatMap((g) => o.map((h) => i(u, g, h, f)))
3297
3263
  );
3298
3264
  },
3299
3265
  { immediate: !0, flush: "post" }
3300
3266
  ), l = () => {
3301
- c(), i();
3267
+ c(), a();
3302
3268
  };
3303
3269
  return Fe(l), l;
3304
3270
  }
3305
- let kn = !1;
3306
- function xn(e, t, n = {}) {
3307
- const { window: o = Eo, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
3271
+ let xn = !1;
3272
+ function Sn(e, t, n = {}) {
3273
+ const { window: o = $o, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
3308
3274
  if (!o)
3309
3275
  return Ee;
3310
- Nt && !kn && (kn = !0, Array.from(o.document.body.children).forEach((m) => m.addEventListener("click", Ee)), o.document.documentElement.addEventListener("click", Ee));
3311
- let a = !0;
3312
- const c = (m) => z(r).some((w) => {
3276
+ Ot && !xn && (xn = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", Ee)), o.document.documentElement.addEventListener("click", Ee));
3277
+ let i = !0;
3278
+ const c = (h) => z(r).some((w) => {
3313
3279
  if (typeof w == "string")
3314
- return Array.from(o.document.querySelectorAll(w)).some((_) => _ === m.target || m.composedPath().includes(_));
3280
+ return Array.from(o.document.querySelectorAll(w)).some((b) => b === h.target || h.composedPath().includes(b));
3315
3281
  {
3316
- const _ = De(w);
3317
- return _ && (m.target === _ || m.composedPath().includes(_));
3282
+ const b = De(w);
3283
+ return b && (h.target === b || h.composedPath().includes(b));
3318
3284
  }
3319
3285
  });
3320
- function l(m) {
3321
- const w = z(m);
3286
+ function l(h) {
3287
+ const w = z(h);
3322
3288
  return w && w.$.subTree.shapeFlag === 16;
3323
3289
  }
3324
- function u(m, w) {
3325
- const _ = z(m), I = _.$.subTree && _.$.subTree.children;
3290
+ function u(h, w) {
3291
+ const b = z(h), I = b.$.subTree && b.$.subTree.children;
3326
3292
  return I == null || !Array.isArray(I) ? !1 : I.some((S) => S.el === w.target || w.composedPath().includes(S.el));
3327
3293
  }
3328
- const d = (m) => {
3294
+ const d = (h) => {
3329
3295
  const w = De(e);
3330
- if (m.target != null && !(!(w instanceof Element) && l(e) && u(e, m)) && !(!w || w === m.target || m.composedPath().includes(w))) {
3331
- if (m.detail === 0 && (a = !c(m)), !a) {
3332
- a = !0;
3296
+ if (h.target != null && !(!(w instanceof Element) && l(e) && u(e, h)) && !(!w || w === h.target || h.composedPath().includes(w))) {
3297
+ if (h.detail === 0 && (i = !c(h)), !i) {
3298
+ i = !0;
3333
3299
  return;
3334
3300
  }
3335
- t(m);
3301
+ t(h);
3336
3302
  }
3337
3303
  };
3338
3304
  let f = !1;
3339
3305
  const g = [
3340
- tt(o, "click", (m) => {
3306
+ tt(o, "click", (h) => {
3341
3307
  f || (f = !0, setTimeout(() => {
3342
3308
  f = !1;
3343
- }, 0), d(m));
3309
+ }, 0), d(h));
3344
3310
  }, { passive: !0, capture: s }),
3345
- tt(o, "pointerdown", (m) => {
3311
+ tt(o, "pointerdown", (h) => {
3346
3312
  const w = De(e);
3347
- a = !c(m) && !!(w && !m.composedPath().includes(w));
3313
+ i = !c(h) && !!(w && !h.composedPath().includes(w));
3348
3314
  }, { passive: !0 }),
3349
- i && tt(o, "blur", (m) => {
3315
+ a && tt(o, "blur", (h) => {
3350
3316
  setTimeout(() => {
3351
3317
  var w;
3352
- const _ = De(e);
3353
- ((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(_ != null && _.contains(o.document.activeElement)) && t(m);
3318
+ const b = De(e);
3319
+ ((w = o.document.activeElement) == null ? void 0 : w.tagName) === "IFRAME" && !(b != null && b.contains(o.document.activeElement)) && t(h);
3354
3320
  }, 0);
3355
3321
  })
3356
3322
  ].filter(Boolean);
3357
- return () => g.forEach((m) => m());
3323
+ return () => g.forEach((h) => h());
3358
3324
  }
3359
3325
  const Ca = {
3360
3326
  mounted(e, t) {
3361
3327
  const n = !t.modifiers.bubble;
3362
3328
  if (typeof t.value == "function")
3363
- e.__onClickOutside_stop = xn(e, t.value, { capture: n });
3329
+ e.__onClickOutside_stop = Sn(e, t.value, { capture: n });
3364
3330
  else {
3365
3331
  const [o, r] = t.value;
3366
- e.__onClickOutside_stop = xn(e, o, Object.assign({ capture: n }, r));
3332
+ e.__onClickOutside_stop = Sn(e, o, Object.assign({ capture: n }, r));
3367
3333
  }
3368
3334
  },
3369
3335
  unmounted(e) {
3370
3336
  e.__onClickOutside_stop();
3371
3337
  }
3372
3338
  };
3373
- function bt(e) {
3339
+ function wt(e) {
3374
3340
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
3375
3341
  }
3376
- function $o(e) {
3342
+ function ko(e) {
3377
3343
  const t = window.getComputedStyle(e);
3378
3344
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
3379
3345
  return !0;
3380
3346
  {
3381
3347
  const n = e.parentNode;
3382
- return !n || n.tagName === "BODY" ? !1 : $o(n);
3348
+ return !n || n.tagName === "BODY" ? !1 : ko(n);
3383
3349
  }
3384
3350
  }
3385
3351
  function Da(e) {
3386
3352
  const t = e || window.event, n = t.target;
3387
- return $o(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
3353
+ return ko(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
3388
3354
  }
3389
- const _t = /* @__PURE__ */ new WeakMap();
3355
+ const bt = /* @__PURE__ */ new WeakMap();
3390
3356
  function Aa(e, t = !1) {
3391
- const n = b(t);
3357
+ const n = _(t);
3392
3358
  let o = null, r = "";
3393
- D(ga(e), (a) => {
3394
- const c = bt(z(a));
3359
+ D(ya(e), (i) => {
3360
+ const c = wt(z(i));
3395
3361
  if (c) {
3396
3362
  const l = c;
3397
- if (_t.get(l) || _t.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
3363
+ if (bt.get(l) || bt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
3398
3364
  return n.value = !0;
3399
3365
  if (n.value)
3400
3366
  return l.style.overflow = "hidden";
@@ -3403,31 +3369,31 @@ function Aa(e, t = !1) {
3403
3369
  immediate: !0
3404
3370
  });
3405
3371
  const s = () => {
3406
- const a = bt(z(e));
3407
- !a || n.value || (Nt && (o = tt(
3408
- a,
3372
+ const i = wt(z(e));
3373
+ !i || n.value || (Ot && (o = tt(
3374
+ i,
3409
3375
  "touchmove",
3410
3376
  (c) => {
3411
3377
  Da(c);
3412
3378
  },
3413
3379
  { passive: !1 }
3414
- )), a.style.overflow = "hidden", n.value = !0);
3415
- }, i = () => {
3416
- const a = bt(z(e));
3417
- !a || !n.value || (Nt && (o == null || o()), a.style.overflow = r, _t.delete(a), n.value = !1);
3380
+ )), i.style.overflow = "hidden", n.value = !0);
3381
+ }, a = () => {
3382
+ const i = wt(z(e));
3383
+ !i || !n.value || (Ot && (o == null || o()), i.style.overflow = r, bt.delete(i), n.value = !1);
3418
3384
  };
3419
- return Fe(i), N({
3385
+ return Fe(a), P({
3420
3386
  get() {
3421
3387
  return n.value;
3422
3388
  },
3423
- set(a) {
3424
- a ? s() : i();
3389
+ set(i) {
3390
+ i ? s() : a();
3425
3391
  }
3426
3392
  });
3427
3393
  }
3428
- function Ta() {
3394
+ function Va() {
3429
3395
  let e = !1;
3430
- const t = b(!1);
3396
+ const t = _(!1);
3431
3397
  return (n, o) => {
3432
3398
  if (t.value = o.value, e)
3433
3399
  return;
@@ -3436,22 +3402,22 @@ function Ta() {
3436
3402
  D(t, (s) => r.value = s);
3437
3403
  };
3438
3404
  }
3439
- Ta();
3440
- const Va = {
3405
+ Va();
3406
+ const Ta = {
3441
3407
  key: 0,
3442
3408
  id: "resizable"
3443
3409
  }, ja = {
3444
3410
  class: "atable-header-row",
3445
3411
  tabindex: "-1"
3446
- }, Ma = /* @__PURE__ */ Q({
3412
+ }, La = /* @__PURE__ */ q({
3447
3413
  __name: "ATableHeader",
3448
3414
  props: {
3449
3415
  columns: {},
3450
3416
  store: {}
3451
3417
  },
3452
3418
  setup(e) {
3453
- return (t, n) => t.columns.length ? (x(), O("thead", Va, [
3454
- P("tr", ja, [
3419
+ return (t, n) => t.columns.length ? (x(), O("thead", Ta, [
3420
+ N("tr", ja, [
3455
3421
  t.store.zeroColumn ? (x(), O("th", {
3456
3422
  key: 0,
3457
3423
  id: "header-index",
@@ -3468,58 +3434,57 @@ const Va = {
3468
3434
  class: de(o.pinned ? "sticky-column" : "")
3469
3435
  }, [
3470
3436
  re(t.$slots, "default", {}, () => [
3471
- In(Z(o.label || String.fromCharCode(r + 97).toUpperCase()), 1)
3437
+ Cn(Z(o.label || String.fromCharCode(r + 97).toUpperCase()), 1)
3472
3438
  ])
3473
3439
  ], 6))), 128))
3474
3440
  ])
3475
3441
  ])) : ee("", !0);
3476
3442
  }
3477
- }), La = /* @__PURE__ */ Q({
3443
+ }), Ma = /* @__PURE__ */ q({
3478
3444
  __name: "ATableModal",
3479
3445
  props: {
3480
3446
  store: {}
3481
3447
  },
3482
3448
  setup(e) {
3483
- const t = We("amodal"), { width: n, height: o } = bo(t), { y: r } = _a(), s = N(() => {
3449
+ const t = We("amodal"), { width: n, height: o } = _o(t), r = P(() => {
3450
+ var s, a, i, c;
3484
3451
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
3485
- const a = document.body, c = document.documentElement, l = Math.max(
3486
- a.scrollHeight,
3487
- a.offsetHeight,
3488
- c.clientHeight,
3489
- c.scrollHeight,
3490
- c.offsetHeight
3491
- ), u = Math.max(a.scrollWidth, a.offsetWidth, c.clientWidth, c.scrollWidth, c.offsetWidth), d = e.store.modal.bottom + o.value + r.value <= l ? e.store.modal.bottom : e.store.modal.bottom - o.value - e.store.modal.height;
3492
- return {
3493
- left: `${e.store.modal.left + n.value <= u ? e.store.modal.left : e.store.modal.left - (n.value - e.store.modal.width)}px`,
3494
- top: `${d}px`
3452
+ const l = (s = e.store.modal.cell) == null ? void 0 : s.closest("table"), u = l.offsetHeight || 0, d = l.offsetWidth || 0;
3453
+ let f = ((a = e.store.modal.cell) == null ? void 0 : a.offsetTop) || 0;
3454
+ const g = ((i = l.querySelector("thead")) == null ? void 0 : i.offsetHeight) || 0;
3455
+ f += g, f = f + o.value < u ? f : f - (o.value + e.store.modal.height);
3456
+ let h = ((c = e.store.modal.cell) == null ? void 0 : c.offsetLeft) || 0;
3457
+ return h = h + n.value <= d ? h : h - (n.value - e.store.modal.width), {
3458
+ left: `${h}px`,
3459
+ top: `${f}px`
3495
3460
  };
3496
- }), i = (a) => {
3497
- a.stopPropagation();
3498
- };
3499
- return (a, c) => (x(), O("div", {
3461
+ });
3462
+ return (s, a) => (x(), O("div", {
3500
3463
  class: "amodal",
3501
3464
  ref: "amodal",
3502
3465
  tabindex: "-1",
3503
- onClick: i,
3504
- onInput: i,
3505
- style: G(s.value)
3466
+ onClick: a[0] || (a[0] = Xt(() => {
3467
+ }, ["stop"])),
3468
+ onInput: a[1] || (a[1] = Xt(() => {
3469
+ }, ["stop"])),
3470
+ style: G(r.value)
3506
3471
  }, [
3507
- re(a.$slots, "default")
3472
+ re(s.$slots, "default")
3508
3473
  ], 36));
3509
3474
  }
3510
3475
  }), Ra = (e) => {
3511
3476
  const t = e.id || $a();
3512
- return (/* @__PURE__ */ Qs(`table-${t}`, () => {
3477
+ return (/* @__PURE__ */ Xs(`table-${t}`, () => {
3513
3478
  const n = () => {
3514
- const h = {};
3479
+ const m = {};
3515
3480
  for (const [E, y] of r.value.entries())
3516
3481
  for (const [p, v] of s.value.entries())
3517
- h[`${E}:${p}`] = v[y.name];
3518
- return h;
3519
- }, o = (h) => {
3482
+ m[`${E}:${p}`] = v[y.name];
3483
+ return m;
3484
+ }, o = (m) => {
3520
3485
  const E = [Object.assign({}, { rowModified: !1 })];
3521
- if (h && "0:0" in h)
3522
- return h;
3486
+ if (m && "0:0" in m)
3487
+ return m;
3523
3488
  const y = /* @__PURE__ */ new Set();
3524
3489
  for (let p = s.value.length - 1; p >= 0; p--) {
3525
3490
  const v = s.value[p];
@@ -3535,62 +3500,62 @@ const Va = {
3535
3500
  };
3536
3501
  }
3537
3502
  return E;
3538
- }, r = b(e.columns), s = b(e.rows), i = b(e.config || {}), a = b(e.table || n()), c = b(o(e.display)), l = b(e.modal || { visible: !1 }), u = b({}), d = N(() => r.value.some((h) => h.pinned)), f = N(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), g = N(
3539
- () => i.value.view ? ["list", "tree", "list-expansion"].includes(i.value.view) : !1
3540
- ), m = (h, E) => a.value[`${h}:${E}`], w = (h, E, y) => {
3541
- const p = `${h}:${E}`, v = r.value[h];
3542
- a.value[p] !== y && (c.value[E].rowModified = !0), a.value[p] = y, s.value[E][v.name] = y;
3543
- }, _ = (h, E, y) => {
3544
- const p = `${h}:${E}`;
3545
- a.value[p] !== y && (c.value[E].rowModified = !0, u.value[p] = y);
3546
- }, I = (h) => ({
3547
- minWidth: h.width || "40ch",
3548
- textAlign: h.align || "center",
3549
- width: i.value.fullWidth ? "auto" : void 0
3550
- }), S = (h) => i.value.view !== "tree" || c.value[h].isRoot || c.value[h].open, j = (h) => i.value.view !== "tree" ? "" : c.value[h].isRoot || c.value[h].isParent ? c.value[h].childrenOpen ? "-" : "+" : "", R = (h) => {
3551
- if (i.value.view === "tree") {
3552
- c.value[h].childrenOpen = !c.value[h].childrenOpen;
3503
+ }, r = _(e.columns), s = _(e.rows), a = _(e.config || {}), i = _(e.table || n()), c = _(o(e.display)), l = _(e.modal || { visible: !1 }), u = _({}), d = P(() => r.value.some((m) => m.pinned)), f = P(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), g = P(
3504
+ () => a.value.view ? ["list", "tree", "list-expansion"].includes(a.value.view) : !1
3505
+ ), h = (m, E) => i.value[`${m}:${E}`], w = (m, E, y) => {
3506
+ const p = `${m}:${E}`, v = r.value[m];
3507
+ i.value[p] !== y && (c.value[E].rowModified = !0), i.value[p] = y, s.value[E][v.name] = y;
3508
+ }, b = (m, E, y) => {
3509
+ const p = `${m}:${E}`;
3510
+ i.value[p] !== y && (c.value[E].rowModified = !0, u.value[p] = y);
3511
+ }, I = (m) => ({
3512
+ minWidth: m.width || "40ch",
3513
+ textAlign: m.align || "center",
3514
+ width: a.value.fullWidth ? "auto" : void 0
3515
+ }), S = (m) => a.value.view !== "tree" || c.value[m].isRoot || c.value[m].open, j = (m) => a.value.view !== "tree" ? "" : c.value[m].isRoot || c.value[m].isParent ? c.value[m].childrenOpen ? "-" : "+" : "", R = (m) => {
3516
+ if (a.value.view === "tree") {
3517
+ c.value[m].childrenOpen = !c.value[m].childrenOpen;
3553
3518
  for (let E = s.value.length - 1; E >= 0; E--)
3554
- c.value[E].parent === h && (c.value[E].open = !c.value[E].open, c.value[E].childrenOpen && R(E));
3555
- } else i.value.view === "list-expansion" && (c.value[h].expanded = !c.value[h].expanded);
3556
- }, L = (h, E) => {
3557
- const y = m(h, E);
3558
- return C(h, E, y);
3559
- }, C = (h, E, y) => {
3560
- const p = r.value[h], v = s.value[E], $ = p.format;
3561
- return $ ? typeof $ == "function" ? $(y, { table: a.value, row: v, column: p }) : typeof $ == "string" ? Function(`"use strict";return (${$})`)()(y, { table: a.value, row: v, column: p }) : y : y;
3519
+ c.value[E].parent === m && (c.value[E].open = !c.value[E].open, c.value[E].childrenOpen && R(E));
3520
+ } else a.value.view === "list-expansion" && (c.value[m].expanded = !c.value[m].expanded);
3521
+ }, M = (m, E) => {
3522
+ const y = h(m, E);
3523
+ return C(m, E, y);
3524
+ }, C = (m, E, y) => {
3525
+ const p = r.value[m], v = s.value[E], $ = p.format;
3526
+ return $ ? typeof $ == "function" ? $(y, { table: i.value, row: v, column: p }) : typeof $ == "string" ? Function(`"use strict";return (${$})`)()(y, { table: i.value, row: v, column: p }) : y : y;
3562
3527
  };
3563
3528
  return {
3564
3529
  // state
3565
3530
  columns: r,
3566
- config: i,
3531
+ config: a,
3567
3532
  display: c,
3568
3533
  modal: l,
3569
3534
  rows: s,
3570
- table: a,
3535
+ table: i,
3571
3536
  updates: u,
3572
3537
  // getters
3573
3538
  hasPinnedColumns: d,
3574
3539
  numberedRowWidth: f,
3575
3540
  zeroColumn: g,
3576
3541
  // actions
3577
- closeModal: (h) => {
3542
+ closeModal: (m) => {
3578
3543
  var E;
3579
- h.target instanceof Node && (E = l.value.parent) != null && E.contains(h.target) || l.value.visible && (l.value.visible = !1);
3544
+ m.target instanceof Node && (E = l.value.parent) != null && E.contains(m.target) || l.value.visible && (l.value.visible = !1);
3580
3545
  },
3581
- getCellData: m,
3582
- getCellDisplayValue: L,
3546
+ getCellData: h,
3547
+ getCellDisplayValue: M,
3583
3548
  getFormattedValue: C,
3584
3549
  getHeaderCellStyle: I,
3585
- getIndent: (h, E) => E && h === 0 && E > 0 ? `${E}ch` : "inherit",
3550
+ getIndent: (m, E) => E && m === 0 && E > 0 ? `${E}ch` : "inherit",
3586
3551
  getRowExpandSymbol: j,
3587
3552
  isRowVisible: S,
3588
3553
  setCellData: w,
3589
- setCellText: _,
3554
+ setCellText: b,
3590
3555
  toggleRowExpand: R
3591
3556
  };
3592
3557
  }))();
3593
- }, Ba = /* @__PURE__ */ Q({
3558
+ }, Ba = /* @__PURE__ */ q({
3594
3559
  __name: "ATable",
3595
3560
  props: {
3596
3561
  id: {},
@@ -3601,112 +3566,112 @@ const Va = {
3601
3566
  },
3602
3567
  emits: ["update:modelValue", "cellUpdate"],
3603
3568
  setup(e, { expose: t, emit: n }) {
3604
- const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, i = Ra({ columns: e.columns, rows: s, id: e.id, config: e.config });
3605
- i.$onAction(({ name: l, store: u, args: d, after: f }) => {
3569
+ const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, a = Ra({ columns: e.columns, rows: s, id: e.id, config: e.config });
3570
+ a.$onAction(({ name: l, store: u, args: d, after: f }) => {
3606
3571
  if (l === "setCellData") {
3607
- const [g, m, w] = d, _ = u.getCellData(g, m);
3572
+ const [g, h, w] = d, b = u.getCellData(g, h);
3608
3573
  f(() => {
3609
- o("cellUpdate", g, m, w, _);
3574
+ o("cellUpdate", g, h, w, b);
3610
3575
  });
3611
3576
  }
3612
3577
  }), D(
3613
- () => i.rows,
3578
+ () => a.rows,
3614
3579
  (l) => {
3615
3580
  o("update:modelValue", l);
3616
3581
  },
3617
3582
  { deep: !0 }
3618
3583
  ), ge(() => {
3619
- e.columns.some((l) => l.pinned) && (c(), i.config.view === "tree" && wo(r, c, { childList: !0, subtree: !0 }));
3584
+ e.columns.some((l) => l.pinned) && (c(), a.config.view === "tree" && bo(r, c, { childList: !0, subtree: !0 }));
3620
3585
  });
3621
- const a = (l, u, d, f) => {
3586
+ const i = (l, u, d, f) => {
3622
3587
  o("cellUpdate", l, u, d, f);
3623
3588
  }, c = () => {
3624
3589
  const l = r.value, u = l == null ? void 0 : l.rows[0], d = l == null ? void 0 : l.rows[1], f = u ? Array.from(u.cells) : [];
3625
- for (const [g, m] of f.entries()) {
3590
+ for (const [g, h] of f.entries()) {
3626
3591
  const w = d == null ? void 0 : d.cells[g];
3627
- w && (m.style.width = `${w.offsetWidth}px`);
3592
+ w && (h.style.width = `${w.offsetWidth}px`);
3628
3593
  }
3629
3594
  for (const g of (l == null ? void 0 : l.rows) || []) {
3630
- let m = 0;
3595
+ let h = 0;
3631
3596
  const w = [];
3632
- for (const _ of g.cells)
3633
- (_.classList.contains("sticky-column") || _.classList.contains("sticky-index")) && (_.style.left = `${m}px`, m += _.offsetWidth, w.push(_));
3597
+ for (const b of g.cells)
3598
+ (b.classList.contains("sticky-column") || b.classList.contains("sticky-index")) && (b.style.left = `${h}px`, h += b.offsetWidth, w.push(b));
3634
3599
  w.length > 0 && w[w.length - 1].classList.add("sticky-column-edge");
3635
3600
  }
3636
3601
  };
3637
3602
  return window.addEventListener("keydown", (l) => {
3638
- if (l.key === "Escape" && i.modal.visible) {
3639
- i.modal.visible = !1;
3640
- const u = i.modal.parent;
3603
+ if (l.key === "Escape" && a.modal.visible) {
3604
+ a.modal.visible = !1;
3605
+ const u = a.modal.parent;
3641
3606
  u && he().then(() => {
3642
3607
  u.focus();
3643
3608
  });
3644
3609
  }
3645
- }), t({ store: i }), (l, u) => Ve((x(), O("table", {
3610
+ }), t({ store: a }), (l, u) => Te((x(), O("table", {
3646
3611
  ref: "table",
3647
3612
  class: "atable",
3648
- style: G({ width: k(i).config.fullWidth ? "100%" : "auto" })
3613
+ style: G({ width: k(a).config.fullWidth ? "100%" : "auto" })
3649
3614
  }, [
3650
- re(l.$slots, "header", { data: k(i) }, () => [
3651
- ot(Ma, {
3652
- columns: k(i).columns,
3653
- store: k(i)
3615
+ re(l.$slots, "header", { data: k(a) }, () => [
3616
+ ot(La, {
3617
+ columns: k(a).columns,
3618
+ store: k(a)
3654
3619
  }, null, 8, ["columns", "store"])
3655
3620
  ], !0),
3656
- P("tbody", null, [
3657
- re(l.$slots, "body", { data: k(i) }, () => [
3658
- (x(!0), O(fe, null, pe(k(i).rows, (d, f) => (x(), ue(Ia, {
3621
+ N("tbody", null, [
3622
+ re(l.$slots, "body", { data: k(a) }, () => [
3623
+ (x(!0), O(fe, null, pe(k(a).rows, (d, f) => (x(), ue(Ia, {
3659
3624
  key: d.id,
3660
3625
  row: d,
3661
3626
  rowIndex: f,
3662
- store: k(i)
3627
+ store: k(a)
3663
3628
  }, {
3664
3629
  default: rt(() => [
3665
- (x(!0), O(fe, null, pe(k(i).columns, (g, m) => (x(), ue(Oa, {
3630
+ (x(!0), O(fe, null, pe(k(a).columns, (g, h) => (x(), ue(Oa, {
3666
3631
  key: g.name,
3667
- store: k(i),
3632
+ store: k(a),
3668
3633
  col: g,
3669
3634
  spellcheck: "false",
3670
3635
  pinned: g.pinned,
3671
3636
  rowIndex: f,
3672
- colIndex: m,
3637
+ colIndex: h,
3673
3638
  component: g.cellComponent,
3674
3639
  style: G({
3675
3640
  textAlign: (g == null ? void 0 : g.align) || "center",
3676
3641
  minWidth: (g == null ? void 0 : g.width) || "40ch",
3677
- width: k(i).config.fullWidth ? "auto" : null
3642
+ width: k(a).config.fullWidth ? "auto" : null
3678
3643
  }),
3679
- onCellInput: a
3644
+ onCellInput: i
3680
3645
  }, null, 8, ["store", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
3681
3646
  ]),
3682
3647
  _: 2
3683
3648
  }, 1032, ["row", "rowIndex", "store"]))), 128))
3684
3649
  ], !0)
3685
3650
  ]),
3686
- re(l.$slots, "footer", { data: k(i) }, void 0, !0),
3687
- re(l.$slots, "modal", { data: k(i) }, () => [
3688
- Ve(ot(La, { store: k(i) }, {
3651
+ re(l.$slots, "footer", { data: k(a) }, void 0, !0),
3652
+ re(l.$slots, "modal", { data: k(a) }, () => [
3653
+ Te(ot(Ma, { store: k(a) }, {
3689
3654
  default: rt(() => [
3690
- (x(), ue(Ct(k(i).modal.component), Dt({
3691
- key: `${k(i).modal.rowIndex}:${k(i).modal.colIndex}`,
3692
- colIndex: k(i).modal.colIndex,
3693
- rowIndex: k(i).modal.rowIndex,
3694
- store: k(i)
3695
- }, k(i).modal.componentProps), null, 16, ["colIndex", "rowIndex", "store"]))
3655
+ (x(), ue(Pt(k(a).modal.component), It({
3656
+ key: `${k(a).modal.rowIndex}:${k(a).modal.colIndex}`,
3657
+ colIndex: k(a).modal.colIndex,
3658
+ rowIndex: k(a).modal.rowIndex,
3659
+ store: k(a)
3660
+ }, k(a).modal.componentProps), null, 16, ["colIndex", "rowIndex", "store"]))
3696
3661
  ]),
3697
3662
  _: 1
3698
3663
  }, 8, ["store"]), [
3699
- [It, k(i).modal.visible]
3664
+ [Nt, k(a).modal.visible]
3700
3665
  ])
3701
3666
  ], !0)
3702
3667
  ], 4)), [
3703
- [k(Ca), k(i).closeModal]
3668
+ [k(Ca), k(a).closeModal]
3704
3669
  ]);
3705
3670
  }
3706
- }), Ua = /* @__PURE__ */ _o(Ba, [["__scopeId", "data-v-bd5101d3"]]), Wa = /* @__PURE__ */ Q({
3671
+ }), Ua = /* @__PURE__ */ Eo(Ba, [["__scopeId", "data-v-37bee2a6"]]), Wa = /* @__PURE__ */ q({
3707
3672
  __name: "Records",
3708
3673
  setup(e) {
3709
- const { stonecrop: t, isReady: n } = Qn(), o = { view: "list" };
3674
+ const { stonecrop: t, isReady: n } = Xn(), o = { view: "list" };
3710
3675
  return (r, s) => k(n) ? (x(), ue(k(Ua), {
3711
3676
  key: 0,
3712
3677
  columns: k(t).schema.schema.toArray(),
@@ -3724,40 +3689,40 @@ const Va = {
3724
3689
  viewBox: "0 0 424.098 424.098",
3725
3690
  style: { "enable-background": "new 0 0 424.098 424.098" },
3726
3691
  "xml:space": "preserve"
3727
- }, Ja = { tabindex: "0" }, Ga = { style: { width: "11pt" } }, Ya = /* @__PURE__ */ Q({
3692
+ }, Ja = { tabindex: "0" }, Ga = { style: { width: "11pt" } }, Ya = /* @__PURE__ */ q({
3728
3693
  __name: "SheetNav",
3729
3694
  props: {
3730
3695
  breadcrumbs: { default: () => [] }
3731
3696
  },
3732
3697
  setup(e) {
3733
- const t = b(!0), n = b(!1), o = b(""), r = We("searchinput"), s = N(() => t.value ? "unrotated" : "rotated"), i = () => {
3698
+ const t = _(!0), n = _(!1), o = _(""), r = We("searchinput"), s = P(() => t.value ? "unrotated" : "rotated"), a = () => {
3734
3699
  t.value = !t.value;
3735
- }, a = async () => {
3700
+ }, i = async () => {
3736
3701
  n.value = !n.value, await he(() => {
3737
3702
  r.value.focus();
3738
3703
  });
3739
3704
  }, c = (d) => {
3740
3705
  d.preventDefault(), d.stopPropagation();
3741
3706
  }, l = async (d) => {
3742
- d.preventDefault(), d.stopPropagation(), await a();
3707
+ d.preventDefault(), d.stopPropagation(), await i();
3743
3708
  }, u = () => {
3744
3709
  };
3745
3710
  return (d, f) => {
3746
- const g = xo("router-link");
3711
+ const g = So("router-link");
3747
3712
  return x(), O("footer", null, [
3748
- P("ul", Ha, [
3749
- P("li", {
3713
+ N("ul", Ha, [
3714
+ N("li", {
3750
3715
  class: "hidebreadcrumbs",
3751
- onClick: i,
3752
- onKeydown: ze(i, ["enter"])
3716
+ onClick: a,
3717
+ onKeydown: ze(a, ["enter"])
3753
3718
  }, [
3754
- P("a", Fa, [
3755
- P("div", {
3719
+ N("a", Fa, [
3720
+ N("div", {
3756
3721
  class: de(s.value)
3757
3722
  }, "×", 2)
3758
3723
  ])
3759
3724
  ], 32),
3760
- P("li", {
3725
+ N("li", {
3761
3726
  class: "hometab",
3762
3727
  onClick: u,
3763
3728
  onKeydown: ze(u, ["enter"]),
@@ -3769,8 +3734,8 @@ const Va = {
3769
3734
  }, {
3770
3735
  default: rt(() => [
3771
3736
  (x(), O("svg", za, f[5] || (f[5] = [
3772
- P("g", null, [
3773
- P("path", {
3737
+ N("g", null, [
3738
+ N("path", {
3774
3739
  style: { fill: "#010002" },
3775
3740
  d: `M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
3776
3741
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
@@ -3788,19 +3753,19 @@ const Va = {
3788
3753
  _: 1
3789
3754
  })
3790
3755
  ], 36),
3791
- P("li", {
3756
+ N("li", {
3792
3757
  class: "searchtab",
3793
- onClick: a,
3794
- onKeydown: ze(a, ["enter"]),
3758
+ onClick: i,
3759
+ onKeydown: ze(i, ["enter"]),
3795
3760
  style: G({ display: t.value ? "block" : "none" })
3796
3761
  }, [
3797
- P("a", Ja, [
3798
- P("span", {
3762
+ N("a", Ja, [
3763
+ N("span", {
3799
3764
  style: G({ display: n.value ? "none" : "block" })
3800
3765
  }, [
3801
3766
  (x(), O("svg", Ga, f[6] || (f[6] = [
3802
- P("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
3803
- P("path", {
3767
+ N("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
3768
+ N("path", {
3804
3769
  d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
3805
3770
  style: { fill: "#000000", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none" },
3806
3771
  id: "path2"
@@ -3808,30 +3773,30 @@ const Va = {
3808
3773
  ], -1)
3809
3774
  ])))
3810
3775
  ], 4),
3811
- Ve(P("input", {
3812
- "onUpdate:modelValue": f[0] || (f[0] = (m) => o.value = m),
3776
+ Te(N("input", {
3777
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => o.value = h),
3813
3778
  ref: "searchinput",
3814
3779
  style: G({ display: n.value ? "block" : "none" }),
3815
- onClick: f[1] || (f[1] = (m) => c(m)),
3816
- onInput: f[2] || (f[2] = (m) => c(m)),
3817
- onBlur: f[3] || (f[3] = (m) => l(m)),
3818
- onKeydown: f[4] || (f[4] = ze((m) => l(m), ["enter"])),
3780
+ onClick: f[1] || (f[1] = (h) => c(h)),
3781
+ onInput: f[2] || (f[2] = (h) => c(h)),
3782
+ onBlur: f[3] || (f[3] = (h) => l(h)),
3783
+ onKeydown: f[4] || (f[4] = ze((h) => l(h), ["enter"])),
3819
3784
  type: "text"
3820
3785
  }, null, 36), [
3821
- [So, o.value]
3786
+ [Oo, o.value]
3822
3787
  ])
3823
3788
  ])
3824
3789
  ], 36),
3825
- (x(!0), O(fe, null, pe(d.breadcrumbs, (m) => (x(), O("li", {
3826
- key: m.title,
3790
+ (x(!0), O(fe, null, pe(d.breadcrumbs, (h) => (x(), O("li", {
3791
+ key: h.title,
3827
3792
  style: G({ display: t.value ? "block" : "none" })
3828
3793
  }, [
3829
3794
  ot(g, {
3830
3795
  tabindex: "0",
3831
- to: m.to
3796
+ to: h.to
3832
3797
  }, {
3833
3798
  default: rt(() => [
3834
- In(Z(m.title), 1)
3799
+ Cn(Z(h.title), 1)
3835
3800
  ]),
3836
3801
  _: 2
3837
3802
  }, 1032, ["to"])
@@ -3840,17 +3805,17 @@ const Va = {
3840
3805
  ]);
3841
3806
  };
3842
3807
  }
3843
- }), Xa = /* @__PURE__ */ Vt(Ya, [["__scopeId", "data-v-a650f215"]]), Ka = {
3808
+ }), Qa = /* @__PURE__ */ At(Ya, [["__scopeId", "data-v-a650f215"]]), Ka = {
3844
3809
  install: (e) => {
3845
- e.component("ActionSet", Mo), e.component("CommandPalette", Bo), e.component("Doctype", Fs), e.component("Records", Wa), e.component("SheetNav", Xa);
3810
+ e.component("ActionSet", Mo), e.component("CommandPalette", Uo), e.component("Doctype", zs), e.component("Records", Wa), e.component("SheetNav", Qa);
3846
3811
  }
3847
3812
  };
3848
3813
  export {
3849
3814
  Mo as ActionSet,
3850
- Bo as CommandPalette,
3851
- Fs as Doctype,
3815
+ Uo as CommandPalette,
3816
+ zs as Doctype,
3852
3817
  Wa as Records,
3853
- Xa as SheetNav,
3818
+ Qa as SheetNav,
3854
3819
  Ka as StonecropDesktop
3855
3820
  };
3856
3821
  //# sourceMappingURL=desktop.js.map