@mjsz-vbr-elements/core 2.3.7 → 2.4.0

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,17 +1,105 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.7 - 17/03/2024, 12:25:53
3
+ * version: v2.4.0 - 06/06/2024, 12:35:57
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { computed as C, withDirectives as fe, openBlock as v, createElementBlock as b, normalizeClass as z, unref as u, renderSlot as N, vModelSelect as he, createElementVNode as w, ref as G, watch as It, isRef as ge, Fragment as B, normalizeStyle as Lt, createVNode as O, Transition as ye, withCtx as k, createTextVNode as M, toDisplayString as T, createCommentVNode as _, toRefs as Ct, renderList as tt, createBlock as R, withKeys as Vt, withModifiers as at, defineComponent as ve, createSlots as we, toRef as be } from "vue";
9
- import { f as q, o as xe, e as Te, d as Z, a as ke, c as Pe, j as Se, n as _e, i as Ae, b as Yt, u as qt, w as ze, h as $e } from "./useAdditionalText-Ta-GUW7T.js";
10
- import { x as Jt, z as yt, l as Dt, p as Ce, o as vt, g as Oe } from "./datetime-BD_lSSC2.js";
11
- import { LAZY_LOADING_STATE_DELAY as Ge, SORT_STATE_ORIGINAL as At, SORT_STATE_DESCEND as Mt, SORT_STATE_ASCEND as Bt, AVAILABLE_TIMEZONES_BY_COUNTRY as Ee, DEFAULT_PORTRAIT_IMAGE_URL as Re } from "./constants.js";
12
- import { k as Ne, W as Xt, U as bt } from "./convert-HKQt4kO3.js";
13
- import { COLUMNS_SCHEDULE as Ie } from "./columns.js";
14
- const Le = {
8
+ import { computed as $, ref as C, watch as Ot, getCurrentScope as we, onScopeDispose as be, unref as u, getCurrentInstance as xe, onMounted as Te, defineComponent as Zt, onUnmounted as ke, h as Pe, withDirectives as Se, openBlock as v, createElementBlock as b, normalizeClass as z, renderSlot as R, vModelSelect as _e, createElementVNode as w, isRef as Ae, Fragment as M, normalizeStyle as Bt, createVNode as G, Transition as ze, withCtx as k, createTextVNode as D, toDisplayString as T, createCommentVNode as _, toRefs as It, renderList as tt, createBlock as I, withKeys as Ft, withModifiers as it, createSlots as $e, toRef as Ce } from "vue";
9
+ import { f as q, o as Oe, e as Ge, d as Z, a as Ee, c as Ie, j as Re, n as Ne, i as Le, b as Qt, u as te, w as Ve, h as De } from "./useAdditionalText-Bi2CUi4-.js";
10
+ import { J as ee, K as vt, z as Ht, C as Me, o as wt, g as Be } from "./datetime-Df9jKQTx.js";
11
+ import { LAZY_LOADING_STATE_DELAY as Fe, SORT_STATE_ORIGINAL as At, SORT_STATE_DESCEND as jt, SORT_STATE_ASCEND as Wt, AVAILABLE_TIMEZONES_BY_COUNTRY as He, DEFAULT_PORTRAIT_IMAGE_URL as je } from "./constants.js";
12
+ import { m as We, W as oe, U as xt } from "./convert-BUiKPu9l.js";
13
+ import { COLUMNS_SCHEDULE as Ke } from "./columns.js";
14
+ function Ue(t) {
15
+ return we() ? (be(t), !0) : !1;
16
+ }
17
+ function ne(t) {
18
+ return typeof t == "function" ? t() : u(t);
19
+ }
20
+ const Ye = typeof window < "u" && typeof document < "u";
21
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
22
+ const qe = (t) => t != null, zt = () => {
23
+ };
24
+ function $t(t) {
25
+ var e;
26
+ const o = ne(t);
27
+ return (e = o == null ? void 0 : o.$el) != null ? e : o;
28
+ }
29
+ const Je = Ye ? window : void 0;
30
+ function Xe() {
31
+ const t = C(!1);
32
+ return xe() && Te(() => {
33
+ t.value = !0;
34
+ }), t;
35
+ }
36
+ function Ze(t) {
37
+ const e = Xe();
38
+ return $(() => (e.value, !!t()));
39
+ }
40
+ function Qe(t, e, o = {}) {
41
+ const {
42
+ root: n,
43
+ rootMargin: r = "0px",
44
+ threshold: s = 0.1,
45
+ window: i = Je,
46
+ immediate: c = !0
47
+ } = o, m = Ze(() => i && "IntersectionObserver" in i), d = $(() => {
48
+ const a = ne(t);
49
+ return (Array.isArray(a) ? a : [a]).map($t).filter(qe);
50
+ });
51
+ let l = zt;
52
+ const f = C(c), y = m.value ? Ot(
53
+ () => [d.value, $t(n), f.value],
54
+ ([a, p]) => {
55
+ if (l(), !f.value || !a.length)
56
+ return;
57
+ const h = new IntersectionObserver(
58
+ e,
59
+ {
60
+ root: $t(p),
61
+ rootMargin: r,
62
+ threshold: s
63
+ }
64
+ );
65
+ a.forEach((x) => x && h.observe(x)), l = () => {
66
+ h.disconnect(), l = zt;
67
+ };
68
+ },
69
+ { immediate: c, flush: "post" }
70
+ ) : zt, g = () => {
71
+ l(), y(), f.value = !1;
72
+ };
73
+ return Ue(g), {
74
+ isSupported: m,
75
+ isActive: f,
76
+ pause() {
77
+ l(), f.value = !1;
78
+ },
79
+ resume() {
80
+ f.value = !0;
81
+ },
82
+ stop: g
83
+ };
84
+ }
85
+ const Tr = Zt({
86
+ name: "FetchMoreObserver",
87
+ props: ["as", "options"],
88
+ emits: ["intersect"],
89
+ setup(t, { slots: e, emit: o }) {
90
+ const n = C(null), { stop: r } = Qe(
91
+ n,
92
+ ([{ isIntersecting: s }]) => {
93
+ s && o("intersect");
94
+ },
95
+ t.options
96
+ );
97
+ return ke(r), () => {
98
+ if (e.default)
99
+ return Pe(t.as || "div", { ref: n }, e.default());
100
+ };
101
+ }
102
+ }), to = {
15
103
  __name: "BaseSelect",
16
104
  props: {
17
105
  modelValue: {
@@ -21,35 +109,35 @@ const Le = {
21
109
  },
22
110
  emits: ["update:modelValue"],
23
111
  setup(t, { emit: e }) {
24
- const o = t, n = e, a = q("base-input"), s = C({ get: () => o.modelValue, set: (r) => n("update:modelValue", r) });
25
- return (r, c) => fe((v(), b("select", {
112
+ const o = t, n = e, r = q("base-input"), s = $({ get: () => o.modelValue, set: (i) => n("update:modelValue", i) });
113
+ return (i, c) => Se((v(), b("select", {
26
114
  "onUpdate:modelValue": c[0] || (c[0] = (m) => s.value = m),
27
- class: z([u(a), "is-select"])
115
+ class: z([u(r), "is-select"])
28
116
  }, [
29
- N(r.$slots, "default")
117
+ R(i.$slots, "default")
30
118
  ], 2)), [
31
- [he, s.value]
119
+ [_e, s.value]
32
120
  ]);
33
121
  }
34
122
  };
35
- var Ve = /* @__PURE__ */ Jt(function(e, o, n) {
36
- var a = {}, s;
123
+ var eo = /* @__PURE__ */ ee(function(e, o, n) {
124
+ var r = {}, s;
37
125
  o = o || {}, n = n || {};
38
126
  for (s in o)
39
- yt(s, o) && (a[s] = yt(s, n) ? e(s, o[s], n[s]) : o[s]);
127
+ vt(s, o) && (r[s] = vt(s, n) ? e(s, o[s], n[s]) : o[s]);
40
128
  for (s in n)
41
- yt(s, n) && !yt(s, a) && (a[s] = n[s]);
42
- return a;
43
- }), De = /* @__PURE__ */ Jt(function t(e, o, n) {
44
- return Ve(function(a, s, r) {
45
- return Dt(s) && Dt(r) ? t(e, s, r) : e(a, s, r);
129
+ vt(s, n) && !vt(s, r) && (r[s] = n[s]);
130
+ return r;
131
+ }), oo = /* @__PURE__ */ ee(function t(e, o, n) {
132
+ return eo(function(r, s, i) {
133
+ return Ht(s) && Ht(i) ? t(e, s, i) : e(r, s, i);
46
134
  }, o, n);
47
- }), Me = /* @__PURE__ */ Ce(function(e, o) {
48
- return De(function(n, a, s) {
135
+ }), no = /* @__PURE__ */ Me(function(e, o) {
136
+ return oo(function(n, r, s) {
49
137
  return s;
50
138
  }, e, o);
51
139
  });
52
- const Be = Me, He = {
140
+ const so = {
53
141
  "aria-hidden": "true",
54
142
  focusable: "false",
55
143
  "data-prefix": "fas",
@@ -58,16 +146,16 @@ const Be = Me, He = {
58
146
  role: "img",
59
147
  xmlns: "http://www.w3.org/2000/svg",
60
148
  viewBox: "0 0 320 512"
61
- }, Fe = /* @__PURE__ */ w("path", {
149
+ }, ro = /* @__PURE__ */ w("path", {
62
150
  fill: "currentColor",
63
151
  d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"
64
- }, null, -1), je = [
65
- Fe
152
+ }, null, -1), io = [
153
+ ro
66
154
  ];
67
- function We(t, e) {
68
- return v(), b("svg", He, [...je]);
155
+ function ao(t, e) {
156
+ return v(), b("svg", so, [...io]);
69
157
  }
70
- const Ht = { render: We }, Ke = {
158
+ const Kt = { render: ao }, lo = {
71
159
  "aria-hidden": "true",
72
160
  focusable: "false",
73
161
  "data-prefix": "fas",
@@ -76,16 +164,16 @@ const Ht = { render: We }, Ke = {
76
164
  role: "img",
77
165
  xmlns: "http://www.w3.org/2000/svg",
78
166
  viewBox: "0 0 320 512"
79
- }, Ue = /* @__PURE__ */ w("path", {
167
+ }, co = /* @__PURE__ */ w("path", {
80
168
  fill: "currentColor",
81
169
  d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"
82
- }, null, -1), Ye = [
83
- Ue
170
+ }, null, -1), uo = [
171
+ co
84
172
  ];
85
- function qe(t, e) {
86
- return v(), b("svg", Ke, [...Ye]);
173
+ function mo(t, e) {
174
+ return v(), b("svg", lo, [...uo]);
87
175
  }
88
- const Je = { render: qe }, Xe = {
176
+ const fo = { render: mo }, po = {
89
177
  "aria-hidden": "true",
90
178
  focusable: "false",
91
179
  "data-prefix": "fas",
@@ -94,86 +182,86 @@ const Je = { render: qe }, Xe = {
94
182
  role: "img",
95
183
  xmlns: "http://www.w3.org/2000/svg",
96
184
  viewBox: "0 0 320 512"
97
- }, Ze = /* @__PURE__ */ w("path", {
185
+ }, ho = /* @__PURE__ */ w("path", {
98
186
  fill: "currentColor",
99
187
  d: "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"
100
- }, null, -1), Qe = [
101
- Ze
188
+ }, null, -1), go = [
189
+ ho
102
190
  ];
103
- function to(t, e) {
104
- return v(), b("svg", Xe, [...Qe]);
191
+ function yo(t, e) {
192
+ return v(), b("svg", po, [...go]);
105
193
  }
106
- const eo = { render: to }, it = Math.min, et = Math.max, xt = Math.round, wt = Math.floor, J = (t) => ({
194
+ const vo = { render: yo }, at = Math.min, et = Math.max, Tt = Math.round, bt = Math.floor, J = (t) => ({
107
195
  x: t,
108
196
  y: t
109
- }), oo = {
197
+ }), wo = {
110
198
  left: "right",
111
199
  right: "left",
112
200
  bottom: "top",
113
201
  top: "bottom"
114
- }, no = {
202
+ }, bo = {
115
203
  start: "end",
116
204
  end: "start"
117
205
  };
118
- function zt(t, e, o) {
119
- return et(t, it(e, o));
206
+ function Gt(t, e, o) {
207
+ return et(t, at(e, o));
120
208
  }
121
- function ft(t, e) {
209
+ function ht(t, e) {
122
210
  return typeof t == "function" ? t(e) : t;
123
211
  }
124
212
  function ot(t) {
125
213
  return t.split("-")[0];
126
214
  }
127
- function ht(t) {
215
+ function gt(t) {
128
216
  return t.split("-")[1];
129
217
  }
130
- function Zt(t) {
218
+ function se(t) {
131
219
  return t === "x" ? "y" : "x";
132
220
  }
133
- function Ot(t) {
221
+ function Rt(t) {
134
222
  return t === "y" ? "height" : "width";
135
223
  }
136
- function Pt(t) {
224
+ function St(t) {
137
225
  return ["top", "bottom"].includes(ot(t)) ? "y" : "x";
138
226
  }
139
- function Gt(t) {
140
- return Zt(Pt(t));
227
+ function Nt(t) {
228
+ return se(St(t));
141
229
  }
142
- function so(t, e, o) {
230
+ function xo(t, e, o) {
143
231
  o === void 0 && (o = !1);
144
- const n = ht(t), a = Gt(t), s = Ot(a);
145
- let r = a === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
146
- return e.reference[s] > e.floating[s] && (r = Tt(r)), [r, Tt(r)];
232
+ const n = gt(t), r = Nt(t), s = Rt(r);
233
+ let i = r === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
234
+ return e.reference[s] > e.floating[s] && (i = kt(i)), [i, kt(i)];
147
235
  }
148
- function ro(t) {
149
- const e = Tt(t);
150
- return [$t(t), e, $t(e)];
236
+ function To(t) {
237
+ const e = kt(t);
238
+ return [Et(t), e, Et(e)];
151
239
  }
152
- function $t(t) {
153
- return t.replace(/start|end/g, (e) => no[e]);
240
+ function Et(t) {
241
+ return t.replace(/start|end/g, (e) => bo[e]);
154
242
  }
155
- function ao(t, e, o) {
156
- const n = ["left", "right"], a = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
243
+ function ko(t, e, o) {
244
+ const n = ["left", "right"], r = ["right", "left"], s = ["top", "bottom"], i = ["bottom", "top"];
157
245
  switch (t) {
158
246
  case "top":
159
247
  case "bottom":
160
- return o ? e ? a : n : e ? n : a;
248
+ return o ? e ? r : n : e ? n : r;
161
249
  case "left":
162
250
  case "right":
163
- return e ? s : r;
251
+ return e ? s : i;
164
252
  default:
165
253
  return [];
166
254
  }
167
255
  }
168
- function io(t, e, o, n) {
169
- const a = ht(t);
170
- let s = ao(ot(t), o === "start", n);
171
- return a && (s = s.map((r) => r + "-" + a), e && (s = s.concat(s.map($t)))), s;
256
+ function Po(t, e, o, n) {
257
+ const r = gt(t);
258
+ let s = ko(ot(t), o === "start", n);
259
+ return r && (s = s.map((i) => i + "-" + r), e && (s = s.concat(s.map(Et)))), s;
172
260
  }
173
- function Tt(t) {
174
- return t.replace(/left|right|bottom|top/g, (e) => oo[e]);
261
+ function kt(t) {
262
+ return t.replace(/left|right|bottom|top/g, (e) => wo[e]);
175
263
  }
176
- function lo(t) {
264
+ function So(t) {
177
265
  return {
178
266
  top: 0,
179
267
  right: 0,
@@ -182,15 +270,15 @@ function lo(t) {
182
270
  ...t
183
271
  };
184
272
  }
185
- function Qt(t) {
186
- return typeof t != "number" ? lo(t) : {
273
+ function re(t) {
274
+ return typeof t != "number" ? So(t) : {
187
275
  top: t,
188
276
  right: t,
189
277
  bottom: t,
190
278
  left: t
191
279
  };
192
280
  }
193
- function kt(t) {
281
+ function Pt(t) {
194
282
  return {
195
283
  ...t,
196
284
  top: t.y,
@@ -199,18 +287,18 @@ function kt(t) {
199
287
  bottom: t.y + t.height
200
288
  };
201
289
  }
202
- function Ft(t, e, o) {
290
+ function Ut(t, e, o) {
203
291
  let {
204
292
  reference: n,
205
- floating: a
293
+ floating: r
206
294
  } = t;
207
- const s = Pt(e), r = Gt(e), c = Ot(r), m = ot(e), d = s === "y", l = n.x + n.width / 2 - a.width / 2, p = n.y + n.height / 2 - a.height / 2, y = n[c] / 2 - a[c] / 2;
295
+ const s = St(e), i = Nt(e), c = Rt(i), m = ot(e), d = s === "y", l = n.x + n.width / 2 - r.width / 2, f = n.y + n.height / 2 - r.height / 2, y = n[c] / 2 - r[c] / 2;
208
296
  let g;
209
297
  switch (m) {
210
298
  case "top":
211
299
  g = {
212
300
  x: l,
213
- y: n.y - a.height
301
+ y: n.y - r.height
214
302
  };
215
303
  break;
216
304
  case "bottom":
@@ -222,13 +310,13 @@ function Ft(t, e, o) {
222
310
  case "right":
223
311
  g = {
224
312
  x: n.x + n.width,
225
- y: p
313
+ y: f
226
314
  };
227
315
  break;
228
316
  case "left":
229
317
  g = {
230
- x: n.x - a.width,
231
- y: p
318
+ x: n.x - r.width,
319
+ y: f
232
320
  };
233
321
  break;
234
322
  default:
@@ -237,220 +325,220 @@ function Ft(t, e, o) {
237
325
  y: n.y
238
326
  };
239
327
  }
240
- switch (ht(e)) {
328
+ switch (gt(e)) {
241
329
  case "start":
242
- g[r] -= y * (o && d ? -1 : 1);
330
+ g[i] -= y * (o && d ? -1 : 1);
243
331
  break;
244
332
  case "end":
245
- g[r] += y * (o && d ? -1 : 1);
333
+ g[i] += y * (o && d ? -1 : 1);
246
334
  break;
247
335
  }
248
336
  return g;
249
337
  }
250
- const co = async (t, e, o) => {
338
+ const _o = async (t, e, o) => {
251
339
  const {
252
340
  placement: n = "bottom",
253
- strategy: a = "absolute",
341
+ strategy: r = "absolute",
254
342
  middleware: s = [],
255
- platform: r
256
- } = o, c = s.filter(Boolean), m = await (r.isRTL == null ? void 0 : r.isRTL(e));
257
- let d = await r.getElementRects({
343
+ platform: i
344
+ } = o, c = s.filter(Boolean), m = await (i.isRTL == null ? void 0 : i.isRTL(e));
345
+ let d = await i.getElementRects({
258
346
  reference: t,
259
347
  floating: e,
260
- strategy: a
348
+ strategy: r
261
349
  }), {
262
350
  x: l,
263
- y: p
264
- } = Ft(d, n, m), y = n, g = {}, i = 0;
265
- for (let f = 0; f < c.length; f++) {
351
+ y: f
352
+ } = Ut(d, n, m), y = n, g = {}, a = 0;
353
+ for (let p = 0; p < c.length; p++) {
266
354
  const {
267
355
  name: h,
268
356
  fn: x
269
- } = c[f], {
357
+ } = c[p], {
270
358
  x: P,
271
359
  y: S,
272
- data: $,
360
+ data: O,
273
361
  reset: A
274
362
  } = await x({
275
363
  x: l,
276
- y: p,
364
+ y: f,
277
365
  initialPlacement: n,
278
366
  placement: y,
279
- strategy: a,
367
+ strategy: r,
280
368
  middlewareData: g,
281
369
  rects: d,
282
- platform: r,
370
+ platform: i,
283
371
  elements: {
284
372
  reference: t,
285
373
  floating: e
286
374
  }
287
375
  });
288
- l = P ?? l, p = S ?? p, g = {
376
+ l = P ?? l, f = S ?? f, g = {
289
377
  ...g,
290
378
  [h]: {
291
379
  ...g[h],
292
- ...$
380
+ ...O
293
381
  }
294
- }, A && i <= 50 && (i++, typeof A == "object" && (A.placement && (y = A.placement), A.rects && (d = A.rects === !0 ? await r.getElementRects({
382
+ }, A && a <= 50 && (a++, typeof A == "object" && (A.placement && (y = A.placement), A.rects && (d = A.rects === !0 ? await i.getElementRects({
295
383
  reference: t,
296
384
  floating: e,
297
- strategy: a
385
+ strategy: r
298
386
  }) : A.rects), {
299
387
  x: l,
300
- y: p
301
- } = Ft(d, y, m)), f = -1);
388
+ y: f
389
+ } = Ut(d, y, m)), p = -1);
302
390
  }
303
391
  return {
304
392
  x: l,
305
- y: p,
393
+ y: f,
306
394
  placement: y,
307
- strategy: a,
395
+ strategy: r,
308
396
  middlewareData: g
309
397
  };
310
398
  };
311
- async function te(t, e) {
399
+ async function ie(t, e) {
312
400
  var o;
313
401
  e === void 0 && (e = {});
314
402
  const {
315
403
  x: n,
316
- y: a,
404
+ y: r,
317
405
  platform: s,
318
- rects: r,
406
+ rects: i,
319
407
  elements: c,
320
408
  strategy: m
321
409
  } = t, {
322
410
  boundary: d = "clippingAncestors",
323
411
  rootBoundary: l = "viewport",
324
- elementContext: p = "floating",
412
+ elementContext: f = "floating",
325
413
  altBoundary: y = !1,
326
414
  padding: g = 0
327
- } = ft(e, t), i = Qt(g), h = c[y ? p === "floating" ? "reference" : "floating" : p], x = kt(await s.getClippingRect({
415
+ } = ht(e, t), a = re(g), h = c[y ? f === "floating" ? "reference" : "floating" : f], x = Pt(await s.getClippingRect({
328
416
  element: (o = await (s.isElement == null ? void 0 : s.isElement(h))) == null || o ? h : h.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
329
417
  boundary: d,
330
418
  rootBoundary: l,
331
419
  strategy: m
332
- })), P = p === "floating" ? {
333
- ...r.floating,
420
+ })), P = f === "floating" ? {
421
+ ...i.floating,
334
422
  x: n,
335
- y: a
336
- } : r.reference, S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(S)) ? await (s.getScale == null ? void 0 : s.getScale(S)) || {
423
+ y: r
424
+ } : i.reference, S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), O = await (s.isElement == null ? void 0 : s.isElement(S)) ? await (s.getScale == null ? void 0 : s.getScale(S)) || {
337
425
  x: 1,
338
426
  y: 1
339
427
  } : {
340
428
  x: 1,
341
429
  y: 1
342
- }, A = kt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
430
+ }, A = Pt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
343
431
  elements: c,
344
432
  rect: P,
345
433
  offsetParent: S,
346
434
  strategy: m
347
435
  }) : P);
348
436
  return {
349
- top: (x.top - A.top + i.top) / $.y,
350
- bottom: (A.bottom - x.bottom + i.bottom) / $.y,
351
- left: (x.left - A.left + i.left) / $.x,
352
- right: (A.right - x.right + i.right) / $.x
437
+ top: (x.top - A.top + a.top) / O.y,
438
+ bottom: (A.bottom - x.bottom + a.bottom) / O.y,
439
+ left: (x.left - A.left + a.left) / O.x,
440
+ right: (A.right - x.right + a.right) / O.x
353
441
  };
354
442
  }
355
- const uo = (t) => ({
443
+ const Ao = (t) => ({
356
444
  name: "arrow",
357
445
  options: t,
358
446
  async fn(e) {
359
447
  const {
360
448
  x: o,
361
449
  y: n,
362
- placement: a,
450
+ placement: r,
363
451
  rects: s,
364
- platform: r,
452
+ platform: i,
365
453
  elements: c,
366
454
  middlewareData: m
367
455
  } = e, {
368
456
  element: d,
369
457
  padding: l = 0
370
- } = ft(t, e) || {};
458
+ } = ht(t, e) || {};
371
459
  if (d == null)
372
460
  return {};
373
- const p = Qt(l), y = {
461
+ const f = re(l), y = {
374
462
  x: o,
375
463
  y: n
376
- }, g = Gt(a), i = Ot(g), f = await r.getDimensions(d), h = g === "y", x = h ? "top" : "left", P = h ? "bottom" : "right", S = h ? "clientHeight" : "clientWidth", $ = s.reference[i] + s.reference[g] - y[g] - s.floating[i], A = y[g] - s.reference[g], D = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
377
- let H = D ? D[S] : 0;
378
- (!H || !await (r.isElement == null ? void 0 : r.isElement(D))) && (H = c.floating[S] || s.floating[i]);
379
- const Q = $ / 2 - A / 2, ct = H / 2 - f[i] / 2 - 1, dt = it(p[x], ct), ut = it(p[P], ct), L = dt, mt = H - f[i] - ut, E = H / 2 - f[i] / 2 + Q, F = zt(L, E, mt), j = !m.arrow && ht(a) != null && E !== F && s.reference[i] / 2 - (E < L ? dt : ut) - f[i] / 2 < 0, K = j ? E < L ? E - L : E - mt : 0;
464
+ }, g = Nt(r), a = Rt(g), p = await i.getDimensions(d), h = g === "y", x = h ? "top" : "left", P = h ? "bottom" : "right", S = h ? "clientHeight" : "clientWidth", O = s.reference[a] + s.reference[g] - y[g] - s.floating[a], A = y[g] - s.reference[g], V = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
465
+ let F = V ? V[S] : 0;
466
+ (!F || !await (i.isElement == null ? void 0 : i.isElement(V))) && (F = c.floating[S] || s.floating[a]);
467
+ const Q = O / 2 - A / 2, dt = F / 2 - p[a] / 2 - 1, ut = at(f[x], dt), mt = at(f[P], dt), L = ut, ft = F - p[a] - mt, E = F / 2 - p[a] / 2 + Q, H = Gt(L, E, ft), j = !m.arrow && gt(r) != null && E !== H && s.reference[a] / 2 - (E < L ? ut : mt) - p[a] / 2 < 0, U = j ? E < L ? E - L : E - ft : 0;
380
468
  return {
381
- [g]: y[g] + K,
469
+ [g]: y[g] + U,
382
470
  data: {
383
- [g]: F,
384
- centerOffset: E - F - K,
471
+ [g]: H,
472
+ centerOffset: E - H - U,
385
473
  ...j && {
386
- alignmentOffset: K
474
+ alignmentOffset: U
387
475
  }
388
476
  },
389
477
  reset: j
390
478
  };
391
479
  }
392
- }), mo = function(t) {
480
+ }), zo = function(t) {
393
481
  return t === void 0 && (t = {}), {
394
482
  name: "flip",
395
483
  options: t,
396
484
  async fn(e) {
397
485
  var o, n;
398
486
  const {
399
- placement: a,
487
+ placement: r,
400
488
  middlewareData: s,
401
- rects: r,
489
+ rects: i,
402
490
  initialPlacement: c,
403
491
  platform: m,
404
492
  elements: d
405
493
  } = e, {
406
494
  mainAxis: l = !0,
407
- crossAxis: p = !0,
495
+ crossAxis: f = !0,
408
496
  fallbackPlacements: y,
409
497
  fallbackStrategy: g = "bestFit",
410
- fallbackAxisSideDirection: i = "none",
411
- flipAlignment: f = !0,
498
+ fallbackAxisSideDirection: a = "none",
499
+ flipAlignment: p = !0,
412
500
  ...h
413
- } = ft(t, e);
501
+ } = ht(t, e);
414
502
  if ((o = s.arrow) != null && o.alignmentOffset)
415
503
  return {};
416
- const x = ot(a), P = ot(c) === c, S = await (m.isRTL == null ? void 0 : m.isRTL(d.floating)), $ = y || (P || !f ? [Tt(c)] : ro(c));
417
- !y && i !== "none" && $.push(...io(c, f, i, S));
418
- const A = [c, ...$], D = await te(e, h), H = [];
504
+ const x = ot(r), P = ot(c) === c, S = await (m.isRTL == null ? void 0 : m.isRTL(d.floating)), O = y || (P || !p ? [kt(c)] : To(c));
505
+ !y && a !== "none" && O.push(...Po(c, p, a, S));
506
+ const A = [c, ...O], V = await ie(e, h), F = [];
419
507
  let Q = ((n = s.flip) == null ? void 0 : n.overflows) || [];
420
- if (l && H.push(D[x]), p) {
421
- const L = so(a, r, S);
422
- H.push(D[L[0]], D[L[1]]);
508
+ if (l && F.push(V[x]), f) {
509
+ const L = xo(r, i, S);
510
+ F.push(V[L[0]], V[L[1]]);
423
511
  }
424
512
  if (Q = [...Q, {
425
- placement: a,
426
- overflows: H
427
- }], !H.every((L) => L <= 0)) {
428
- var ct, dt;
429
- const L = (((ct = s.flip) == null ? void 0 : ct.index) || 0) + 1, mt = A[L];
430
- if (mt)
513
+ placement: r,
514
+ overflows: F
515
+ }], !F.every((L) => L <= 0)) {
516
+ var dt, ut;
517
+ const L = (((dt = s.flip) == null ? void 0 : dt.index) || 0) + 1, ft = A[L];
518
+ if (ft)
431
519
  return {
432
520
  data: {
433
521
  index: L,
434
522
  overflows: Q
435
523
  },
436
524
  reset: {
437
- placement: mt
525
+ placement: ft
438
526
  }
439
527
  };
440
- let E = (dt = Q.filter((F) => F.overflows[0] <= 0).sort((F, j) => F.overflows[1] - j.overflows[1])[0]) == null ? void 0 : dt.placement;
528
+ let E = (ut = Q.filter((H) => H.overflows[0] <= 0).sort((H, j) => H.overflows[1] - j.overflows[1])[0]) == null ? void 0 : ut.placement;
441
529
  if (!E)
442
530
  switch (g) {
443
531
  case "bestFit": {
444
- var ut;
445
- const F = (ut = Q.map((j) => [j.placement, j.overflows.filter((K) => K > 0).reduce((K, pe) => K + pe, 0)]).sort((j, K) => j[1] - K[1])[0]) == null ? void 0 : ut[0];
446
- F && (E = F);
532
+ var mt;
533
+ const H = (mt = Q.map((j) => [j.placement, j.overflows.filter((U) => U > 0).reduce((U, ve) => U + ve, 0)]).sort((j, U) => j[1] - U[1])[0]) == null ? void 0 : mt[0];
534
+ H && (E = H);
447
535
  break;
448
536
  }
449
537
  case "initialPlacement":
450
538
  E = c;
451
539
  break;
452
540
  }
453
- if (a !== E)
541
+ if (r !== E)
454
542
  return {
455
543
  reset: {
456
544
  placement: E
@@ -461,27 +549,27 @@ const uo = (t) => ({
461
549
  }
462
550
  };
463
551
  };
464
- async function po(t, e) {
552
+ async function $o(t, e) {
465
553
  const {
466
554
  placement: o,
467
555
  platform: n,
468
- elements: a
469
- } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), r = ot(o), c = ht(o), m = Pt(o) === "y", d = ["left", "top"].includes(r) ? -1 : 1, l = s && m ? -1 : 1, p = ft(e, t);
556
+ elements: r
557
+ } = t, s = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), i = ot(o), c = gt(o), m = St(o) === "y", d = ["left", "top"].includes(i) ? -1 : 1, l = s && m ? -1 : 1, f = ht(e, t);
470
558
  let {
471
559
  mainAxis: y,
472
560
  crossAxis: g,
473
- alignmentAxis: i
474
- } = typeof p == "number" ? {
475
- mainAxis: p,
561
+ alignmentAxis: a
562
+ } = typeof f == "number" ? {
563
+ mainAxis: f,
476
564
  crossAxis: 0,
477
565
  alignmentAxis: null
478
566
  } : {
479
567
  mainAxis: 0,
480
568
  crossAxis: 0,
481
569
  alignmentAxis: null,
482
- ...p
570
+ ...f
483
571
  };
484
- return c && typeof i == "number" && (g = c === "end" ? i * -1 : i), m ? {
572
+ return c && typeof a == "number" && (g = c === "end" ? a * -1 : a), m ? {
485
573
  x: g * l,
486
574
  y: y * d
487
575
  } : {
@@ -489,29 +577,29 @@ async function po(t, e) {
489
577
  y: g * l
490
578
  };
491
579
  }
492
- const fo = function(t) {
580
+ const Co = function(t) {
493
581
  return t === void 0 && (t = 0), {
494
582
  name: "offset",
495
583
  options: t,
496
584
  async fn(e) {
497
585
  var o, n;
498
586
  const {
499
- x: a,
587
+ x: r,
500
588
  y: s,
501
- placement: r,
589
+ placement: i,
502
590
  middlewareData: c
503
- } = e, m = await po(e, t);
504
- return r === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
505
- x: a + m.x,
591
+ } = e, m = await $o(e, t);
592
+ return i === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
593
+ x: r + m.x,
506
594
  y: s + m.y,
507
595
  data: {
508
596
  ...m,
509
- placement: r
597
+ placement: i
510
598
  }
511
599
  };
512
600
  }
513
601
  };
514
- }, ho = function(t) {
602
+ }, Oo = function(t) {
515
603
  return t === void 0 && (t = {}), {
516
604
  name: "shift",
517
605
  options: t,
@@ -519,10 +607,10 @@ const fo = function(t) {
519
607
  const {
520
608
  x: o,
521
609
  y: n,
522
- placement: a
610
+ placement: r
523
611
  } = e, {
524
612
  mainAxis: s = !0,
525
- crossAxis: r = !1,
613
+ crossAxis: i = !1,
526
614
  limiter: c = {
527
615
  fn: (h) => {
528
616
  let {
@@ -536,93 +624,93 @@ const fo = function(t) {
536
624
  }
537
625
  },
538
626
  ...m
539
- } = ft(t, e), d = {
627
+ } = ht(t, e), d = {
540
628
  x: o,
541
629
  y: n
542
- }, l = await te(e, m), p = Pt(ot(a)), y = Zt(p);
543
- let g = d[y], i = d[p];
630
+ }, l = await ie(e, m), f = St(ot(r)), y = se(f);
631
+ let g = d[y], a = d[f];
544
632
  if (s) {
545
633
  const h = y === "y" ? "top" : "left", x = y === "y" ? "bottom" : "right", P = g + l[h], S = g - l[x];
546
- g = zt(P, g, S);
634
+ g = Gt(P, g, S);
547
635
  }
548
- if (r) {
549
- const h = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", P = i + l[h], S = i - l[x];
550
- i = zt(P, i, S);
636
+ if (i) {
637
+ const h = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", P = a + l[h], S = a - l[x];
638
+ a = Gt(P, a, S);
551
639
  }
552
- const f = c.fn({
640
+ const p = c.fn({
553
641
  ...e,
554
642
  [y]: g,
555
- [p]: i
643
+ [f]: a
556
644
  });
557
645
  return {
558
- ...f,
646
+ ...p,
559
647
  data: {
560
- x: f.x - o,
561
- y: f.y - n
648
+ x: p.x - o,
649
+ y: p.y - n
562
650
  }
563
651
  };
564
652
  }
565
653
  };
566
654
  };
567
- function X(t) {
568
- return ee(t) ? (t.nodeName || "").toLowerCase() : "#document";
655
+ function ct(t) {
656
+ return ae(t) ? (t.nodeName || "").toLowerCase() : "#document";
569
657
  }
570
- function I(t) {
658
+ function N(t) {
571
659
  var e;
572
660
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
573
661
  }
574
662
  function Y(t) {
575
663
  var e;
576
- return (e = (ee(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
577
- }
578
- function ee(t) {
579
- return t instanceof Node || t instanceof I(t).Node;
664
+ return (e = (ae(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
580
665
  }
581
- function U(t) {
582
- return t instanceof Element || t instanceof I(t).Element;
666
+ function ae(t) {
667
+ return t instanceof Node || t instanceof N(t).Node;
583
668
  }
584
669
  function W(t) {
585
- return t instanceof HTMLElement || t instanceof I(t).HTMLElement;
670
+ return t instanceof Element || t instanceof N(t).Element;
586
671
  }
587
- function jt(t) {
588
- return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof I(t).ShadowRoot;
672
+ function K(t) {
673
+ return t instanceof HTMLElement || t instanceof N(t).HTMLElement;
589
674
  }
590
- function gt(t) {
675
+ function Yt(t) {
676
+ return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof N(t).ShadowRoot;
677
+ }
678
+ function yt(t) {
591
679
  const {
592
680
  overflow: e,
593
681
  overflowX: o,
594
682
  overflowY: n,
595
- display: a
596
- } = V(t);
597
- return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(a);
683
+ display: r
684
+ } = B(t);
685
+ return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(r);
598
686
  }
599
- function go(t) {
600
- return ["table", "td", "th"].includes(X(t));
687
+ function Go(t) {
688
+ return ["table", "td", "th"].includes(ct(t));
601
689
  }
602
- function Et(t) {
603
- const e = Rt(), o = V(t);
690
+ function Lt(t) {
691
+ const e = Vt(), o = B(t);
604
692
  return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
605
693
  }
606
- function yo(t) {
607
- let e = lt(t);
608
- for (; W(e) && !St(e); ) {
609
- if (Et(e))
694
+ function Eo(t) {
695
+ let e = X(t);
696
+ for (; K(e) && !lt(e); ) {
697
+ if (Lt(e))
610
698
  return e;
611
- e = lt(e);
699
+ e = X(e);
612
700
  }
613
701
  return null;
614
702
  }
615
- function Rt() {
703
+ function Vt() {
616
704
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
617
705
  }
618
- function St(t) {
619
- return ["html", "body", "#document"].includes(X(t));
706
+ function lt(t) {
707
+ return ["html", "body", "#document"].includes(ct(t));
620
708
  }
621
- function V(t) {
622
- return I(t).getComputedStyle(t);
709
+ function B(t) {
710
+ return N(t).getComputedStyle(t);
623
711
  }
624
712
  function _t(t) {
625
- return U(t) ? {
713
+ return W(t) ? {
626
714
  scrollLeft: t.scrollLeft,
627
715
  scrollTop: t.scrollTop
628
716
  } : {
@@ -630,92 +718,92 @@ function _t(t) {
630
718
  scrollTop: t.pageYOffset
631
719
  };
632
720
  }
633
- function lt(t) {
634
- if (X(t) === "html")
721
+ function X(t) {
722
+ if (ct(t) === "html")
635
723
  return t;
636
724
  const e = (
637
725
  // Step into the shadow DOM of the parent of a slotted node.
638
726
  t.assignedSlot || // DOM Element detected.
639
727
  t.parentNode || // ShadowRoot detected.
640
- jt(t) && t.host || // Fallback.
728
+ Yt(t) && t.host || // Fallback.
641
729
  Y(t)
642
730
  );
643
- return jt(e) ? e.host : e;
731
+ return Yt(e) ? e.host : e;
644
732
  }
645
- function oe(t) {
646
- const e = lt(t);
647
- return St(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : W(e) && gt(e) ? e : oe(e);
733
+ function le(t) {
734
+ const e = X(t);
735
+ return lt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : K(e) && yt(e) ? e : le(e);
648
736
  }
649
737
  function pt(t, e, o) {
650
738
  var n;
651
739
  e === void 0 && (e = []), o === void 0 && (o = !0);
652
- const a = oe(t), s = a === ((n = t.ownerDocument) == null ? void 0 : n.body), r = I(a);
653
- return s ? e.concat(r, r.visualViewport || [], gt(a) ? a : [], r.frameElement && o ? pt(r.frameElement) : []) : e.concat(a, pt(a, [], o));
740
+ const r = le(t), s = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = N(r);
741
+ return s ? e.concat(i, i.visualViewport || [], yt(r) ? r : [], i.frameElement && o ? pt(i.frameElement) : []) : e.concat(r, pt(r, [], o));
654
742
  }
655
- function ne(t) {
656
- const e = V(t);
743
+ function ce(t) {
744
+ const e = B(t);
657
745
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
658
- const a = W(t), s = a ? t.offsetWidth : o, r = a ? t.offsetHeight : n, c = xt(o) !== s || xt(n) !== r;
659
- return c && (o = s, n = r), {
746
+ const r = K(t), s = r ? t.offsetWidth : o, i = r ? t.offsetHeight : n, c = Tt(o) !== s || Tt(n) !== i;
747
+ return c && (o = s, n = i), {
660
748
  width: o,
661
749
  height: n,
662
750
  $: c
663
751
  };
664
752
  }
665
- function Nt(t) {
666
- return U(t) ? t : t.contextElement;
753
+ function Dt(t) {
754
+ return W(t) ? t : t.contextElement;
667
755
  }
668
756
  function rt(t) {
669
- const e = Nt(t);
670
- if (!W(e))
757
+ const e = Dt(t);
758
+ if (!K(e))
671
759
  return J(1);
672
760
  const o = e.getBoundingClientRect(), {
673
761
  width: n,
674
- height: a,
762
+ height: r,
675
763
  $: s
676
- } = ne(e);
677
- let r = (s ? xt(o.width) : o.width) / n, c = (s ? xt(o.height) : o.height) / a;
678
- return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
679
- x: r,
764
+ } = ce(e);
765
+ let i = (s ? Tt(o.width) : o.width) / n, c = (s ? Tt(o.height) : o.height) / r;
766
+ return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
767
+ x: i,
680
768
  y: c
681
769
  };
682
770
  }
683
- const vo = /* @__PURE__ */ J(0);
684
- function se(t) {
685
- const e = I(t);
686
- return !Rt() || !e.visualViewport ? vo : {
771
+ const Io = /* @__PURE__ */ J(0);
772
+ function de(t) {
773
+ const e = N(t);
774
+ return !Vt() || !e.visualViewport ? Io : {
687
775
  x: e.visualViewport.offsetLeft,
688
776
  y: e.visualViewport.offsetTop
689
777
  };
690
778
  }
691
- function wo(t, e, o) {
692
- return e === void 0 && (e = !1), !o || e && o !== I(t) ? !1 : e;
779
+ function Ro(t, e, o) {
780
+ return e === void 0 && (e = !1), !o || e && o !== N(t) ? !1 : e;
693
781
  }
694
782
  function nt(t, e, o, n) {
695
783
  e === void 0 && (e = !1), o === void 0 && (o = !1);
696
- const a = t.getBoundingClientRect(), s = Nt(t);
697
- let r = J(1);
698
- e && (n ? U(n) && (r = rt(n)) : r = rt(t));
699
- const c = wo(s, o, n) ? se(s) : J(0);
700
- let m = (a.left + c.x) / r.x, d = (a.top + c.y) / r.y, l = a.width / r.x, p = a.height / r.y;
784
+ const r = t.getBoundingClientRect(), s = Dt(t);
785
+ let i = J(1);
786
+ e && (n ? W(n) && (i = rt(n)) : i = rt(t));
787
+ const c = Ro(s, o, n) ? de(s) : J(0);
788
+ let m = (r.left + c.x) / i.x, d = (r.top + c.y) / i.y, l = r.width / i.x, f = r.height / i.y;
701
789
  if (s) {
702
- const y = I(s), g = n && U(n) ? I(n) : n;
703
- let i = y, f = i.frameElement;
704
- for (; f && n && g !== i; ) {
705
- const h = rt(f), x = f.getBoundingClientRect(), P = V(f), S = x.left + (f.clientLeft + parseFloat(P.paddingLeft)) * h.x, $ = x.top + (f.clientTop + parseFloat(P.paddingTop)) * h.y;
706
- m *= h.x, d *= h.y, l *= h.x, p *= h.y, m += S, d += $, i = I(f), f = i.frameElement;
790
+ const y = N(s), g = n && W(n) ? N(n) : n;
791
+ let a = y, p = a.frameElement;
792
+ for (; p && n && g !== a; ) {
793
+ const h = rt(p), x = p.getBoundingClientRect(), P = B(p), S = x.left + (p.clientLeft + parseFloat(P.paddingLeft)) * h.x, O = x.top + (p.clientTop + parseFloat(P.paddingTop)) * h.y;
794
+ m *= h.x, d *= h.y, l *= h.x, f *= h.y, m += S, d += O, a = N(p), p = a.frameElement;
707
795
  }
708
796
  }
709
- return kt({
797
+ return Pt({
710
798
  width: l,
711
- height: p,
799
+ height: f,
712
800
  x: m,
713
801
  y: d
714
802
  });
715
803
  }
716
- const bo = [":popover-open", ":modal"];
717
- function re(t) {
718
- return bo.some((e) => {
804
+ const No = [":popover-open", ":modal"];
805
+ function Mt(t) {
806
+ return No.some((e) => {
719
807
  try {
720
808
  return t.matches(e);
721
809
  } catch {
@@ -723,22 +811,22 @@ function re(t) {
723
811
  }
724
812
  });
725
813
  }
726
- function xo(t) {
814
+ function Lo(t) {
727
815
  let {
728
816
  elements: e,
729
817
  rect: o,
730
818
  offsetParent: n,
731
- strategy: a
819
+ strategy: r
732
820
  } = t;
733
- const s = a === "fixed", r = Y(n), c = e ? re(e.floating) : !1;
734
- if (n === r || c && s)
821
+ const s = r === "fixed", i = Y(n), c = e ? Mt(e.floating) : !1;
822
+ if (n === i || c && s)
735
823
  return o;
736
824
  let m = {
737
825
  scrollLeft: 0,
738
826
  scrollTop: 0
739
827
  }, d = J(1);
740
- const l = J(0), p = W(n);
741
- if ((p || !p && !s) && ((X(n) !== "body" || gt(r)) && (m = _t(n)), W(n))) {
828
+ const l = J(0), f = K(n);
829
+ if ((f || !f && !s) && ((ct(n) !== "body" || yt(i)) && (m = _t(n)), K(n))) {
742
830
  const y = nt(n);
743
831
  d = rt(n), l.x = y.x + n.clientLeft, l.y = y.y + n.clientTop;
744
832
  }
@@ -749,93 +837,93 @@ function xo(t) {
749
837
  y: o.y * d.y - m.scrollTop * d.y + l.y
750
838
  };
751
839
  }
752
- function To(t) {
840
+ function Vo(t) {
753
841
  return Array.from(t.getClientRects());
754
842
  }
755
- function ae(t) {
843
+ function ue(t) {
756
844
  return nt(Y(t)).left + _t(t).scrollLeft;
757
845
  }
758
- function ko(t) {
759
- const e = Y(t), o = _t(t), n = t.ownerDocument.body, a = et(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = et(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
760
- let r = -o.scrollLeft + ae(t);
846
+ function Do(t) {
847
+ const e = Y(t), o = _t(t), n = t.ownerDocument.body, r = et(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = et(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
848
+ let i = -o.scrollLeft + ue(t);
761
849
  const c = -o.scrollTop;
762
- return V(n).direction === "rtl" && (r += et(e.clientWidth, n.clientWidth) - a), {
763
- width: a,
850
+ return B(n).direction === "rtl" && (i += et(e.clientWidth, n.clientWidth) - r), {
851
+ width: r,
764
852
  height: s,
765
- x: r,
853
+ x: i,
766
854
  y: c
767
855
  };
768
856
  }
769
- function Po(t, e) {
770
- const o = I(t), n = Y(t), a = o.visualViewport;
771
- let s = n.clientWidth, r = n.clientHeight, c = 0, m = 0;
772
- if (a) {
773
- s = a.width, r = a.height;
774
- const d = Rt();
775
- (!d || d && e === "fixed") && (c = a.offsetLeft, m = a.offsetTop);
857
+ function Mo(t, e) {
858
+ const o = N(t), n = Y(t), r = o.visualViewport;
859
+ let s = n.clientWidth, i = n.clientHeight, c = 0, m = 0;
860
+ if (r) {
861
+ s = r.width, i = r.height;
862
+ const d = Vt();
863
+ (!d || d && e === "fixed") && (c = r.offsetLeft, m = r.offsetTop);
776
864
  }
777
865
  return {
778
866
  width: s,
779
- height: r,
867
+ height: i,
780
868
  x: c,
781
869
  y: m
782
870
  };
783
871
  }
784
- function So(t, e) {
785
- const o = nt(t, !0, e === "fixed"), n = o.top + t.clientTop, a = o.left + t.clientLeft, s = W(t) ? rt(t) : J(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, m = a * s.x, d = n * s.y;
872
+ function Bo(t, e) {
873
+ const o = nt(t, !0, e === "fixed"), n = o.top + t.clientTop, r = o.left + t.clientLeft, s = K(t) ? rt(t) : J(1), i = t.clientWidth * s.x, c = t.clientHeight * s.y, m = r * s.x, d = n * s.y;
786
874
  return {
787
- width: r,
875
+ width: i,
788
876
  height: c,
789
877
  x: m,
790
878
  y: d
791
879
  };
792
880
  }
793
- function Wt(t, e, o) {
881
+ function qt(t, e, o) {
794
882
  let n;
795
883
  if (e === "viewport")
796
- n = Po(t, o);
884
+ n = Mo(t, o);
797
885
  else if (e === "document")
798
- n = ko(Y(t));
799
- else if (U(e))
800
- n = So(e, o);
886
+ n = Do(Y(t));
887
+ else if (W(e))
888
+ n = Bo(e, o);
801
889
  else {
802
- const a = se(t);
890
+ const r = de(t);
803
891
  n = {
804
892
  ...e,
805
- x: e.x - a.x,
806
- y: e.y - a.y
893
+ x: e.x - r.x,
894
+ y: e.y - r.y
807
895
  };
808
896
  }
809
- return kt(n);
897
+ return Pt(n);
810
898
  }
811
- function ie(t, e) {
812
- const o = lt(t);
813
- return o === e || !U(o) || St(o) ? !1 : V(o).position === "fixed" || ie(o, e);
899
+ function me(t, e) {
900
+ const o = X(t);
901
+ return o === e || !W(o) || lt(o) ? !1 : B(o).position === "fixed" || me(o, e);
814
902
  }
815
- function _o(t, e) {
903
+ function Fo(t, e) {
816
904
  const o = e.get(t);
817
905
  if (o)
818
906
  return o;
819
- let n = pt(t, [], !1).filter((c) => U(c) && X(c) !== "body"), a = null;
820
- const s = V(t).position === "fixed";
821
- let r = s ? lt(t) : t;
822
- for (; U(r) && !St(r); ) {
823
- const c = V(r), m = Et(r);
824
- !m && c.position === "fixed" && (a = null), (s ? !m && !a : !m && c.position === "static" && !!a && ["absolute", "fixed"].includes(a.position) || gt(r) && !m && ie(t, r)) ? n = n.filter((l) => l !== r) : a = c, r = lt(r);
907
+ let n = pt(t, [], !1).filter((c) => W(c) && ct(c) !== "body"), r = null;
908
+ const s = B(t).position === "fixed";
909
+ let i = s ? X(t) : t;
910
+ for (; W(i) && !lt(i); ) {
911
+ const c = B(i), m = Lt(i);
912
+ !m && c.position === "fixed" && (r = null), (s ? !m && !r : !m && c.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || yt(i) && !m && me(t, i)) ? n = n.filter((l) => l !== i) : r = c, i = X(i);
825
913
  }
826
914
  return e.set(t, n), n;
827
915
  }
828
- function Ao(t) {
916
+ function Ho(t) {
829
917
  let {
830
918
  element: e,
831
919
  boundary: o,
832
920
  rootBoundary: n,
833
- strategy: a
921
+ strategy: r
834
922
  } = t;
835
- const r = [...o === "clippingAncestors" ? _o(e, this._c) : [].concat(o), n], c = r[0], m = r.reduce((d, l) => {
836
- const p = Wt(e, l, a);
837
- return d.top = et(p.top, d.top), d.right = it(p.right, d.right), d.bottom = it(p.bottom, d.bottom), d.left = et(p.left, d.left), d;
838
- }, Wt(e, c, a));
923
+ const i = [...o === "clippingAncestors" ? Mt(e) ? [] : Fo(e, this._c) : [].concat(o), n], c = i[0], m = i.reduce((d, l) => {
924
+ const f = qt(e, l, r);
925
+ return d.top = et(f.top, d.top), d.right = at(f.right, d.right), d.bottom = at(f.bottom, d.bottom), d.left = et(f.left, d.left), d;
926
+ }, qt(e, c, r));
839
927
  return {
840
928
  width: m.right - m.left,
841
929
  height: m.bottom - m.top,
@@ -843,202 +931,215 @@ function Ao(t) {
843
931
  y: m.top
844
932
  };
845
933
  }
846
- function zo(t) {
934
+ function jo(t) {
847
935
  const {
848
936
  width: e,
849
937
  height: o
850
- } = ne(t);
938
+ } = ce(t);
851
939
  return {
852
940
  width: e,
853
941
  height: o
854
942
  };
855
943
  }
856
- function $o(t, e, o) {
857
- const n = W(e), a = Y(e), s = o === "fixed", r = nt(t, !0, s, e);
944
+ function Wo(t, e, o) {
945
+ const n = K(e), r = Y(e), s = o === "fixed", i = nt(t, !0, s, e);
858
946
  let c = {
859
947
  scrollLeft: 0,
860
948
  scrollTop: 0
861
949
  };
862
950
  const m = J(0);
863
951
  if (n || !n && !s)
864
- if ((X(e) !== "body" || gt(a)) && (c = _t(e)), n) {
865
- const p = nt(e, !0, s, e);
866
- m.x = p.x + e.clientLeft, m.y = p.y + e.clientTop;
952
+ if ((ct(e) !== "body" || yt(r)) && (c = _t(e)), n) {
953
+ const f = nt(e, !0, s, e);
954
+ m.x = f.x + e.clientLeft, m.y = f.y + e.clientTop;
867
955
  } else
868
- a && (m.x = ae(a));
869
- const d = r.left + c.scrollLeft - m.x, l = r.top + c.scrollTop - m.y;
956
+ r && (m.x = ue(r));
957
+ const d = i.left + c.scrollLeft - m.x, l = i.top + c.scrollTop - m.y;
870
958
  return {
871
959
  x: d,
872
960
  y: l,
873
- width: r.width,
874
- height: r.height
961
+ width: i.width,
962
+ height: i.height
875
963
  };
876
964
  }
877
- function Kt(t, e) {
878
- return !W(t) || V(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
965
+ function Ct(t) {
966
+ return B(t).position === "static";
879
967
  }
880
- function le(t, e) {
881
- const o = I(t);
882
- if (!W(t) || re(t))
968
+ function Jt(t, e) {
969
+ return !K(t) || B(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
970
+ }
971
+ function fe(t, e) {
972
+ const o = N(t);
973
+ if (Mt(t))
974
+ return o;
975
+ if (!K(t)) {
976
+ let r = X(t);
977
+ for (; r && !lt(r); ) {
978
+ if (W(r) && !Ct(r))
979
+ return r;
980
+ r = X(r);
981
+ }
883
982
  return o;
884
- let n = Kt(t, e);
885
- for (; n && go(n) && V(n).position === "static"; )
886
- n = Kt(n, e);
887
- return n && (X(n) === "html" || X(n) === "body" && V(n).position === "static" && !Et(n)) ? o : n || yo(t) || o;
983
+ }
984
+ let n = Jt(t, e);
985
+ for (; n && Go(n) && Ct(n); )
986
+ n = Jt(n, e);
987
+ return n && lt(n) && Ct(n) && !Lt(n) ? o : n || Eo(t) || o;
888
988
  }
889
- const Co = async function(t) {
890
- const e = this.getOffsetParent || le, o = this.getDimensions;
989
+ const Ko = async function(t) {
990
+ const e = this.getOffsetParent || fe, o = this.getDimensions, n = await o(t.floating);
891
991
  return {
892
- reference: $o(t.reference, await e(t.floating), t.strategy),
992
+ reference: Wo(t.reference, await e(t.floating), t.strategy),
893
993
  floating: {
894
994
  x: 0,
895
995
  y: 0,
896
- ...await o(t.floating)
996
+ width: n.width,
997
+ height: n.height
897
998
  }
898
999
  };
899
1000
  };
900
- function Oo(t) {
901
- return V(t).direction === "rtl";
1001
+ function Uo(t) {
1002
+ return B(t).direction === "rtl";
902
1003
  }
903
- const Go = {
904
- convertOffsetParentRelativeRectToViewportRelativeRect: xo,
1004
+ const Yo = {
1005
+ convertOffsetParentRelativeRectToViewportRelativeRect: Lo,
905
1006
  getDocumentElement: Y,
906
- getClippingRect: Ao,
907
- getOffsetParent: le,
908
- getElementRects: Co,
909
- getClientRects: To,
910
- getDimensions: zo,
1007
+ getClippingRect: Ho,
1008
+ getOffsetParent: fe,
1009
+ getElementRects: Ko,
1010
+ getClientRects: Vo,
1011
+ getDimensions: jo,
911
1012
  getScale: rt,
912
- isElement: U,
913
- isRTL: Oo
1013
+ isElement: W,
1014
+ isRTL: Uo
914
1015
  };
915
- function Eo(t, e) {
1016
+ function qo(t, e) {
916
1017
  let o = null, n;
917
- const a = Y(t);
1018
+ const r = Y(t);
918
1019
  function s() {
919
1020
  var c;
920
1021
  clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
921
1022
  }
922
- function r(c, m) {
1023
+ function i(c, m) {
923
1024
  c === void 0 && (c = !1), m === void 0 && (m = 1), s();
924
1025
  const {
925
1026
  left: d,
926
1027
  top: l,
927
- width: p,
1028
+ width: f,
928
1029
  height: y
929
1030
  } = t.getBoundingClientRect();
930
- if (c || e(), !p || !y)
1031
+ if (c || e(), !f || !y)
931
1032
  return;
932
- const g = wt(l), i = wt(a.clientWidth - (d + p)), f = wt(a.clientHeight - (l + y)), h = wt(d), P = {
933
- rootMargin: -g + "px " + -i + "px " + -f + "px " + -h + "px",
934
- threshold: et(0, it(1, m)) || 1
1033
+ const g = bt(l), a = bt(r.clientWidth - (d + f)), p = bt(r.clientHeight - (l + y)), h = bt(d), P = {
1034
+ rootMargin: -g + "px " + -a + "px " + -p + "px " + -h + "px",
1035
+ threshold: et(0, at(1, m)) || 1
935
1036
  };
936
1037
  let S = !0;
937
- function $(A) {
938
- const D = A[0].intersectionRatio;
939
- if (D !== m) {
1038
+ function O(A) {
1039
+ const V = A[0].intersectionRatio;
1040
+ if (V !== m) {
940
1041
  if (!S)
941
- return r();
942
- D ? r(!1, D) : n = setTimeout(() => {
943
- r(!1, 1e-7);
944
- }, 100);
1042
+ return i();
1043
+ V ? i(!1, V) : n = setTimeout(() => {
1044
+ i(!1, 1e-7);
1045
+ }, 1e3);
945
1046
  }
946
1047
  S = !1;
947
1048
  }
948
1049
  try {
949
- o = new IntersectionObserver($, {
1050
+ o = new IntersectionObserver(O, {
950
1051
  ...P,
951
1052
  // Handle <iframe>s
952
- root: a.ownerDocument
1053
+ root: r.ownerDocument
953
1054
  });
954
1055
  } catch {
955
- o = new IntersectionObserver($, P);
1056
+ o = new IntersectionObserver(O, P);
956
1057
  }
957
1058
  o.observe(t);
958
1059
  }
959
- return r(!0), s;
1060
+ return i(!0), s;
960
1061
  }
961
- function Ro(t, e, o, n) {
1062
+ function Jo(t, e, o, n) {
962
1063
  n === void 0 && (n = {});
963
1064
  const {
964
- ancestorScroll: a = !0,
1065
+ ancestorScroll: r = !0,
965
1066
  ancestorResize: s = !0,
966
- elementResize: r = typeof ResizeObserver == "function",
1067
+ elementResize: i = typeof ResizeObserver == "function",
967
1068
  layoutShift: c = typeof IntersectionObserver == "function",
968
1069
  animationFrame: m = !1
969
- } = n, d = Nt(t), l = a || s ? [...d ? pt(d) : [], ...pt(e)] : [];
1070
+ } = n, d = Dt(t), l = r || s ? [...d ? pt(d) : [], ...pt(e)] : [];
970
1071
  l.forEach((x) => {
971
- a && x.addEventListener("scroll", o, {
1072
+ r && x.addEventListener("scroll", o, {
972
1073
  passive: !0
973
1074
  }), s && x.addEventListener("resize", o);
974
1075
  });
975
- const p = d && c ? Eo(d, o) : null;
1076
+ const f = d && c ? qo(d, o) : null;
976
1077
  let y = -1, g = null;
977
- r && (g = new ResizeObserver((x) => {
1078
+ i && (g = new ResizeObserver((x) => {
978
1079
  let [P] = x;
979
1080
  P && P.target === d && g && (g.unobserve(e), cancelAnimationFrame(y), y = requestAnimationFrame(() => {
980
1081
  var S;
981
1082
  (S = g) == null || S.observe(e);
982
1083
  })), o();
983
1084
  }), d && !m && g.observe(d), g.observe(e));
984
- let i, f = m ? nt(t) : null;
1085
+ let a, p = m ? nt(t) : null;
985
1086
  m && h();
986
1087
  function h() {
987
1088
  const x = nt(t);
988
- f && (x.x !== f.x || x.y !== f.y || x.width !== f.width || x.height !== f.height) && o(), f = x, i = requestAnimationFrame(h);
1089
+ p && (x.x !== p.x || x.y !== p.y || x.width !== p.width || x.height !== p.height) && o(), p = x, a = requestAnimationFrame(h);
989
1090
  }
990
1091
  return o(), () => {
991
1092
  var x;
992
1093
  l.forEach((P) => {
993
- a && P.removeEventListener("scroll", o), s && P.removeEventListener("resize", o);
994
- }), p == null || p(), (x = g) == null || x.disconnect(), g = null, m && cancelAnimationFrame(i);
1094
+ r && P.removeEventListener("scroll", o), s && P.removeEventListener("resize", o);
1095
+ }), f == null || f(), (x = g) == null || x.disconnect(), g = null, m && cancelAnimationFrame(a);
995
1096
  };
996
1097
  }
997
- const No = ho, Io = mo, Ut = uo, Lo = (t, e, o) => {
998
- const n = /* @__PURE__ */ new Map(), a = {
999
- platform: Go,
1098
+ const Xo = Co, Zo = Oo, Qo = zo, Xt = Ao, tn = (t, e, o) => {
1099
+ const n = /* @__PURE__ */ new Map(), r = {
1100
+ platform: Yo,
1000
1101
  ...o
1001
1102
  }, s = {
1002
- ...a.platform,
1103
+ ...r.platform,
1003
1104
  _c: n
1004
1105
  };
1005
- return co(t, e, {
1006
- ...a,
1106
+ return _o(t, e, {
1107
+ ...r,
1007
1108
  platform: s
1008
1109
  });
1009
1110
  };
1010
- function Vo({ middleware: t, placement: e = null, strategy: o, append: n, enabled: a }) {
1011
- const s = G(null), r = G(null), c = G(null), m = G(null), d = G(null), l = G(null), p = G(null), y = G(o ?? "absolute"), g = G(null), i = () => {
1012
- !s.value || !r.value || Lo(s.value, r.value, {
1111
+ function en({ middleware: t, placement: e = null, strategy: o, append: n, enabled: r }) {
1112
+ const s = C(null), i = C(null), c = C(null), m = C(null), d = C(null), l = C(null), f = C(null), y = C(o ?? "absolute"), g = C(null), a = () => {
1113
+ !s.value || !i.value || tn(s.value, i.value, {
1013
1114
  middleware: t,
1014
1115
  placement: e,
1015
1116
  strategy: o
1016
1117
  }).then((h) => {
1017
- c.value = h.x, m.value = h.y, y.value = h.strategy, d.value = h.middlewareData.arrow.x, l.value = h.middlewareData.arrow.y, p.value = h.placement;
1118
+ c.value = h.x, m.value = h.y, y.value = h.strategy, d.value = h.middlewareData.arrow.x, l.value = h.middlewareData.arrow.y, f.value = h.placement;
1018
1119
  });
1019
1120
  };
1020
- It(
1121
+ Ot(
1021
1122
  () => ({
1022
1123
  reference: u(s),
1023
- floating: u(r),
1124
+ floating: u(i),
1024
1125
  append: u(n)
1025
1126
  }),
1026
1127
  ({ floating: h, append: x }) => {
1027
- x && Ne(h, x), i();
1128
+ x && We(h, x), a();
1028
1129
  },
1029
1130
  { flush: "post" }
1030
- ), It(
1031
- a,
1131
+ ), Ot(
1132
+ r,
1032
1133
  (h) => {
1033
- if (!(!s.value || !r.value)) {
1134
+ if (!(!s.value || !i.value)) {
1034
1135
  if (!h)
1035
- return f();
1036
- g.value = Ro(s.value, r.value, i, {});
1136
+ return p();
1137
+ g.value = Jo(s.value, i.value, a, {});
1037
1138
  }
1038
1139
  },
1039
1140
  { flush: "post" }
1040
1141
  );
1041
- const f = () => {
1142
+ const p = () => {
1042
1143
  var h;
1043
1144
  (h = g.value) == null || h.call(g), g.value = null;
1044
1145
  };
@@ -1047,23 +1148,23 @@ function Vo({ middleware: t, placement: e = null, strategy: o, append: n, enable
1047
1148
  y: m,
1048
1149
  arrowX: d,
1049
1150
  arrowY: l,
1050
- placement: p,
1151
+ placement: f,
1051
1152
  reference: s,
1052
- floating: r,
1153
+ floating: i,
1053
1154
  strategy: y,
1054
- update: i
1155
+ update: a
1055
1156
  };
1056
1157
  }
1057
- const Do = (t) => {
1158
+ const on = (t) => {
1058
1159
  const { element: e, padding: o } = t;
1059
1160
  return {
1060
1161
  name: "arrow",
1061
1162
  options: t,
1062
1163
  fn(n) {
1063
- return ge(e) ? e.value != null ? Ut({ element: e.value, padding: o }).fn(n) : {} : e ? Ut({ element: e, padding: o }).fn(n) : {};
1164
+ return Ae(e) ? e.value != null ? Xt({ element: e.value, padding: o }).fn(n) : {} : e ? Xt({ element: e, padding: o }).fn(n) : {};
1064
1165
  }
1065
1166
  };
1066
- }, Mo = ["data-placement"], ce = {
1167
+ }, nn = ["data-placement"], pe = {
1067
1168
  __name: "FloatingPanel",
1068
1169
  props: {
1069
1170
  disabled: {
@@ -1092,44 +1193,44 @@ const Do = (t) => {
1092
1193
  }
1093
1194
  },
1094
1195
  setup(t) {
1095
- const e = t, o = G(!1), n = G(null), { x: a, y: s, arrowX: r, arrowY: c, placement: m, reference: d, floating: l, strategy: p } = Vo({
1196
+ const e = t, o = C(!1), n = C(null), { x: r, y: s, arrowX: i, arrowY: c, placement: m, reference: d, floating: l, strategy: f } = en({
1096
1197
  placement: e.placement,
1097
- middleware: [Io(), No({ padding: 5 }), fo(e.offset), Do({ element: n, padding: 5 })],
1098
- append: C(() => e.appendTo),
1198
+ middleware: [Qo(), Zo({ padding: 5 }), Xo(e.offset), on({ element: n, padding: 5 })],
1199
+ append: $(() => e.appendTo),
1099
1200
  enabled: o
1100
1201
  }), y = () => {
1101
1202
  e.disabled || o.value || (o.value = !0);
1102
1203
  }, g = (h) => {
1103
1204
  o.value && h && (o.value = !1);
1104
- }, i = (h) => {
1205
+ }, a = (h) => {
1105
1206
  d.value = h;
1106
- }, f = {
1207
+ }, p = {
1107
1208
  mouseenter: y,
1108
1209
  mouseleave: g,
1109
1210
  focus: y,
1110
1211
  blur: g
1111
1212
  };
1112
- return xe(l, (h) => {
1213
+ return Oe(l, (h) => {
1113
1214
  var x;
1114
1215
  (x = d.value) != null && x.contains(h.target) || g();
1115
- }), (h, x) => (v(), b(B, null, [
1116
- N(h.$slots, "default", {
1117
- setRef: i,
1216
+ }), (h, x) => (v(), b(M, null, [
1217
+ R(h.$slots, "default", {
1218
+ setRef: a,
1118
1219
  show: y,
1119
1220
  hide: g,
1120
- events: f
1221
+ events: p
1121
1222
  }),
1122
1223
  w("div", {
1123
1224
  ref_key: "floating",
1124
1225
  ref: l,
1125
1226
  "data-placement": u(m),
1126
- style: Lt({
1127
- position: u(p),
1227
+ style: Bt({
1228
+ position: u(f),
1128
1229
  top: u(s) ? `${u(s)}px` : "",
1129
- left: u(a) ? `${u(a)}px` : ""
1230
+ left: u(r) ? `${u(r)}px` : ""
1130
1231
  })
1131
1232
  }, [
1132
- O(ye, {
1233
+ G(ze, {
1133
1234
  name: "transition-fade",
1134
1235
  mode: "out-in"
1135
1236
  }, {
@@ -1138,27 +1239,27 @@ const Do = (t) => {
1138
1239
  key: 0,
1139
1240
  class: z(["floating-content", [`is-${e.theme}`]])
1140
1241
  }, [
1141
- N(h.$slots, "content", { close: g }, () => [
1142
- M(T(t.content), 1)
1242
+ R(h.$slots, "content", { close: g }, () => [
1243
+ D(T(t.content), 1)
1143
1244
  ]),
1144
1245
  w("div", {
1145
1246
  ref_key: "arrowRef",
1146
1247
  ref: n,
1147
1248
  class: "is-arrow",
1148
- style: Lt({
1149
- position: u(p),
1249
+ style: Bt({
1250
+ position: u(f),
1150
1251
  top: u(c) ? `${u(c)}px` : "",
1151
- left: u(r) ? `${u(r)}px` : ""
1252
+ left: u(i) ? `${u(i)}px` : ""
1152
1253
  })
1153
1254
  }, null, 4)
1154
1255
  ], 2)) : _("", !0)
1155
1256
  ]),
1156
1257
  _: 3
1157
1258
  })
1158
- ], 12, Mo)
1259
+ ], 12, nn)
1159
1260
  ], 64));
1160
1261
  }
1161
- }, Bo = ["onMouseenter", "onMouseleave", "onFocus", "onBlur", "onClick", "onKeydown", "tabindex"], Ho = { key: 0 }, Fo = ["colspan"], jo = { key: 1 }, Wo = ["colspan"], de = {
1262
+ }, sn = ["onMouseenter", "onMouseleave", "onFocus", "onBlur", "onClick", "onKeydown", "tabindex"], rn = { key: 0 }, an = ["colspan"], ln = { key: 1 }, cn = ["colspan"], he = {
1162
1263
  __name: "DataTable",
1163
1264
  props: {
1164
1265
  columns: {
@@ -1184,116 +1285,116 @@ const Do = (t) => {
1184
1285
  },
1185
1286
  emits: ["sort"],
1186
1287
  setup(t, { emit: e }) {
1187
- const o = t, { isLoading: n, appendTo: a } = Ct(o), s = Te(n, { delay: Ge }), r = e, { t: c } = Z(), m = q("table"), d = C(() => o.columns), l = C(() => Object.keys(o.columns).length), p = (y, g) => {
1188
- y.sortOrders && r("sort", { target: g, orders: y.sortOrders });
1288
+ const o = t, { isLoading: n, appendTo: r } = It(o), s = Ge(n, { delay: Fe }), i = e, { t: c } = Z(), m = q("table"), d = $(() => o.columns), l = $(() => Object.keys(o.columns).length), f = (y, g) => {
1289
+ y.sortOrders && i("sort", { target: g, orders: y.sortOrders });
1189
1290
  };
1190
1291
  return (y, g) => (v(), b("table", {
1191
1292
  class: z(u(m))
1192
1293
  }, [
1193
1294
  w("thead", null, [
1194
1295
  w("tr", null, [
1195
- (v(!0), b(B, null, tt(d.value, (i, f) => (v(), R(ce, {
1196
- key: f,
1296
+ (v(!0), b(M, null, tt(d.value, (a, p) => (v(), I(pe, {
1297
+ key: p,
1197
1298
  placement: "top",
1198
- content: i.tooltip,
1199
- disabled: !i.tooltip,
1200
- "append-to": u(a)
1299
+ content: a.tooltip,
1300
+ disabled: !a.tooltip,
1301
+ "append-to": u(r)
1201
1302
  }, {
1202
1303
  default: k(({ setRef: h, show: x, hide: P }) => [
1203
1304
  w("th", {
1204
1305
  ref_for: !0,
1205
1306
  ref: h,
1206
1307
  class: z([
1207
- [i.class],
1308
+ [a.class],
1208
1309
  {
1209
- "is-active": f === t.sort.sortTarget && t.sort.orders[0].direction !== u(At),
1210
- "is-sortable": i.sortOrders,
1211
- "is-desc": f === t.sort.sortTarget && t.sort.orders[0].direction === u(Mt),
1212
- "is-asc": f === t.sort.sortTarget && t.sort.orders[0].direction === u(Bt)
1310
+ "is-active": p === t.sort.sortTarget && t.sort.orders[0].direction !== u(At),
1311
+ "is-sortable": a.sortOrders,
1312
+ "is-desc": p === t.sort.sortTarget && t.sort.orders[0].direction === u(jt),
1313
+ "is-asc": p === t.sort.sortTarget && t.sort.orders[0].direction === u(Wt)
1213
1314
  }
1214
1315
  ]),
1215
1316
  onMouseenter: x,
1216
1317
  onMouseleave: P,
1217
1318
  onFocus: x,
1218
1319
  onBlur: P,
1219
- onClick: (S) => p(i, f),
1320
+ onClick: (S) => f(a, p),
1220
1321
  onKeydown: [
1221
- Vt(at((S) => p(i, f), ["prevent"]), ["space"]),
1222
- Vt(at((S) => p(i, f), ["prevent"]), ["enter"])
1322
+ Ft(it((S) => f(a, p), ["prevent"]), ["space"]),
1323
+ Ft(it((S) => f(a, p), ["prevent"]), ["enter"])
1223
1324
  ],
1224
- tabindex: i.sortOrders ? 0 : -1,
1325
+ tabindex: a.sortOrders ? 0 : -1,
1225
1326
  role: "button"
1226
1327
  }, [
1227
- N(y.$slots, `header-${f}`, { column: i }, () => [
1228
- M(T(i.label), 1)
1328
+ R(y.$slots, `header-${p}`, { column: a }, () => [
1329
+ D(T(a.label), 1)
1229
1330
  ]),
1230
- i.sortOrders && f !== t.sort.sortTarget ? (v(), R(u(Ht), {
1331
+ a.sortOrders && p !== t.sort.sortTarget ? (v(), I(u(Kt), {
1231
1332
  key: 0,
1232
1333
  class: "is-icon-sort"
1233
1334
  })) : _("", !0),
1234
- f === t.sort.sortTarget && t.sort.orders[0].direction === u(At) ? (v(), R(u(Ht), {
1335
+ p === t.sort.sortTarget && t.sort.orders[0].direction === u(At) ? (v(), I(u(Kt), {
1235
1336
  key: 1,
1236
1337
  class: "is-icon-sort"
1237
1338
  })) : _("", !0),
1238
- f === t.sort.sortTarget && t.sort.orders[0].direction === u(Mt) ? (v(), R(u(Je), {
1339
+ p === t.sort.sortTarget && t.sort.orders[0].direction === u(jt) ? (v(), I(u(fo), {
1239
1340
  key: 2,
1240
1341
  class: "is-icon-sort"
1241
1342
  })) : _("", !0),
1242
- f === t.sort.sortTarget && t.sort.orders[0].direction === u(Bt) ? (v(), R(u(eo), {
1343
+ p === t.sort.sortTarget && t.sort.orders[0].direction === u(Wt) ? (v(), I(u(vo), {
1243
1344
  key: 3,
1244
1345
  class: "is-icon-sort"
1245
1346
  })) : _("", !0)
1246
- ], 42, Bo)
1347
+ ], 42, sn)
1247
1348
  ]),
1248
1349
  _: 2
1249
1350
  }, 1032, ["content", "disabled", "append-to"]))), 128))
1250
1351
  ])
1251
1352
  ]),
1252
1353
  w("tbody", null, [
1253
- (v(!0), b(B, null, tt(o.rows, (i, f) => (v(), b("tr", {
1254
- key: f,
1255
- class: z(i.rowClasses)
1354
+ (v(!0), b(M, null, tt(o.rows, (a, p) => (v(), b("tr", {
1355
+ key: p,
1356
+ class: z(a.rowClasses)
1256
1357
  }, [
1257
- (v(!0), b(B, null, tt(d.value, (h, x) => (v(), b("td", {
1358
+ (v(!0), b(M, null, tt(d.value, (h, x) => (v(), b("td", {
1258
1359
  key: x,
1259
1360
  class: z([
1260
1361
  [h.class],
1261
1362
  {
1262
1363
  "is-active": x === t.sort.sortTarget && t.sort.orders[0].direction !== u(At),
1263
- "is-zero": i[x] == 0
1364
+ "is-zero": a[x] == 0
1264
1365
  }
1265
1366
  ])
1266
1367
  }, [
1267
- N(y.$slots, `cell-${x}`, {
1268
- row: i,
1368
+ R(y.$slots, `cell-${x}`, {
1369
+ row: a,
1269
1370
  prop: x
1270
1371
  }, () => [
1271
- M(T(i[x]), 1)
1372
+ D(T(a[x]), 1)
1272
1373
  ])
1273
1374
  ], 2))), 128))
1274
1375
  ], 2))), 128))
1275
1376
  ]),
1276
- u(s) && t.rows.length === 0 ? (v(), b("tfoot", Ho, [
1377
+ u(s) && t.rows.length === 0 ? (v(), b("tfoot", rn, [
1277
1378
  w("tr", null, [
1278
1379
  w("td", { colspan: l.value }, [
1279
- N(y.$slots, "loading", {}, () => [
1280
- M(T(u(c)("common.loading")), 1)
1380
+ R(y.$slots, "loading", {}, () => [
1381
+ D(T(u(c)("common.loading")), 1)
1281
1382
  ])
1282
- ], 8, Fo)
1383
+ ], 8, an)
1283
1384
  ])
1284
1385
  ])) : _("", !0),
1285
- t.rows.length === 0 && !u(n) && !u(s) ? (v(), b("tfoot", jo, [
1386
+ t.rows.length === 0 && !u(n) && !u(s) ? (v(), b("tfoot", ln, [
1286
1387
  w("tr", null, [
1287
1388
  w("td", { colspan: l.value }, [
1288
- N(y.$slots, "empty", {}, () => [
1289
- M(T(u(c)("common.noData")), 1)
1389
+ R(y.$slots, "empty", {}, () => [
1390
+ D(T(u(c)("common.noData")), 1)
1290
1391
  ])
1291
- ], 8, Wo)
1392
+ ], 8, cn)
1292
1393
  ])
1293
1394
  ])) : _("", !0)
1294
1395
  ], 2));
1295
1396
  }
1296
- }, Ko = {
1397
+ }, dn = {
1297
1398
  xmlns: "http://www.w3.org/2000/svg",
1298
1399
  viewBox: "0 0 24 24",
1299
1400
  fill: "none",
@@ -1301,25 +1402,25 @@ const Do = (t) => {
1301
1402
  "stroke-width": "2",
1302
1403
  "stroke-linecap": "round",
1303
1404
  "stroke-linejoin": "round"
1304
- }, Uo = /* @__PURE__ */ w("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1), Yo = /* @__PURE__ */ w("line", {
1405
+ }, un = /* @__PURE__ */ w("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1), mn = /* @__PURE__ */ w("line", {
1305
1406
  x1: "12",
1306
1407
  y1: "9",
1307
1408
  x2: "12",
1308
1409
  y2: "13"
1309
- }, null, -1), qo = /* @__PURE__ */ w("line", {
1410
+ }, null, -1), fn = /* @__PURE__ */ w("line", {
1310
1411
  x1: "12",
1311
1412
  y1: "17",
1312
1413
  x2: "12.01",
1313
1414
  y2: "17"
1314
- }, null, -1), Jo = [
1315
- Uo,
1316
- Yo,
1317
- qo
1415
+ }, null, -1), pn = [
1416
+ un,
1417
+ mn,
1418
+ fn
1318
1419
  ];
1319
- function Xo(t, e) {
1320
- return v(), b("svg", Ko, [...Jo]);
1420
+ function hn(t, e) {
1421
+ return v(), b("svg", dn, [...pn]);
1321
1422
  }
1322
- const Zo = { render: Xo }, rr = {
1423
+ const gn = { render: hn }, kr = {
1323
1424
  __name: "ErrorNotice",
1324
1425
  props: {
1325
1426
  error: {
@@ -1328,14 +1429,14 @@ const Zo = { render: Xo }, rr = {
1328
1429
  }
1329
1430
  },
1330
1431
  setup(t) {
1331
- const e = t, { t: o, hasTranslation: n } = Z(), a = q("error-notice"), s = C(() => {
1332
- var r;
1333
- return n(`errors.${e.error.key}`) ? o(`errors.${e.error.key}`, e.error.cause) : `${e.error.key}: ${(r = e.error) == null ? void 0 : r.message}`;
1432
+ const e = t, { t: o, hasTranslation: n } = Z(), r = q("error-notice"), s = $(() => {
1433
+ var i;
1434
+ return n(`errors.${e.error.key}`) ? o(`errors.${e.error.key}`, e.error.cause) : `${e.error.key}: ${(i = e.error) == null ? void 0 : i.message}`;
1334
1435
  });
1335
- return (r, c) => (v(), b("div", {
1336
- class: z(u(a))
1436
+ return (i, c) => (v(), b("div", {
1437
+ class: z(u(r))
1337
1438
  }, [
1338
- O(u(Zo), {
1439
+ G(u(gn), {
1339
1440
  class: "icon",
1340
1441
  width: "20",
1341
1442
  height: "20"
@@ -1343,21 +1444,21 @@ const Zo = { render: Xo }, rr = {
1343
1444
  w("span", null, T(s.value), 1)
1344
1445
  ], 2));
1345
1446
  }
1346
- }, ar = {
1447
+ }, Pr = {
1347
1448
  __name: "ErrorProvider",
1348
1449
  setup(t) {
1349
- const { message: e, hasError: o, error: n } = ke();
1350
- return (a, s) => N(a.$slots, "default", {
1450
+ const { message: e, hasError: o, error: n } = Ee();
1451
+ return (r, s) => R(r.$slots, "default", {
1351
1452
  message: u(e),
1352
1453
  error: u(n),
1353
1454
  hasError: u(o)
1354
1455
  });
1355
1456
  }
1356
- }, Qo = {
1457
+ }, yn = {
1357
1458
  "undefined-column": "A(z) {column} oszlop nem létezik!",
1358
1459
  "invalid-season-name": "Érvénytelen szezon név",
1359
1460
  "api-key-not-found": "API Kulcs nem megfelelő"
1360
- }, tn = {
1461
+ }, vn = {
1361
1462
  loading: "Töltődés...",
1362
1463
  noData: "Nincs megjeleníthető adat",
1363
1464
  selectTimezone: "*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",
@@ -1368,7 +1469,7 @@ const Zo = { render: Xo }, rr = {
1368
1469
  all: "Mind",
1369
1470
  report: "Jegyzőkönyv",
1370
1471
  video: "Videó"
1371
- }, en = {
1472
+ }, wn = {
1372
1473
  inheritedPoints: {
1373
1474
  prependix: "A megelőző bajnokság szakaszban elért eredménye alapján",
1374
1475
  content: "{team} csapata {points}",
@@ -1379,7 +1480,7 @@ const Zo = { render: Xo }, rr = {
1379
1480
  content: "{team} csapatától {points} pont",
1380
1481
  appendix: "levonva."
1381
1482
  }
1382
- }, on = {
1483
+ }, bn = {
1383
1484
  blank: "#",
1384
1485
  team: {
1385
1486
  short: "Csapat",
@@ -1701,7 +1802,7 @@ const Zo = { render: Xo }, rr = {
1701
1802
  short: "#",
1702
1803
  tooltip: "Végeredmény típusa"
1703
1804
  }
1704
- }, nn = {
1805
+ }, xn = {
1705
1806
  data: {
1706
1807
  localTime: "Helyszín szerinti idő"
1707
1808
  },
@@ -1750,17 +1851,17 @@ const Zo = { render: Xo }, rr = {
1750
1851
  Végeredmény: "Végeredmény",
1751
1852
  Szétlövés: "Szétlövés"
1752
1853
  }
1753
- }, sn = {
1754
- errors: Qo,
1755
- common: tn,
1756
- additionalText: en,
1757
- table: on,
1758
- game: nn
1759
- }, rn = {
1854
+ }, Tn = {
1855
+ errors: yn,
1856
+ common: vn,
1857
+ additionalText: wn,
1858
+ table: bn,
1859
+ game: xn
1860
+ }, kn = {
1760
1861
  "undefined-column": "The {column} column is not exists!",
1761
1862
  "invalid-season-name": "Invalid season name",
1762
1863
  "api-key-not-found": "API Key not found"
1763
- }, an = {
1864
+ }, Pn = {
1764
1865
  loading: "Loading...",
1765
1866
  noData: "No data to display",
1766
1867
  selectTimezone: "*All times are displayed according to your computer's time zone ({timezone}). Change: ",
@@ -1771,7 +1872,7 @@ const Zo = { render: Xo }, rr = {
1771
1872
  all: "All",
1772
1873
  report: "Report Sheet",
1773
1874
  video: "Video"
1774
- }, ln = {
1875
+ }, Sn = {
1775
1876
  inheritedPoints: {
1776
1877
  prependix: "",
1777
1878
  content: "{team} has {points} extra point(s)",
@@ -1782,7 +1883,7 @@ const Zo = { render: Xo }, rr = {
1782
1883
  content: "{points} point(s) deducted from team {team}",
1783
1884
  appendix: "based on the decision of the Disciplinary Committee."
1784
1885
  }
1785
- }, cn = {
1886
+ }, _n = {
1786
1887
  blank: "#",
1787
1888
  team: {
1788
1889
  short: "Team",
@@ -2104,7 +2205,7 @@ const Zo = { render: Xo }, rr = {
2104
2205
  short: "#",
2105
2206
  tooltip: "Result Type"
2106
2207
  }
2107
- }, dn = {
2208
+ }, An = {
2108
2209
  data: {
2109
2210
  localTime: "Game local time"
2110
2211
  },
@@ -2152,18 +2253,18 @@ const Zo = { render: Xo }, rr = {
2152
2253
  Végeredmény: "Game Completed",
2153
2254
  Szétlövés: "Shoot Out"
2154
2255
  }
2155
- }, un = {
2156
- errors: rn,
2157
- common: an,
2158
- additionalText: ln,
2159
- table: cn,
2160
- game: dn
2161
- }, mn = (t, e) => {
2256
+ }, zn = {
2257
+ errors: kn,
2258
+ common: Pn,
2259
+ additionalText: Sn,
2260
+ table: _n,
2261
+ game: An
2262
+ }, $n = (t, e) => {
2162
2263
  const o = t.__vccOpts || t;
2163
- for (const [n, a] of e)
2164
- o[n] = a;
2264
+ for (const [n, r] of e)
2265
+ o[n] = r;
2165
2266
  return o;
2166
- }, pn = ve({
2267
+ }, Cn = Zt({
2167
2268
  props: {
2168
2269
  locale: {
2169
2270
  type: String,
@@ -2175,8 +2276,8 @@ const Zo = { render: Xo }, rr = {
2175
2276
  }
2176
2277
  },
2177
2278
  setup(t) {
2178
- const e = Be({ hu: sn, en: un }, t.messages), { translate: o } = Pe({
2179
- locale: C(() => t.locale),
2279
+ const e = no({ hu: Tn, en: zn }, t.messages), { translate: o } = Ie({
2280
+ locale: $(() => t.locale),
2180
2281
  messages: e
2181
2282
  });
2182
2283
  return {
@@ -2184,10 +2285,10 @@ const Zo = { render: Xo }, rr = {
2184
2285
  };
2185
2286
  }
2186
2287
  });
2187
- function fn(t, e, o, n, a, s) {
2188
- return N(t.$slots, "default", { t: t.translate });
2288
+ function On(t, e, o, n, r, s) {
2289
+ return R(t.$slots, "default", { t: t.translate });
2189
2290
  }
2190
- const ir = /* @__PURE__ */ mn(pn, [["render", fn]]), hn = ["src"], gn = ["src", "title"], st = /* @__PURE__ */ Object.assign({
2291
+ const Sr = /* @__PURE__ */ $n(Cn, [["render", On]]), Gn = ["src"], En = ["src", "title"], st = /* @__PURE__ */ Object.assign({
2191
2292
  inheritAttrs: !1
2192
2293
  }, {
2193
2294
  __name: "Image",
@@ -2206,48 +2307,49 @@ const ir = /* @__PURE__ */ mn(pn, [["render", fn]]), hn = ["src"], gn = ["src",
2206
2307
  }
2207
2308
  },
2208
2309
  setup(t) {
2209
- const e = t, { defaultSrc: o } = Ct(e), n = G({ src: e.src }), { error: a, isReady: s } = Se(n, { resetOnExecute: !1, shallow: !1 });
2210
- return (r, c) => (v(), b(B, null, [
2211
- u(a) && u(o) ? (v(), b("img", {
2310
+ const e = t, { defaultSrc: o } = It(e), n = C({ src: e.src }), { error: r, isReady: s } = Re(n, { resetOnExecute: !1, shallow: !1 });
2311
+ return (i, c) => (v(), b(M, null, [
2312
+ u(r) && u(o) ? (v(), b("img", {
2212
2313
  key: 0,
2213
2314
  src: u(o),
2214
- class: z(["is-loaded is-default", r.$attrs.class])
2215
- }, null, 10, hn)) : _("", !0),
2216
- u(a) ? _("", !0) : (v(), b("img", {
2315
+ class: z(["is-loaded is-default", i.$attrs.class])
2316
+ }, null, 10, Gn)) : _("", !0),
2317
+ u(r) ? _("", !0) : (v(), b("img", {
2217
2318
  key: 1,
2218
2319
  src: n.value.src,
2219
- class: z([r.$attrs.class, { "is-loaded": u(s) }]),
2220
- title: e.title
2221
- }, null, 10, gn))
2320
+ class: z([i.$attrs.class, { "is-loaded": u(s) }]),
2321
+ title: e.title,
2322
+ loading: "lazy"
2323
+ }, null, 10, En))
2222
2324
  ], 64));
2223
2325
  }
2224
- }), yn = { style: { "text-align": "center" } }, ue = {
2326
+ }), In = { style: { "text-align": "center" } }, ge = {
2225
2327
  __name: "LoadingIndicator",
2226
2328
  setup(t) {
2227
2329
  const { t: e } = Z();
2228
- return (o, n) => (v(), b("div", yn, T(u(e)("common.loading")), 1));
2330
+ return (o, n) => (v(), b("div", In, T(u(e)("common.loading")), 1));
2229
2331
  }
2230
2332
  };
2231
- function vn({ currentPage: t, itemsPerPage: e = 20, totalItems: o, rangeLength: n = 5, update: a = _e }) {
2232
- const s = C(() => Math.ceil(u(o) / e)), r = C(() => {
2233
- const l = u(t) - 1, p = Array.from({ length: s.value }, (i, f) => f + 1), y = Math.floor(n / 2);
2333
+ function Rn({ currentPage: t, itemsPerPage: e = 20, totalItems: o, rangeLength: n = 5, update: r = Ne }) {
2334
+ const s = $(() => Math.ceil(u(o) / e)), i = $(() => {
2335
+ const l = u(t) - 1, f = Array.from({ length: s.value }, (a, p) => p + 1), y = Math.floor(n / 2);
2234
2336
  let g = Math.max(l - y, 0);
2235
- return g + n >= s.value && (g = Math.max(s.value - n, 0)), p.slice(g, g + n);
2337
+ return g + n >= s.value && (g = Math.max(s.value - n, 0)), f.slice(g, g + n);
2236
2338
  }), c = (l) => {
2237
- const p = u(t) + l;
2238
- d(p) && a(p);
2339
+ const f = u(t) + l;
2340
+ d(f) && r(f);
2239
2341
  }, m = (l) => {
2240
- d(l) && a(l);
2342
+ d(l) && r(l);
2241
2343
  }, d = (l) => l <= s.value && l > 0;
2242
2344
  return {
2243
2345
  page: t,
2244
- range: r,
2346
+ range: i,
2245
2347
  pageCount: s,
2246
2348
  goTo: m,
2247
2349
  pageStep: c
2248
2350
  };
2249
2351
  }
2250
- const wn = {
2352
+ const Nn = {
2251
2353
  xmlns: "http://www.w3.org/2000/svg",
2252
2354
  viewBox: "0 0 24 24",
2253
2355
  fill: "none",
@@ -2255,13 +2357,13 @@ const wn = {
2255
2357
  "stroke-width": "2",
2256
2358
  "stroke-linecap": "round",
2257
2359
  "stroke-linejoin": "round"
2258
- }, bn = /* @__PURE__ */ w("polyline", { points: "15 18 9 12 15 6" }, null, -1), xn = [
2259
- bn
2360
+ }, Ln = /* @__PURE__ */ w("polyline", { points: "15 18 9 12 15 6" }, null, -1), Vn = [
2361
+ Ln
2260
2362
  ];
2261
- function Tn(t, e) {
2262
- return v(), b("svg", wn, [...xn]);
2363
+ function Dn(t, e) {
2364
+ return v(), b("svg", Nn, [...Vn]);
2263
2365
  }
2264
- const kn = { render: Tn }, Pn = {
2366
+ const Mn = { render: Dn }, Bn = {
2265
2367
  xmlns: "http://www.w3.org/2000/svg",
2266
2368
  viewBox: "0 0 24 24",
2267
2369
  fill: "none",
@@ -2269,21 +2371,21 @@ const kn = { render: Tn }, Pn = {
2269
2371
  "stroke-width": "2",
2270
2372
  "stroke-linecap": "round",
2271
2373
  "stroke-linejoin": "round"
2272
- }, Sn = /* @__PURE__ */ w("polyline", { points: "9 18 15 12 9 6" }, null, -1), _n = [
2273
- Sn
2374
+ }, Fn = /* @__PURE__ */ w("polyline", { points: "9 18 15 12 9 6" }, null, -1), Hn = [
2375
+ Fn
2274
2376
  ];
2275
- function An(t, e) {
2276
- return v(), b("svg", Pn, [..._n]);
2377
+ function jn(t, e) {
2378
+ return v(), b("svg", Bn, [...Hn]);
2277
2379
  }
2278
- const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2380
+ const Wn = { render: jn }, Kn = ["disabled"], Un = ["disabled"], Yn = {
2279
2381
  key: 1,
2280
2382
  class: "is-disabled"
2281
- }, Gn = ["disabled", "onClick"], En = {
2383
+ }, qn = ["disabled", "onClick"], Jn = {
2282
2384
  key: 2,
2283
2385
  class: "is-disabled"
2284
- }, Rn = /* @__PURE__ */ w("span", null, "...", -1), Nn = [
2285
- Rn
2286
- ], In = ["disabled"], Ln = ["disabled"], lr = {
2386
+ }, Xn = /* @__PURE__ */ w("span", null, "...", -1), Zn = [
2387
+ Xn
2388
+ ], Qn = ["disabled"], ts = ["disabled"], _r = {
2287
2389
  __name: "Paginator",
2288
2390
  props: {
2289
2391
  page: {
@@ -2315,71 +2417,71 @@ const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2315
2417
  },
2316
2418
  emits: ["change"],
2317
2419
  setup(t, { emit: e }) {
2318
- const o = t, n = e, a = q("paginator"), { page: s, pageCount: r, range: c, goTo: m, pageStep: d } = vn({
2319
- currentPage: C(() => o.page),
2320
- totalItems: C(() => o.totalItems),
2420
+ const o = t, n = e, r = q("paginator"), { page: s, pageCount: i, range: c, goTo: m, pageStep: d } = Rn({
2421
+ currentPage: $(() => o.page),
2422
+ totalItems: $(() => o.totalItems),
2321
2423
  itemsPerPage: o.itemsPerPage,
2322
2424
  rangeLength: o.rangeLength,
2323
2425
  update: (l) => n("change", l)
2324
2426
  });
2325
- return (l, p) => u(r) > 1 ? (v(), b("div", {
2427
+ return (l, f) => u(i) > 1 ? (v(), b("div", {
2326
2428
  key: 0,
2327
- class: z(u(a))
2429
+ class: z(u(r))
2328
2430
  }, [
2329
2431
  w("button", {
2330
2432
  type: "button",
2331
2433
  disabled: u(s) === 1,
2332
- onClick: p[0] || (p[0] = (y) => u(d)(-1))
2434
+ onClick: f[0] || (f[0] = (y) => u(d)(-1))
2333
2435
  }, [
2334
- N(l.$slots, "prev", {}, () => [
2335
- O(u(kn), { class: "icon paginator-left" })
2436
+ R(l.$slots, "prev", {}, () => [
2437
+ G(u(Mn), { class: "icon paginator-left" })
2336
2438
  ])
2337
- ], 8, $n),
2439
+ ], 8, Kn),
2338
2440
  t.isCompact ? _("", !0) : (v(), b("button", {
2339
2441
  key: 0,
2340
2442
  type: "button",
2341
2443
  disabled: u(s) === 1,
2342
- onClick: p[1] || (p[1] = (y) => u(m)(1))
2343
- }, "1", 8, Cn)),
2344
- t.isCompact ? _("", !0) : (v(), b("div", On, "...")),
2345
- (v(!0), b(B, null, tt(u(c), (y) => (v(), b("button", {
2444
+ onClick: f[1] || (f[1] = (y) => u(m)(1))
2445
+ }, "1", 8, Un)),
2446
+ t.isCompact ? _("", !0) : (v(), b("div", Yn, "...")),
2447
+ (v(!0), b(M, null, tt(u(c), (y) => (v(), b("button", {
2346
2448
  type: "button",
2347
2449
  key: y,
2348
2450
  class: z({ "is-active": y === u(s) }),
2349
2451
  disabled: y === u(s),
2350
2452
  onClick: (g) => u(m)(y)
2351
- }, T(y), 11, Gn))), 128)),
2352
- t.isCompact ? _("", !0) : (v(), b("div", En, Nn)),
2453
+ }, T(y), 11, qn))), 128)),
2454
+ t.isCompact ? _("", !0) : (v(), b("div", Jn, Zn)),
2353
2455
  t.isCompact ? _("", !0) : (v(), b("button", {
2354
2456
  key: 3,
2355
2457
  type: "button",
2356
- disabled: u(s) === u(r),
2357
- onClick: p[2] || (p[2] = (y) => u(m)(u(r)))
2358
- }, T(u(r)), 9, In)),
2458
+ disabled: u(s) === u(i),
2459
+ onClick: f[2] || (f[2] = (y) => u(m)(u(i)))
2460
+ }, T(u(i)), 9, Qn)),
2359
2461
  w("button", {
2360
2462
  type: "button",
2361
- disabled: u(s) === u(r),
2362
- onClick: p[3] || (p[3] = at((y) => u(d)(1), ["prevent"]))
2463
+ disabled: u(s) === u(i),
2464
+ onClick: f[3] || (f[3] = it((y) => u(d)(1), ["prevent"]))
2363
2465
  }, [
2364
- N(l.$slots, "next", {}, () => [
2365
- O(u(zn), { class: "icon paginator-left" })
2466
+ R(l.$slots, "next", {}, () => [
2467
+ G(u(Wn), { class: "icon paginator-left" })
2366
2468
  ])
2367
- ], 8, Ln)
2469
+ ], 8, ts)
2368
2470
  ], 2)) : _("", !0);
2369
2471
  }
2370
- }, me = {
2472
+ }, ye = {
2371
2473
  __name: "ResponsiveTable",
2372
2474
  setup(t) {
2373
- const e = G(null), o = q("table-responsive");
2374
- return (n, a) => (v(), b("div", {
2475
+ const e = C(null), o = q("table-responsive");
2476
+ return (n, r) => (v(), b("div", {
2375
2477
  ref_key: "el",
2376
2478
  ref: e,
2377
2479
  class: z(u(o))
2378
2480
  }, [
2379
- N(n.$slots, "default", { el: e.value })
2481
+ R(n.$slots, "default", { el: e.value })
2380
2482
  ], 2));
2381
2483
  }
2382
- }, Vn = ["onClick"], cr = {
2484
+ }, es = ["onClick"], Ar = {
2383
2485
  __name: "TimezoneSelector",
2384
2486
  props: {
2385
2487
  locale: {
@@ -2393,51 +2495,51 @@ const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2393
2495
  },
2394
2496
  emits: ["change"],
2395
2497
  setup(t, { emit: e }) {
2396
- const o = t, n = e, { t: a } = Z(), s = q("timezone-selector"), r = C(() => vt(/* @__PURE__ */ new Date(), null, o.locale)), c = Oe(), m = C(() => Array.from(Ee.values()).map((l) => ({
2498
+ const o = t, n = e, { t: r } = Z(), s = q("timezone-selector"), i = $(() => wt(/* @__PURE__ */ new Date(), null, o.locale)), c = Be(), m = $(() => Array.from(He.values()).map((l) => ({
2397
2499
  ...l,
2398
- isActive: vt(/* @__PURE__ */ new Date(), o.currentZone, o.locale) === vt(/* @__PURE__ */ new Date(), l.timezone, o.locale),
2399
- zoneOffsetName: vt(/* @__PURE__ */ new Date(), l.timezone, o.locale)
2500
+ isActive: wt(/* @__PURE__ */ new Date(), o.currentZone, o.locale) === wt(/* @__PURE__ */ new Date(), l.timezone, o.locale),
2501
+ zoneOffsetName: wt(/* @__PURE__ */ new Date(), l.timezone, o.locale)
2400
2502
  }))), d = (l) => n("change", l);
2401
- return (l, p) => (v(), b("div", {
2503
+ return (l, f) => (v(), b("div", {
2402
2504
  class: z(u(s))
2403
2505
  }, [
2404
- O(u(Ae), {
2506
+ G(u(Le), {
2405
2507
  path: "common.selectTimezone",
2406
2508
  tag: "span"
2407
2509
  }, {
2408
2510
  timezone: k(() => [
2409
2511
  w("a", {
2410
2512
  href: "#",
2411
- onClick: p[0] || (p[0] = at((y) => d(u(c)), ["prevent"]))
2412
- }, T(r.value), 1)
2513
+ onClick: f[0] || (f[0] = it((y) => d(u(c)), ["prevent"]))
2514
+ }, T(i.value), 1)
2413
2515
  ]),
2414
2516
  _: 1
2415
2517
  }),
2416
- (v(!0), b(B, null, tt(m.value, (y) => (v(), b("a", {
2518
+ (v(!0), b(M, null, tt(m.value, (y) => (v(), b("a", {
2417
2519
  key: y.countryLabelKey,
2418
2520
  href: "#",
2419
2521
  class: z({ "is-active": y.isActive }),
2420
- onClick: at((g) => d(y.timezone), ["prevent"])
2421
- }, T(u(a)(`common.${y.countryLabelKey}`)) + " (" + T(y.zoneOffsetName) + ") ", 11, Vn))), 128))
2522
+ onClick: it((g) => d(y.timezone), ["prevent"])
2523
+ }, T(u(r)(`common.${y.countryLabelKey}`)) + " (" + T(y.zoneOffsetName) + ") ", 11, es))), 128))
2422
2524
  ], 2));
2423
2525
  }
2424
- }, Dn = { class: "is-portrait-image" }, Mn = { class: "is-team-name-long" }, Bn = { key: 0 }, Hn = /* @__PURE__ */ w("sup", null, "*", -1), Fn = [
2425
- Hn
2426
- ], jn = { class: "is-team-name-short" }, Wn = { key: 0 }, Kn = /* @__PURE__ */ w("sup", null, "*", -1), Un = [
2427
- Kn
2428
- ], Yn = { class: "is-team-name-long" }, qn = { class: "is-team-name-short" }, Jn = { class: "is-team-name-long" }, Xn = { class: "is-team-name-short" }, Zn = ["href"], Qn = { class: "is-team-name-long" }, ts = { class: "is-team-name-short" }, es = ["href"], os = {
2526
+ }, os = { class: "is-portrait-image" }, ns = { class: "is-team-name-long" }, ss = { key: 0 }, rs = /* @__PURE__ */ w("sup", null, "*", -1), is = [
2527
+ rs
2528
+ ], as = { class: "is-team-name-short" }, ls = { key: 0 }, cs = /* @__PURE__ */ w("sup", null, "*", -1), ds = [
2529
+ cs
2530
+ ], us = { class: "is-team-name-long" }, ms = { class: "is-team-name-short" }, fs = { class: "is-team-name-long" }, ps = { class: "is-team-name-short" }, hs = ["href"], gs = { class: "is-team-name-long" }, ys = { class: "is-team-name-short" }, vs = ["href"], ws = {
2429
2531
  key: 0,
2430
2532
  class: "is-text-dark"
2431
- }, ns = ["href", "target"], ss = {
2533
+ }, bs = ["href", "target"], xs = {
2432
2534
  key: 0,
2433
2535
  class: "label"
2434
- }, rs = {
2536
+ }, Ts = {
2435
2537
  key: 1,
2436
2538
  class: "label"
2437
- }, as = {
2539
+ }, ks = {
2438
2540
  key: 2,
2439
2541
  class: "label"
2440
- }, dr = {
2542
+ }, zr = {
2441
2543
  __name: "StatisticsTable",
2442
2544
  props: {
2443
2545
  columns: {
@@ -2497,148 +2599,148 @@ const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2497
2599
  },
2498
2600
  emits: ["sort"],
2499
2601
  setup(t, { emit: e }) {
2500
- const o = t, { columns: n, hideColumns: a } = Ct(o), s = e, { onError: r } = Yt(), { t: c } = Z(), { columns: m, error: d } = qt(
2602
+ const o = t, { columns: n, hideColumns: r } = It(o), s = e, { onError: i } = Qt(), { t: c } = Z(), { columns: m, error: d } = te(
2501
2603
  n,
2502
- a,
2503
- C(() => ({
2604
+ r,
2605
+ $(() => ({
2504
2606
  offsetName: o.offsetName
2505
2607
  }))
2506
2608
  );
2507
- d.value && r(
2508
- new Xt(bt.message, {
2509
- ...bt.options,
2609
+ d.value && i(
2610
+ new oe(xt.message, {
2611
+ ...xt.options,
2510
2612
  cause: { column: d.value }
2511
2613
  })
2512
2614
  );
2513
- const l = (p) => s("sort", p);
2514
- return (p, y) => (v(), R(me, null, {
2615
+ const l = (f) => s("sort", f);
2616
+ return (f, y) => (v(), I(ye, null, {
2515
2617
  default: k(({ el: g }) => [
2516
- O(de, {
2618
+ G(he, {
2517
2619
  columns: u(m),
2518
2620
  sort: o.sort,
2519
2621
  rows: o.rows,
2520
2622
  "is-loading": t.isLoading,
2521
2623
  "append-to": t.appendTo || g,
2522
2624
  onSort: l
2523
- }, we({
2524
- "cell-index": k(({ row: i }) => [
2625
+ }, $e({
2626
+ "cell-index": k(({ row: a }) => [
2525
2627
  w("span", {
2526
- class: z(i.indexClass)
2527
- }, T(i.index), 3)
2628
+ class: z(a.indexClass)
2629
+ }, T(a.index), 3)
2528
2630
  ]),
2529
- "cell-playerPortrait": k(({ row: i }) => [
2530
- w("div", Dn, [
2531
- (v(), R(st, {
2532
- key: i.player.playerId,
2533
- src: i.player.picture,
2534
- "default-src": u(Re)
2631
+ "cell-playerPortrait": k(({ row: a }) => [
2632
+ w("div", os, [
2633
+ (v(), I(st, {
2634
+ key: a.player.playerId,
2635
+ src: a.player.picture,
2636
+ "default-src": u(je)
2535
2637
  }, null, 8, ["src", "default-src"]))
2536
2638
  ])
2537
2639
  ]),
2538
- "cell-teamLogo": k(({ row: i }) => {
2539
- var f, h;
2640
+ "cell-teamLogo": k(({ row: a }) => {
2641
+ var p, h;
2540
2642
  return [
2541
- (v(), R(st, {
2643
+ (v(), I(st, {
2542
2644
  class: "is-logo-image",
2543
- key: ((f = i.team) == null ? void 0 : f.id) ?? i.id,
2544
- src: (h = i.team) == null ? void 0 : h.logo
2645
+ key: ((p = a.team) == null ? void 0 : p.id) ?? a.id,
2646
+ src: (h = a.team) == null ? void 0 : h.logo
2545
2647
  }, null, 8, ["src"]))
2546
2648
  ];
2547
2649
  }),
2548
- "cell-homeTeamLogo": k(({ row: i }) => {
2549
- var f, h;
2650
+ "cell-homeTeamLogo": k(({ row: a }) => {
2651
+ var p, h;
2550
2652
  return [
2551
- (v(), R(st, {
2653
+ (v(), I(st, {
2552
2654
  class: "is-logo-image is-right",
2553
- key: (f = i.homeTeam) == null ? void 0 : f.id,
2554
- src: (h = i.homeTeam) == null ? void 0 : h.logo
2655
+ key: (p = a.homeTeam) == null ? void 0 : p.id,
2656
+ src: (h = a.homeTeam) == null ? void 0 : h.logo
2555
2657
  }, null, 8, ["src"]))
2556
2658
  ];
2557
2659
  }),
2558
- "cell-awayTeamLogo": k(({ row: i }) => {
2559
- var f, h;
2660
+ "cell-awayTeamLogo": k(({ row: a }) => {
2661
+ var p, h;
2560
2662
  return [
2561
- (v(), R(st, {
2663
+ (v(), I(st, {
2562
2664
  class: "is-logo-image is-right",
2563
- key: (f = i.awayTeam) == null ? void 0 : f.id,
2564
- src: (h = i.awayTeam) == null ? void 0 : h.logo
2665
+ key: (p = a.awayTeam) == null ? void 0 : p.id,
2666
+ src: (h = a.awayTeam) == null ? void 0 : h.logo
2565
2667
  }, null, 8, ["src"]))
2566
2668
  ];
2567
2669
  }),
2568
- "cell-teamName": k(({ row: i }) => {
2569
- var f, h;
2670
+ "cell-teamName": k(({ row: a }) => {
2671
+ var p, h;
2570
2672
  return [
2571
- w("span", Mn, [
2572
- M(T((f = i.team) == null ? void 0 : f.longName) + " ", 1),
2573
- i.penaltyPoints ? (v(), b("span", Bn, Fn)) : _("", !0)
2673
+ w("span", ns, [
2674
+ D(T((p = a.team) == null ? void 0 : p.longName) + " ", 1),
2675
+ a.penaltyPoints ? (v(), b("span", ss, is)) : _("", !0)
2574
2676
  ]),
2575
- w("span", jn, [
2576
- M(T((h = i.team) == null ? void 0 : h.shortName) + " ", 1),
2577
- i.penaltyPoints ? (v(), b("span", Wn, Un)) : _("", !0)
2677
+ w("span", as, [
2678
+ D(T((h = a.team) == null ? void 0 : h.shortName) + " ", 1),
2679
+ a.penaltyPoints ? (v(), b("span", ls, ds)) : _("", !0)
2578
2680
  ])
2579
2681
  ];
2580
2682
  }),
2581
- "cell-homeTeamName": k(({ row: i }) => {
2582
- var f, h;
2683
+ "cell-homeTeamName": k(({ row: a }) => {
2684
+ var p, h;
2583
2685
  return [
2584
- w("span", Yn, T((f = i.homeTeam) == null ? void 0 : f.longName), 1),
2585
- w("span", qn, T((h = i.homeTeam) == null ? void 0 : h.shortName), 1)
2686
+ w("span", us, T((p = a.homeTeam) == null ? void 0 : p.longName), 1),
2687
+ w("span", ms, T((h = a.homeTeam) == null ? void 0 : h.shortName), 1)
2586
2688
  ];
2587
2689
  }),
2588
- "cell-awayTeamName": k(({ row: i }) => {
2589
- var f, h;
2690
+ "cell-awayTeamName": k(({ row: a }) => {
2691
+ var p, h;
2590
2692
  return [
2591
- w("span", Jn, T((f = i.awayTeam) == null ? void 0 : f.longName), 1),
2592
- w("span", Xn, T((h = i.awayTeam) == null ? void 0 : h.shortName), 1)
2693
+ w("span", fs, T((p = a.awayTeam) == null ? void 0 : p.longName), 1),
2694
+ w("span", ps, T((h = a.awayTeam) == null ? void 0 : h.shortName), 1)
2593
2695
  ];
2594
2696
  }),
2595
- "cell-location": k(({ row: i }) => {
2596
- var f;
2697
+ "cell-location": k(({ row: a }) => {
2698
+ var p;
2597
2699
  return [
2598
- M(T(((f = i.location) == null ? void 0 : f.locationName) ?? ""), 1)
2700
+ D(T(((p = a.location) == null ? void 0 : p.locationName) ?? ""), 1)
2599
2701
  ];
2600
2702
  }),
2601
- "cell-gameResult": k(({ row: i }) => [
2602
- i.gameStatus === 0 ? (v(), b("span", os, "-:-")) : (v(), b("a", {
2703
+ "cell-gameResult": k(({ row: a }) => [
2704
+ a.gameStatus === 0 ? (v(), b("span", ws, "-:-")) : (v(), b("a", {
2603
2705
  key: 1,
2604
- href: t.externalGameResolver(i),
2706
+ href: t.externalGameResolver(a),
2605
2707
  target: t.externalGameResolverTarget,
2606
- class: z({ "is-text-dark": i.gameStatus !== 1, "is-text-accent": i.gameStatus === 1 })
2607
- }, T(i.homeTeamScore) + ":" + T(i.awayTeamScore), 11, ns))
2708
+ class: z({ "is-text-dark": a.gameStatus !== 1, "is-text-accent": a.gameStatus === 1 })
2709
+ }, T(a.homeTeamScore) + ":" + T(a.awayTeamScore), 11, bs))
2608
2710
  ]),
2609
- "cell-gameResultType": k(({ row: i }) => [
2610
- i.isOvertime ? (v(), b("span", ss, T(u(c)("common.overtimeShort")), 1)) : _("", !0),
2611
- i.isShootout ? (v(), b("span", rs, T(u(c)("common.shootoutShort")), 1)) : _("", !0),
2612
- i.seriesStandings ? (v(), b("span", as, T(i.seriesStandings), 1)) : _("", !0)
2711
+ "cell-gameResultType": k(({ row: a }) => [
2712
+ a.isOvertime ? (v(), b("span", xs, T(u(c)("common.overtimeShort")), 1)) : _("", !0),
2713
+ a.isShootout ? (v(), b("span", Ts, T(u(c)("common.shootoutShort")), 1)) : _("", !0),
2714
+ a.seriesStandings ? (v(), b("span", ks, T(a.seriesStandings), 1)) : _("", !0)
2613
2715
  ]),
2614
2716
  loading: k(() => [
2615
- O(ue)
2717
+ G(ge)
2616
2718
  ]),
2617
2719
  _: 2
2618
2720
  }, [
2619
2721
  t.isTeamLinked ? {
2620
2722
  name: "cell-teamName",
2621
- fn: k(({ row: i }) => {
2622
- var f, h;
2723
+ fn: k(({ row: a }) => {
2724
+ var p, h;
2623
2725
  return [
2624
2726
  w("a", {
2625
- href: t.externalTeamResolver(i),
2727
+ href: t.externalTeamResolver(a),
2626
2728
  target: "_blank"
2627
2729
  }, [
2628
- w("span", Qn, T((f = i.team) == null ? void 0 : f.longName), 1),
2629
- w("span", ts, T((h = i.team) == null ? void 0 : h.shortName), 1)
2630
- ], 8, Zn)
2730
+ w("span", gs, T((p = a.team) == null ? void 0 : p.longName), 1),
2731
+ w("span", ys, T((h = a.team) == null ? void 0 : h.shortName), 1)
2732
+ ], 8, hs)
2631
2733
  ];
2632
2734
  }),
2633
2735
  key: "0"
2634
2736
  } : void 0,
2635
2737
  t.isPlayerLinked ? {
2636
2738
  name: "cell-name",
2637
- fn: k(({ row: i }) => [
2739
+ fn: k(({ row: a }) => [
2638
2740
  w("a", {
2639
- href: t.externalPlayerResolver(i),
2741
+ href: t.externalPlayerResolver(a),
2640
2742
  target: "_blank"
2641
- }, T(i.name), 9, es)
2743
+ }, T(a.name), 9, vs)
2642
2744
  ]),
2643
2745
  key: "1"
2644
2746
  } : void 0
@@ -2647,7 +2749,7 @@ const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2647
2749
  _: 1
2648
2750
  }));
2649
2751
  }
2650
- }, is = {
2752
+ }, Ps = {
2651
2753
  xmlns: "http://www.w3.org/2000/svg",
2652
2754
  viewBox: "0 0 24 24",
2653
2755
  fill: "none",
@@ -2655,32 +2757,32 @@ const zn = { render: An }, $n = ["disabled"], Cn = ["disabled"], On = {
2655
2757
  "stroke-width": "2",
2656
2758
  "stroke-linecap": "round",
2657
2759
  "stroke-linejoin": "round"
2658
- }, ls = /* @__PURE__ */ w("rect", {
2760
+ }, Ss = /* @__PURE__ */ w("rect", {
2659
2761
  x: "2",
2660
2762
  y: "3",
2661
2763
  width: "20",
2662
2764
  height: "14",
2663
2765
  rx: "2",
2664
2766
  ry: "2"
2665
- }, null, -1), cs = /* @__PURE__ */ w("line", {
2767
+ }, null, -1), _s = /* @__PURE__ */ w("line", {
2666
2768
  x1: "8",
2667
2769
  y1: "21",
2668
2770
  x2: "16",
2669
2771
  y2: "21"
2670
- }, null, -1), ds = /* @__PURE__ */ w("line", {
2772
+ }, null, -1), As = /* @__PURE__ */ w("line", {
2671
2773
  x1: "12",
2672
2774
  y1: "17",
2673
2775
  x2: "12",
2674
2776
  y2: "21"
2675
- }, null, -1), us = [
2676
- ls,
2677
- cs,
2678
- ds
2777
+ }, null, -1), zs = [
2778
+ Ss,
2779
+ _s,
2780
+ As
2679
2781
  ];
2680
- function ms(t, e) {
2681
- return v(), b("svg", is, [...us]);
2782
+ function $s(t, e) {
2783
+ return v(), b("svg", Ps, [...zs]);
2682
2784
  }
2683
- const ps = { render: ms }, fs = {
2785
+ const Cs = { render: $s }, Os = {
2684
2786
  xmlns: "http://www.w3.org/2000/svg",
2685
2787
  viewBox: "0 0 24 24",
2686
2788
  fill: "none",
@@ -2688,27 +2790,27 @@ const ps = { render: ms }, fs = {
2688
2790
  "stroke-width": "2",
2689
2791
  "stroke-linecap": "round",
2690
2792
  "stroke-linejoin": "round"
2691
- }, hs = /* @__PURE__ */ w("circle", {
2793
+ }, Gs = /* @__PURE__ */ w("circle", {
2692
2794
  cx: "12",
2693
2795
  cy: "12",
2694
2796
  r: "1"
2695
- }, null, -1), gs = /* @__PURE__ */ w("circle", {
2797
+ }, null, -1), Es = /* @__PURE__ */ w("circle", {
2696
2798
  cx: "12",
2697
2799
  cy: "5",
2698
2800
  r: "1"
2699
- }, null, -1), ys = /* @__PURE__ */ w("circle", {
2801
+ }, null, -1), Is = /* @__PURE__ */ w("circle", {
2700
2802
  cx: "12",
2701
2803
  cy: "19",
2702
2804
  r: "1"
2703
- }, null, -1), vs = [
2704
- hs,
2705
- gs,
2706
- ys
2805
+ }, null, -1), Rs = [
2806
+ Gs,
2807
+ Es,
2808
+ Is
2707
2809
  ];
2708
- function ws(t, e) {
2709
- return v(), b("svg", fs, [...vs]);
2810
+ function Ns(t, e) {
2811
+ return v(), b("svg", Os, [...Rs]);
2710
2812
  }
2711
- const bs = { render: ws }, xs = {
2813
+ const Ls = { render: Ns }, Vs = {
2712
2814
  xmlns: "http://www.w3.org/2000/svg",
2713
2815
  viewBox: "0 0 24 24",
2714
2816
  fill: "none",
@@ -2716,21 +2818,21 @@ const bs = { render: ws }, xs = {
2716
2818
  "stroke-width": "2",
2717
2819
  "stroke-linecap": "round",
2718
2820
  "stroke-linejoin": "round"
2719
- }, Ts = /* @__PURE__ */ w("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1), ks = /* @__PURE__ */ w("rect", {
2821
+ }, Ds = /* @__PURE__ */ w("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1), Ms = /* @__PURE__ */ w("rect", {
2720
2822
  x: "8",
2721
2823
  y: "2",
2722
2824
  width: "8",
2723
2825
  height: "4",
2724
2826
  rx: "1",
2725
2827
  ry: "1"
2726
- }, null, -1), Ps = [
2727
- Ts,
2728
- ks
2828
+ }, null, -1), Bs = [
2829
+ Ds,
2830
+ Ms
2729
2831
  ];
2730
- function Ss(t, e) {
2731
- return v(), b("svg", xs, [...Ps]);
2832
+ function Fs(t, e) {
2833
+ return v(), b("svg", Vs, [...Bs]);
2732
2834
  }
2733
- const _s = { render: Ss }, As = {
2835
+ const Hs = { render: Fs }, js = {
2734
2836
  xmlns: "http://www.w3.org/2000/svg",
2735
2837
  viewBox: "0 0 24 24",
2736
2838
  fill: "none",
@@ -2738,26 +2840,26 @@ const _s = { render: Ss }, As = {
2738
2840
  "stroke-width": "2",
2739
2841
  "stroke-linecap": "round",
2740
2842
  "stroke-linejoin": "round"
2741
- }, zs = /* @__PURE__ */ w("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1), $s = /* @__PURE__ */ w("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1), Cs = [
2742
- zs,
2743
- $s
2843
+ }, Ws = /* @__PURE__ */ w("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1), Ks = /* @__PURE__ */ w("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1), Us = [
2844
+ Ws,
2845
+ Ks
2744
2846
  ];
2745
- function Os(t, e) {
2746
- return v(), b("svg", As, [...Cs]);
2847
+ function Ys(t, e) {
2848
+ return v(), b("svg", js, [...Us]);
2747
2849
  }
2748
- const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "is-team-name-short" }, Ns = { class: "is-team-name-long" }, Is = { class: "is-team-name-short" }, Ls = {
2850
+ const qs = { render: Ys }, Js = { class: "is-team-name-long" }, Xs = { class: "is-team-name-short" }, Zs = { class: "is-team-name-long" }, Qs = { class: "is-team-name-short" }, tr = {
2749
2851
  key: 0,
2750
2852
  class: "is-text-dark"
2751
- }, Vs = ["href", "target"], Ds = {
2853
+ }, er = ["href", "target"], or = {
2752
2854
  key: 0,
2753
2855
  class: "label"
2754
- }, Ms = {
2856
+ }, nr = {
2755
2857
  key: 1,
2756
2858
  class: "label"
2757
- }, Bs = {
2859
+ }, sr = {
2758
2860
  key: 2,
2759
2861
  class: "label"
2760
- }, Hs = { key: 1 }, Fs = ["onClick", "onFocus", "onBlur"], js = { class: "is-dropdown-menu" }, Ws = ["href", "target"], Ks = { key: 0 }, Us = ["href"], ur = {
2862
+ }, rr = { key: 1 }, ir = ["onClick", "onFocus", "onBlur"], ar = { class: "is-dropdown-menu" }, lr = ["href", "target"], cr = { key: 0 }, dr = ["href"], $r = {
2761
2863
  __name: "ScheduleTable",
2762
2864
  props: {
2763
2865
  rows: {
@@ -2786,18 +2888,18 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2786
2888
  }
2787
2889
  },
2788
2890
  setup(t) {
2789
- const e = t, o = G(null), { onError: n } = Yt(), { columns: a, error: s } = qt(
2790
- Ie,
2791
- C(() => e.hideColumns),
2792
- C(() => ({
2891
+ const e = t, o = C(null), { onError: n } = Qt(), { columns: r, error: s } = te(
2892
+ Ke,
2893
+ $(() => e.hideColumns),
2894
+ $(() => ({
2793
2895
  offsetName: e.offsetName
2794
2896
  }))
2795
2897
  );
2796
- ze(
2898
+ Ve(
2797
2899
  s,
2798
2900
  () => n(
2799
- new Xt(bt.message, {
2800
- ...bt.options,
2901
+ new oe(xt.message, {
2902
+ ...xt.options,
2801
2903
  cause: { column: s.value }
2802
2904
  })
2803
2905
  ),
@@ -2805,98 +2907,98 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2805
2907
  immediate: !0
2806
2908
  }
2807
2909
  );
2808
- const { t: r } = Z();
2809
- return (c, m) => (v(), b(B, null, [
2810
- O(me, null, {
2910
+ const { t: i } = Z();
2911
+ return (c, m) => (v(), b(M, null, [
2912
+ G(ye, null, {
2811
2913
  default: k(({ el: d }) => [
2812
- O(de, {
2813
- columns: u(a),
2914
+ G(he, {
2915
+ columns: u(r),
2814
2916
  rows: e.rows,
2815
2917
  "is-loading": t.isLoading,
2816
2918
  "append-to": o.value || d
2817
2919
  }, {
2818
2920
  "cell-homeTeamName": k(({ row: l }) => [
2819
- w("span", Es, T(l.homeTeam.longName), 1),
2820
- w("span", Rs, T(l.homeTeam.shortName), 1)
2921
+ w("span", Js, T(l.homeTeam.longName), 1),
2922
+ w("span", Xs, T(l.homeTeam.shortName), 1)
2821
2923
  ]),
2822
2924
  "cell-awayTeamName": k(({ row: l }) => [
2823
- w("span", Ns, T(l.awayTeam.longName), 1),
2824
- w("span", Is, T(l.awayTeam.shortName), 1)
2925
+ w("span", Zs, T(l.awayTeam.longName), 1),
2926
+ w("span", Qs, T(l.awayTeam.shortName), 1)
2825
2927
  ]),
2826
2928
  "cell-homeTeamLogo": k(({ row: l }) => [
2827
- (v(), R(st, {
2929
+ (v(), I(st, {
2828
2930
  class: "is-logo-image is-right",
2829
2931
  key: l.homeTeam.id,
2830
2932
  src: l.homeTeam.logo
2831
2933
  }, null, 8, ["src"]))
2832
2934
  ]),
2833
2935
  "cell-awayTeamLogo": k(({ row: l }) => [
2834
- (v(), R(st, {
2936
+ (v(), I(st, {
2835
2937
  class: "is-logo-image is-right",
2836
2938
  key: l.awayTeam.id,
2837
2939
  src: l.awayTeam.logo
2838
2940
  }, null, 8, ["src"]))
2839
2941
  ]),
2840
2942
  "cell-gameResult": k(({ row: l }) => [
2841
- l.gameStatus === 0 ? (v(), b("span", Ls, "-:-")) : (v(), b("a", {
2943
+ l.gameStatus === 0 ? (v(), b("span", tr, "-:-")) : (v(), b("a", {
2842
2944
  key: 1,
2843
2945
  href: t.externalGameResolver(l.gameId),
2844
2946
  target: t.externalGameResolverTarget,
2845
2947
  class: z({ "is-text-dark": l.gameStatus !== 1, "is-text-accent": l.gameStatus === 1 })
2846
- }, T(l.homeTeamScore) + ":" + T(l.awayTeamScore), 11, Vs))
2948
+ }, T(l.homeTeamScore) + ":" + T(l.awayTeamScore), 11, er))
2847
2949
  ]),
2848
2950
  "cell-gameResultType": k(({ row: l }) => [
2849
- l.isOvertime ? (v(), b("span", Ds, T(u(r)("common.overtimeShort")), 1)) : _("", !0),
2850
- l.isShootout ? (v(), b("span", Ms, T(u(r)("common.shootoutShort")), 1)) : _("", !0),
2851
- l.seriesStandings ? (v(), b("span", Bs, T(l.seriesStandings), 1)) : _("", !0)
2951
+ l.isOvertime ? (v(), b("span", or, T(u(i)("common.overtimeShort")), 1)) : _("", !0),
2952
+ l.isShootout ? (v(), b("span", nr, T(u(i)("common.shootoutShort")), 1)) : _("", !0),
2953
+ l.seriesStandings ? (v(), b("span", sr, T(l.seriesStandings), 1)) : _("", !0)
2852
2954
  ]),
2853
2955
  "cell-broadcast": k(({ row: l }) => [
2854
- l.broadcast ? (v(), R(u(ps), { key: 0 })) : (v(), b("span", Hs))
2956
+ l.broadcast ? (v(), I(u(Cs), { key: 0 })) : (v(), b("span", rr))
2855
2957
  ]),
2856
2958
  "cell-location": k(({ row: l }) => {
2857
- var p;
2959
+ var f;
2858
2960
  return [
2859
- M(T(((p = l.location) == null ? void 0 : p.locationName) ?? ""), 1)
2961
+ D(T(((f = l.location) == null ? void 0 : f.locationName) ?? ""), 1)
2860
2962
  ];
2861
2963
  }),
2862
2964
  "cell-more": k(({ row: l }) => [
2863
- O(ce, {
2965
+ G(pe, {
2864
2966
  offset: 2,
2865
2967
  placement: "left",
2866
2968
  theme: "content",
2867
2969
  "append-to": d
2868
2970
  }, {
2869
- default: k(({ setRef: p, show: y, hide: g }) => [
2971
+ default: k(({ setRef: f, show: y, hide: g }) => [
2870
2972
  w("button", {
2871
- ref: p,
2872
- onClick: at(y, ["stop"]),
2973
+ ref: f,
2974
+ onClick: it(y, ["stop"]),
2873
2975
  onFocus: y,
2874
2976
  onBlur: g
2875
2977
  }, [
2876
- O(u(bs))
2877
- ], 40, Fs)
2978
+ G(u(Ls))
2979
+ ], 40, ir)
2878
2980
  ]),
2879
2981
  content: k(() => [
2880
- w("ul", js, [
2982
+ w("ul", ar, [
2881
2983
  w("li", null, [
2882
2984
  w("a", {
2883
2985
  href: t.externalGameResolver(l.gameId),
2884
2986
  class: "is-dropdown-item",
2885
2987
  target: t.externalGameResolverTarget
2886
2988
  }, [
2887
- O(u(_s), { width: "14" }),
2888
- M(" " + T(u(r)("common.report")), 1)
2889
- ], 8, Ws)
2989
+ G(u(Hs), { width: "14" }),
2990
+ D(" " + T(u(i)("common.report")), 1)
2991
+ ], 8, lr)
2890
2992
  ]),
2891
- l.video ? (v(), b("li", Ks, [
2993
+ l.video ? (v(), b("li", cr, [
2892
2994
  w("a", {
2893
2995
  href: l.video,
2894
2996
  class: "is-dropdown-item",
2895
2997
  target: "_blank"
2896
2998
  }, [
2897
- O(u(Gs), { width: "14" }),
2898
- M(" " + T(u(r)("common.video")), 1)
2899
- ], 8, Us)
2999
+ G(u(qs), { width: "14" }),
3000
+ D(" " + T(u(i)("common.video")), 1)
3001
+ ], 8, dr)
2900
3002
  ])) : _("", !0)
2901
3003
  ])
2902
3004
  ]),
@@ -2904,7 +3006,7 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2904
3006
  }, 1032, ["append-to"])
2905
3007
  ]),
2906
3008
  loading: k(() => [
2907
- O(ue)
3009
+ G(ge)
2908
3010
  ]),
2909
3011
  _: 2
2910
3012
  }, 1032, ["columns", "rows", "is-loading", "append-to"])
@@ -2917,7 +3019,7 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2917
3019
  }, null, 512)
2918
3020
  ], 64));
2919
3021
  }
2920
- }, Ys = { class: "g-row g-gap-normal is-mb-5" }, qs = ["value"], Js = { key: 0 }, Xs = ["onClick"], mr = {
3022
+ }, ur = { class: "g-row g-gap-normal is-mb-5" }, mr = ["value"], fr = { key: 0 }, pr = ["onClick"], Cr = {
2921
3023
  __name: "SeasonSelector",
2922
3024
  props: {
2923
3025
  seasons: {
@@ -2943,7 +3045,7 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2943
3045
  },
2944
3046
  emits: ["onChangeSeason", "onChangeSection"],
2945
3047
  setup(t, { emit: e }) {
2946
- const o = t, n = e, { t: a } = Z(), s = C({
3048
+ const o = t, n = e, { t: r } = Z(), s = $({
2947
3049
  get() {
2948
3050
  return o.championshipId;
2949
3051
  },
@@ -2951,42 +3053,42 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2951
3053
  n("onChangeSeason", c);
2952
3054
  }
2953
3055
  });
2954
- function r(c) {
3056
+ function i(c) {
2955
3057
  n("onChangeSection", c);
2956
3058
  }
2957
- return (c, m) => (v(), b(B, null, [
2958
- w("div", Ys, [
3059
+ return (c, m) => (v(), b(M, null, [
3060
+ w("div", ur, [
2959
3061
  w("div", null, [
2960
3062
  w("label", {
2961
3063
  for: "season",
2962
3064
  class: z(u(q)("label"))
2963
- }, T(u(a)("selection.season")), 3),
2964
- O(Le, {
3065
+ }, T(u(r)("selection.season")), 3),
3066
+ G(to, {
2965
3067
  id: "season",
2966
3068
  modelValue: s.value,
2967
3069
  "onUpdate:modelValue": m[0] || (m[0] = (d) => s.value = d)
2968
3070
  }, {
2969
3071
  default: k(() => [
2970
- (v(!0), b(B, null, tt(t.seasons, (d) => (v(), b("option", {
3072
+ (v(!0), b(M, null, tt(t.seasons, (d) => (v(), b("option", {
2971
3073
  key: d.championshipId,
2972
3074
  value: d.championshipId
2973
- }, T(d.seasonName), 9, qs))), 128))
3075
+ }, T(d.seasonName), 9, mr))), 128))
2974
3076
  ]),
2975
3077
  _: 1
2976
3078
  }, 8, ["modelValue"])
2977
3079
  ]),
2978
- N(c.$slots, "default")
3080
+ R(c.$slots, "default")
2979
3081
  ]),
2980
- t.isSectionSelectionDisabled ? _("", !0) : (v(), b("div", Js, [
2981
- (v(!0), b(B, null, tt(t.sections, (d) => (v(), b("button", {
3082
+ t.isSectionSelectionDisabled ? _("", !0) : (v(), b("div", fr, [
3083
+ (v(!0), b(M, null, tt(t.sections, (d) => (v(), b("button", {
2982
3084
  key: d.phaseId,
2983
- onClick: (l) => r(d),
3085
+ onClick: (l) => i(d),
2984
3086
  class: z([u(q)("tab-button"), { "is-active": d.sectionId === t.sectionId }])
2985
- }, T(d.sectionName), 11, Xs))), 128))
3087
+ }, T(d.sectionName), 11, pr))), 128))
2986
3088
  ]))
2987
3089
  ], 64));
2988
3090
  }
2989
- }, Zs = ["textContent"], pr = {
3091
+ }, hr = ["textContent"], Or = {
2990
3092
  __name: "AdditionalStandingsText",
2991
3093
  props: {
2992
3094
  rows: {
@@ -2999,28 +3101,29 @@ const Gs = { render: Os }, Es = { class: "is-team-name-long" }, Rs = { class: "i
2999
3101
  }
3000
3102
  },
3001
3103
  setup(t) {
3002
- const e = t, o = be(e, "rows"), { t: n, locale: a } = Z(), { isVisible: s, text: r } = $e(o, e.additionalKey, n, a);
3104
+ const e = t, o = Ce(e, "rows"), { t: n, locale: r } = Z(), { isVisible: s, text: i } = De(o, e.additionalKey, n, r);
3003
3105
  return (c, m) => u(s) ? (v(), b("div", {
3004
3106
  key: 0,
3005
3107
  class: "is-text-xs is-text-light is-mt-5 is-mb-5",
3006
- textContent: T(u(r))
3007
- }, null, 8, Zs)) : _("", !0);
3108
+ textContent: T(u(i))
3109
+ }, null, 8, hr)) : _("", !0);
3008
3110
  }
3009
3111
  };
3010
3112
  export {
3011
- ir as I,
3113
+ Sr as I,
3012
3114
  st as _,
3013
- lr as a,
3014
- de as b,
3015
- Le as c,
3016
- rr as d,
3017
- ar as e,
3018
- ur as f,
3019
- ce as g,
3020
- mr as h,
3021
- dr as i,
3022
- me as j,
3023
- ue as k,
3024
- cr as l,
3025
- pr as m
3115
+ _r as a,
3116
+ he as b,
3117
+ to as c,
3118
+ kr as d,
3119
+ Pr as e,
3120
+ $r as f,
3121
+ pe as g,
3122
+ Cr as h,
3123
+ zr as i,
3124
+ ye as j,
3125
+ ge as k,
3126
+ Ar as l,
3127
+ Tr as m,
3128
+ Or as n
3026
3129
  };