@mjsz-vbr-elements/core 2.11.2 → 2.11.3

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.
@@ -1,25 +1,25 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.11.3 - 15/01/2025, 13:04:28
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { ref as I, readonly as fe, watch as S, nextTick as z, getCurrentScope as Pe, onScopeDispose as Ce, toValue as E, isRef as Re, shallowRef as re, unref as O, reactive as de, defineComponent as je, h as _e, computed as j, provide as pe, inject as me, onErrorCaptured as Le } from "vue";
9
- import { _ as U, w as Ne, x as ke, z as Fe, A as De, B as Be, C as Me, D as We, E as oe, F as k, G as F, H as $e, I as ze, u as Ue } from "./datetime-DTVWbsTz.js";
10
- import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as K, SORT_STATE_ASCEND as W } from "./constants.js";
11
- function ye(e) {
12
- return Pe() ? (Ce(e), !0) : !1;
8
+ import { ref as I, readonly as pe, watch as S, nextTick as U, getCurrentScope as je, onScopeDispose as Le, toValue as E, isRef as De, shallowRef as ie, unref as O, reactive as me, defineComponent as ke, h as Ne, computed as _, provide as ye, inject as ve, onErrorCaptured as Fe } from "vue";
9
+ import { _ as K, w as Be, x as We, z as X, A as Me, B as $e, C as he, D as B, E as ge, F as ze, G as ae, H as k, I as N, J as Ue, K as Ke, u as Ge } from "./datetime-K_d-hEsO.js";
10
+ import { SORT_STATE_ORIGINAL as W, SORT_STATE_DESCEND as Q, SORT_STATE_ASCEND as $ } from "./constants.js";
11
+ function we(e) {
12
+ return je() ? (Le(e), !0) : !1;
13
13
  }
14
- const V = typeof window < "u" && typeof document < "u";
14
+ const q = typeof window < "u" && typeof document < "u";
15
15
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
16
- const Ge = Object.prototype.toString, Ve = (e) => Ge.call(e) === "[object Object]", R = () => {
17
- }, qe = /* @__PURE__ */ He();
18
- function He() {
16
+ const qe = Object.prototype.toString, He = (e) => qe.call(e) === "[object Object]", R = () => {
17
+ }, Je = /* @__PURE__ */ Qe();
18
+ function Qe() {
19
19
  var e, t;
20
- return V && ((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));
20
+ return q && ((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));
21
21
  }
22
- function Ke(e, t) {
22
+ function Ve(e, t) {
23
23
  function r(...n) {
24
24
  return new Promise((i, o) => {
25
25
  Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(o);
@@ -27,8 +27,8 @@ function Ke(e, t) {
27
27
  }
28
28
  return r;
29
29
  }
30
- const ve = (e) => e();
31
- function Je(e = ve) {
30
+ const be = (e) => e();
31
+ function Xe(e = be) {
32
32
  const t = I(!0);
33
33
  function r() {
34
34
  t.value = !1;
@@ -39,36 +39,36 @@ function Je(e = ve) {
39
39
  const i = (...o) => {
40
40
  t.value && e(...o);
41
41
  };
42
- return { isActive: fe(t), pause: r, resume: n, eventFilter: i };
42
+ return { isActive: pe(t), pause: r, resume: n, eventFilter: i };
43
43
  }
44
- function Q(e, t = !1, r = "Timeout") {
44
+ function Y(e, t = !1, r = "Timeout") {
45
45
  return new Promise((n, i) => {
46
46
  setTimeout(t ? () => i(r) : n, e);
47
47
  });
48
48
  }
49
- function ie(e) {
49
+ function se(e) {
50
50
  return Array.isArray(e) ? e : [e];
51
51
  }
52
- function Qe(e, t, r = {}) {
52
+ function Ye(e, t, r = {}) {
53
53
  const {
54
- eventFilter: n = ve,
54
+ eventFilter: n = be,
55
55
  ...i
56
56
  } = r;
57
57
  return S(
58
58
  e,
59
- Ke(
59
+ Ve(
60
60
  n,
61
61
  t
62
62
  ),
63
63
  i
64
64
  );
65
65
  }
66
- function At(e, t, r = {}) {
66
+ function St(e, t, r = {}) {
67
67
  const {
68
68
  eventFilter: n,
69
69
  ...i
70
- } = r, { eventFilter: o, pause: a, resume: s, isActive: c } = Je(n);
71
- return { stop: Qe(
70
+ } = r, { eventFilter: o, pause: a, resume: s, isActive: c } = Xe(n);
71
+ return { stop: Ye(
72
72
  e,
73
73
  t,
74
74
  {
@@ -77,14 +77,14 @@ function At(e, t, r = {}) {
77
77
  }
78
78
  ), pause: a, resume: s, isActive: c };
79
79
  }
80
- function X(e, t = !1) {
80
+ function Z(e, t = !1) {
81
81
  function r(u, { flush: d = "sync", deep: m = !1, timeout: h, throwOnTimeout: l } = {}) {
82
82
  let f = null;
83
83
  const w = [new Promise((A) => {
84
84
  f = S(
85
85
  e,
86
86
  (g) => {
87
- u(g) !== t && (f ? f() : z(() => f == null ? void 0 : f()), A(g));
87
+ u(g) !== t && (f ? f() : U(() => f == null ? void 0 : f()), A(g));
88
88
  },
89
89
  {
90
90
  flush: d,
@@ -94,19 +94,19 @@ function X(e, t = !1) {
94
94
  );
95
95
  })];
96
96
  return h != null && w.push(
97
- Q(h, l).then(() => E(e)).finally(() => f == null ? void 0 : f())
97
+ Y(h, l).then(() => E(e)).finally(() => f == null ? void 0 : f())
98
98
  ), Promise.race(w);
99
99
  }
100
100
  function n(u, d) {
101
- if (!Re(u))
101
+ if (!De(u))
102
102
  return r((g) => g === u, d);
103
103
  const { flush: m = "sync", deep: h = !1, timeout: l, throwOnTimeout: f } = d ?? {};
104
104
  let p = null;
105
105
  const A = [new Promise((g) => {
106
106
  p = S(
107
107
  [e, u],
108
- ([_, D]) => {
109
- t !== (_ === D) && (p ? p() : z(() => p == null ? void 0 : p()), g(_));
108
+ ([j, F]) => {
109
+ t !== (j === F) && (p ? p() : U(() => p == null ? void 0 : p()), g(j));
110
110
  },
111
111
  {
112
112
  flush: m,
@@ -116,7 +116,7 @@ function X(e, t = !1) {
116
116
  );
117
117
  })];
118
118
  return l != null && A.push(
119
- Q(l, f).then(() => E(e)).finally(() => (p == null || p(), E(e)))
119
+ Y(l, f).then(() => E(e)).finally(() => (p == null || p(), E(e)))
120
120
  ), Promise.race(A);
121
121
  }
122
122
  function i(u) {
@@ -150,7 +150,7 @@ function X(e, t = !1) {
150
150
  changed: y,
151
151
  changedTimes: v,
152
152
  get not() {
153
- return X(e, !t);
153
+ return Z(e, !t);
154
154
  }
155
155
  } : {
156
156
  toMatch: r,
@@ -162,14 +162,14 @@ function X(e, t = !1) {
162
162
  changed: y,
163
163
  changedTimes: v,
164
164
  get not() {
165
- return X(e, !t);
165
+ return Z(e, !t);
166
166
  }
167
167
  };
168
168
  }
169
- function Xe(e) {
170
- return X(e);
169
+ function Ze(e) {
170
+ return Z(e);
171
171
  }
172
- function Ye(e, t, r = {}) {
172
+ function et(e, t, r = {}) {
173
173
  const {
174
174
  immediate: n = !0
175
175
  } = r, i = I(!1);
@@ -185,21 +185,21 @@ function Ye(e, t, r = {}) {
185
185
  i.value = !1, o = null, e(...y);
186
186
  }, E(t));
187
187
  }
188
- return n && (i.value = !0, V && c()), ye(s), {
189
- isPending: fe(i),
188
+ return n && (i.value = !0, q && c()), we(s), {
189
+ isPending: pe(i),
190
190
  start: c,
191
191
  stop: s
192
192
  };
193
193
  }
194
- function Ze(e, t, r) {
195
- const n = S(e, (...i) => (z(() => n()), t(...i)), r);
194
+ function tt(e, t, r) {
195
+ const n = S(e, (...i) => (U(() => n()), t(...i)), r);
196
196
  return n;
197
197
  }
198
- function Et(e, t, r) {
198
+ function Pt(e, t, r) {
199
199
  const n = S(
200
200
  e,
201
201
  (i, o, a) => {
202
- i && (r != null && r.once && z(() => n()), t(i, o, a));
202
+ i && (r != null && r.once && U(() => n()), t(i, o, a));
203
203
  },
204
204
  {
205
205
  ...r,
@@ -208,25 +208,25 @@ function Et(e, t, r) {
208
208
  );
209
209
  return n;
210
210
  }
211
- const he = V ? window : void 0, et = V ? window.document : void 0;
212
- function N(e) {
211
+ const Te = q ? window : void 0, nt = q ? window.document : void 0;
212
+ function D(e) {
213
213
  var t;
214
214
  const r = E(e);
215
215
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
216
216
  }
217
- function $(...e) {
217
+ function z(...e) {
218
218
  let t, r, n, i;
219
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = he) : [t, r, n, i] = e, !t)
219
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = Te) : [t, r, n, i] = e, !t)
220
220
  return R;
221
- r = ie(r), n = ie(n);
221
+ r = se(r), n = se(n);
222
222
  const o = [], a = () => {
223
223
  o.forEach((v) => v()), o.length = 0;
224
224
  }, s = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
225
- () => [N(t), E(i)],
225
+ () => [D(t), E(i)],
226
226
  ([v, u]) => {
227
227
  if (a(), !v)
228
228
  return;
229
- const d = Ve(u) ? { ...u } : u;
229
+ const d = He(u) ? { ...u } : u;
230
230
  o.push(
231
231
  ...r.flatMap((m) => n.map((h) => s(v, m, h, d)))
232
232
  );
@@ -235,20 +235,20 @@ function $(...e) {
235
235
  ), y = () => {
236
236
  c(), a();
237
237
  };
238
- return ye(y), y;
238
+ return we(y), y;
239
239
  }
240
- let ae = !1;
241
- function It(e, t, r = {}) {
242
- const { window: n = he, ignore: i = [], capture: o = !0, detectIframe: a = !1 } = r;
240
+ let ue = !1;
241
+ function Ct(e, t, r = {}) {
242
+ const { window: n = Te, ignore: i = [], capture: o = !0, detectIframe: a = !1 } = r;
243
243
  if (!n)
244
244
  return R;
245
- qe && !ae && (ae = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
245
+ Je && !ue && (ue = !0, Array.from(n.document.body.children).forEach((l) => l.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
246
246
  let s = !0;
247
247
  const c = (l) => E(i).some((f) => {
248
248
  if (typeof f == "string")
249
249
  return Array.from(n.document.querySelectorAll(f)).some((p) => p === l.target || l.composedPath().includes(p));
250
250
  {
251
- const p = N(f);
251
+ const p = D(f);
252
252
  return p && (l.target === p || l.composedPath().includes(p));
253
253
  }
254
254
  });
@@ -261,7 +261,7 @@ function It(e, t, r = {}) {
261
261
  return w == null || !Array.isArray(w) ? !1 : w.some((A) => A.el === f.target || f.composedPath().includes(A.el));
262
262
  }
263
263
  const u = (l) => {
264
- const f = N(e);
264
+ const f = D(e);
265
265
  if (l.target != null && !(!(f instanceof Element) && y(e) && v(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
266
266
  if (l.detail === 0 && (s = !c(l)), !s) {
267
267
  s = !0;
@@ -272,26 +272,26 @@ function It(e, t, r = {}) {
272
272
  };
273
273
  let d = !1;
274
274
  const m = [
275
- $(n, "click", (l) => {
275
+ z(n, "click", (l) => {
276
276
  d || (d = !0, setTimeout(() => {
277
277
  d = !1;
278
278
  }, 0), u(l));
279
279
  }, { passive: !0, capture: o }),
280
- $(n, "pointerdown", (l) => {
281
- const f = N(e);
280
+ z(n, "pointerdown", (l) => {
281
+ const f = D(e);
282
282
  s = !c(l) && !!(f && !l.composedPath().includes(f));
283
283
  }, { passive: !0 }),
284
- a && $(n, "blur", (l) => {
284
+ a && z(n, "blur", (l) => {
285
285
  setTimeout(() => {
286
286
  var f;
287
- const p = N(e);
287
+ const p = D(e);
288
288
  ((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(p != null && p.contains(n.document.activeElement)) && t(l);
289
289
  }, 0);
290
290
  }, { passive: !0 })
291
291
  ].filter(Boolean);
292
292
  return () => m.forEach((l) => l());
293
293
  }
294
- function tt(e, t, r) {
294
+ function rt(e, t, r) {
295
295
  const {
296
296
  immediate: n = !0,
297
297
  delay: i = 0,
@@ -300,9 +300,9 @@ function tt(e, t, r) {
300
300
  resetOnExecute: s = !0,
301
301
  shallow: c = !0,
302
302
  throwError: y
303
- } = r ?? {}, v = c ? re(t) : I(t), u = I(!1), d = I(!1), m = re(void 0);
303
+ } = r ?? {}, v = c ? ie(t) : I(t), u = I(!1), d = I(!1), m = ie(void 0);
304
304
  async function h(p = 0, ...w) {
305
- s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Q(p);
305
+ s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Y(p);
306
306
  const A = typeof e == "function" ? e(...w) : e;
307
307
  try {
308
308
  const g = await A;
@@ -325,7 +325,7 @@ function tt(e, t, r) {
325
325
  };
326
326
  function f() {
327
327
  return new Promise((p, w) => {
328
- Xe(d).toBe(!1).then(() => p(l)).catch(w);
328
+ Ze(d).toBe(!1).then(() => p(l)).catch(w);
329
329
  });
330
330
  }
331
331
  return {
@@ -335,24 +335,24 @@ function tt(e, t, r) {
335
335
  }
336
336
  };
337
337
  }
338
- function Ot(e = {}) {
339
- const { document: t = et } = e;
338
+ function Rt(e = {}) {
339
+ const { document: t = nt } = e;
340
340
  if (!t)
341
341
  return I("visible");
342
342
  const r = I(t.visibilityState);
343
- return $(t, "visibilitychange", () => {
343
+ return z(t, "visibilitychange", () => {
344
344
  r.value = t.visibilityState;
345
345
  }, { passive: !0 }), r;
346
346
  }
347
- async function nt(e) {
347
+ async function ot(e) {
348
348
  return new Promise((t, r) => {
349
349
  const n = new Image(), { src: i, srcset: o, sizes: a, class: s, loading: c, crossorigin: y, referrerPolicy: v, width: u, height: d, decoding: m, fetchPriority: h, ismap: l, usemap: f } = e;
350
350
  n.src = i, o != null && (n.srcset = o), a != null && (n.sizes = a), s != null && (n.className = s), c != null && (n.loading = c), y != null && (n.crossOrigin = y), v != null && (n.referrerPolicy = v), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), h != null && (n.fetchPriority = h), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
351
351
  });
352
352
  }
353
- function xt(e, t = {}) {
354
- const r = tt(
355
- () => nt(E(e)),
353
+ function _t(e, t = {}) {
354
+ const r = rt(
355
+ () => ot(E(e)),
356
356
  void 0,
357
357
  {
358
358
  resetOnExecute: !0,
@@ -365,37 +365,53 @@ function xt(e, t = {}) {
365
365
  { deep: !0 }
366
366
  ), r;
367
367
  }
368
- function rt(e) {
368
+ function it(e) {
369
369
  var t = Object.prototype.toString.call(e);
370
370
  return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
371
371
  }
372
- var ot = /* @__PURE__ */ U(function(t) {
373
- return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Ne(t) ? [] : ke(t) ? "" : Fe(t) ? {} : De(t) ? /* @__PURE__ */ function() {
372
+ var at = /* @__PURE__ */ K(function(t) {
373
+ return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Be(t) ? [] : We(t) ? "" : X(t) ? {} : Me(t) ? /* @__PURE__ */ function() {
374
374
  return arguments;
375
- }() : rt(t) ? t.constructor.from("") : void 0;
376
- }), it = /* @__PURE__ */ U(function(t) {
377
- return t != null && Be(t, ot(t));
378
- }), at = /* @__PURE__ */ Me(function(t, r) {
375
+ }() : it(t) ? t.constructor.from("") : void 0;
376
+ }), st = /* @__PURE__ */ K(function(t) {
377
+ return t != null && $e(t, at(t));
378
+ }), ut = /* @__PURE__ */ he(function(t, r, n) {
379
+ var i = {}, o;
380
+ r = r || {}, n = n || {};
381
+ for (o in r)
382
+ B(o, r) && (i[o] = B(o, n) ? t(o, r[o], n[o]) : r[o]);
383
+ for (o in n)
384
+ B(o, n) && !B(o, i) && (i[o] = n[o]);
385
+ return i;
386
+ }), ct = /* @__PURE__ */ he(function e(t, r, n) {
387
+ return ut(function(i, o, a) {
388
+ return X(o) && X(a) ? e(t, o, a) : t(i, o, a);
389
+ }, r, n);
390
+ }), lt = /* @__PURE__ */ ge(function(t, r) {
391
+ return ct(function(n, i, o) {
392
+ return o;
393
+ }, t, r);
394
+ }), ft = /* @__PURE__ */ ge(function(t, r) {
379
395
  for (var n = {}, i = {}, o = 0, a = t.length; o < a; )
380
396
  i[t[o]] = 1, o += 1;
381
397
  for (var s in r)
382
398
  i.hasOwnProperty(s) || (n[s] = r[s]);
383
399
  return n;
384
400
  }), L = `
385
- \v\f\r                 \u2028\u2029\uFEFF`, st = "​", ut = typeof String.prototype.trim == "function", G = !ut || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ st.trim() ? /* @__PURE__ */ U(function(t) {
401
+ \v\f\r                 \u2028\u2029\uFEFF`, dt = "​", pt = typeof String.prototype.trim == "function", G = !pt || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ dt.trim() ? /* @__PURE__ */ K(function(t) {
386
402
  var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
387
403
  return t.replace(r, "").replace(n, "");
388
- }) : /* @__PURE__ */ U(function(t) {
404
+ }) : /* @__PURE__ */ K(function(t) {
389
405
  return t.trim();
390
406
  });
391
- function St(e, t, r, n) {
407
+ function jt(e, t, r, n) {
392
408
  const i = I(""), o = I(!1), a = (s) => {
393
- const c = We(oe(t), s), y = c.length > 0;
409
+ const c = ze(ae(t), s), y = c.length > 0;
394
410
  if (o.value = y, !y)
395
411
  return i.value = "";
396
412
  const u = c.map((d) => ({
397
413
  team: d.team.longName,
398
- points: Math.abs(oe(t, d))
414
+ points: Math.abs(ae(t, d))
399
415
  })).map((d) => r(`additionalText.${t}.content`, d)).join(", ");
400
416
  i.value = [
401
417
  r(`additionalText.${t}.prependix`),
@@ -403,7 +419,7 @@ function St(e, t, r, n) {
403
419
  ...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
404
420
  ].join(" ");
405
421
  };
406
- return Ze(e, a), S(
422
+ return tt(e, a), S(
407
423
  () => O(n),
408
424
  () => a(O(e))
409
425
  ), {
@@ -411,26 +427,26 @@ function St(e, t, r, n) {
411
427
  isVisible: o
412
428
  };
413
429
  }
414
- const ge = Symbol("I18nContext"), T = de({
430
+ const Ae = Symbol("I18nContext"), T = me({
415
431
  messages: {},
416
432
  locale: "",
417
433
  fallbackLocale: ""
418
434
  });
419
- function Pt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
420
- T.messages = e, T.locale = t, T.fallbackLocale = r;
435
+ function Lt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
436
+ T.messages = lt(T.messages, e), T.locale = t, T.fallbackLocale = r;
421
437
  const n = (c, y = {}) => {
422
- const v = !it(y), u = k(G, F(".", c));
423
- return j(() => {
424
- const m = we(u);
425
- return v ? ft(m, y) : m;
438
+ const v = !st(y), u = k(G, N(".", c));
439
+ return _(() => {
440
+ const m = Ee(u);
441
+ return v ? vt(m, y) : m;
426
442
  }).value;
427
443
  }, i = (c) => {
428
- const y = k(G, F(".", c));
429
- return !!Y(T.locale, y, T.messages);
444
+ const y = k(G, N(".", c));
445
+ return !!ee(T.locale, y, T.messages);
430
446
  }, o = (c) => {
431
447
  T.locale = c;
432
448
  }, s = {
433
- locale: j({
449
+ locale: _({
434
450
  get() {
435
451
  return T.locale;
436
452
  },
@@ -442,13 +458,13 @@ function Pt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
442
458
  translate: n,
443
459
  hasTranslation: i
444
460
  };
445
- return pe(ge, s), {
461
+ return ye(Ae, s), {
446
462
  translate: n
447
463
  };
448
464
  }
449
- function ct(e) {
465
+ function mt(e) {
450
466
  e && (T.messages = e.messages, T.locale = e.locale, T.fallbackLocale = e.fallbackLocale);
451
- const t = lt();
467
+ const t = yt();
452
468
  return {
453
469
  locale: t.locale,
454
470
  t: t.translate,
@@ -456,23 +472,23 @@ function ct(e) {
456
472
  hasTranslation: t.hasTranslation
457
473
  };
458
474
  }
459
- function lt() {
460
- const e = me(ge, null);
475
+ function yt() {
476
+ const e = ve(Ae, null);
461
477
  if (e === null)
462
478
  throw new Error("Privider is missing a parent component.");
463
479
  return e;
464
480
  }
465
- function we(e = []) {
466
- let t = Y(T.locale, e, T.messages);
467
- return !t && T.fallbackLocale && (t = Y(T.fallbackLocale, e, T.messages)), t || e.join(".");
481
+ function Ee(e = []) {
482
+ let t = ee(T.locale, e, T.messages);
483
+ return !t && T.fallbackLocale && (t = ee(T.fallbackLocale, e, T.messages)), t || e.join(".");
468
484
  }
469
- function Y(e, t, r) {
470
- return $e([e, ...t], r);
485
+ function ee(e, t, r) {
486
+ return Ue([e, ...t], r);
471
487
  }
472
- function ft(e, t) {
488
+ function vt(e, t) {
473
489
  return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
474
490
  }
475
- const Ct = je({
491
+ const Dt = ke({
476
492
  props: {
477
493
  tag: {
478
494
  type: String,
@@ -484,19 +500,19 @@ const Ct = je({
484
500
  }
485
501
  },
486
502
  setup(e, { slots: t }) {
487
- const r = k(G, F(".", e.path)), n = we(r), i = F(/\{|\}/, n), o = Object.keys(t).map((a) => {
503
+ const r = k(G, N(".", e.path)), n = Ee(r), i = N(/\{|\}/, n), o = Object.keys(t).map((a) => {
488
504
  const s = i.indexOf(a);
489
505
  return s > -1 && (i[s] = t[a]()[0]), i;
490
506
  });
491
- return () => _e(e.tag, o);
507
+ return () => Ne(e.tag, o);
492
508
  }
493
509
  });
494
- function Rt(e, t = "", r = {}) {
495
- const n = I(""), { t: i } = ct(), o = j(() => {
510
+ function kt(e, t = "", r = {}) {
511
+ const n = I(""), { t: i } = mt(), o = _(() => {
496
512
  if (O(t))
497
513
  try {
498
- const c = dt(O(e), O(t));
499
- return at(c, O(e));
514
+ const c = ht(O(e), O(t));
515
+ return ft(c, O(e));
500
516
  } catch (c) {
501
517
  n.value = c;
502
518
  }
@@ -507,12 +523,12 @@ function Rt(e, t = "", r = {}) {
507
523
  ...c.tooltip && { tooltip: i(c.tooltip ?? "") }
508
524
  });
509
525
  return {
510
- columns: j(() => k(a, o.value)),
526
+ columns: _(() => k(a, o.value)),
511
527
  error: n
512
528
  };
513
529
  }
514
- function dt(e, t = "") {
515
- const r = k(G, F(",", t)), n = ze(e);
530
+ function ht(e, t = "") {
531
+ const r = k(G, N(",", t)), n = Ke(e);
516
532
  if (r[0] === "")
517
533
  return [];
518
534
  const i = r.findIndex((o) => !n.includes(o));
@@ -520,49 +536,49 @@ function dt(e, t = "") {
520
536
  throw r[i];
521
537
  return r;
522
538
  }
523
- const be = Symbol("ErrorProviderContext");
524
- function jt() {
539
+ const Ie = Symbol("ErrorProviderContext");
540
+ function Nt() {
525
541
  const e = I(""), t = I({}), r = (o) => {
526
542
  console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
527
543
  message: o.message,
528
- key: o.key || Ue(o.message),
544
+ key: o.key || Ge(o.message),
529
545
  cause: o.cause
530
546
  };
531
547
  };
532
- return pe(be, {
548
+ return ye(Ie, {
533
549
  onError: r,
534
550
  reset: () => {
535
551
  e.value = "", t.value = {};
536
552
  }
537
553
  }), window.onerror = (o) => {
538
554
  console.error("WINDOW_ONERROR:", o);
539
- }, Le((o, a, s) => {
555
+ }, Fe((o, a, s) => {
540
556
  console.error("onErrorCaptured:", o, a, s);
541
557
  }), {
542
- hasError: j(() => e.value.length > 0),
558
+ hasError: _(() => e.value.length > 0),
543
559
  message: e,
544
560
  error: t,
545
561
  onError: r
546
562
  };
547
563
  }
548
- function _t() {
549
- const e = pt();
564
+ function Ft() {
565
+ const e = gt();
550
566
  return {
551
567
  onError: e.onError,
552
568
  reset: e.reset
553
569
  };
554
570
  }
555
- function pt() {
556
- const e = me(be, null);
571
+ function gt() {
572
+ const e = ve(Ie, null);
557
573
  if (e === null)
558
574
  throw new Error("Privider is missing a parent component.");
559
575
  return e;
560
576
  }
561
- function Lt(e = [], t = {}) {
562
- const { delay: r = 0 } = t, n = I(!1), i = j(() => {
577
+ function Bt(e = [], t = {}) {
578
+ const { delay: r = 0 } = t, n = I(!1), i = _(() => {
563
579
  const s = O(e);
564
580
  return Array.isArray(s) ? s.map((c) => O(c)).some(Boolean) : s;
565
- }), { start: o, stop: a } = Ye(() => {
581
+ }), { start: o, stop: a } = et(() => {
566
582
  n.value = !0;
567
583
  }, r);
568
584
  return S(
@@ -575,7 +591,7 @@ function Lt(e = [], t = {}) {
575
591
  { immediate: !0, deep: !0 }
576
592
  ), n;
577
593
  }
578
- function Nt(e) {
594
+ function Wt(e) {
579
595
  return "mjsz-vbr-" + e;
580
596
  }
581
597
  /*! *****************************************************************************
@@ -592,7 +608,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
592
608
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
593
609
  PERFORMANCE OF THIS SOFTWARE.
594
610
  ***************************************************************************** */
595
- function J(e, t) {
611
+ function V(e, t) {
596
612
  var r = typeof Symbol == "function" && e[Symbol.iterator];
597
613
  if (!r) return e;
598
614
  var n, i, o = r.call(e), a = [];
@@ -609,29 +625,29 @@ function J(e, t) {
609
625
  }
610
626
  return a;
611
627
  }
612
- var se;
628
+ var ce;
613
629
  (function(e) {
614
630
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
615
- })(se || (se = {}));
616
- var mt = { type: "xstate.init" };
631
+ })(ce || (ce = {}));
632
+ var wt = { type: "xstate.init" };
617
633
  function M(e) {
618
634
  return e === void 0 ? [] : [].concat(e);
619
635
  }
620
- function ue(e, t) {
636
+ function le(e, t) {
621
637
  return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
622
638
  }
623
- function Z(e) {
639
+ function te(e) {
624
640
  return function(t) {
625
641
  return e === t;
626
642
  };
627
643
  }
628
- function yt(e) {
644
+ function bt(e) {
629
645
  return typeof e == "string" ? { type: e } : e;
630
646
  }
631
- function ce(e, t) {
632
- return { value: e, context: t, actions: [], changed: !1, matches: Z(e) };
647
+ function fe(e, t) {
648
+ return { value: e, context: t, actions: [], changed: !1, matches: te(e) };
633
649
  }
634
- function le(e, t, r) {
650
+ function de(e, t, r) {
635
651
  var n = t, i = !1;
636
652
  return [e.filter(function(o) {
637
653
  if (o.type === "xstate.assign") {
@@ -644,39 +660,39 @@ function le(e, t, r) {
644
660
  return !0;
645
661
  }), n, i];
646
662
  }
647
- function vt(e, t) {
663
+ function Tt(e, t) {
648
664
  t === void 0 && (t = {});
649
- var r = J(le(M(e.states[e.initial].entry).map(function(a) {
650
- return ue(a, t.actions);
651
- }), e.context, mt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: Z(e.initial) }, transition: function(a, s) {
652
- var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = yt(s), h = e.states[u];
665
+ var r = V(de(M(e.states[e.initial].entry).map(function(a) {
666
+ return le(a, t.actions);
667
+ }), e.context, wt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: te(e.initial) }, transition: function(a, s) {
668
+ var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = bt(s), h = e.states[u];
653
669
  if (h.on) {
654
670
  var l = M(h.on[m.type]);
655
- "*" in h.on && l.push.apply(l, function(b, x, H) {
656
- if (arguments.length === 2) for (var P, C = 0, Se = x.length; C < Se; C++) !P && C in x || (P || (P = Array.prototype.slice.call(x, 0, C)), P[C] = x[C]);
671
+ "*" in h.on && l.push.apply(l, function(b, x, J) {
672
+ if (arguments.length === 2) for (var P, C = 0, _e = x.length; C < _e; C++) !P && C in x || (P || (P = Array.prototype.slice.call(x, 0, C)), P[C] = x[C]);
657
673
  return b.concat(P || Array.prototype.slice.call(x));
658
- }([], J(M(h.on["*"])), !1));
674
+ }([], V(M(h.on["*"])), !1));
659
675
  try {
660
676
  for (var f = function(b) {
661
- var x = typeof Symbol == "function" && Symbol.iterator, H = x && b[x], P = 0;
662
- if (H) return H.call(b);
677
+ var x = typeof Symbol == "function" && Symbol.iterator, J = x && b[x], P = 0;
678
+ if (J) return J.call(b);
663
679
  if (b && typeof b.length == "number") return { next: function() {
664
680
  return b && P >= b.length && (b = void 0), { value: b && b[P++], done: !b };
665
681
  } };
666
682
  throw new TypeError(x ? "Object is not iterable." : "Symbol.iterator is not defined.");
667
683
  }(l), p = f.next(); !p.done; p = f.next()) {
668
684
  var w = p.value;
669
- if (w === void 0) return ce(u, d);
670
- var A = typeof w == "string" ? { target: w } : w, g = A.target, _ = A.actions, D = _ === void 0 ? [] : _, ee = A.cond, Te = ee === void 0 ? function() {
685
+ if (w === void 0) return fe(u, d);
686
+ var A = typeof w == "string" ? { target: w } : w, g = A.target, j = A.actions, F = j === void 0 ? [] : j, ne = A.cond, Oe = ne === void 0 ? function() {
671
687
  return !0;
672
- } : ee, Ae = g === void 0, Ee = g ?? u, Ie = e.states[Ee];
673
- if (Te(d, m)) {
674
- var q = J(le((Ae ? M(D) : [].concat(h.exit, D, Ie.entry).filter(function(b) {
688
+ } : ne, xe = g === void 0, Se = g ?? u, Pe = e.states[Se];
689
+ if (Oe(d, m)) {
690
+ var H = V(de((xe ? M(F) : [].concat(h.exit, F, Pe.entry).filter(function(b) {
675
691
  return b;
676
692
  })).map(function(b) {
677
- return ue(b, o._options.actions);
678
- }), d, m), 3), te = q[0], Oe = q[1], xe = q[2], ne = g ?? u;
679
- return { value: ne, context: Oe, actions: te, changed: g !== u || te.length > 0 || xe, matches: Z(ne) };
693
+ return le(b, o._options.actions);
694
+ }), d, m), 3), re = H[0], Ce = H[1], Re = H[2], oe = g ?? u;
695
+ return { value: oe, context: Ce, actions: re, changed: g !== u || re.length > 0 || Re, matches: te(oe) };
680
696
  }
681
697
  }
682
698
  } catch (b) {
@@ -689,40 +705,40 @@ function vt(e, t) {
689
705
  }
690
706
  }
691
707
  }
692
- return ce(u, d);
708
+ return fe(u, d);
693
709
  } };
694
710
  return o;
695
711
  }
696
- const ht = vt({
712
+ const At = Tt({
697
713
  id: "sort",
698
- initial: B,
714
+ initial: W,
699
715
  states: {
700
- [B]: {
716
+ [W]: {
701
717
  on: {
702
- DIRECTION1: K,
703
- DIRECTION2: W
718
+ DIRECTION1: Q,
719
+ DIRECTION2: $
704
720
  }
705
721
  },
706
- [K]: {
722
+ [Q]: {
707
723
  on: {
708
- DIRECTION1: W,
709
- DIRECTION2: B
724
+ DIRECTION1: $,
725
+ DIRECTION2: W
710
726
  }
711
727
  },
712
- [W]: {
728
+ [$]: {
713
729
  on: {
714
- DIRECTION1: B,
715
- DIRECTION2: K
730
+ DIRECTION1: W,
731
+ DIRECTION2: Q
716
732
  }
717
733
  }
718
734
  }
719
735
  });
720
- function gt(e, t) {
721
- const r = t === W ? "DIRECTION2" : "DIRECTION1";
722
- return ht.transition(e, r).value;
736
+ function Et(e, t) {
737
+ const r = t === $ ? "DIRECTION2" : "DIRECTION1";
738
+ return At.transition(e, r).value;
723
739
  }
724
- function kt(e = {}) {
725
- const { sortTarget: t = null, orders: r = [] } = e, n = de({ sortTarget: t, orders: r });
740
+ function Mt(e = {}) {
741
+ const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
726
742
  return {
727
743
  sort: n,
728
744
  change: ({ target: o, orders: a }) => {
@@ -732,32 +748,33 @@ function kt(e = {}) {
732
748
  }
733
749
  const s = a.map((c, y) => ({
734
750
  ...c,
735
- direction: gt(n.orders[y].direction, c.direction)
751
+ direction: Et(n.orders[y].direction, c.direction)
736
752
  }));
737
753
  n.sortTarget = o, n.orders = s;
738
754
  }
739
755
  };
740
756
  }
741
757
  export {
742
- Rt as a,
743
- jt as b,
744
- _t as c,
745
- Pt as d,
746
- ct as e,
747
- Lt as f,
748
- Nt as g,
749
- kt as h,
750
- Ct as i,
751
- xt as j,
752
- it as k,
753
- Ze as l,
754
- At as m,
758
+ kt as a,
759
+ Nt as b,
760
+ Ft as c,
761
+ Lt as d,
762
+ mt as e,
763
+ Bt as f,
764
+ Wt as g,
765
+ Mt as h,
766
+ Dt as i,
767
+ _t as j,
768
+ st as k,
769
+ tt as l,
770
+ lt as m,
755
771
  R as n,
756
- It as o,
757
- N as p,
758
- tt as q,
759
- Ot as r,
760
- St as u,
761
- dt as v,
762
- Et as w
772
+ Ct as o,
773
+ St as p,
774
+ D as q,
775
+ rt as r,
776
+ Rt as s,
777
+ jt as u,
778
+ ht as v,
779
+ Pt as w
763
780
  };