@mjsz-vbr-elements/core 2.2.1 → 2.2.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.
- package/dist/{SeasonSelector-hqWIAEq6.js → AdditionalStandingsText-NpkyVKB_.js} +547 -492
- package/dist/columns.js +1 -1
- package/dist/components.js +18 -17
- package/dist/composables.js +39 -38
- package/dist/constants.js +1 -1
- package/dist/{convert-PMHuZhPy.js → convert-rWfB71vI.js} +2 -2
- package/dist/{datetime-EyEBo0-h.js → datetime--bMmvxSM.js} +16 -16
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +98 -96
- package/dist/useAdditionalText-EldMke4U.js +763 -0
- package/dist/utils.js +4 -4
- package/package.json +2 -2
- package/dist/useSort-WcJ_BIws.js +0 -742
package/dist/useSort-WcJ_BIws.js
DELETED
|
@@ -1,742 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.1 - 04/01/2024, 22:10:50
|
|
4
|
-
* (c) 2024
|
|
5
|
-
* description: Data visualization for MJSZ VBR
|
|
6
|
-
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
|
-
*/
|
|
8
|
-
import { ref as O, readonly as ve, watch as A, nextTick as Ce, getCurrentScope as xe, onScopeDispose as De, unref as I, isRef as Le, shallowRef as te, computed as S, reactive as me, defineComponent as Ne, h as Fe, provide as ye, inject as ge, onErrorCaptured as Be } from "vue";
|
|
9
|
-
import { _ as F, j as ke, k as Ve, l as Ue, m as We, n as Me, p as ze, q as j, s as C, r as qe, t as Ke, u as Ge } from "./datetime-EyEBo0-h.js";
|
|
10
|
-
import { SORT_STATE_ORIGINAL as D, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as L } from "./constants.js";
|
|
11
|
-
var He = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "", VITE_USER_NODE_ENV: "production", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
12
|
-
const qt = (e) => (He.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
|
|
13
|
-
function _e(e) {
|
|
14
|
-
return xe() ? (De(e), !0) : !1;
|
|
15
|
-
}
|
|
16
|
-
function E(e) {
|
|
17
|
-
return typeof e == "function" ? e() : I(e);
|
|
18
|
-
}
|
|
19
|
-
const U = typeof window < "u", B = () => {
|
|
20
|
-
}, Xe = /* @__PURE__ */ Ye();
|
|
21
|
-
function Ye() {
|
|
22
|
-
var e;
|
|
23
|
-
return U && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
24
|
-
}
|
|
25
|
-
function Je(e, t) {
|
|
26
|
-
function r(...n) {
|
|
27
|
-
return new Promise((a, o) => {
|
|
28
|
-
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(a).catch(o);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
const he = (e) => e();
|
|
34
|
-
function Qe(e = he) {
|
|
35
|
-
const t = O(!0);
|
|
36
|
-
function r() {
|
|
37
|
-
t.value = !1;
|
|
38
|
-
}
|
|
39
|
-
function n() {
|
|
40
|
-
t.value = !0;
|
|
41
|
-
}
|
|
42
|
-
const a = (...o) => {
|
|
43
|
-
t.value && e(...o);
|
|
44
|
-
};
|
|
45
|
-
return { isActive: ve(t), pause: r, resume: n, eventFilter: a };
|
|
46
|
-
}
|
|
47
|
-
function K(e, t = !1, r = "Timeout") {
|
|
48
|
-
return new Promise((n, a) => {
|
|
49
|
-
setTimeout(t ? () => a(r) : n, e);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function G(e, t = !1) {
|
|
53
|
-
function r(l, { flush: s = "sync", deep: f = !1, timeout: v, throwOnTimeout: P } = {}) {
|
|
54
|
-
let h = null;
|
|
55
|
-
const w = [new Promise((b) => {
|
|
56
|
-
h = A(
|
|
57
|
-
e,
|
|
58
|
-
(m) => {
|
|
59
|
-
l(m) !== t && (h == null || h(), b(m));
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
flush: s,
|
|
63
|
-
deep: f,
|
|
64
|
-
immediate: !0
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
})];
|
|
68
|
-
return v != null && w.push(
|
|
69
|
-
K(v, P).then(() => E(e)).finally(() => h == null ? void 0 : h())
|
|
70
|
-
), Promise.race(w);
|
|
71
|
-
}
|
|
72
|
-
function n(l, s) {
|
|
73
|
-
if (!Le(l))
|
|
74
|
-
return r((m) => m === l, s);
|
|
75
|
-
const { flush: f = "sync", deep: v = !1, timeout: P, throwOnTimeout: h } = s ?? {};
|
|
76
|
-
let y = null;
|
|
77
|
-
const b = [new Promise((m) => {
|
|
78
|
-
y = A(
|
|
79
|
-
[e, l],
|
|
80
|
-
([T, x]) => {
|
|
81
|
-
t !== (T === x) && (y == null || y(), m(T));
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
flush: f,
|
|
85
|
-
deep: v,
|
|
86
|
-
immediate: !0
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
})];
|
|
90
|
-
return P != null && b.push(
|
|
91
|
-
K(P, h).then(() => E(e)).finally(() => (y == null || y(), E(e)))
|
|
92
|
-
), Promise.race(b);
|
|
93
|
-
}
|
|
94
|
-
function a(l) {
|
|
95
|
-
return r((s) => !!s, l);
|
|
96
|
-
}
|
|
97
|
-
function o(l) {
|
|
98
|
-
return n(null, l);
|
|
99
|
-
}
|
|
100
|
-
function c(l) {
|
|
101
|
-
return n(void 0, l);
|
|
102
|
-
}
|
|
103
|
-
function i(l) {
|
|
104
|
-
return r(Number.isNaN, l);
|
|
105
|
-
}
|
|
106
|
-
function u(l, s) {
|
|
107
|
-
return r((f) => {
|
|
108
|
-
const v = Array.from(f);
|
|
109
|
-
return v.includes(l) || v.includes(E(l));
|
|
110
|
-
}, s);
|
|
111
|
-
}
|
|
112
|
-
function p(l) {
|
|
113
|
-
return d(1, l);
|
|
114
|
-
}
|
|
115
|
-
function d(l = 1, s) {
|
|
116
|
-
let f = -1;
|
|
117
|
-
return r(() => (f += 1, f >= l), s);
|
|
118
|
-
}
|
|
119
|
-
return Array.isArray(E(e)) ? {
|
|
120
|
-
toMatch: r,
|
|
121
|
-
toContains: u,
|
|
122
|
-
changed: p,
|
|
123
|
-
changedTimes: d,
|
|
124
|
-
get not() {
|
|
125
|
-
return G(e, !t);
|
|
126
|
-
}
|
|
127
|
-
} : {
|
|
128
|
-
toMatch: r,
|
|
129
|
-
toBe: n,
|
|
130
|
-
toBeTruthy: a,
|
|
131
|
-
toBeNull: o,
|
|
132
|
-
toBeNaN: i,
|
|
133
|
-
toBeUndefined: c,
|
|
134
|
-
changed: p,
|
|
135
|
-
changedTimes: d,
|
|
136
|
-
get not() {
|
|
137
|
-
return G(e, !t);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function Ze(e) {
|
|
142
|
-
return G(e);
|
|
143
|
-
}
|
|
144
|
-
function et(e, t, r = {}) {
|
|
145
|
-
const {
|
|
146
|
-
immediate: n = !0
|
|
147
|
-
} = r, a = O(!1);
|
|
148
|
-
let o = null;
|
|
149
|
-
function c() {
|
|
150
|
-
o && (clearTimeout(o), o = null);
|
|
151
|
-
}
|
|
152
|
-
function i() {
|
|
153
|
-
a.value = !1, c();
|
|
154
|
-
}
|
|
155
|
-
function u(...p) {
|
|
156
|
-
c(), a.value = !0, o = setTimeout(() => {
|
|
157
|
-
a.value = !1, o = null, e(...p);
|
|
158
|
-
}, E(t));
|
|
159
|
-
}
|
|
160
|
-
return n && (a.value = !0, U && u()), _e(i), {
|
|
161
|
-
isPending: ve(a),
|
|
162
|
-
start: u,
|
|
163
|
-
stop: i
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
var re = Object.getOwnPropertySymbols, tt = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable, nt = (e, t) => {
|
|
167
|
-
var r = {};
|
|
168
|
-
for (var n in e)
|
|
169
|
-
tt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
170
|
-
if (e != null && re)
|
|
171
|
-
for (var n of re(e))
|
|
172
|
-
t.indexOf(n) < 0 && rt.call(e, n) && (r[n] = e[n]);
|
|
173
|
-
return r;
|
|
174
|
-
};
|
|
175
|
-
function ot(e, t, r = {}) {
|
|
176
|
-
const n = r, {
|
|
177
|
-
eventFilter: a = he
|
|
178
|
-
} = n, o = nt(n, [
|
|
179
|
-
"eventFilter"
|
|
180
|
-
]);
|
|
181
|
-
return A(
|
|
182
|
-
e,
|
|
183
|
-
Je(
|
|
184
|
-
a,
|
|
185
|
-
t
|
|
186
|
-
),
|
|
187
|
-
o
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
function Kt(e, t, r) {
|
|
191
|
-
const n = A(e, (...a) => (Ce(() => n()), t(...a)), r);
|
|
192
|
-
}
|
|
193
|
-
var at = Object.defineProperty, it = Object.defineProperties, st = Object.getOwnPropertyDescriptors, k = Object.getOwnPropertySymbols, we = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable, ne = (e, t, r) => t in e ? at(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
194
|
-
for (var r in t || (t = {}))
|
|
195
|
-
we.call(t, r) && ne(e, r, t[r]);
|
|
196
|
-
if (k)
|
|
197
|
-
for (var r of k(t))
|
|
198
|
-
Oe.call(t, r) && ne(e, r, t[r]);
|
|
199
|
-
return e;
|
|
200
|
-
}, ut = (e, t) => it(e, st(t)), lt = (e, t) => {
|
|
201
|
-
var r = {};
|
|
202
|
-
for (var n in e)
|
|
203
|
-
we.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
204
|
-
if (e != null && k)
|
|
205
|
-
for (var n of k(e))
|
|
206
|
-
t.indexOf(n) < 0 && Oe.call(e, n) && (r[n] = e[n]);
|
|
207
|
-
return r;
|
|
208
|
-
};
|
|
209
|
-
function Gt(e, t, r = {}) {
|
|
210
|
-
const n = r, {
|
|
211
|
-
eventFilter: a
|
|
212
|
-
} = n, o = lt(n, [
|
|
213
|
-
"eventFilter"
|
|
214
|
-
]), { eventFilter: c, pause: i, resume: u, isActive: p } = Qe(a);
|
|
215
|
-
return { stop: ot(
|
|
216
|
-
e,
|
|
217
|
-
t,
|
|
218
|
-
ut(ct({}, o), {
|
|
219
|
-
eventFilter: c
|
|
220
|
-
})
|
|
221
|
-
), pause: i, resume: u, isActive: p };
|
|
222
|
-
}
|
|
223
|
-
function Ht(e, t, r) {
|
|
224
|
-
return A(
|
|
225
|
-
e,
|
|
226
|
-
(n, a, o) => {
|
|
227
|
-
n && t(n, a, o);
|
|
228
|
-
},
|
|
229
|
-
r
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
function $(e) {
|
|
233
|
-
var t;
|
|
234
|
-
const r = E(e);
|
|
235
|
-
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
236
|
-
}
|
|
237
|
-
const be = U ? window : void 0, ft = U ? window.document : void 0;
|
|
238
|
-
function N(...e) {
|
|
239
|
-
let t, r, n, a;
|
|
240
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = be) : [t, r, n, a] = e, !t)
|
|
241
|
-
return B;
|
|
242
|
-
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
243
|
-
const o = [], c = () => {
|
|
244
|
-
o.forEach((d) => d()), o.length = 0;
|
|
245
|
-
}, i = (d, l, s, f) => (d.addEventListener(l, s, f), () => d.removeEventListener(l, s, f)), u = A(
|
|
246
|
-
() => [$(t), E(a)],
|
|
247
|
-
([d, l]) => {
|
|
248
|
-
c(), d && o.push(
|
|
249
|
-
...r.flatMap((s) => n.map((f) => i(d, s, f, l)))
|
|
250
|
-
);
|
|
251
|
-
},
|
|
252
|
-
{ immediate: !0, flush: "post" }
|
|
253
|
-
), p = () => {
|
|
254
|
-
u(), c();
|
|
255
|
-
};
|
|
256
|
-
return _e(p), p;
|
|
257
|
-
}
|
|
258
|
-
let oe = !1;
|
|
259
|
-
function Xt(e, t, r = {}) {
|
|
260
|
-
const { window: n = be, ignore: a = [], capture: o = !0, detectIframe: c = !1 } = r;
|
|
261
|
-
if (!n)
|
|
262
|
-
return;
|
|
263
|
-
Xe && !oe && (oe = !0, Array.from(n.document.body.children).forEach((s) => s.addEventListener("click", B)));
|
|
264
|
-
let i = !0;
|
|
265
|
-
const u = (s) => a.some((f) => {
|
|
266
|
-
if (typeof f == "string")
|
|
267
|
-
return Array.from(n.document.querySelectorAll(f)).some((v) => v === s.target || s.composedPath().includes(v));
|
|
268
|
-
{
|
|
269
|
-
const v = $(f);
|
|
270
|
-
return v && (s.target === v || s.composedPath().includes(v));
|
|
271
|
-
}
|
|
272
|
-
}), d = [
|
|
273
|
-
N(n, "click", (s) => {
|
|
274
|
-
const f = $(e);
|
|
275
|
-
if (!(!f || f === s.target || s.composedPath().includes(f))) {
|
|
276
|
-
if (s.detail === 0 && (i = !u(s)), !i) {
|
|
277
|
-
i = !0;
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
t(s);
|
|
281
|
-
}
|
|
282
|
-
}, { passive: !0, capture: o }),
|
|
283
|
-
N(n, "pointerdown", (s) => {
|
|
284
|
-
const f = $(e);
|
|
285
|
-
f && (i = !s.composedPath().includes(f) && !u(s));
|
|
286
|
-
}, { passive: !0 }),
|
|
287
|
-
c && N(n, "blur", (s) => {
|
|
288
|
-
var f;
|
|
289
|
-
const v = $(e);
|
|
290
|
-
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(s);
|
|
291
|
-
})
|
|
292
|
-
].filter(Boolean);
|
|
293
|
-
return () => d.forEach((s) => s());
|
|
294
|
-
}
|
|
295
|
-
var pt = Object.defineProperty, dt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, ae = Object.getOwnPropertySymbols, mt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable, ie = (e, t, r) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
|
|
296
|
-
for (var r in t || (t = {}))
|
|
297
|
-
mt.call(t, r) && ie(e, r, t[r]);
|
|
298
|
-
if (ae)
|
|
299
|
-
for (var r of ae(t))
|
|
300
|
-
yt.call(t, r) && ie(e, r, t[r]);
|
|
301
|
-
return e;
|
|
302
|
-
}, _t = (e, t) => dt(e, vt(t));
|
|
303
|
-
function ht(e, t, r) {
|
|
304
|
-
const {
|
|
305
|
-
immediate: n = !0,
|
|
306
|
-
delay: a = 0,
|
|
307
|
-
onError: o = B,
|
|
308
|
-
onSuccess: c = B,
|
|
309
|
-
resetOnExecute: i = !0,
|
|
310
|
-
shallow: u = !0,
|
|
311
|
-
throwError: p
|
|
312
|
-
} = r ?? {}, d = u ? te(t) : O(t), l = O(!1), s = O(!1), f = te(void 0);
|
|
313
|
-
async function v(y = 0, ...w) {
|
|
314
|
-
i && (d.value = t), f.value = void 0, l.value = !1, s.value = !0, y > 0 && await K(y);
|
|
315
|
-
const b = typeof e == "function" ? e(...w) : e;
|
|
316
|
-
try {
|
|
317
|
-
const m = await b;
|
|
318
|
-
d.value = m, l.value = !0, c(m);
|
|
319
|
-
} catch (m) {
|
|
320
|
-
if (f.value = m, o(m), p)
|
|
321
|
-
throw m;
|
|
322
|
-
} finally {
|
|
323
|
-
s.value = !1;
|
|
324
|
-
}
|
|
325
|
-
return d.value;
|
|
326
|
-
}
|
|
327
|
-
n && v(a);
|
|
328
|
-
const P = {
|
|
329
|
-
state: d,
|
|
330
|
-
isReady: l,
|
|
331
|
-
isLoading: s,
|
|
332
|
-
error: f,
|
|
333
|
-
execute: v
|
|
334
|
-
};
|
|
335
|
-
function h() {
|
|
336
|
-
return new Promise((y, w) => {
|
|
337
|
-
Ze(s).toBe(!1).then(() => y(P)).catch(w);
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
return _t(gt({}, P), {
|
|
341
|
-
then(y, w) {
|
|
342
|
-
return h().then(y, w);
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
function Yt({ document: e = ft } = {}) {
|
|
347
|
-
if (!e)
|
|
348
|
-
return O("visible");
|
|
349
|
-
const t = O(e.visibilityState);
|
|
350
|
-
return N(e, "visibilitychange", () => {
|
|
351
|
-
t.value = e.visibilityState;
|
|
352
|
-
}), t;
|
|
353
|
-
}
|
|
354
|
-
var wt = Object.defineProperty, se = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, ce = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t) => {
|
|
355
|
-
for (var r in t || (t = {}))
|
|
356
|
-
Ot.call(t, r) && ce(e, r, t[r]);
|
|
357
|
-
if (se)
|
|
358
|
-
for (var r of se(t))
|
|
359
|
-
bt.call(t, r) && ce(e, r, t[r]);
|
|
360
|
-
return e;
|
|
361
|
-
};
|
|
362
|
-
async function Pt(e) {
|
|
363
|
-
return new Promise((t, r) => {
|
|
364
|
-
const n = new Image(), { src: a, srcset: o, sizes: c, class: i, loading: u, crossorigin: p } = e;
|
|
365
|
-
n.src = a, o && (n.srcset = o), c && (n.sizes = c), i && (n.className = i), u && (n.loading = u), p && (n.crossOrigin = p), n.onload = () => t(n), n.onerror = r;
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
function Jt(e, t = {}) {
|
|
369
|
-
const r = ht(
|
|
370
|
-
() => Pt(E(e)),
|
|
371
|
-
void 0,
|
|
372
|
-
Et({
|
|
373
|
-
resetOnExecute: !0
|
|
374
|
-
}, t)
|
|
375
|
-
);
|
|
376
|
-
return A(
|
|
377
|
-
() => E(e),
|
|
378
|
-
() => r.execute(t.delay),
|
|
379
|
-
{ deep: !0 }
|
|
380
|
-
), r;
|
|
381
|
-
}
|
|
382
|
-
function Qt(e = [], t = {}) {
|
|
383
|
-
const { delay: r = 0 } = t, n = O(!1), a = S(() => {
|
|
384
|
-
const i = I(e);
|
|
385
|
-
return Array.isArray(i) ? i.map((u) => I(u)).some(Boolean) : i;
|
|
386
|
-
}), { start: o, stop: c } = et(() => {
|
|
387
|
-
n.value = !0;
|
|
388
|
-
}, r);
|
|
389
|
-
return A(
|
|
390
|
-
a,
|
|
391
|
-
(i) => {
|
|
392
|
-
if (i)
|
|
393
|
-
return o();
|
|
394
|
-
c(), n.value = !1;
|
|
395
|
-
},
|
|
396
|
-
{ immediate: !0, deep: !0 }
|
|
397
|
-
), n;
|
|
398
|
-
}
|
|
399
|
-
function It(e) {
|
|
400
|
-
var t = Object.prototype.toString.call(e);
|
|
401
|
-
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]";
|
|
402
|
-
}
|
|
403
|
-
var At = /* @__PURE__ */ F(function(t) {
|
|
404
|
-
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() : ke(t) ? [] : Ve(t) ? "" : Ue(t) ? {} : We(t) ? /* @__PURE__ */ function() {
|
|
405
|
-
return arguments;
|
|
406
|
-
}() : It(t) ? t.constructor.from("") : void 0;
|
|
407
|
-
}), St = /* @__PURE__ */ F(function(t) {
|
|
408
|
-
return t != null && Me(t, At(t));
|
|
409
|
-
}), Tt = /* @__PURE__ */ ze(function(t, r) {
|
|
410
|
-
for (var n = {}, a = {}, o = 0, c = t.length; o < c; )
|
|
411
|
-
a[t[o]] = 1, o += 1;
|
|
412
|
-
for (var i in r)
|
|
413
|
-
a.hasOwnProperty(i) || (n[i] = r[i]);
|
|
414
|
-
return n;
|
|
415
|
-
}), R = `
|
|
416
|
-
\v\f\r \u2028\u2029\uFEFF`, Rt = "", $t = typeof String.prototype.trim == "function", jt = !$t || /* @__PURE__ */ R.trim() || !/* @__PURE__ */ Rt.trim() ? /* @__PURE__ */ F(function(t) {
|
|
417
|
-
var r = new RegExp("^[" + R + "][" + R + "]*"), n = new RegExp("[" + R + "][" + R + "]*$");
|
|
418
|
-
return t.replace(r, "").replace(n, "");
|
|
419
|
-
}) : /* @__PURE__ */ F(function(t) {
|
|
420
|
-
return t.trim();
|
|
421
|
-
});
|
|
422
|
-
const V = jt, Ee = Symbol("I18nContext"), _ = me({
|
|
423
|
-
messages: {},
|
|
424
|
-
locale: "",
|
|
425
|
-
fallbackLocale: ""
|
|
426
|
-
}), Zt = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
|
|
427
|
-
_.messages = e, _.locale = t, _.fallbackLocale = r;
|
|
428
|
-
const n = (u, p = {}) => {
|
|
429
|
-
const d = !St(p), l = j(V, C(".", u));
|
|
430
|
-
return S(() => {
|
|
431
|
-
const f = Pe(l);
|
|
432
|
-
return d ? Dt(f, p) : f;
|
|
433
|
-
}).value;
|
|
434
|
-
}, a = (u) => {
|
|
435
|
-
const p = j(V, C(".", u));
|
|
436
|
-
return !!H(_.locale, p, _.messages);
|
|
437
|
-
}, o = (u) => {
|
|
438
|
-
_.locale = u;
|
|
439
|
-
}, i = {
|
|
440
|
-
locale: S({
|
|
441
|
-
get() {
|
|
442
|
-
return _.locale;
|
|
443
|
-
},
|
|
444
|
-
set(u) {
|
|
445
|
-
_.locale = u;
|
|
446
|
-
}
|
|
447
|
-
}),
|
|
448
|
-
setLocale: o,
|
|
449
|
-
translate: n,
|
|
450
|
-
hasTranlation: a
|
|
451
|
-
};
|
|
452
|
-
return ye(Ee, i), {
|
|
453
|
-
translate: n
|
|
454
|
-
};
|
|
455
|
-
}, Ct = (e) => {
|
|
456
|
-
e && (_.messages = e.messages, _.locale = e.locale, _.fallbackLocale = e.fallbackLocale);
|
|
457
|
-
const t = xt();
|
|
458
|
-
return {
|
|
459
|
-
locale: t.locale,
|
|
460
|
-
t: t.translate,
|
|
461
|
-
setLocale: t.setLocale,
|
|
462
|
-
hasTranlation: t.hasTranlation
|
|
463
|
-
};
|
|
464
|
-
}, xt = () => {
|
|
465
|
-
const e = ge(Ee, null);
|
|
466
|
-
if (e === null)
|
|
467
|
-
throw new Error("Privider is missing a parent component.");
|
|
468
|
-
return e;
|
|
469
|
-
}, Pe = (e = []) => {
|
|
470
|
-
let t = H(_.locale, e, _.messages);
|
|
471
|
-
return !t && _.fallbackLocale && (t = H(_.fallbackLocale, e, _.messages)), t || e.join(".");
|
|
472
|
-
};
|
|
473
|
-
function H(e, t, r) {
|
|
474
|
-
return qe([e, ...t], r);
|
|
475
|
-
}
|
|
476
|
-
const Dt = function(e, t) {
|
|
477
|
-
return e.replace(/\{(\w+)\}/g, function(r, n) {
|
|
478
|
-
return t[n];
|
|
479
|
-
});
|
|
480
|
-
}, er = Ne({
|
|
481
|
-
props: {
|
|
482
|
-
tag: {
|
|
483
|
-
type: String,
|
|
484
|
-
default: "div"
|
|
485
|
-
},
|
|
486
|
-
path: {
|
|
487
|
-
type: String,
|
|
488
|
-
defult: ""
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
setup(e, { slots: t }) {
|
|
492
|
-
const r = j(V, C(".", e.path)), n = Pe(r), a = C(/{|}/, n), o = Object.keys(t).map((c) => {
|
|
493
|
-
const i = a.indexOf(c);
|
|
494
|
-
return i > -1 && (a[i] = t[c]()[0]), a;
|
|
495
|
-
});
|
|
496
|
-
return () => Fe(e.tag, o);
|
|
497
|
-
}
|
|
498
|
-
}), Ie = Symbol("ErrorProviderContext"), tr = () => {
|
|
499
|
-
const e = O(""), t = O({}), r = (o) => {
|
|
500
|
-
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
501
|
-
message: o.message,
|
|
502
|
-
key: o.key || Ke(o.message),
|
|
503
|
-
cause: o.cause
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
return ye(Ie, {
|
|
507
|
-
onError: r,
|
|
508
|
-
reset: () => {
|
|
509
|
-
e.value = "", t.value = {};
|
|
510
|
-
}
|
|
511
|
-
}), window.onerror = (o) => {
|
|
512
|
-
console.error("WINDOW_ONERROR:", o);
|
|
513
|
-
}, Be((o, c, i) => {
|
|
514
|
-
console.error("onErrorCaptured:", o, c, i);
|
|
515
|
-
}), {
|
|
516
|
-
hasError: S(() => e.value.length > 0),
|
|
517
|
-
message: e,
|
|
518
|
-
error: t,
|
|
519
|
-
onError: r
|
|
520
|
-
};
|
|
521
|
-
}, rr = () => {
|
|
522
|
-
const e = Lt();
|
|
523
|
-
return {
|
|
524
|
-
onError: e.onError,
|
|
525
|
-
reset: e.reset
|
|
526
|
-
};
|
|
527
|
-
}, Lt = () => {
|
|
528
|
-
const e = ge(Ie, null);
|
|
529
|
-
if (e === null)
|
|
530
|
-
throw new Error("Privider is missing a parent component.");
|
|
531
|
-
return e;
|
|
532
|
-
}, nr = (e, t = "", r = {}) => {
|
|
533
|
-
const n = O(""), { t: a } = Ct(), o = S(() => {
|
|
534
|
-
if (I(t))
|
|
535
|
-
try {
|
|
536
|
-
const u = Nt(I(e), I(t));
|
|
537
|
-
return Tt(u, I(e));
|
|
538
|
-
} catch (u) {
|
|
539
|
-
n.value = u;
|
|
540
|
-
}
|
|
541
|
-
return I(e);
|
|
542
|
-
}), c = (u) => ({
|
|
543
|
-
...u,
|
|
544
|
-
...u.label && { label: a(u.label ?? "", I(r)) },
|
|
545
|
-
...u.tooltip && { tooltip: a(u.tooltip ?? "") }
|
|
546
|
-
});
|
|
547
|
-
return {
|
|
548
|
-
columns: S(() => j(c, o.value)),
|
|
549
|
-
error: n
|
|
550
|
-
};
|
|
551
|
-
}, Nt = (e, t = "") => {
|
|
552
|
-
const r = j(V, C(",", t)), n = Ge(e);
|
|
553
|
-
if (r[0] === "")
|
|
554
|
-
return resolve([]);
|
|
555
|
-
const a = r.findIndex((o) => !n.includes(o));
|
|
556
|
-
if (a > -1)
|
|
557
|
-
throw r[a];
|
|
558
|
-
return r;
|
|
559
|
-
};
|
|
560
|
-
/*! *****************************************************************************
|
|
561
|
-
Copyright (c) Microsoft Corporation.
|
|
562
|
-
|
|
563
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
564
|
-
purpose with or without fee is hereby granted.
|
|
565
|
-
|
|
566
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
567
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
568
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
569
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
570
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
571
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
572
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
573
|
-
***************************************************************************** */
|
|
574
|
-
function ue(e, t) {
|
|
575
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
576
|
-
if (!r)
|
|
577
|
-
return e;
|
|
578
|
-
var n, a, o = r.call(e), c = [];
|
|
579
|
-
try {
|
|
580
|
-
for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; )
|
|
581
|
-
c.push(n.value);
|
|
582
|
-
} catch (i) {
|
|
583
|
-
a = { error: i };
|
|
584
|
-
} finally {
|
|
585
|
-
try {
|
|
586
|
-
n && !n.done && (r = o.return) && r.call(o);
|
|
587
|
-
} finally {
|
|
588
|
-
if (a)
|
|
589
|
-
throw a.error;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
return c;
|
|
593
|
-
}
|
|
594
|
-
var le;
|
|
595
|
-
(function(e) {
|
|
596
|
-
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
597
|
-
})(le || (le = {}));
|
|
598
|
-
var Ft = { type: "xstate.init" };
|
|
599
|
-
function q(e) {
|
|
600
|
-
return e === void 0 ? [] : [].concat(e);
|
|
601
|
-
}
|
|
602
|
-
function fe(e, t) {
|
|
603
|
-
return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
|
|
604
|
-
}
|
|
605
|
-
function X(e) {
|
|
606
|
-
return function(t) {
|
|
607
|
-
return e === t;
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function Bt(e) {
|
|
611
|
-
return typeof e == "string" ? { type: e } : e;
|
|
612
|
-
}
|
|
613
|
-
function pe(e, t) {
|
|
614
|
-
return { value: e, context: t, actions: [], changed: !1, matches: X(e) };
|
|
615
|
-
}
|
|
616
|
-
function de(e, t, r) {
|
|
617
|
-
var n = t, a = !1;
|
|
618
|
-
return [e.filter(function(o) {
|
|
619
|
-
if (o.type === "xstate.assign") {
|
|
620
|
-
a = !0;
|
|
621
|
-
var c = Object.assign({}, n);
|
|
622
|
-
return typeof o.assignment == "function" ? c = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(i) {
|
|
623
|
-
c[i] = typeof o.assignment[i] == "function" ? o.assignment[i](n, r) : o.assignment[i];
|
|
624
|
-
}), n = c, !1;
|
|
625
|
-
}
|
|
626
|
-
return !0;
|
|
627
|
-
}), n, a];
|
|
628
|
-
}
|
|
629
|
-
function kt(e, t) {
|
|
630
|
-
t === void 0 && (t = {});
|
|
631
|
-
var r = ue(de(q(e.states[e.initial].entry).map(function(c) {
|
|
632
|
-
return fe(c, t.actions);
|
|
633
|
-
}), e.context, Ft), 2), n = r[0], a = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: a, matches: X(e.initial) }, transition: function(c, i) {
|
|
634
|
-
var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, s = d.context, f = Bt(i), v = e.states[l];
|
|
635
|
-
if (v.on) {
|
|
636
|
-
var P = q(v.on[f.type]);
|
|
637
|
-
try {
|
|
638
|
-
for (var h = function(g) {
|
|
639
|
-
var M = typeof Symbol == "function" && Symbol.iterator, Z = M && g[M], ee = 0;
|
|
640
|
-
if (Z)
|
|
641
|
-
return Z.call(g);
|
|
642
|
-
if (g && typeof g.length == "number")
|
|
643
|
-
return { next: function() {
|
|
644
|
-
return g && ee >= g.length && (g = void 0), { value: g && g[ee++], done: !g };
|
|
645
|
-
} };
|
|
646
|
-
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
647
|
-
}(P), y = h.next(); !y.done; y = h.next()) {
|
|
648
|
-
var w = y.value;
|
|
649
|
-
if (w === void 0)
|
|
650
|
-
return pe(l, s);
|
|
651
|
-
var b = typeof w == "string" ? { target: w } : w, m = b.target, T = b.actions, x = T === void 0 ? [] : T, Y = b.cond, Ae = Y === void 0 ? function() {
|
|
652
|
-
return !0;
|
|
653
|
-
} : Y, Se = m === void 0, Te = m ?? l, Re = e.states[Te];
|
|
654
|
-
if (Ae(s, f)) {
|
|
655
|
-
var W = ue(de((Se ? q(x) : [].concat(v.exit, x, Re.entry).filter(function(g) {
|
|
656
|
-
return g;
|
|
657
|
-
})).map(function(g) {
|
|
658
|
-
return fe(g, o._options.actions);
|
|
659
|
-
}), s, f), 3), J = W[0], $e = W[1], je = W[2], Q = m ?? l;
|
|
660
|
-
return { value: Q, context: $e, actions: J, changed: m !== l || J.length > 0 || je, matches: X(Q) };
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
} catch (g) {
|
|
664
|
-
u = { error: g };
|
|
665
|
-
} finally {
|
|
666
|
-
try {
|
|
667
|
-
y && !y.done && (p = h.return) && p.call(h);
|
|
668
|
-
} finally {
|
|
669
|
-
if (u)
|
|
670
|
-
throw u.error;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return pe(l, s);
|
|
675
|
-
} };
|
|
676
|
-
return o;
|
|
677
|
-
}
|
|
678
|
-
const Vt = kt({
|
|
679
|
-
id: "sort",
|
|
680
|
-
initial: D,
|
|
681
|
-
states: {
|
|
682
|
-
[D]: {
|
|
683
|
-
on: {
|
|
684
|
-
DIRECTION1: z,
|
|
685
|
-
DIRECTION2: L
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
[z]: {
|
|
689
|
-
on: {
|
|
690
|
-
DIRECTION1: L,
|
|
691
|
-
DIRECTION2: D
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
[L]: {
|
|
695
|
-
on: {
|
|
696
|
-
DIRECTION1: D,
|
|
697
|
-
DIRECTION2: z
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}), Ut = (e, t) => {
|
|
702
|
-
const r = t === L ? "DIRECTION2" : "DIRECTION1";
|
|
703
|
-
return Vt.transition(e, r).value;
|
|
704
|
-
};
|
|
705
|
-
function or(e = {}) {
|
|
706
|
-
const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
|
|
707
|
-
return {
|
|
708
|
-
sort: n,
|
|
709
|
-
change: ({ target: o, orders: c }) => {
|
|
710
|
-
if (n.sortTarget !== o) {
|
|
711
|
-
n.sortTarget = o, n.orders = c;
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
const i = c.map((u, p) => ({
|
|
715
|
-
...u,
|
|
716
|
-
direction: Ut(n.orders[p].direction, u.direction)
|
|
717
|
-
}));
|
|
718
|
-
n.sortTarget = o, n.orders = i;
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
export {
|
|
723
|
-
tr as a,
|
|
724
|
-
rr as b,
|
|
725
|
-
Zt as c,
|
|
726
|
-
Ct as d,
|
|
727
|
-
Qt as e,
|
|
728
|
-
qt as f,
|
|
729
|
-
or as g,
|
|
730
|
-
Jt as h,
|
|
731
|
-
er as i,
|
|
732
|
-
Kt as j,
|
|
733
|
-
ht as k,
|
|
734
|
-
Yt as l,
|
|
735
|
-
Gt as m,
|
|
736
|
-
B as n,
|
|
737
|
-
Xt as o,
|
|
738
|
-
$ as p,
|
|
739
|
-
nr as u,
|
|
740
|
-
Nt as v,
|
|
741
|
-
Ht as w
|
|
742
|
-
};
|