@mjsz-vbr-elements/core 2.2.0 → 2.2.1

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,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/dist/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
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 { j as S, k as D, n as p, l as E, m as I, p as P } from "./useSort-WcJ_BIws.js";
8
+ import { j as S, k as D, n as h, l as E, m as I, p as b } from "./useSort-WcJ_BIws.js";
9
9
  import { c as U, i as tt, u as et, b as nt, a as rt, d as it, e as st, f as at, g as ot, v as ut } from "./useSort-WcJ_BIws.js";
10
- import { unref as c, ref as b, watch as T, nextTick as B } from "vue";
10
+ import { unref as u, ref as P, watch as T, nextTick as B } from "vue";
11
11
  import { VBR_API_BASE_URL as C } from "./constants.js";
12
- import { E as m, H as x, p as y, G as g, v as V, z as M, i as v, f as O } from "./datetime-EyEBo0-h.js";
12
+ import { E as x, H as y, p as g, G as v, v as V, z as M, i as _, f as O } from "./datetime-EyEBo0-h.js";
13
13
  var R = /* @__PURE__ */ function() {
14
14
  function e(t, n) {
15
15
  this.xf = n, this.f = t, this.found = !1;
16
16
  }
17
- return e.prototype["@@transducer/init"] = m.init, e.prototype["@@transducer/result"] = function(t) {
17
+ return e.prototype["@@transducer/init"] = x.init, e.prototype["@@transducer/result"] = function(t) {
18
18
  return this.found || (t = this.xf["@@transducer/step"](t, void 0)), this.xf["@@transducer/result"](t);
19
19
  }, e.prototype["@@transducer/step"] = function(t, n) {
20
- return this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, n))), t;
20
+ return this.f(n) && (this.found = !0, t = y(this.xf["@@transducer/step"](t, n))), t;
21
21
  }, e;
22
22
  }();
23
23
  function A(e) {
@@ -25,8 +25,8 @@ function A(e) {
25
25
  return new R(e, t);
26
26
  };
27
27
  }
28
- var F = /* @__PURE__ */ y(
29
- /* @__PURE__ */ g(["find"], A, function(t, n) {
28
+ var F = /* @__PURE__ */ g(
29
+ /* @__PURE__ */ v(["find"], A, function(t, n) {
30
30
  for (var r = 0, i = n.length; r < i; ) {
31
31
  if (t(n[r]))
32
32
  return n[r];
@@ -37,10 +37,10 @@ var F = /* @__PURE__ */ y(
37
37
  function e(t, n) {
38
38
  this.xf = n, this.f = t, this.idx = -1, this.found = !1;
39
39
  }
40
- return e.prototype["@@transducer/init"] = m.init, e.prototype["@@transducer/result"] = function(t) {
40
+ return e.prototype["@@transducer/init"] = x.init, e.prototype["@@transducer/result"] = function(t) {
41
41
  return this.found || (t = this.xf["@@transducer/step"](t, -1)), this.xf["@@transducer/result"](t);
42
42
  }, e.prototype["@@transducer/step"] = function(t, n) {
43
- return this.idx += 1, this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, this.idx))), t;
43
+ return this.idx += 1, this.f(n) && (this.found = !0, t = y(this.xf["@@transducer/step"](t, this.idx))), t;
44
44
  }, e;
45
45
  }();
46
46
  function X(e) {
@@ -48,8 +48,8 @@ function X(e) {
48
48
  return new G(e, t);
49
49
  };
50
50
  }
51
- var Y = /* @__PURE__ */ y(
52
- /* @__PURE__ */ g([], X, function(t, n) {
51
+ var Y = /* @__PURE__ */ g(
52
+ /* @__PURE__ */ v([], X, function(t, n) {
53
53
  for (var r = 0, i = n.length; r < i; ) {
54
54
  if (t(n[r]))
55
55
  return r;
@@ -57,11 +57,11 @@ var Y = /* @__PURE__ */ y(
57
57
  }
58
58
  return -1;
59
59
  })
60
- ), _ = /* @__PURE__ */ V(function(t, n, r) {
60
+ ), w = /* @__PURE__ */ V(function(t, n, r) {
61
61
  return t(M(n, r));
62
62
  });
63
63
  const j = async (e, t, n) => {
64
- const r = `${C}${c(e)}?${K(n)}`;
64
+ const r = `${C}${u(e)}?${K(n)}`;
65
65
  return new Promise((i, o) => {
66
66
  fetch(r, {
67
67
  method: "GET",
@@ -82,11 +82,11 @@ const j = async (e, t, n) => {
82
82
  var t;
83
83
  return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
84
84
  }, W = (e = {}) => {
85
- const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = b(c(t)), s = (a) => v(a, "day");
85
+ const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) => _(a, "day");
86
86
  return S(n, () => {
87
87
  if (!i)
88
88
  return;
89
- const a = Y(_(s, "gameDate"))(c(n));
89
+ const a = Y(w(s, "gameDate"))(u(n));
90
90
  o.value = a === -1 ? 1 : Math.floor(a / r) + 1;
91
91
  }), {
92
92
  page: o,
@@ -94,29 +94,29 @@ const j = async (e, t, n) => {
94
94
  o.value = a;
95
95
  }
96
96
  };
97
- }, Z = ({ options: e = {}, transform: t = (i) => i, onError: n = p, onSuccess: r = p }) => {
98
- const { path: i, apiKey: o, params: s, resetOnExecute: u = !1, immediate: f = !1 } = e, {
97
+ }, Z = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
98
+ const { path: i, apiKey: o, params: s, resetOnExecute: d = !1, immediate: c = !1 } = e, {
99
99
  state: a,
100
- error: h,
100
+ error: f,
101
101
  isLoading: l,
102
- execute: d
103
- } = D(() => j(i, o, c(s)).then((w) => t(w)), [], {
104
- immediate: f,
105
- resetOnExecute: u,
102
+ execute: m
103
+ } = D(() => j(i, o, u(s)).then((p) => t(p)), [], {
104
+ immediate: c,
105
+ resetOnExecute: d,
106
106
  onError: n,
107
107
  onSuccess: r
108
108
  });
109
109
  return {
110
110
  state: a,
111
- error: h,
111
+ error: f,
112
112
  isLoading: l,
113
- execute: d
113
+ execute: m
114
114
  };
115
115
  };
116
- function q(e = !1, t = p, n = p) {
116
+ function q(e = !1, t = h, n = h) {
117
117
  const r = E();
118
118
  T(r, (i) => {
119
- if (c(e)) {
119
+ if (u(e)) {
120
120
  if (i === "visible")
121
121
  return t();
122
122
  n();
@@ -124,24 +124,25 @@ function q(e = !1, t = p, n = p) {
124
124
  });
125
125
  }
126
126
  const H = (e = {}) => {
127
- const { items: t = [], element: n, offset: r = 0 } = e, i = (u) => v(u, "day"), o = () => {
128
- var d;
129
- s();
130
- const u = F(_(i, "gameDate"))(c(t));
131
- if (!u)
127
+ const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) => _(c, "day"), s = () => {
128
+ var p;
129
+ if (d(), !u(i))
132
130
  return;
133
- const f = O(u.gameDate, "YYYY-MM-DD"), a = P(n).querySelector(`div[data-gamedate="${f}"]`);
134
- if (!a)
131
+ const c = F(w(o, "gameDate"))(u(t));
132
+ if (!c)
135
133
  return;
136
- const h = getComputedStyle(a).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, l = (((d = a.getBoundingClientRect()) == null ? void 0 : d.top) ?? 0) - c(r) - parseFloat(h);
137
- window.scrollTo(0, l);
138
- }, { stop: s } = I(
134
+ const a = O(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
135
+ if (!f)
136
+ return;
137
+ const l = getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, m = (((p = f.getBoundingClientRect()) == null ? void 0 : p.top) ?? 0) - u(r) - parseFloat(l);
138
+ window.scrollTo(0, m);
139
+ }, { stop: d } = I(
139
140
  () => ({
140
- items: c(t),
141
- element: c(n)
141
+ items: u(t),
142
+ element: u(n)
142
143
  }),
143
- async ({ items: u, element: f }) => {
144
- u.length === 0 || !f || (await B(), o());
144
+ async ({ items: c, element: a }) => {
145
+ c.length === 0 || !a || (await B(), s());
145
146
  }
146
147
  );
147
148
  };
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:09
3
+ * version: v2.2.1 - 04/01/2024, 22:10:52
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- var MjszVbrElementsCore=function(w,n){"use strict";var Pn={VITE_VBR_API_URL:"https://api.icehockey.hu/vbr",VITE_VBR_API_KEY:"",VITE_USER_NODE_ENV:"production",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const nt=t=>(Pn.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Ie={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,o=e,a=nt("base-input"),s=n.computed({get:()=>r.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>n.withDirectives((n.openBlock(),n.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>s.value=u),class:n.normalizeClass([n.unref(a),"is-select"])},[n.renderSlot(i.$slots,"default")],2)),[[n.vModelSelect,s.value]])}};function ze(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function rt(t){return typeof t=="function"?t():n.unref(t)}const jt=typeof window<"u",ot=()=>{},kn=En();function En(){var t;return jt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function vn(t,e){function r(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return r}const Re=t=>t();function An(t=Re){const e=n.ref(!0);function r(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:n.readonly(e),pause:r,resume:o,eventFilter:a}}function ae(t,e=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(r):o,t)})}function se(t,e=!1){function r(p,{flush:f="sync",deep:d=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const $=[new Promise(k=>{y=n.watch(t,A=>{p(A)!==e&&(y==null||y(),k(A))},{flush:f,deep:d,immediate:!0})})];return g!=null&&$.push(ae(g,h).then(()=>rt(t)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(p,f){if(!n.isRef(p))return r(A=>A===p,f);const{flush:d="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=f??{};let T=null;const k=[new Promise(A=>{T=n.watch([t,p],([v,M])=>{e!==(v===M)&&(T==null||T(),A(v))},{flush:d,deep:g,immediate:!0})})];return h!=null&&k.push(ae(h,y).then(()=>rt(t)).finally(()=>(T==null||T(),rt(t)))),Promise.race(k)}function a(p){return r(f=>!!f,p)}function s(p){return o(null,p)}function i(p){return o(void 0,p)}function l(p){return r(Number.isNaN,p)}function u(p,f){return r(d=>{const g=Array.from(d);return g.includes(p)||g.includes(rt(p))},f)}function c(p){return m(1,p)}function m(p=1,f){let d=-1;return r(()=>(d+=1,d>=p),f)}return Array.isArray(rt(t))?{toMatch:r,toContains:u,changed:c,changedTimes:m,get not(){return se(t,!e)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:c,changedTimes:m,get not(){return se(t,!e)}}}function Nn(t){return se(t)}function xn(t,e,r={}){const{immediate:o=!0}=r,a=n.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function u(...c){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...c)},rt(e))}return o&&(a.value=!0,jt&&u()),ze(l),{isPending:n.readonly(a),start:u,stop:l}}var Ve=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Ln=(t,e)=>{var r={};for(var o in t)Dn.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ve)for(var o of Ve(t))e.indexOf(o)<0&&Mn.call(t,o)&&(r[o]=t[o]);return r};function Cn(t,e,r={}){const o=r,{eventFilter:a=Re}=o,s=Ln(o,["eventFilter"]);return n.watch(t,vn(a,e),s)}function Bn(t,e,r){const o=n.watch(t,(...a)=>(n.nextTick(()=>o()),e(...a)),r)}var In=Object.defineProperty,zn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Fe=(t,e,r)=>e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vn=(t,e)=>{for(var r in e||(e={}))Ge.call(e,r)&&Fe(t,r,e[r]);if(Ft)for(var r of Ft(e))je.call(e,r)&&Fe(t,r,e[r]);return t},Gn=(t,e)=>zn(t,Rn(e)),jn=(t,e)=>{var r={};for(var o in t)Ge.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ft)for(var o of Ft(t))e.indexOf(o)<0&&je.call(t,o)&&(r[o]=t[o]);return r};function Fn(t,e,r={}){const o=r,{eventFilter:a}=o,s=jn(o,["eventFilter"]),{eventFilter:i,pause:l,resume:u,isActive:c}=An(a);return{stop:Cn(t,e,Gn(Vn({},s),{eventFilter:i})),pause:l,resume:u,isActive:c}}function Yn(t,e,r){return n.watch(t,(o,a,s)=>{o&&e(o,a,s)},r)}function Ot(t){var e;const r=rt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Ye=jt?window:void 0,Un=jt?window.document:void 0;function Yt(...t){let e,r,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,a]=t,e=Ye):[e,r,o,a]=t,!e)return ot;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(m=>m()),s.length=0},l=(m,p,f,d)=>(m.addEventListener(p,f,d),()=>m.removeEventListener(p,f,d)),u=n.watch(()=>[Ot(e),rt(a)],([m,p])=>{i(),m&&s.push(...r.flatMap(f=>o.map(d=>l(m,f,d,p))))},{immediate:!0,flush:"post"}),c=()=>{u(),i()};return ze(c),c}let Ue=!1;function Hn(t,e,r={}){const{window:o=Ye,ignore:a=[],capture:s=!0,detectIframe:i=!1}=r;if(!o)return;kn&&!Ue&&(Ue=!0,Array.from(o.document.body.children).forEach(f=>f.addEventListener("click",ot)));let l=!0;const u=f=>a.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(g=>g===f.target||f.composedPath().includes(g));{const g=Ot(d);return g&&(f.target===g||f.composedPath().includes(g))}}),m=[Yt(o,"click",f=>{const d=Ot(t);if(!(!d||d===f.target||f.composedPath().includes(d))){if(f.detail===0&&(l=!u(f)),!l){l=!0;return}e(f)}},{passive:!0,capture:s}),Yt(o,"pointerdown",f=>{const d=Ot(t);d&&(l=!f.composedPath().includes(d)&&!u(f))},{passive:!0}),i&&Yt(o,"blur",f=>{var d;const g=Ot(t);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(o.document.activeElement))&&e(f)})].filter(Boolean);return()=>m.forEach(f=>f())}var Wn=Object.defineProperty,Kn=Object.defineProperties,qn=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,We=(t,e,r)=>e in t?Wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jn=(t,e)=>{for(var r in e||(e={}))Zn.call(e,r)&&We(t,r,e[r]);if(He)for(var r of He(e))Xn.call(e,r)&&We(t,r,e[r]);return t},Qn=(t,e)=>Kn(t,qn(e));function Ke(t,e,r){const{immediate:o=!0,delay:a=0,onError:s=ot,onSuccess:i=ot,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=r??{},m=u?n.shallowRef(e):n.ref(e),p=n.ref(!1),f=n.ref(!1),d=n.shallowRef(void 0);async function g(T=0,...$){l&&(m.value=e),d.value=void 0,p.value=!1,f.value=!0,T>0&&await ae(T);const k=typeof t=="function"?t(...$):t;try{const A=await k;m.value=A,p.value=!0,i(A)}catch(A){if(d.value=A,s(A),c)throw A}finally{f.value=!1}return m.value}o&&g(a);const h={state:m,isReady:p,isLoading:f,error:d,execute:g};function y(){return new Promise((T,$)=>{Nn(f).toBe(!1).then(()=>T(h)).catch($)})}return Qn(Jn({},h),{then(T,$){return y().then(T,$)}})}function to({document:t=Un}={}){if(!t)return n.ref("visible");const e=n.ref(t.visibilityState);return Yt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var eo=Object.defineProperty,qe=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Ze=(t,e,r)=>e in t?eo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oo=(t,e)=>{for(var r in e||(e={}))ro.call(e,r)&&Ze(t,r,e[r]);if(qe)for(var r of qe(e))no.call(e,r)&&Ze(t,r,e[r]);return t};async function ao(t){return new Promise((e,r)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:u,crossorigin:c}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),u&&(o.loading=u),c&&(o.crossOrigin=c),o.onload=()=>e(o),o.onerror=r})}function so(t,e={}){const r=Ke(()=>ao(rt(t)),void 0,oo({resetOnExecute:!0},e));return n.watch(()=>rt(t),()=>r.execute(e.delay),{deep:!0}),r}function Xe(t=[],e={}){const{delay:r=0}=e,o=n.ref(!1),a=n.computed(()=>{const l=n.unref(t);return Array.isArray(l)?l.map(u=>n.unref(u)).some(Boolean):l}),{start:s,stop:i}=xn(()=>{o.value=!0},r);return n.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(r){return arguments.length===0||G(r)?e:t.apply(this,arguments)}}function z(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return G(r)?e:j(function(a){return t(r,a)});default:return G(r)&&G(o)?e:G(r)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(r,a)}):t(r,o)}}}function Ut(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,o){return e.apply(this,arguments)};case 3:return function(r,o,a){return e.apply(this,arguments)};case 4:return function(r,o,a,s){return e.apply(this,arguments)};case 5:return function(r,o,a,s,i){return e.apply(this,arguments)};case 6:return function(r,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(r,o,a,s,i,l,u){return e.apply(this,arguments)};case 8:return function(r,o,a,s,i,l,u,c){return e.apply(this,arguments)};case 9:return function(r,o,a,s,i,l,u,c,m){return e.apply(this,arguments)};case 10:return function(r,o,a,s,i,l,u,c,m,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ie(t,e,r){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?r.apply(this,o):Ut(s,ie(t,o,r))}}var vt=z(function(e,r){return e===1?j(r):Ut(e,ie(e,[],r))});function X(t){return function e(r,o,a){switch(arguments.length){case 0:return e;case 1:return G(r)?e:z(function(s,i){return t(r,s,i)});case 2:return G(r)&&G(o)?e:G(r)?z(function(s,i){return t(s,o,i)}):G(o)?z(function(s,i){return t(r,s,i)}):j(function(s){return t(r,o,s)});default:return G(r)&&G(o)&&G(a)?e:G(r)&&G(o)?z(function(s,i){return t(s,i,a)}):G(r)&&G(a)?z(function(s,i){return t(s,o,i)}):G(o)&&G(a)?z(function(s,i){return t(r,s,i)}):G(r)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(r,s,a)}):G(a)?j(function(s){return t(r,o,s)}):t(r,o,a)}}}const At=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function io(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Nt(t,e,r){return function(){if(arguments.length===0)return r();var o=arguments[arguments.length-1];if(!At(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(io(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return r.apply(this,arguments)}}function le(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Je(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Qe(t,e,r){for(var o=0,a=r.length;o<a;){if(t(e,r[o]))return!0;o+=1}return!1}function lo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Q(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function co(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ce=typeof Object.is=="function"?Object.is:co;var tr=Object.prototype.toString,er=function(){return tr.call(arguments)==="[object Arguments]"?function(e){return tr.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),uo=!{toString:null}.propertyIsEnumerable("toString"),rr=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],nr=function(){return arguments.propertyIsEnumerable("length")}(),fo=function(e,r){for(var o=0;o<e.length;){if(e[o]===r)return!0;o+=1}return!1},gt=j(typeof Object.keys=="function"&&!nr?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,o,a=[],s=nr&&er(e);for(r in e)Q(r,e)&&(!s||r!=="length")&&(a[a.length]=r);if(uo)for(o=rr.length-1;o>=0;)r=rr[o],Q(r,e)&&!fo(a,r)&&(a[a.length]=r),o-=1;return a}),ue=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function or(t,e,r,o){var a=Je(t),s=Je(e);function i(l,u){return de(l,u,r.slice(),o.slice())}return!Qe(function(l,u){return!Qe(i,u,l)},s,a)}function de(t,e,r,o){if(ce(t,e))return!0;var a=ue(t);if(a!==ue(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&lo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ce(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ce(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:or(t.entries(),e.entries(),r.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:or(t.values(),e.values(),r.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=gt(t);if(i.length!==gt(e).length)return!1;var l=r.concat([t]),u=o.concat([e]);for(s=i.length-1;s>=0;){var c=i[s];if(!(Q(c,e)&&de(e[c],t[c],l,u)))return!1;s-=1}return!0}var Ht=z(function(e,r){return de(e,r,[],[])});function mo(t,e,r){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;r<t.length;){if(a=t[r],a===0&&1/a===o)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(a=t[r],typeof a=="number"&&a!==a)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ht(t[r],e))return r;r+=1}return-1}function ar(t,e){return mo(e,t,0)>=0}function Wt(t,e){for(var r=0,o=e.length,a=Array(o);r<o;)a[r]=t(e[r]),r+=1;return a}function fe(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var xt=function(e){return(e<10?"0":"")+e},po=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xt(e.getUTCMonth()+1)+"-"+xt(e.getUTCDate())+"T"+xt(e.getUTCHours())+":"+xt(e.getUTCMinutes())+":"+xt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ho(t){return function(){return!t.apply(this,arguments)}}function sr(t,e,r){for(var o=0,a=r.length;o<a;)e=t(e,r[o]),o+=1;return e}function go(t,e){for(var r=0,o=e.length,a=[];r<o;)t(e[r])&&(a[a.length]=e[r]),r+=1;return a}function Kt(t){return Object.prototype.toString.call(t)==="[object Object]"}var yo=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function bo(t){return function(e){return new yo(t,e)}}var ir=z(Nt(["fantasy-land/filter","filter"],bo,function(t,e){return Kt(e)?sr(function(r,o){return t(e[o])&&(r[o]=e[o]),r},{},gt(e)):go(t,e)})),wo=z(function(e,r){return ir(ho(e),r)});function lr(t,e){var r=function(i){var l=e.concat([t]);return ar(i,l)?"<Circular>":lr(i,l)},o=function(s,i){return Wt(function(l){return fe(l)+": "+r(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Wt(r,t).join(", ")+"))";case"[object Array]":return"["+Wt(r,t).concat(o(t,wo(function(s){return/^\d+$/.test(s)},gt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):fe(po(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":fe(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,gt(t)).join(", ")+"}"}}var me=j(function(e){return lr(e,[])}),So=z(function(e,r){if(e===r)return r;function o(u,c){if(u>c!=c>u)return c>u?c:u}var a=o(e,r);if(a!==void 0)return a;var s=o(typeof e,typeof r);if(s!==void 0)return s===typeof e?e:r;var i=me(e),l=o(i,me(r));return l!==void 0&&l===i?e:r}),_o=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),To=function(e){return function(r){return new _o(e,r)}},Oo=z(Nt(["fantasy-land/map","map"],To,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return vt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return sr(function(o,a){return o[a]=e(r[a]),o},{},gt(r));default:return Wt(e,r)}}));const lt=Oo,qt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var cr=z(function(e,r){var o=e<0?r.length+e:e;return Zt(r)?r.charAt(o):r[o]}),yt=z(function(e,r){if(r!=null)return qt(e)?cr(e,r):r[e]}),$o=z(function(e,r){return lt(yt(e),r)}),Po=j(function(e){return At(e)?!0:!e||typeof e!="object"||Zt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),ur=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ko(t,e,r){return function(a,s,i){if(Po(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[ur]!=null)return r(a,s,i[ur]());if(typeof i.next=="function")return r(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Eo(t,e,r){for(var o=0,a=r.length;o<a;){if(e=t["@@transducer/step"](e,r[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var vo=z(function(e,r){return Ut(e.length,function(){return e.apply(r,arguments)})});function Ao(t,e,r){for(var o=r.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=r.next()}return t["@@transducer/result"](e)}function No(t,e,r,o){return t["@@transducer/result"](r[o](vo(t["@@transducer/step"],t),e))}var dr=ko(Eo,No,Ao),xo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function fr(t){return new xo(t)}var Do=X(function(t,e,r){return dr(typeof t=="function"?fr(t):t,e,r)});const mr=Do;var pr=j(function(e){return function(){return e}}),Mo=j(function(e){return vt(mr(So,0,$o("length",e)),function(){for(var r=0,o=e.length;r<o;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})}),pe=X(function(e,r,o){var a=e(r),s=e(o);return a<s?-1:a>s?1:0});function Lo(t,e,r){if(qt(t)&&At(r)){var o=[].concat(r);return o[t]=e,o}var a={};for(var s in r)a[s]=r[s];return a[t]=e,a}var Co=j(function(e){return e==null}),Bo=X(function t(e,r,o){if(e.length===0)return r;var a=e[0];if(e.length>1){var s=!Co(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:qt(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,s)}return Lo(a,r,o)}),Io=X(function(e,r,o){return Bo([e],r,o)});function zo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ro(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function he(t,e,r){if(r||(r=new Go),Vo(t))return t;var o=function(s){var i=r.get(t);if(i)return i;r.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?he(t[l],!0,r):t[l]);return s};switch(ue(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return Ro(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Vo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Go=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var o in e)r.push(Object.prototype.toString.call(e[o]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),o=this.map[r];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function jo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ge(t,e){return function(){var r=arguments.length;if(r===0)return e();var o=arguments[r-1];return At(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var Fo=X(ge("slice",function(e,r,o){return Array.prototype.slice.call(o,e,r)})),Yo=j(ge("tail",Fo(1,1/0)));const Uo=Yo;function Xt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ut(arguments[0].length,mr(jo,arguments[0],Uo(arguments)))}var Ho=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Wo=Ho;function hr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Xt.apply(this,Wo(arguments))}var Ko=j(function(e){return vt(e.length,e)}),qo=function(){function t(e,r,o,a){this.valueFn=e,this.valueAcc=r,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Q(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,he(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),e},t}();function Zo(t,e,r){return function(o){return new qo(t,e,r,o)}}var Xo=ie(4,[],Nt([],Zo,function(e,r,o,a){var s=fr(function(i,l){var u=o(l),c=e(Q(u,i)?i[u]:he(r,!1),l);return c&&c["@@transducer/reduced"]?le(i):(i[u]=c,i)});return dr(s,{},a)})),Jo=X(function(e,r,o){var a=e(r),s=e(o);return a>s?-1:a<s?1:0});const Qo=Jo;function ta(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var ea=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():At(e)?[]:Zt(e)?"":Kt(e)?{}:er(e)?function(){return arguments}():ta(e)?e.constructor.from(""):void 0}),ra=function(){function t(e,r){this.xf=r,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)&&(this.found=!0,e=le(this.xf["@@transducer/step"](e,r))),e},t}();function na(t){return function(e){return new ra(t,e)}}var oa=z(Nt(["find"],na,function(e,r){for(var o=0,a=r.length;o<a;){if(e(r[o]))return r[o];o+=1}})),aa=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=le(this.xf["@@transducer/step"](e,this.idx))),e},t}();function sa(t){return function(e){return new aa(t,e)}}var ia=z(Nt([],sa,function(e,r){for(var o=0,a=r.length;o<a;){if(e(r[o]))return o;o+=1}return-1})),la=z(ge("groupBy",Xo(function(t,e){return t.push(e),t},[]))),ca=X(function(e,r,o){return vt(Math.max(e.length,r.length,o.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):o.apply(this,arguments)})});const ua=ca;var da=z(ar),gr=z(function(e,r){return vt(e+1,function(){var o=arguments[e];if(o!=null&&zo(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(me(o)+' does not have a method named "'+r+'"')})}),fa=j(function(e){return e!=null&&Ht(e,ea(e))}),ma=z(function(e,r){return function(o){return function(a){return lt(function(s){return r(s,a)},o(e(a)))}}}),pa=z(function(e,r){return e.map(function(o){for(var a=r,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=qt(i)?cr(i,a):a[i],s+=1}return a})}),ye=z(function(e,r){return pa([e],r)[0]}),ha=j(function(e){return ma(yt(e),Io(e))}),ga=X(function(e,r,o){var a={},s;r=r||{},o=o||{};for(s in r)Q(s,r)&&(a[s]=Q(s,o)?e(s,r[s],o[s]):r[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),ya=X(function t(e,r,o){return ga(function(a,s,i){return Kt(s)&&Kt(i)?t(e,s,i):e(a,s,i)},r,o)}),ba=z(function(e,r){return ya(function(o,a,s){return s},e,r)});const wa=ba;var Sa=z(function(e,r){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in r)a.hasOwnProperty(l)||(o[l]=r[l]);return o}),yr=function(t){return{value:t,map:function(e){return yr(e(t))}}},_a=X(function(e,r,o){return e(function(a){return yr(r(a))})(o).value}),br=X(function(e,r,o){return e(yt(r,o))}),Ta=X(function(e,r,o){return o.replace(e,r)}),Oa=z(function(e,r){return Array.prototype.slice.call(r,0).sort(e)}),$a=z(function(e,r){return Array.prototype.slice.call(r,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const wr=$a;var $t=gr(1,"split"),Sr=gr(0,"toLowerCase"),Dt=`
9
- \v\f\r                 \u2028\u2029\uFEFF`,Pa="​",ka=typeof String.prototype.trim=="function",Ea=j(!ka||Dt.trim()||!Pa.trim()?function(e){var r=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return e.replace(r,"").replace(o,"")}:function(e){return e.trim()});const Jt=Ea,_r=Symbol("I18nContext"),K=n.reactive({messages:{},locale:"",fallbackLocale:""}),Tr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const o=(u,c={})=>{const m=!fa(c),p=lt(Jt,$t(".",u));return n.computed(()=>{const d=Or(p);return m?Aa(d,c):d}).value},a=u=>{const c=lt(Jt,$t(".",u));return!!be(K.locale,c,K.messages)},s=u=>{K.locale=u},l={locale:n.computed({get(){return K.locale},set(u){K.locale=u}}),setLocale:s,translate:o,hasTranlation:a};return n.provide(_r,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=va();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},va=()=>{const t=n.inject(_r,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Or=(t=[])=>{let e=be(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=be(K.fallbackLocale,t,K.messages)),e||t.join(".")};function be(t,e,r){return ye([t,...e],r)}const Aa=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,o){return e[o]})},$r=n.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=lt(Jt,$t(".",t.path)),o=Or(r),a=$t(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>n.h(t.tag,s)}}),Pr="https://api.icehockey.hu/vbr",kr="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Er="https://jegkorongszovetseg.hu/assets/images/player_blank.png",vr="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Ar="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Nr="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",xr=new Map().set("hu","hu-hu").set("en","hu-gb"),Dr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Na=1e3*60*5,Mr=1e3,xa={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Da=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ma=[Da];function La(t,e){return n.openBlock(),n.createElementBlock("svg",xa,Ma)}const Lr={render:La},Ca={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ba=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ia=[Ba];function za(t,e){return n.openBlock(),n.createElementBlock("svg",Ca,Ia)}const Ra={render:za},Va={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ga=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),ja=[Ga];function Fa(t,e){return n.openBlock(),n.createElementBlock("svg",Va,ja)}const Ya={render:Fa};function Mt(t){return t.split("-")[1]}function we(t){return t==="y"?"height":"width"}function bt(t){return t.split("-")[0]}function Lt(t){return["top","bottom"].includes(bt(t))?"x":"y"}function Cr(t,e,r){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=Lt(e),u=we(l),c=o[u]/2-a[u]/2,m=l==="x";let p;switch(bt(e)){case"top":p={x:s,y:o.y-a.height};break;case"bottom":p={x:s,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:i};break;case"left":p={x:o.x-a.width,y:i};break;default:p={x:o.x,y:o.y}}switch(Mt(e)){case"start":p[l]-=c*(r&&m?-1:1);break;case"end":p[l]+=c*(r&&m?-1:1)}return p}const Ua=async(t,e,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=r,l=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:p}=Cr(c,o,u),f=o,d={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:T}=l[h],{x:$,y:k,data:A,reset:v}=await T({x:m,y:p,initialPlacement:o,placement:f,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:t,floating:e}});m=$??m,p=k??p,d={...d,[y]:{...d[y],...A}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(f=v.placement),v.rects&&(c=v.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):v.rects),{x:m,y:p}=Cr(c,f,u)),h=-1)}return{x:m,y:p,placement:f,strategy:a,middlewareData:d}};function Br(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Qt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Ir(t,e){var r;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=e,g=Br(d),h=l[f?p==="floating"?"reference":"floating":p],y=Qt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(h)))==null||r?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:m,strategy:u})),T=p==="floating"?{...i.floating,x:o,y:a}:i.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=await(s.isElement==null?void 0:s.isElement($))&&await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1},A=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:$,strategy:u}):T);return{top:(y.top-A.top+g.top)/k.y,bottom:(A.bottom-y.bottom+g.bottom)/k.y,left:(y.left-A.left+g.left)/k.x,right:(A.right-y.right+g.right)/k.x}}const Ha=Math.min,Wa=Math.max;function Se(t,e,r){return Wa(t,Ha(e,r))}const zr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:u,elements:c}=e;if(r==null)return{};const m=Br(o),p={x:a,y:s},f=Lt(i),d=we(f),g=await u.getDimensions(r),h=f==="y",y=h?"top":"left",T=h?"bottom":"right",$=h?"clientHeight":"clientWidth",k=l.reference[d]+l.reference[f]-p[f]-l.floating[d],A=p[f]-l.reference[f],v=await(u.getOffsetParent==null?void 0:u.getOffsetParent(r));let M=v?v[$]:0;M&&await(u.isElement==null?void 0:u.isElement(v))||(M=c.floating[$]||l.floating[d]);const I=k/2-A/2,V=m[y],L=M-g[d]-m[T],x=M/2-g[d]/2+I,R=Se(V,x,L),H=Mt(i)!=null&&x!=R&&l.reference[d]/2-(x<V?m[y]:m[T])-g[d]/2<0;return{[f]:p[f]-(H?x<V?V-x:L-x:0),data:{[f]:R,centerOffset:x-R}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ka={left:"right",right:"left",bottom:"top",top:"bottom"};function te(t){return t.replace(/left|right|bottom|top/g,e=>Ka[e])}function qa(t,e,r){r===void 0&&(r=!1);const o=Mt(t),a=Lt(t),s=we(a);let i=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=te(i)),{main:i,cross:te(i)}}const Za={start:"end",end:"start"};function _e(t){return t.replace(/start|end/g,e=>Za[e])}const Xa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...h}=t,y=bt(o),T=bt(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=p||(T||!g?[te(i)]:function(R){const H=te(R);return[_e(R),H,_e(H)]}(i));p||d==="none"||k.push(...function(R,H,E,O){const _=Mt(R);let P=function(S,N,D){const C=["left","right"],Y=["right","left"],F=["top","bottom"],W=["bottom","top"];switch(S){case"top":case"bottom":return D?N?Y:C:N?C:Y;case"left":case"right":return N?F:W;default:return[]}}(bt(R),E==="start",O);return _&&(P=P.map(S=>S+"-"+_),H&&(P=P.concat(P.map(_e)))),P}(i,g,d,$));const A=[i,...k],v=await Ir(e,h),M=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&M.push(v[y]),m){const{main:R,cross:H}=qa(o,s,$);M.push(v[R],v[H])}if(I=[...I,{placement:o,overflows:M}],!M.every(R=>R<=0)){var V,L;const R=(((V=a.flip)==null?void 0:V.index)||0)+1,H=A[R];if(H)return{data:{index:R,overflows:I},reset:{placement:H}};let E=(L=I.filter(O=>O.overflows[0]<=0).sort((O,_)=>O.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!E)switch(f){case"bestFit":{var x;const O=(x=I.map(_=>[_.placement,_.overflows.filter(P=>P>0).reduce((P,S)=>P+S,0)]).sort((_,P)=>_[1]-P[1])[0])==null?void 0:x[0];O&&(E=O);break}case"initialPlacement":E=i}if(o!==E)return{reset:{placement:E}}}return{}}}},Ja=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,a=await async function(s,i){const{placement:l,platform:u,elements:c}=s,m=await(u.isRTL==null?void 0:u.isRTL(c.floating)),p=bt(l),f=Mt(l),d=Lt(l)==="x",g=["left","top"].includes(p)?-1:1,h=m&&d?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:T,crossAxis:$,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return f&&typeof k=="number"&&($=f==="end"?-1*k:k),d?{x:$*h,y:T*g}:{x:T*g,y:$*h}}(e,t);return{x:r+a.x,y:o+a.y,data:a}}}};function Qa(t){return t==="x"?"y":"x"}const ts=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:T,y:$}=y;return{x:T,y:$}}},...u}=t,c={x:r,y:o},m=await Ir(e,u),p=Lt(bt(a)),f=Qa(p);let d=c[p],g=c[f];if(s){const y=p==="y"?"bottom":"right";d=Se(d+m[p==="y"?"top":"left"],d,d-m[y])}if(i){const y=f==="y"?"bottom":"right";g=Se(g+m[f==="y"?"top":"left"],g,g-m[y])}const h=l.fn({...e,[p]:d,[f]:g});return{...h,data:{x:h.x-r,y:h.y-o}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){return J(t).getComputedStyle(t)}function Rr(t){return t instanceof J(t).Node}function ut(t){return Rr(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function Z(t){return t instanceof J(t).Element}function Vr(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Ct(t){const{overflow:e,overflowX:r,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(a)}function es(t){return["table","td","th"].includes(ut(t))}function Te(t){const e=Oe(),r=tt(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Oe(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ee(t){return["html","body","#document"].includes(ut(t))}const Gr=Math.min,Bt=Math.max,re=Math.round;function jr(t){const e=tt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(t),s=a?t.offsetWidth:r,i=a?t.offsetHeight:o,l=re(r)!==s||re(o)!==i;return l&&(r=s,o=i),{width:r,height:o,fallback:l}}function Fr(t){return Z(t)?t:t.contextElement}const Yr={x:1,y:1};function Pt(t){const e=Fr(t);if(!et(e))return Yr;const r=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=jr(e);let i=(s?re(r.width):r.width)/o,l=(s?re(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Ur={x:0,y:0};function Hr(t,e,r){var o,a;if(e===void 0&&(e=!0),!Oe())return Ur;const s=t?J(t):window;return!r||e&&r!==s?Ur:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function wt(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),s=Fr(t);let i=Yr;e&&(o?Z(o)&&(i=Pt(o)):i=Pt(t));const l=Hr(s,r,o);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,m=a.width/i.x,p=a.height/i.y;if(s){const f=J(s),d=o&&Z(o)?J(o):o;let g=f.frameElement;for(;g&&o&&d!==f;){const h=Pt(g),y=g.getBoundingClientRect(),T=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(T.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat(T.paddingTop))*h.y,u*=h.x,c*=h.y,m*=h.x,p*=h.y,u+=y.x,c+=y.y,g=J(g).frameElement}}return Qt({width:m,height:p,x:u,y:c})}function dt(t){return((Rr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wr(t){return wt(dt(t)).left+ne(t).scrollLeft}function kt(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vr(t)&&t.host||dt(t);return Vr(e)?e.host:e}function Kr(t){const e=kt(t);return ee(e)?e.ownerDocument.body:et(e)&&Ct(e)?e:Kr(e)}function It(t,e){var r;e===void 0&&(e=[]);const o=Kr(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Ct(o)?o:[]):e.concat(o,It(o))}function qr(t,e,r){let o;if(e==="viewport")o=function(a,s){const i=J(a),l=dt(a),u=i.visualViewport;let c=l.clientWidth,m=l.clientHeight,p=0,f=0;if(u){c=u.width,m=u.height;const d=Oe();(!d||d&&s==="fixed")&&(p=u.offsetLeft,f=u.offsetTop)}return{width:c,height:m,x:p,y:f}}(t,r);else if(e==="document")o=function(a){const s=dt(a),i=ne(a),l=a.ownerDocument.body,u=Bt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),c=Bt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let m=-i.scrollLeft+Wr(a);const p=-i.scrollTop;return tt(l).direction==="rtl"&&(m+=Bt(s.clientWidth,l.clientWidth)-u),{width:u,height:c,x:m,y:p}}(dt(t));else if(Z(e))o=function(a,s){const i=wt(a,!0,s==="fixed"),l=i.top+a.clientTop,u=i.left+a.clientLeft,c=et(a)?Pt(a):{x:1,y:1};return{width:a.clientWidth*c.x,height:a.clientHeight*c.y,x:u*c.x,y:l*c.y}}(e,r);else{const a=Hr(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Qt(o)}function Zr(t,e){const r=kt(t);return!(r===e||!Z(r)||ee(r))&&(tt(r).position==="fixed"||Zr(r,e))}function Xr(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Jr(t,e){const r=J(t);if(!et(t))return r;let o=Xr(t,e);for(;o&&es(o)&&tt(o).position==="static";)o=Xr(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!Te(o))?r:o||function(a){let s=kt(a);for(;et(s)&&!ee(s);){if(Te(s))return s;s=kt(s)}return null}(t)||r}function rs(t,e,r){const o=et(e),a=dt(e),s=r==="fixed",i=wt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(o||!o&&!s)if((ut(e)!=="body"||Ct(a))&&(l=ne(e)),et(e)){const c=wt(e,!0,s,e);u.x=c.x+e.clientLeft,u.y=c.y+e.clientTop}else a&&(u.x=Wr(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}const ns={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t;const s=r==="clippingAncestors"?function(c,m){const p=m.get(c);if(p)return p;let f=It(c).filter(y=>Z(y)&&ut(y)!=="body"),d=null;const g=tt(c).position==="fixed";let h=g?kt(c):c;for(;Z(h)&&!ee(h);){const y=tt(h),T=Te(h);T||y.position!=="fixed"||(d=null),(g?!T&&!d:!T&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||Ct(h)&&!T&&Zr(c,h))?f=f.filter($=>$!==h):d=y,h=kt(h)}return m.set(c,f),f}(e,this._c):[].concat(r),i=[...s,o],l=i[0],u=i.reduce((c,m)=>{const p=qr(e,m,a);return c.top=Bt(p.top,c.top),c.right=Gr(p.right,c.right),c.bottom=Gr(p.bottom,c.bottom),c.left=Bt(p.left,c.left),c},qr(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const a=et(r),s=dt(r);if(r===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((a||!a&&o!=="fixed")&&((ut(r)!=="body"||Ct(s))&&(i=ne(r)),et(r))){const c=wt(r);l=Pt(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+u.x,y:e.y*l.y-i.scrollTop*l.y+u.y}},isElement:Z,getDimensions:function(t){return jr(t)},getOffsetParent:Jr,getDocumentElement:dt,getScale:Pt,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const a=this.getOffsetParent||Jr,s=this.getDimensions;return{reference:rs(e,await a(r),o),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function os(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,u=a||s?[...Z(t)?It(t):t.contextElement?It(t.contextElement):[],...It(e)]:[];u.forEach(f=>{const d=!Z(f)&&f.toString().includes("V");!a||l&&!d||f.addEventListener("scroll",r,{passive:!0}),s&&f.addEventListener("resize",r)});let c,m=null;i&&(m=new ResizeObserver(()=>{r()}),Z(t)&&!l&&m.observe(t),Z(t)||!t.contextElement||l||m.observe(t.contextElement),m.observe(e));let p=l?wt(t):null;return l&&function f(){const d=wt(t);!p||d.x===p.x&&d.y===p.y&&d.width===p.width&&d.height===p.height||r(),p=d,c=requestAnimationFrame(f)}(),r(),()=>{var f;u.forEach(d=>{a&&d.removeEventListener("scroll",r),s&&d.removeEventListener("resize",r)}),(f=m)==null||f.disconnect(),m=null,l&&cancelAnimationFrame(c)}}const as=(t,e,r)=>{const o=new Map,a={platform:ns,...r},s={...a.platform,_c:o};return Ua(t,e,{...a,platform:s})},Qr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function ss({middleware:t,placement:e=null,strategy:r,append:o,enabled:a}){const s=n.ref(null),i=n.ref(null),l=n.ref(null),u=n.ref(null),c=n.ref(null),m=n.ref(null),p=n.ref(null),f=n.ref(r??"absolute"),d=n.ref(null),g=()=>{!s.value||!i.value||as(s.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,u.value=y.y,f.value=y.strategy,c.value=y.middlewareData.arrow.x,m.value=y.middlewareData.arrow.y,p.value=y.placement})};n.watch(()=>({reference:n.unref(s),floating:n.unref(i),append:n.unref(o)}),({floating:y,append:T})=>{T&&Qr(y,T),g()},{flush:"post"}),n.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();d.value=os(s.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:u,arrowX:c,arrowY:m,placement:p,reference:s,floating:i,strategy:f,update:g}}const is=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(o){return n.isRef(e)?e.value!=null?zr({element:e.value,padding:r}).fn(o):{}:e?zr({element:e,padding:r}).fn(o):{}}}},ls=["data-placement"],$e={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=n.ref(!1),o=n.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:u,reference:c,floating:m,strategy:p}=ss({placement:e.placement,middleware:[Xa(),ts({padding:5}),Ja(e.offset),is({element:o,padding:5})],append:n.computed(()=>e.appendTo),enabled:r}),f=()=>{e.disabled||r.value||(r.value=!0)},d=y=>{r.value&&y&&(r.value=!1)},g=y=>{c.value=y},h={mouseenter:f,mouseleave:d,focus:f,blur:d};return Hn(m,y=>{var T;(T=c.value)!=null&&T.contains(y.target)||d()}),(y,T)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(y.$slots,"default",{setRef:g,show:f,hide:d,events:h}),n.createElementVNode("div",{ref_key:"floating",ref:m,"data-placement":n.unref(u),style:n.normalizeStyle({position:n.unref(p),top:n.unref(s)?`${n.unref(s)}px`:"",left:n.unref(a)?`${n.unref(a)}px`:""})},[n.createVNode(n.Transition,{name:"transition-fade",mode:"out-in"},{default:n.withCtx(()=>[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["floating-content",[`is-${e.theme}`]])},[n.renderSlot(y.$slots,"content",{close:d},()=>[n.createTextVNode(n.toDisplayString(t.content),1)]),n.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:n.normalizeStyle({position:n.unref(p),top:n.unref(l)?`${n.unref(l)}px`:"",left:n.unref(i)?`${n.unref(i)}px`:""})},null,4)],2)):n.createCommentVNode("",!0)]),_:3})],12,ls)],64))}},cs=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],us={key:0},ds=["colspan"],fs={key:1},ms=["colspan"],Pe={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:o,appendTo:a}=n.toRefs(r),s=Xe(o,{delay:Mr}),i=e,{t:l}=ct(),u=nt("table"),c=n.computed(()=>r.columns),m=n.computed(()=>Object.keys(r.columns).length),p=(f,d)=>{f.sortOrders&&i("sort",{target:d,orders:f.sortOrders})};return(f,d)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass(n.unref(u))},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(g,h)=>(n.openBlock(),n.createBlock($e,{key:h,placement:"top",content:g.tooltip,disabled:!g.tooltip,"append-to":n.unref(a)},{default:n.withCtx(({setRef:y,show:T,hide:$})=>[n.createElementVNode("th",{ref_for:!0,ref:y,class:n.normalizeClass([[g.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-sortable":g.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)}]),onMouseenter:T,onMouseleave:$,onFocus:T,onBlur:$,onClick:k=>p(g,h),onKeydown:[n.withKeys(n.withModifiers(k=>p(g,h),["prevent"]),["space"]),n.withKeys(n.withModifiers(k=>p(g,h),["prevent"]),["enter"])],tabindex:g.sortOrders?0:-1,role:"button"},[n.renderSlot(f.$slots,`header-${h}`,{column:g},()=>[n.createTextVNode(n.toDisplayString(g.label),1)]),g.sortOrders&&h!==t.sort.sortTarget?(n.openBlock(),n.createBlock(n.unref(Lr),{key:0,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(at)?(n.openBlock(),n.createBlock(n.unref(Lr),{key:1,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b)?(n.openBlock(),n.createBlock(n.unref(Ra),{key:2,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)?(n.openBlock(),n.createBlock(n.unref(Ya),{key:3,class:"is-icon-sort"})):n.createCommentVNode("",!0)],42,cs)]),_:2},1032,["content","disabled","append-to"]))),128))])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rows,(g,h)=>(n.openBlock(),n.createElementBlock("tr",{key:h,class:n.normalizeClass(g.rowClasses)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(y,T)=>(n.openBlock(),n.createElementBlock("td",{key:T,class:n.normalizeClass([[y.class],{"is-active":T===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-zero":g[T]==0}])},[n.renderSlot(f.$slots,`cell-${T}`,{row:g,prop:T},()=>[n.createTextVNode(n.toDisplayString(g[T]),1)])],2))),128))],2))),128))]),n.unref(s)&&t.rows.length===0?(n.openBlock(),n.createElementBlock("tfoot",us,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:m.value},[n.renderSlot(f.$slots,"loading",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(l)("common.loading")),1)])],8,ds)])])):n.createCommentVNode("",!0),t.rows.length===0&&!n.unref(o)&&!n.unref(s)?(n.openBlock(),n.createElementBlock("tfoot",fs,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:m.value},[n.renderSlot(f.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(l)("common.noData")),1)])],8,ms)])])):n.createCommentVNode("",!0)],2))}},ps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},hs=n.createElementVNode("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),gs=n.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ys=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),bs=[hs,gs,ys];function ws(t,e){return n.openBlock(),n.createElementBlock("svg",ps,bs)}const Ss={render:ws},_s={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:o}=ct(),a=nt("error-notice"),s=n.computed(()=>{var i;return o(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a))},[n.createVNode(n.unref(Ss),{class:"icon",width:"20",height:"20"}),n.createElementVNode("span",null,n.toDisplayString(s.value),1)],2))}};function tn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(r,o){return ye($t(".",o),e)})},en=Symbol("ErrorProviderContext"),rn=()=>{const t=n.ref(""),e=n.ref({}),r=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||tn(s.message),cause:s.cause}},a={onError:r,reset:()=>{t.value="",e.value={}}};return n.provide(en,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},n.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:n.computed(()=>t.value.length>0),message:t,error:e,onError:r}},ke=()=>{const t=Ts();return{onError:t.onError,reset:t.reset}},Ts=()=>{const t=n.inject(en,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Os={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:o}=rn();return(a,s)=>n.renderSlot(a.$slots,"default",{message:n.unref(e),error:n.unref(o),hasError:n.unref(r)})}},$s={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Ps={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},ks=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},Es=n.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=wa({hu:$s,en:Ps},t.messages),{translate:r}=Tr({locale:n.computed(()=>t.locale),messages:e});return{translate:r}}});function vs(t,e,r,o,a,s){return n.renderSlot(t.$slots,"default",{t:t.translate})}const As=ks(Es,[["render",vs]]),Ns=["src"],xs=["src","title"],_t=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=n.toRefs(e),o=n.ref({src:e.src}),{error:a,isReady:s}=so(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)&&n.unref(r)?(n.openBlock(),n.createElementBlock("img",{key:0,src:n.unref(r),class:n.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Ns)):n.createCommentVNode("",!0),n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:1,src:o.value.src,class:n.normalizeClass([i.$attrs.class,{"is-loaded":n.unref(s)}]),title:e.title},null,10,xs))],64))}}),Ds={style:{"text-align":"center"}},Ee={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(r,o)=>(n.openBlock(),n.createElementBlock("div",Ds,n.toDisplayString(n.unref(e)("common.loading")),1))}};function Ms({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:o=5,update:a=ot}){const s=n.computed(()=>Math.ceil(n.unref(r)/e)),i=n.computed(()=>{const m=n.unref(t)-1,p=Array.from({length:s.value},(g,h)=>h+1),f=Math.floor(o/2);let d=Math.max(m-f,0);return d+o>=s.value&&(d=Math.max(s.value-o,0)),p.slice(d,d+o)}),l=m=>{const p=n.unref(t)+m;c(p)&&a(p)},u=m=>{c(m)&&a(m)},c=m=>m<=s.value&&m>0;return{page:t,range:i,pageCount:s,goTo:u,pageStep:l}}const Ls={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Cs=n.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Bs=[Cs];function Is(t,e){return n.openBlock(),n.createElementBlock("svg",Ls,Bs)}const zs={render:Is},Rs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vs=n.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Gs=[Vs];function js(t,e){return n.openBlock(),n.createElementBlock("svg",Rs,Gs)}const Fs={render:js},Ys=["disabled"],Us=["disabled"],Hs={key:1,class:"is-disabled"},Ws=["disabled","onClick"],Ks={key:2,class:"is-disabled"},qs=[n.createElementVNode("span",null,"...",-1)],Zs=["disabled"],Xs=["disabled"],Js={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,o=e,a=nt("paginator"),{page:s,pageCount:i,range:l,goTo:u,pageStep:c}=Ms({currentPage:n.computed(()=>r.page),totalItems:n.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:m=>o("change",m)});return(m,p)=>n.unref(i)>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a))},[n.createElementVNode("button",{type:"button",disabled:n.unref(s)===1,onClick:p[0]||(p[0]=f=>n.unref(c)(-1))},[n.renderSlot(m.$slots,"prev",{},()=>[n.createVNode(n.unref(zs),{class:"icon paginator-left"})])],8,Ys),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",disabled:n.unref(s)===1,onClick:p[1]||(p[1]=f=>n.unref(u)(1))},"1",8,Us)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Hs,"...")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),f=>(n.openBlock(),n.createElementBlock("button",{type:"button",key:f,class:n.normalizeClass({"is-active":f===n.unref(s)}),disabled:f===n.unref(s),onClick:d=>n.unref(u)(f)},n.toDisplayString(f),11,Ws))),128)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ks,qs)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:3,type:"button",disabled:n.unref(s)===n.unref(i),onClick:p[2]||(p[2]=f=>n.unref(u)(n.unref(i)))},n.toDisplayString(n.unref(i)),9,Zs)),n.createElementVNode("button",{type:"button",disabled:n.unref(s)===n.unref(i),onClick:p[3]||(p[3]=n.withModifiers(f=>n.unref(c)(1),["prevent"]))},[n.renderSlot(m.$slots,"next",{},()=>[n.createVNode(n.unref(Fs),{class:"icon paginator-left"})])],8,Xs)],2)):n.createCommentVNode("",!0)}},ve={__name:"ResponsiveTable",setup(t){const e=n.ref(null),r=nt("table-responsive");return(o,a)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"el",ref:e,class:n.normalizeClass(n.unref(r))},[n.renderSlot(o.$slots,"default",{el:e.value})],2))}};var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",u="hour",c="day",m="week",p="month",f="quarter",d="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var O=["th","st","nd","rd"],_=E%100;return"["+E+(O[(_-20)%10]||O[_]||O[0])+"]"}},k=function(E,O,_){var P=String(E);return!P||P.length>=O?E:""+Array(O+1-P.length).join(_)+E},A={s:k,z:function(E){var O=-E.utcOffset(),_=Math.abs(O),P=Math.floor(_/60),S=_%60;return(O<=0?"+":"-")+k(P,2,"0")+":"+k(S,2,"0")},m:function E(O,_){if(O.date()<_.date())return-E(_,O);var P=12*(_.year()-O.year())+(_.month()-O.month()),S=O.clone().add(P,p),N=_-S<0,D=O.clone().add(P+(N?-1:1),p);return+(-(P+(_-S)/(N?S-D:D-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:p,y:d,w:m,d:c,D:g,h:u,m:l,s:i,ms:s,Q:f}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},v="en",M={};M[v]=$;var I=function(E){return E instanceof R},V=function E(O,_,P){var S;if(!O)return v;if(typeof O=="string"){var N=O.toLowerCase();M[N]&&(S=N),_&&(M[N]=_,S=N);var D=O.split("-");if(!S&&D.length>1)return E(D[0])}else{var C=O.name;M[C]=O,S=C}return!P&&S&&(v=S),S||!P&&v},L=function(E,O){if(I(E))return E.clone();var _=typeof O=="object"?O:{};return _.date=E,_.args=arguments,new R(_)},x=A;x.l=V,x.i=I,x.w=function(E,O){return L(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var R=function(){function E(_){this.$L=V(_.locale,null,!0),this.parse(_)}var O=E.prototype;return O.parse=function(_){this.$d=function(P){var S=P.date,N=P.utc;if(S===null)return new Date(NaN);if(x.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var D=S.match(y);if(D){var C=D[2]-1||0,Y=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)):new Date(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)}}return new Date(S)}(_),this.$x=_.x||{},this.init()},O.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},O.$utils=function(){return x},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(_,P){var S=L(_);return this.startOf(P)<=S&&S<=this.endOf(P)},O.isAfter=function(_,P){return L(_)<this.startOf(P)},O.isBefore=function(_,P){return this.endOf(P)<L(_)},O.$g=function(_,P,S){return x.u(_)?this[P]:this.set(S,_)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(_,P){var S=this,N=!!x.u(P)||P,D=x.p(_),C=function(Et,q){var pt=x.w(S.$u?Date.UTC(S.$y,q,Et):new Date(S.$y,q,Et),S);return N?pt:pt.endOf(c)},Y=function(Et,q){return x.w(S.toDate()[Et].apply(S.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(q)),S)},F=this.$W,W=this.$M,mt=this.$D,it="set"+(this.$u?"UTC":"");switch(D){case d:return N?C(1,0):C(31,11);case p:return N?C(1,W):C(0,W+1);case m:var Vt=this.$locale().weekStart||0,Gt=(F<Vt?F+7:F)-Vt;return C(N?mt-Gt:mt+(6-Gt),W);case c:case g:return Y(it+"Hours",0);case u:return Y(it+"Minutes",1);case l:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},O.endOf=function(_){return this.startOf(_,!1)},O.$set=function(_,P){var S,N=x.p(_),D="set"+(this.$u?"UTC":""),C=(S={},S[c]=D+"Date",S[g]=D+"Date",S[p]=D+"Month",S[d]=D+"FullYear",S[u]=D+"Hours",S[l]=D+"Minutes",S[i]=D+"Seconds",S[s]=D+"Milliseconds",S)[N],Y=N===c?this.$D+(P-this.$W):P;if(N===p||N===d){var F=this.clone().set(g,1);F.$d[C](Y),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else C&&this.$d[C](Y);return this.init(),this},O.set=function(_,P){return this.clone().$set(_,P)},O.get=function(_){return this[x.p(_)]()},O.add=function(_,P){var S,N=this;_=Number(_);var D=x.p(P),C=function(W){var mt=L(N);return x.w(mt.date(mt.date()+Math.round(W*_)),N)};if(D===p)return this.set(p,this.$M+_);if(D===d)return this.set(d,this.$y+_);if(D===c)return C(1);if(D===m)return C(7);var Y=(S={},S[l]=o,S[u]=a,S[i]=r,S)[D]||1,F=this.$d.getTime()+_*Y;return x.w(F,this)},O.subtract=function(_,P){return this.add(-1*_,P)},O.format=function(_){var P=this,S=this.$locale();if(!this.isValid())return S.invalidDate||h;var N=_||"YYYY-MM-DDTHH:mm:ssZ",D=x.z(this),C=this.$H,Y=this.$m,F=this.$M,W=S.weekdays,mt=S.months,it=function(q,pt,Be,oe){return q&&(q[pt]||q(P,N))||Be[pt].slice(0,oe)},Vt=function(q){return x.s(C%12||12,q,"0")},Gt=S.meridiem||function(q,pt,Be){var oe=q<12?"AM":"PM";return Be?oe.toLowerCase():oe},Et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:x.s(F+1,2,"0"),MMM:it(S.monthsShort,F,mt,3),MMMM:it(mt,F),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:it(S.weekdaysMin,this.$W,W,2),ddd:it(S.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(C),HH:x.s(C,2,"0"),h:Vt(1),hh:Vt(2),a:Gt(C,Y,!0),A:Gt(C,Y,!1),m:String(Y),mm:x.s(Y,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:D};return N.replace(T,function(q,pt){return pt||Et[q]||D.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(_,P,S){var N,D=x.p(P),C=L(_),Y=(C.utcOffset()-this.utcOffset())*o,F=this-C,W=x.m(this,C);return W=(N={},N[d]=W/12,N[p]=W,N[f]=W/3,N[m]=(F-Y)/6048e5,N[c]=(F-Y)/864e5,N[u]=F/a,N[l]=F/o,N[i]=F/r,N)[D]||F,S?W:x.a(W)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return M[this.$L]},O.locale=function(_,P){if(!_)return this.$L;var S=this.clone(),N=V(_,P,!0);return N&&(S.$L=N),S},O.clone=function(){return x.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E}(),H=R.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",u],["$W",c],["$M",p],["$y",d],["$D",g]].forEach(function(E){H[E[1]]=function(O){return this.$g(O,E[0],E[1])}}),L.extend=function(E,O){return E.$i||(E(O,R,L),E.$i=!0),L},L.locale=V,L.isDayjs=I,L.unix=function(E){return L(1e3*E)},L.en=M[v],L.Ls=M,L.p={},L})})(nn);var on=nn.exports;const U=ft(on);var an={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var u=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},u.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var m=u.init;u.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else m.call(this)};var p=u.utcOffset;u.utcOffset=function(h,y){var T=this.$utils().u;if(T(h))return this.$u?0:T(this.$offset)?p.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var M=v.match(o);if(!M)return null;var I=(""+M[0]).match(a)||["-",0,0],V=I[0],L=60*+I[1]+ +I[2];return L===0?0:V==="+"?L:-L}(h),h===null))return this;var $=Math.abs(h)<=16?60*h:h,k=this;if(y)return k.$offset=$,k.$u=h===0,k;if(h!==0){var A=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add($+A,r)).$offset=$,k.$x.$localOffset=A}else k=this.utc();return k};var f=u.format;u.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,y)},u.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=u.diff;u.diff=function(h,y,T){if(h&&this.$u===h.$u)return g.call(this,h,y,T);var $=this.local(),k=l(h).local();return g.call($,k,y,T)}}})})(an);var Qs=an.exports;const ti=ft(Qs);var sn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,u=function(f,d,g){g===void 0&&(g={});var h=new Date(f),y=function(T,$){$===void 0&&($={});var k=$.timeZoneName||"short",A=T+"|"+k,v=o[A];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),o[A]=v),v}(d,g);return y.formatToParts(h)},c=function(f,d){for(var g=u(f,d),h=[],y=0;y<g.length;y+=1){var T=g[y],$=T.type,k=T.value,A=r[$];A>=0&&(h[A]=parseInt(k,10))}var v=h[3],M=v===24?0:v,I=h[0]+"-"+h[1]+"-"+h[2]+" "+M+":"+h[4]+":"+h[5]+":000",V=+f;return(i.utc(I).valueOf()-(V-=V%1e3))/6e4},m=s.prototype;m.tz=function(f,d){f===void 0&&(f=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:f}),T=Math.round((h-new Date(y))/1e3/60),$=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-T,!0);if(d){var k=$.utcOffset();$=$.add(g-k,"minute")}return $.$x.$timezone=f,$},m.offsetName=function(f){var d=this.$x.$timezone||i.tz.guess(),g=u(this.valueOf(),d,{timeZoneName:f}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var p=m.startOf;m.startOf=function(f,d){if(!this.$x||!this.$x.$timezone)return p.call(this,f,d);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return p.call(g,f,d).tz(this.$x.$timezone,!0)},i.tz=function(f,d,g){var h=g&&d,y=g||d||l,T=c(+i(),y);if(typeof f!="string")return i(f).tz(y);var $=function(M,I,V){var L=M-60*I*1e3,x=c(L,V);if(I===x)return[L,I];var R=c(L-=60*(x-I)*1e3,V);return x===R?[L,x]:[M-60*Math.min(x,R)*1e3,Math.max(x,R)]}(i.utc(f,h).valueOf(),T,y),k=$[0],A=$[1],v=i(k).utcOffset(A);return v.$x.$timezone=y,v},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(f){l=f}}})})(sn);var ei=sn.exports;const ri=ft(ei);var ln={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}});return s.bind(this)(m)}}})})(ln);var ni=ln.exports;const oi=ft(ni);var cn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(cn);var ai=cn.exports;const si=ft(ai);var un={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o,a){o.prototype.isBetween=function(s,i,l,u){var c=a(s),m=a(i),p=(u=u||"()")[0]==="(",f=u[1]===")";return(p?this.isAfter(c,l):!this.isBefore(c,l))&&(f?this.isBefore(m,l):!this.isAfter(m,l))||(p?this.isBefore(c,l):!this.isAfter(c,l))&&(f?this.isAfter(m,l):!this.isBefore(m,l))}}})})(un);var ii=un.exports;const li=ft(ii);var dn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=r,i.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,m=function(p,f){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,h){var y=h&&h.toUpperCase();return g||f[h]||r[h]||f[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,$,k){return $||k.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,m)}}})})(dn);var ci=dn.exports;const ui=ft(ci);var fn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o,a){r=r||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(c,m,p,f){return s.fromToBase(c,m,p,f)}a.en.relativeTime=i,s.fromToBase=function(c,m,p,f,d){for(var g,h,y,T=p.$locale().relativeTime||i,$=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],k=$.length,A=0;A<k;A+=1){var v=$[A];v.d&&(g=f?a(c).diff(p,v.d,!0):p.diff(c,v.d,!0));var M=(r.rounding||Math.round)(Math.abs(g));if(y=g>0,M<=v.r||!v.r){M<=1&&A>0&&(v=$[A-1]);var I=T[v.l];d&&(M=d(""+M)),h=typeof I=="string"?I.replace("%d",M):I(M,m,v.l,y);break}}if(m)return h;var V=y?T.future:T.past;return typeof V=="function"?V(h):V.replace("%s",h)},s.to=function(c,m){return l(c,m,this,!0)},s.from=function(c,m){return l(c,m,this)};var u=function(c){return c.$u?a.utc():a()};s.toNow=function(c){return this.to(u(this),c)},s.fromNow=function(c){return this.from(u(this),c)}}})})(fn);var di=fn.exports;const fi=ft(di);var mi={exports:{}};(function(t,e){(function(r,o){t.exports=o(on)})(st,function(r){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(r),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(i,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(i,l,u,c){return i+" perc"+(c||l?"":"e")},h:function(i,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(i,l,u,c){return i+" "+(c||l?"óra":"órája")},d:function(i,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(i,l,u,c){return i+" "+(c||l?"nap":"napja")},M:function(i,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(i,l,u,c){return i+" "+(c||l?"hónap":"hónapja")},y:function(i,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(i,l,u,c){return i+" "+(c||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(mi),U.extend(ti),U.extend(ri),U.extend(oi),U.extend(fi),U.extend(ui),U.extend(si),U.extend(li);const mn=()=>U.tz.guess(),Tt=(t="",e="",r="",o="hu")=>(r=r||U.tz.guess(),U(t).isValid()?U(t).tz(r).locale(o).format(e):""),zt=(t="",e="",r="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(pi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},pi=t=>xr.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},pn=t=>{const e=~~(t/60),r=~~t%60;return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},hn=t=>{const e=Math.trunc(t),r=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},Ne=(t,e="day")=>U().isSameOrBefore(U(t),e),hi=(t,e,r)=>U(t).isBetween(e,U(r)),gi=(t,e,r="month")=>U(t).isSame(e,r),yi=(t,e="hu")=>U(t).locale(e).toNow(!0),bi=["onClick"],wi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,o=e,{t:a}=ct(),s=nt("timezone-selector"),i=n.computed(()=>zt(new Date,null,r.locale)),l=mn(),u=n.computed(()=>Array.from(Dr.values()).map(m=>({...m,isActive:zt(new Date,r.currentZone,r.locale)===zt(new Date,m.timezone,r.locale),zoneOffsetName:zt(new Date,m.timezone,r.locale)}))),c=m=>o("change",m);return(m,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref($r),{path:"common.selectTimezone",tag:"span"},{timezone:n.withCtx(()=>[n.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=n.withModifiers(f=>c(n.unref(l)),["prevent"]))},n.toDisplayString(i.value),1)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,f=>(n.openBlock(),n.createElementBlock("a",{key:f.countryLabelKey,href:"#",class:n.normalizeClass({"is-active":f.isActive}),onClick:n.withModifiers(d=>c(f.timezone),["prevent"])},n.toDisplayString(n.unref(a)(`common.${f.countryLabelKey}`))+" ("+n.toDisplayString(f.zoneOffsetName)+") ",11,bi))),128))],2))}},xe=(t,e="",r={})=>{const o=n.ref(""),{t:a}=ct(),s=n.computed(()=>{if(n.unref(e))try{const u=gn(n.unref(t),n.unref(e));return Sa(u,n.unref(t))}catch(u){o.value=u}return n.unref(t)}),i=u=>({...u,...u.label&&{label:a(u.label??"",n.unref(r))},...u.tooltip&&{tooltip:a(u.tooltip??"")}});return{columns:n.computed(()=>lt(i,s.value)),error:o}},gn=(t,e="")=>{const r=lt(Jt,$t(",",e)),o=gt(t);if(r[0]==="")return resolve([]);const a=r.findIndex(s=>!o.includes(s));if(a>-1)throw r[a];return r};class De extends Error{constructor(e,r={}){const{key:o,cause:a}=r;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Rt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Si={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},_i={class:"is-portrait-image"},Ti={class:"is-team-name-long"},Oi={class:"is-team-name-short"},$i={class:"is-team-name-long"},Pi={class:"is-team-name-short"},ki={class:"is-team-name-long"},Ei={class:"is-team-name-short"},vi=["href"],Ai={class:"is-team-name-long"},Ni={class:"is-team-name-short"},xi=["href"],Di={key:0,class:"is-text-dark"},Mi=["href","target"],Li={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const r=t,{columns:o,hideColumns:a}=n.toRefs(r),s=e,{onError:i}=ke(),{columns:l,error:u}=xe(o,a,n.computed(()=>({offsetName:r.offsetName})));u.value&&i(new De(Rt.message,{...Rt.options,cause:{column:u.value}}));const c=m=>s("sort",m);return(m,p)=>(n.openBlock(),n.createBlock(ve,null,{default:n.withCtx(({el:f})=>[n.createVNode(Pe,{columns:n.unref(l),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||f,onSort:c},n.createSlots({"cell-index":n.withCtx(({row:d})=>[n.createElementVNode("span",{class:n.normalizeClass(d.indexClass)},n.toDisplayString(d.index),3)]),"cell-playerPortrait":n.withCtx(({row:d})=>[n.createElementVNode("div",_i,[(n.openBlock(),n.createBlock(_t,{key:d.player.playerId,src:d.player.picture,"default-src":n.unref(Er)},null,8,["src","default-src"]))])]),"cell-teamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image",key:((g=d.team)==null?void 0:g.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:(g=d.homeTeam)==null?void 0:g.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:(g=d.awayTeam)==null?void 0:g.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",Ti,n.toDisplayString((g=d.team)==null?void 0:g.longName),1),n.createElementVNode("span",Oi,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",$i,n.toDisplayString((g=d.homeTeam)==null?void 0:g.longName),1),n.createElementVNode("span",Pi,n.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",ki,n.toDisplayString((g=d.awayTeam)==null?void 0:g.longName),1),n.createElementVNode("span",Ei,n.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":n.withCtx(({row:d})=>{var g;return[n.createTextVNode(n.toDisplayString(((g=d.location)==null?void 0:g.locationName)??""),1)]}),"cell-gameResult":n.withCtx(({row:d})=>[d.gameStatus===0?(n.openBlock(),n.createElementBlock("span",Di,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},n.toDisplayString(d.homeTeamScore)+":"+n.toDisplayString(d.awayTeamScore),11,Mi))]),loading:n.withCtx(()=>[n.createVNode(Ee)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[n.createElementVNode("span",Ai,n.toDisplayString((g=d.team)==null?void 0:g.longName),1),n.createElementVNode("span",Ni,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)],8,vi)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:n.withCtx(({row:d})=>[n.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},n.toDisplayString(d.name),9,xi)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},yn={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Ci={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Bi={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Ii={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},zi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ri={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Vi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Gi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},ji={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Fi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Yi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},bn=async(t,e,r)=>{const o=`${Pr}${n.unref(t)}?${Ui(r)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Hi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Ui=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Hi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Wi=(t={})=>{const{initial:e=1,items:r=[],limit:o,auto:a=!1}=t,s=n.ref(n.unref(e)),i=c=>Ne(c,"day");return Bn(r,()=>{if(!a)return;const c=ia(br(i,"gameDate"))(n.unref(r));s.value=c===-1?1:Math.floor(c/o)+1}),{page:s,change:c=>{s.value=c}}},Ki=({options:t={},transform:e=a=>a,onError:r=ot,onSuccess:o=ot})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:u=!1}=t,{state:c,error:m,isLoading:p,execute:f}=Ke(()=>bn(a,s,n.unref(i)).then(d=>e(d)),[],{immediate:u,resetOnExecute:l,onError:r,onSuccess:o});return{state:c,error:m,isLoading:p,execute:f}};/*! *****************************************************************************
8
+ var MjszVbrElementsCore=function(w,n){"use strict";var Pn={VITE_VBR_API_URL:"https://api.icehockey.hu/vbr",VITE_VBR_API_KEY:"",VITE_USER_NODE_ENV:"production",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const nt=t=>(Pn.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Ie={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,o=e,a=nt("base-input"),s=n.computed({get:()=>r.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>n.withDirectives((n.openBlock(),n.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>s.value=u),class:n.normalizeClass([n.unref(a),"is-select"])},[n.renderSlot(i.$slots,"default")],2)),[[n.vModelSelect,s.value]])}};function ze(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function rt(t){return typeof t=="function"?t():n.unref(t)}const jt=typeof window<"u",ot=()=>{},kn=En();function En(){var t;return jt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function vn(t,e){function r(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return r}const Re=t=>t();function An(t=Re){const e=n.ref(!0);function r(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:n.readonly(e),pause:r,resume:o,eventFilter:a}}function ae(t,e=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(r):o,t)})}function se(t,e=!1){function r(p,{flush:m="sync",deep:d=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const $=[new Promise(k=>{y=n.watch(t,A=>{p(A)!==e&&(y==null||y(),k(A))},{flush:m,deep:d,immediate:!0})})];return g!=null&&$.push(ae(g,h).then(()=>rt(t)).finally(()=>y==null?void 0:y())),Promise.race($)}function o(p,m){if(!n.isRef(p))return r(A=>A===p,m);const{flush:d="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=m??{};let T=null;const k=[new Promise(A=>{T=n.watch([t,p],([v,M])=>{e!==(v===M)&&(T==null||T(),A(v))},{flush:d,deep:g,immediate:!0})})];return h!=null&&k.push(ae(h,y).then(()=>rt(t)).finally(()=>(T==null||T(),rt(t)))),Promise.race(k)}function a(p){return r(m=>!!m,p)}function s(p){return o(null,p)}function i(p){return o(void 0,p)}function l(p){return r(Number.isNaN,p)}function u(p,m){return r(d=>{const g=Array.from(d);return g.includes(p)||g.includes(rt(p))},m)}function c(p){return f(1,p)}function f(p=1,m){let d=-1;return r(()=>(d+=1,d>=p),m)}return Array.isArray(rt(t))?{toMatch:r,toContains:u,changed:c,changedTimes:f,get not(){return se(t,!e)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:c,changedTimes:f,get not(){return se(t,!e)}}}function Nn(t){return se(t)}function xn(t,e,r={}){const{immediate:o=!0}=r,a=n.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function u(...c){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...c)},rt(e))}return o&&(a.value=!0,jt&&u()),ze(l),{isPending:n.readonly(a),start:u,stop:l}}var Ve=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Ln=(t,e)=>{var r={};for(var o in t)Dn.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ve)for(var o of Ve(t))e.indexOf(o)<0&&Mn.call(t,o)&&(r[o]=t[o]);return r};function Cn(t,e,r={}){const o=r,{eventFilter:a=Re}=o,s=Ln(o,["eventFilter"]);return n.watch(t,vn(a,e),s)}function Bn(t,e,r){const o=n.watch(t,(...a)=>(n.nextTick(()=>o()),e(...a)),r)}var In=Object.defineProperty,zn=Object.defineProperties,Rn=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Fe=(t,e,r)=>e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vn=(t,e)=>{for(var r in e||(e={}))Ge.call(e,r)&&Fe(t,r,e[r]);if(Ft)for(var r of Ft(e))je.call(e,r)&&Fe(t,r,e[r]);return t},Gn=(t,e)=>zn(t,Rn(e)),jn=(t,e)=>{var r={};for(var o in t)Ge.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ft)for(var o of Ft(t))e.indexOf(o)<0&&je.call(t,o)&&(r[o]=t[o]);return r};function Fn(t,e,r={}){const o=r,{eventFilter:a}=o,s=jn(o,["eventFilter"]),{eventFilter:i,pause:l,resume:u,isActive:c}=An(a);return{stop:Cn(t,e,Gn(Vn({},s),{eventFilter:i})),pause:l,resume:u,isActive:c}}function Yn(t,e,r){return n.watch(t,(o,a,s)=>{o&&e(o,a,s)},r)}function Ot(t){var e;const r=rt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Ye=jt?window:void 0,Un=jt?window.document:void 0;function Yt(...t){let e,r,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,a]=t,e=Ye):[e,r,o,a]=t,!e)return ot;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,p,m,d)=>(f.addEventListener(p,m,d),()=>f.removeEventListener(p,m,d)),u=n.watch(()=>[Ot(e),rt(a)],([f,p])=>{i(),f&&s.push(...r.flatMap(m=>o.map(d=>l(f,m,d,p))))},{immediate:!0,flush:"post"}),c=()=>{u(),i()};return ze(c),c}let Ue=!1;function Hn(t,e,r={}){const{window:o=Ye,ignore:a=[],capture:s=!0,detectIframe:i=!1}=r;if(!o)return;kn&&!Ue&&(Ue=!0,Array.from(o.document.body.children).forEach(m=>m.addEventListener("click",ot)));let l=!0;const u=m=>a.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(g=>g===m.target||m.composedPath().includes(g));{const g=Ot(d);return g&&(m.target===g||m.composedPath().includes(g))}}),f=[Yt(o,"click",m=>{const d=Ot(t);if(!(!d||d===m.target||m.composedPath().includes(d))){if(m.detail===0&&(l=!u(m)),!l){l=!0;return}e(m)}},{passive:!0,capture:s}),Yt(o,"pointerdown",m=>{const d=Ot(t);d&&(l=!m.composedPath().includes(d)&&!u(m))},{passive:!0}),i&&Yt(o,"blur",m=>{var d;const g=Ot(t);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(o.document.activeElement))&&e(m)})].filter(Boolean);return()=>f.forEach(m=>m())}var Wn=Object.defineProperty,Kn=Object.defineProperties,qn=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,We=(t,e,r)=>e in t?Wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Jn=(t,e)=>{for(var r in e||(e={}))Zn.call(e,r)&&We(t,r,e[r]);if(He)for(var r of He(e))Xn.call(e,r)&&We(t,r,e[r]);return t},Qn=(t,e)=>Kn(t,qn(e));function Ke(t,e,r){const{immediate:o=!0,delay:a=0,onError:s=ot,onSuccess:i=ot,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=r??{},f=u?n.shallowRef(e):n.ref(e),p=n.ref(!1),m=n.ref(!1),d=n.shallowRef(void 0);async function g(T=0,...$){l&&(f.value=e),d.value=void 0,p.value=!1,m.value=!0,T>0&&await ae(T);const k=typeof t=="function"?t(...$):t;try{const A=await k;f.value=A,p.value=!0,i(A)}catch(A){if(d.value=A,s(A),c)throw A}finally{m.value=!1}return f.value}o&&g(a);const h={state:f,isReady:p,isLoading:m,error:d,execute:g};function y(){return new Promise((T,$)=>{Nn(m).toBe(!1).then(()=>T(h)).catch($)})}return Qn(Jn({},h),{then(T,$){return y().then(T,$)}})}function to({document:t=Un}={}){if(!t)return n.ref("visible");const e=n.ref(t.visibilityState);return Yt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var eo=Object.defineProperty,qe=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Ze=(t,e,r)=>e in t?eo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oo=(t,e)=>{for(var r in e||(e={}))ro.call(e,r)&&Ze(t,r,e[r]);if(qe)for(var r of qe(e))no.call(e,r)&&Ze(t,r,e[r]);return t};async function ao(t){return new Promise((e,r)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:u,crossorigin:c}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),u&&(o.loading=u),c&&(o.crossOrigin=c),o.onload=()=>e(o),o.onerror=r})}function so(t,e={}){const r=Ke(()=>ao(rt(t)),void 0,oo({resetOnExecute:!0},e));return n.watch(()=>rt(t),()=>r.execute(e.delay),{deep:!0}),r}function Xe(t=[],e={}){const{delay:r=0}=e,o=n.ref(!1),a=n.computed(()=>{const l=n.unref(t);return Array.isArray(l)?l.map(u=>n.unref(u)).some(Boolean):l}),{start:s,stop:i}=xn(()=>{o.value=!0},r);return n.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(r){return arguments.length===0||G(r)?e:t.apply(this,arguments)}}function z(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return G(r)?e:j(function(a){return t(r,a)});default:return G(r)&&G(o)?e:G(r)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(r,a)}):t(r,o)}}}function Ut(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,o){return e.apply(this,arguments)};case 3:return function(r,o,a){return e.apply(this,arguments)};case 4:return function(r,o,a,s){return e.apply(this,arguments)};case 5:return function(r,o,a,s,i){return e.apply(this,arguments)};case 6:return function(r,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(r,o,a,s,i,l,u){return e.apply(this,arguments)};case 8:return function(r,o,a,s,i,l,u,c){return e.apply(this,arguments)};case 9:return function(r,o,a,s,i,l,u,c,f){return e.apply(this,arguments)};case 10:return function(r,o,a,s,i,l,u,c,f,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ie(t,e,r){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?r.apply(this,o):Ut(s,ie(t,o,r))}}var vt=z(function(e,r){return e===1?j(r):Ut(e,ie(e,[],r))});function X(t){return function e(r,o,a){switch(arguments.length){case 0:return e;case 1:return G(r)?e:z(function(s,i){return t(r,s,i)});case 2:return G(r)&&G(o)?e:G(r)?z(function(s,i){return t(s,o,i)}):G(o)?z(function(s,i){return t(r,s,i)}):j(function(s){return t(r,o,s)});default:return G(r)&&G(o)&&G(a)?e:G(r)&&G(o)?z(function(s,i){return t(s,i,a)}):G(r)&&G(a)?z(function(s,i){return t(s,o,i)}):G(o)&&G(a)?z(function(s,i){return t(r,s,i)}):G(r)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(r,s,a)}):G(a)?j(function(s){return t(r,o,s)}):t(r,o,a)}}}const At=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function io(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Nt(t,e,r){return function(){if(arguments.length===0)return r();var o=arguments[arguments.length-1];if(!At(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(io(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return r.apply(this,arguments)}}function le(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Je(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Qe(t,e,r){for(var o=0,a=r.length;o<a;){if(t(e,r[o]))return!0;o+=1}return!1}function lo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Q(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function co(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ce=typeof Object.is=="function"?Object.is:co;var tr=Object.prototype.toString,er=function(){return tr.call(arguments)==="[object Arguments]"?function(e){return tr.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),uo=!{toString:null}.propertyIsEnumerable("toString"),rr=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],nr=function(){return arguments.propertyIsEnumerable("length")}(),fo=function(e,r){for(var o=0;o<e.length;){if(e[o]===r)return!0;o+=1}return!1},gt=j(typeof Object.keys=="function"&&!nr?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,o,a=[],s=nr&&er(e);for(r in e)Q(r,e)&&(!s||r!=="length")&&(a[a.length]=r);if(uo)for(o=rr.length-1;o>=0;)r=rr[o],Q(r,e)&&!fo(a,r)&&(a[a.length]=r),o-=1;return a}),ue=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function or(t,e,r,o){var a=Je(t),s=Je(e);function i(l,u){return de(l,u,r.slice(),o.slice())}return!Qe(function(l,u){return!Qe(i,u,l)},s,a)}function de(t,e,r,o){if(ce(t,e))return!0;var a=ue(t);if(a!==ue(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&lo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ce(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ce(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:or(t.entries(),e.entries(),r.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:or(t.values(),e.values(),r.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=gt(t);if(i.length!==gt(e).length)return!1;var l=r.concat([t]),u=o.concat([e]);for(s=i.length-1;s>=0;){var c=i[s];if(!(Q(c,e)&&de(e[c],t[c],l,u)))return!1;s-=1}return!0}var Ht=z(function(e,r){return de(e,r,[],[])});function mo(t,e,r){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;r<t.length;){if(a=t[r],a===0&&1/a===o)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(a=t[r],typeof a=="number"&&a!==a)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ht(t[r],e))return r;r+=1}return-1}function ar(t,e){return mo(e,t,0)>=0}function Wt(t,e){for(var r=0,o=e.length,a=Array(o);r<o;)a[r]=t(e[r]),r+=1;return a}function fe(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var xt=function(e){return(e<10?"0":"")+e},po=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xt(e.getUTCMonth()+1)+"-"+xt(e.getUTCDate())+"T"+xt(e.getUTCHours())+":"+xt(e.getUTCMinutes())+":"+xt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ho(t){return function(){return!t.apply(this,arguments)}}function sr(t,e,r){for(var o=0,a=r.length;o<a;)e=t(e,r[o]),o+=1;return e}function go(t,e){for(var r=0,o=e.length,a=[];r<o;)t(e[r])&&(a[a.length]=e[r]),r+=1;return a}function Kt(t){return Object.prototype.toString.call(t)==="[object Object]"}var yo=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function bo(t){return function(e){return new yo(t,e)}}var ir=z(Nt(["fantasy-land/filter","filter"],bo,function(t,e){return Kt(e)?sr(function(r,o){return t(e[o])&&(r[o]=e[o]),r},{},gt(e)):go(t,e)})),wo=z(function(e,r){return ir(ho(e),r)});function lr(t,e){var r=function(i){var l=e.concat([t]);return ar(i,l)?"<Circular>":lr(i,l)},o=function(s,i){return Wt(function(l){return fe(l)+": "+r(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Wt(r,t).join(", ")+"))";case"[object Array]":return"["+Wt(r,t).concat(o(t,wo(function(s){return/^\d+$/.test(s)},gt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):fe(po(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":fe(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,gt(t)).join(", ")+"}"}}var me=j(function(e){return lr(e,[])}),So=z(function(e,r){if(e===r)return r;function o(u,c){if(u>c!=c>u)return c>u?c:u}var a=o(e,r);if(a!==void 0)return a;var s=o(typeof e,typeof r);if(s!==void 0)return s===typeof e?e:r;var i=me(e),l=o(i,me(r));return l!==void 0&&l===i?e:r}),_o=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),To=function(e){return function(r){return new _o(e,r)}},Oo=z(Nt(["fantasy-land/map","map"],To,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return vt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return sr(function(o,a){return o[a]=e(r[a]),o},{},gt(r));default:return Wt(e,r)}}));const lt=Oo,qt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var cr=z(function(e,r){var o=e<0?r.length+e:e;return Zt(r)?r.charAt(o):r[o]}),yt=z(function(e,r){if(r!=null)return qt(e)?cr(e,r):r[e]}),$o=z(function(e,r){return lt(yt(e),r)}),Po=j(function(e){return At(e)?!0:!e||typeof e!="object"||Zt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),ur=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ko(t,e,r){return function(a,s,i){if(Po(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[ur]!=null)return r(a,s,i[ur]());if(typeof i.next=="function")return r(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Eo(t,e,r){for(var o=0,a=r.length;o<a;){if(e=t["@@transducer/step"](e,r[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var vo=z(function(e,r){return Ut(e.length,function(){return e.apply(r,arguments)})});function Ao(t,e,r){for(var o=r.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=r.next()}return t["@@transducer/result"](e)}function No(t,e,r,o){return t["@@transducer/result"](r[o](vo(t["@@transducer/step"],t),e))}var dr=ko(Eo,No,Ao),xo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function fr(t){return new xo(t)}var Do=X(function(t,e,r){return dr(typeof t=="function"?fr(t):t,e,r)});const mr=Do;var pr=j(function(e){return function(){return e}}),Mo=j(function(e){return vt(mr(So,0,$o("length",e)),function(){for(var r=0,o=e.length;r<o;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})}),pe=X(function(e,r,o){var a=e(r),s=e(o);return a<s?-1:a>s?1:0});function Lo(t,e,r){if(qt(t)&&At(r)){var o=[].concat(r);return o[t]=e,o}var a={};for(var s in r)a[s]=r[s];return a[t]=e,a}var Co=j(function(e){return e==null}),Bo=X(function t(e,r,o){if(e.length===0)return r;var a=e[0];if(e.length>1){var s=!Co(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:qt(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,s)}return Lo(a,r,o)}),Io=X(function(e,r,o){return Bo([e],r,o)});function zo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ro(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function he(t,e,r){if(r||(r=new Go),Vo(t))return t;var o=function(s){var i=r.get(t);if(i)return i;r.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?he(t[l],!0,r):t[l]);return s};switch(ue(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return Ro(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Vo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Go=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var o in e)r.push(Object.prototype.toString.call(e[o]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),o=this.map[r];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function jo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ge(t,e){return function(){var r=arguments.length;if(r===0)return e();var o=arguments[r-1];return At(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var Fo=X(ge("slice",function(e,r,o){return Array.prototype.slice.call(o,e,r)})),Yo=j(ge("tail",Fo(1,1/0)));const Uo=Yo;function Xt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ut(arguments[0].length,mr(jo,arguments[0],Uo(arguments)))}var Ho=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Wo=Ho;function hr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Xt.apply(this,Wo(arguments))}var Ko=j(function(e){return vt(e.length,e)}),qo=function(){function t(e,r,o,a){this.valueFn=e,this.valueAcc=r,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Q(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,he(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),e},t}();function Zo(t,e,r){return function(o){return new qo(t,e,r,o)}}var Xo=ie(4,[],Nt([],Zo,function(e,r,o,a){var s=fr(function(i,l){var u=o(l),c=e(Q(u,i)?i[u]:he(r,!1),l);return c&&c["@@transducer/reduced"]?le(i):(i[u]=c,i)});return dr(s,{},a)})),Jo=X(function(e,r,o){var a=e(r),s=e(o);return a>s?-1:a<s?1:0});const Qo=Jo;function ta(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var ea=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():At(e)?[]:Zt(e)?"":Kt(e)?{}:er(e)?function(){return arguments}():ta(e)?e.constructor.from(""):void 0}),ra=function(){function t(e,r){this.xf=r,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)&&(this.found=!0,e=le(this.xf["@@transducer/step"](e,r))),e},t}();function na(t){return function(e){return new ra(t,e)}}var oa=z(Nt(["find"],na,function(e,r){for(var o=0,a=r.length;o<a;){if(e(r[o]))return r[o];o+=1}})),aa=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=le(this.xf["@@transducer/step"](e,this.idx))),e},t}();function sa(t){return function(e){return new aa(t,e)}}var ia=z(Nt([],sa,function(e,r){for(var o=0,a=r.length;o<a;){if(e(r[o]))return o;o+=1}return-1})),la=z(ge("groupBy",Xo(function(t,e){return t.push(e),t},[]))),ca=X(function(e,r,o){return vt(Math.max(e.length,r.length,o.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):o.apply(this,arguments)})});const ua=ca;var da=z(ar),gr=z(function(e,r){return vt(e+1,function(){var o=arguments[e];if(o!=null&&zo(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(me(o)+' does not have a method named "'+r+'"')})}),fa=j(function(e){return e!=null&&Ht(e,ea(e))}),ma=z(function(e,r){return function(o){return function(a){return lt(function(s){return r(s,a)},o(e(a)))}}}),pa=z(function(e,r){return e.map(function(o){for(var a=r,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=qt(i)?cr(i,a):a[i],s+=1}return a})}),ye=z(function(e,r){return pa([e],r)[0]}),ha=j(function(e){return ma(yt(e),Io(e))}),ga=X(function(e,r,o){var a={},s;r=r||{},o=o||{};for(s in r)Q(s,r)&&(a[s]=Q(s,o)?e(s,r[s],o[s]):r[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),ya=X(function t(e,r,o){return ga(function(a,s,i){return Kt(s)&&Kt(i)?t(e,s,i):e(a,s,i)},r,o)}),ba=z(function(e,r){return ya(function(o,a,s){return s},e,r)});const wa=ba;var Sa=z(function(e,r){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in r)a.hasOwnProperty(l)||(o[l]=r[l]);return o}),yr=function(t){return{value:t,map:function(e){return yr(e(t))}}},_a=X(function(e,r,o){return e(function(a){return yr(r(a))})(o).value}),br=X(function(e,r,o){return e(yt(r,o))}),Ta=X(function(e,r,o){return o.replace(e,r)}),Oa=z(function(e,r){return Array.prototype.slice.call(r,0).sort(e)}),$a=z(function(e,r){return Array.prototype.slice.call(r,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const wr=$a;var $t=gr(1,"split"),Sr=gr(0,"toLowerCase"),Dt=`
9
+ \v\f\r                 \u2028\u2029\uFEFF`,Pa="​",ka=typeof String.prototype.trim=="function",Ea=j(!ka||Dt.trim()||!Pa.trim()?function(e){var r=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return e.replace(r,"").replace(o,"")}:function(e){return e.trim()});const Jt=Ea,_r=Symbol("I18nContext"),K=n.reactive({messages:{},locale:"",fallbackLocale:""}),Tr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const o=(u,c={})=>{const f=!fa(c),p=lt(Jt,$t(".",u));return n.computed(()=>{const d=Or(p);return f?Aa(d,c):d}).value},a=u=>{const c=lt(Jt,$t(".",u));return!!be(K.locale,c,K.messages)},s=u=>{K.locale=u},l={locale:n.computed({get(){return K.locale},set(u){K.locale=u}}),setLocale:s,translate:o,hasTranlation:a};return n.provide(_r,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=va();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},va=()=>{const t=n.inject(_r,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Or=(t=[])=>{let e=be(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=be(K.fallbackLocale,t,K.messages)),e||t.join(".")};function be(t,e,r){return ye([t,...e],r)}const Aa=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,o){return e[o]})},$r=n.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=lt(Jt,$t(".",t.path)),o=Or(r),a=$t(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>n.h(t.tag,s)}}),Pr="https://api.icehockey.hu/vbr",kr="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Er="https://jegkorongszovetseg.hu/assets/images/player_blank.png",vr="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Ar="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Nr="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",xr=new Map().set("hu","hu-hu").set("en","hu-gb"),Dr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Na=1e3*60*5,Mr=1e3,xa={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Da=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ma=[Da];function La(t,e){return n.openBlock(),n.createElementBlock("svg",xa,Ma)}const Lr={render:La},Ca={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ba=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ia=[Ba];function za(t,e){return n.openBlock(),n.createElementBlock("svg",Ca,Ia)}const Ra={render:za},Va={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ga=n.createElementVNode("path",{fill:"currentColor",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"},null,-1),ja=[Ga];function Fa(t,e){return n.openBlock(),n.createElementBlock("svg",Va,ja)}const Ya={render:Fa};function Mt(t){return t.split("-")[1]}function we(t){return t==="y"?"height":"width"}function bt(t){return t.split("-")[0]}function Lt(t){return["top","bottom"].includes(bt(t))?"x":"y"}function Cr(t,e,r){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=Lt(e),u=we(l),c=o[u]/2-a[u]/2,f=l==="x";let p;switch(bt(e)){case"top":p={x:s,y:o.y-a.height};break;case"bottom":p={x:s,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:i};break;case"left":p={x:o.x-a.width,y:i};break;default:p={x:o.x,y:o.y}}switch(Mt(e)){case"start":p[l]-=c*(r&&f?-1:1);break;case"end":p[l]+=c*(r&&f?-1:1)}return p}const Ua=async(t,e,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=r,l=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let c=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:p}=Cr(c,o,u),m=o,d={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:T}=l[h],{x:$,y:k,data:A,reset:v}=await T({x:f,y:p,initialPlacement:o,placement:m,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:t,floating:e}});f=$??f,p=k??p,d={...d,[y]:{...d[y],...A}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(c=v.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):v.rects),{x:f,y:p}=Cr(c,m,u)),h=-1)}return{x:f,y:p,placement:m,strategy:a,middlewareData:d}};function Br(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Qt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Ir(t,e){var r;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:d=0}=e,g=Br(d),h=l[m?p==="floating"?"reference":"floating":p],y=Qt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(h)))==null||r?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),T=p==="floating"?{...i.floating,x:o,y:a}:i.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=await(s.isElement==null?void 0:s.isElement($))&&await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1},A=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:$,strategy:u}):T);return{top:(y.top-A.top+g.top)/k.y,bottom:(A.bottom-y.bottom+g.bottom)/k.y,left:(y.left-A.left+g.left)/k.x,right:(A.right-y.right+g.right)/k.x}}const Ha=Math.min,Wa=Math.max;function Se(t,e,r){return Wa(t,Ha(e,r))}const zr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:u,elements:c}=e;if(r==null)return{};const f=Br(o),p={x:a,y:s},m=Lt(i),d=we(m),g=await u.getDimensions(r),h=m==="y",y=h?"top":"left",T=h?"bottom":"right",$=h?"clientHeight":"clientWidth",k=l.reference[d]+l.reference[m]-p[m]-l.floating[d],A=p[m]-l.reference[m],v=await(u.getOffsetParent==null?void 0:u.getOffsetParent(r));let M=v?v[$]:0;M&&await(u.isElement==null?void 0:u.isElement(v))||(M=c.floating[$]||l.floating[d]);const I=k/2-A/2,V=f[y],L=M-g[d]-f[T],x=M/2-g[d]/2+I,R=Se(V,x,L),H=Mt(i)!=null&&x!=R&&l.reference[d]/2-(x<V?f[y]:f[T])-g[d]/2<0;return{[m]:p[m]-(H?x<V?V-x:L-x:0),data:{[m]:R,centerOffset:x-R}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ka={left:"right",right:"left",bottom:"top",top:"bottom"};function te(t){return t.replace(/left|right|bottom|top/g,e=>Ka[e])}function qa(t,e,r){r===void 0&&(r=!1);const o=Mt(t),a=Lt(t),s=we(a);let i=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=te(i)),{main:i,cross:te(i)}}const Za={start:"end",end:"start"};function _e(t){return t.replace(/start|end/g,e=>Za[e])}const Xa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...h}=t,y=bt(o),T=bt(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=p||(T||!g?[te(i)]:function(R){const H=te(R);return[_e(R),H,_e(H)]}(i));p||d==="none"||k.push(...function(R,H,E,O){const _=Mt(R);let P=function(S,N,D){const C=["left","right"],Y=["right","left"],F=["top","bottom"],W=["bottom","top"];switch(S){case"top":case"bottom":return D?N?Y:C:N?C:Y;case"left":case"right":return N?F:W;default:return[]}}(bt(R),E==="start",O);return _&&(P=P.map(S=>S+"-"+_),H&&(P=P.concat(P.map(_e)))),P}(i,g,d,$));const A=[i,...k],v=await Ir(e,h),M=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&M.push(v[y]),f){const{main:R,cross:H}=qa(o,s,$);M.push(v[R],v[H])}if(I=[...I,{placement:o,overflows:M}],!M.every(R=>R<=0)){var V,L;const R=(((V=a.flip)==null?void 0:V.index)||0)+1,H=A[R];if(H)return{data:{index:R,overflows:I},reset:{placement:H}};let E=(L=I.filter(O=>O.overflows[0]<=0).sort((O,_)=>O.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!E)switch(m){case"bestFit":{var x;const O=(x=I.map(_=>[_.placement,_.overflows.filter(P=>P>0).reduce((P,S)=>P+S,0)]).sort((_,P)=>_[1]-P[1])[0])==null?void 0:x[0];O&&(E=O);break}case"initialPlacement":E=i}if(o!==E)return{reset:{placement:E}}}return{}}}},Ja=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,a=await async function(s,i){const{placement:l,platform:u,elements:c}=s,f=await(u.isRTL==null?void 0:u.isRTL(c.floating)),p=bt(l),m=Mt(l),d=Lt(l)==="x",g=["left","top"].includes(p)?-1:1,h=f&&d?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:T,crossAxis:$,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return m&&typeof k=="number"&&($=m==="end"?-1*k:k),d?{x:$*h,y:T*g}:{x:T*g,y:$*h}}(e,t);return{x:r+a.x,y:o+a.y,data:a}}}};function Qa(t){return t==="x"?"y":"x"}const ts=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:T,y:$}=y;return{x:T,y:$}}},...u}=t,c={x:r,y:o},f=await Ir(e,u),p=Lt(bt(a)),m=Qa(p);let d=c[p],g=c[m];if(s){const y=p==="y"?"bottom":"right";d=Se(d+f[p==="y"?"top":"left"],d,d-f[y])}if(i){const y=m==="y"?"bottom":"right";g=Se(g+f[m==="y"?"top":"left"],g,g-f[y])}const h=l.fn({...e,[p]:d,[m]:g});return{...h,data:{x:h.x-r,y:h.y-o}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){return J(t).getComputedStyle(t)}function Rr(t){return t instanceof J(t).Node}function ut(t){return Rr(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function Z(t){return t instanceof J(t).Element}function Vr(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Ct(t){const{overflow:e,overflowX:r,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(a)}function es(t){return["table","td","th"].includes(ut(t))}function Te(t){const e=Oe(),r=tt(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Oe(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ee(t){return["html","body","#document"].includes(ut(t))}const Gr=Math.min,Bt=Math.max,re=Math.round;function jr(t){const e=tt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(t),s=a?t.offsetWidth:r,i=a?t.offsetHeight:o,l=re(r)!==s||re(o)!==i;return l&&(r=s,o=i),{width:r,height:o,fallback:l}}function Fr(t){return Z(t)?t:t.contextElement}const Yr={x:1,y:1};function Pt(t){const e=Fr(t);if(!et(e))return Yr;const r=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=jr(e);let i=(s?re(r.width):r.width)/o,l=(s?re(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Ur={x:0,y:0};function Hr(t,e,r){var o,a;if(e===void 0&&(e=!0),!Oe())return Ur;const s=t?J(t):window;return!r||e&&r!==s?Ur:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function wt(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),s=Fr(t);let i=Yr;e&&(o?Z(o)&&(i=Pt(o)):i=Pt(t));const l=Hr(s,r,o);let u=(a.left+l.x)/i.x,c=(a.top+l.y)/i.y,f=a.width/i.x,p=a.height/i.y;if(s){const m=J(s),d=o&&Z(o)?J(o):o;let g=m.frameElement;for(;g&&o&&d!==m;){const h=Pt(g),y=g.getBoundingClientRect(),T=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(T.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat(T.paddingTop))*h.y,u*=h.x,c*=h.y,f*=h.x,p*=h.y,u+=y.x,c+=y.y,g=J(g).frameElement}}return Qt({width:f,height:p,x:u,y:c})}function dt(t){return((Rr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wr(t){return wt(dt(t)).left+ne(t).scrollLeft}function kt(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Vr(t)&&t.host||dt(t);return Vr(e)?e.host:e}function Kr(t){const e=kt(t);return ee(e)?e.ownerDocument.body:et(e)&&Ct(e)?e:Kr(e)}function It(t,e){var r;e===void 0&&(e=[]);const o=Kr(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Ct(o)?o:[]):e.concat(o,It(o))}function qr(t,e,r){let o;if(e==="viewport")o=function(a,s){const i=J(a),l=dt(a),u=i.visualViewport;let c=l.clientWidth,f=l.clientHeight,p=0,m=0;if(u){c=u.width,f=u.height;const d=Oe();(!d||d&&s==="fixed")&&(p=u.offsetLeft,m=u.offsetTop)}return{width:c,height:f,x:p,y:m}}(t,r);else if(e==="document")o=function(a){const s=dt(a),i=ne(a),l=a.ownerDocument.body,u=Bt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),c=Bt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+Wr(a);const p=-i.scrollTop;return tt(l).direction==="rtl"&&(f+=Bt(s.clientWidth,l.clientWidth)-u),{width:u,height:c,x:f,y:p}}(dt(t));else if(Z(e))o=function(a,s){const i=wt(a,!0,s==="fixed"),l=i.top+a.clientTop,u=i.left+a.clientLeft,c=et(a)?Pt(a):{x:1,y:1};return{width:a.clientWidth*c.x,height:a.clientHeight*c.y,x:u*c.x,y:l*c.y}}(e,r);else{const a=Hr(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Qt(o)}function Zr(t,e){const r=kt(t);return!(r===e||!Z(r)||ee(r))&&(tt(r).position==="fixed"||Zr(r,e))}function Xr(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Jr(t,e){const r=J(t);if(!et(t))return r;let o=Xr(t,e);for(;o&&es(o)&&tt(o).position==="static";)o=Xr(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!Te(o))?r:o||function(a){let s=kt(a);for(;et(s)&&!ee(s);){if(Te(s))return s;s=kt(s)}return null}(t)||r}function rs(t,e,r){const o=et(e),a=dt(e),s=r==="fixed",i=wt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(o||!o&&!s)if((ut(e)!=="body"||Ct(a))&&(l=ne(e)),et(e)){const c=wt(e,!0,s,e);u.x=c.x+e.clientLeft,u.y=c.y+e.clientTop}else a&&(u.x=Wr(a));return{x:i.left+l.scrollLeft-u.x,y:i.top+l.scrollTop-u.y,width:i.width,height:i.height}}const ns={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t;const s=r==="clippingAncestors"?function(c,f){const p=f.get(c);if(p)return p;let m=It(c).filter(y=>Z(y)&&ut(y)!=="body"),d=null;const g=tt(c).position==="fixed";let h=g?kt(c):c;for(;Z(h)&&!ee(h);){const y=tt(h),T=Te(h);T||y.position!=="fixed"||(d=null),(g?!T&&!d:!T&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||Ct(h)&&!T&&Zr(c,h))?m=m.filter($=>$!==h):d=y,h=kt(h)}return f.set(c,m),m}(e,this._c):[].concat(r),i=[...s,o],l=i[0],u=i.reduce((c,f)=>{const p=qr(e,f,a);return c.top=Bt(p.top,c.top),c.right=Gr(p.right,c.right),c.bottom=Gr(p.bottom,c.bottom),c.left=Bt(p.left,c.left),c},qr(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const a=et(r),s=dt(r);if(r===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((a||!a&&o!=="fixed")&&((ut(r)!=="body"||Ct(s))&&(i=ne(r)),et(r))){const c=wt(r);l=Pt(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+u.x,y:e.y*l.y-i.scrollTop*l.y+u.y}},isElement:Z,getDimensions:function(t){return jr(t)},getOffsetParent:Jr,getDocumentElement:dt,getScale:Pt,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const a=this.getOffsetParent||Jr,s=this.getDimensions;return{reference:rs(e,await a(r),o),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function os(t,e,r,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,u=a||s?[...Z(t)?It(t):t.contextElement?It(t.contextElement):[],...It(e)]:[];u.forEach(m=>{const d=!Z(m)&&m.toString().includes("V");!a||l&&!d||m.addEventListener("scroll",r,{passive:!0}),s&&m.addEventListener("resize",r)});let c,f=null;i&&(f=new ResizeObserver(()=>{r()}),Z(t)&&!l&&f.observe(t),Z(t)||!t.contextElement||l||f.observe(t.contextElement),f.observe(e));let p=l?wt(t):null;return l&&function m(){const d=wt(t);!p||d.x===p.x&&d.y===p.y&&d.width===p.width&&d.height===p.height||r(),p=d,c=requestAnimationFrame(m)}(),r(),()=>{var m;u.forEach(d=>{a&&d.removeEventListener("scroll",r),s&&d.removeEventListener("resize",r)}),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(c)}}const as=(t,e,r)=>{const o=new Map,a={platform:ns,...r},s={...a.platform,_c:o};return Ua(t,e,{...a,platform:s})},Qr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function ss({middleware:t,placement:e=null,strategy:r,append:o,enabled:a}){const s=n.ref(null),i=n.ref(null),l=n.ref(null),u=n.ref(null),c=n.ref(null),f=n.ref(null),p=n.ref(null),m=n.ref(r??"absolute"),d=n.ref(null),g=()=>{!s.value||!i.value||as(s.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,u.value=y.y,m.value=y.strategy,c.value=y.middlewareData.arrow.x,f.value=y.middlewareData.arrow.y,p.value=y.placement})};n.watch(()=>({reference:n.unref(s),floating:n.unref(i),append:n.unref(o)}),({floating:y,append:T})=>{T&&Qr(y,T),g()},{flush:"post"}),n.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();d.value=os(s.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:u,arrowX:c,arrowY:f,placement:p,reference:s,floating:i,strategy:m,update:g}}const is=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(o){return n.isRef(e)?e.value!=null?zr({element:e.value,padding:r}).fn(o):{}:e?zr({element:e,padding:r}).fn(o):{}}}},ls=["data-placement"],$e={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=n.ref(!1),o=n.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:u,reference:c,floating:f,strategy:p}=ss({placement:e.placement,middleware:[Xa(),ts({padding:5}),Ja(e.offset),is({element:o,padding:5})],append:n.computed(()=>e.appendTo),enabled:r}),m=()=>{e.disabled||r.value||(r.value=!0)},d=y=>{r.value&&y&&(r.value=!1)},g=y=>{c.value=y},h={mouseenter:m,mouseleave:d,focus:m,blur:d};return Hn(f,y=>{var T;(T=c.value)!=null&&T.contains(y.target)||d()}),(y,T)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(y.$slots,"default",{setRef:g,show:m,hide:d,events:h}),n.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":n.unref(u),style:n.normalizeStyle({position:n.unref(p),top:n.unref(s)?`${n.unref(s)}px`:"",left:n.unref(a)?`${n.unref(a)}px`:""})},[n.createVNode(n.Transition,{name:"transition-fade",mode:"out-in"},{default:n.withCtx(()=>[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["floating-content",[`is-${e.theme}`]])},[n.renderSlot(y.$slots,"content",{close:d},()=>[n.createTextVNode(n.toDisplayString(t.content),1)]),n.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:n.normalizeStyle({position:n.unref(p),top:n.unref(l)?`${n.unref(l)}px`:"",left:n.unref(i)?`${n.unref(i)}px`:""})},null,4)],2)):n.createCommentVNode("",!0)]),_:3})],12,ls)],64))}},cs=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],us={key:0},ds=["colspan"],fs={key:1},ms=["colspan"],Pe={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:o,appendTo:a}=n.toRefs(r),s=Xe(o,{delay:Mr}),i=e,{t:l}=ct(),u=nt("table"),c=n.computed(()=>r.columns),f=n.computed(()=>Object.keys(r.columns).length),p=(m,d)=>{m.sortOrders&&i("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass(n.unref(u))},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(g,h)=>(n.openBlock(),n.createBlock($e,{key:h,placement:"top",content:g.tooltip,disabled:!g.tooltip,"append-to":n.unref(a)},{default:n.withCtx(({setRef:y,show:T,hide:$})=>[n.createElementVNode("th",{ref_for:!0,ref:y,class:n.normalizeClass([[g.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-sortable":g.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)}]),onMouseenter:T,onMouseleave:$,onFocus:T,onBlur:$,onClick:k=>p(g,h),onKeydown:[n.withKeys(n.withModifiers(k=>p(g,h),["prevent"]),["space"]),n.withKeys(n.withModifiers(k=>p(g,h),["prevent"]),["enter"])],tabindex:g.sortOrders?0:-1,role:"button"},[n.renderSlot(m.$slots,`header-${h}`,{column:g},()=>[n.createTextVNode(n.toDisplayString(g.label),1)]),g.sortOrders&&h!==t.sort.sortTarget?(n.openBlock(),n.createBlock(n.unref(Lr),{key:0,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(at)?(n.openBlock(),n.createBlock(n.unref(Lr),{key:1,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b)?(n.openBlock(),n.createBlock(n.unref(Ra),{key:2,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)?(n.openBlock(),n.createBlock(n.unref(Ya),{key:3,class:"is-icon-sort"})):n.createCommentVNode("",!0)],42,cs)]),_:2},1032,["content","disabled","append-to"]))),128))])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rows,(g,h)=>(n.openBlock(),n.createElementBlock("tr",{key:h,class:n.normalizeClass(g.rowClasses)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(y,T)=>(n.openBlock(),n.createElementBlock("td",{key:T,class:n.normalizeClass([[y.class],{"is-active":T===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-zero":g[T]==0}])},[n.renderSlot(m.$slots,`cell-${T}`,{row:g,prop:T},()=>[n.createTextVNode(n.toDisplayString(g[T]),1)])],2))),128))],2))),128))]),n.unref(s)&&t.rows.length===0?(n.openBlock(),n.createElementBlock("tfoot",us,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:f.value},[n.renderSlot(m.$slots,"loading",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(l)("common.loading")),1)])],8,ds)])])):n.createCommentVNode("",!0),t.rows.length===0&&!n.unref(o)&&!n.unref(s)?(n.openBlock(),n.createElementBlock("tfoot",fs,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:f.value},[n.renderSlot(m.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(l)("common.noData")),1)])],8,ms)])])):n.createCommentVNode("",!0)],2))}},ps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},hs=n.createElementVNode("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),gs=n.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ys=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),bs=[hs,gs,ys];function ws(t,e){return n.openBlock(),n.createElementBlock("svg",ps,bs)}const Ss={render:ws},_s={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:o}=ct(),a=nt("error-notice"),s=n.computed(()=>{var i;return o(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a))},[n.createVNode(n.unref(Ss),{class:"icon",width:"20",height:"20"}),n.createElementVNode("span",null,n.toDisplayString(s.value),1)],2))}};function tn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(r,o){return ye($t(".",o),e)})},en=Symbol("ErrorProviderContext"),rn=()=>{const t=n.ref(""),e=n.ref({}),r=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||tn(s.message),cause:s.cause}},a={onError:r,reset:()=>{t.value="",e.value={}}};return n.provide(en,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},n.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:n.computed(()=>t.value.length>0),message:t,error:e,onError:r}},ke=()=>{const t=Ts();return{onError:t.onError,reset:t.reset}},Ts=()=>{const t=n.inject(en,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Os={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:o}=rn();return(a,s)=>n.renderSlot(a.$slots,"default",{message:n.unref(e),error:n.unref(o),hasError:n.unref(r)})}},$s={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Ps={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},ks=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},Es=n.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=wa({hu:$s,en:Ps},t.messages),{translate:r}=Tr({locale:n.computed(()=>t.locale),messages:e});return{translate:r}}});function vs(t,e,r,o,a,s){return n.renderSlot(t.$slots,"default",{t:t.translate})}const As=ks(Es,[["render",vs]]),Ns=["src"],xs=["src","title"],_t=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=n.toRefs(e),o=n.ref({src:e.src}),{error:a,isReady:s}=so(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)&&n.unref(r)?(n.openBlock(),n.createElementBlock("img",{key:0,src:n.unref(r),class:n.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Ns)):n.createCommentVNode("",!0),n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:1,src:o.value.src,class:n.normalizeClass([i.$attrs.class,{"is-loaded":n.unref(s)}]),title:e.title},null,10,xs))],64))}}),Ds={style:{"text-align":"center"}},Ee={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(r,o)=>(n.openBlock(),n.createElementBlock("div",Ds,n.toDisplayString(n.unref(e)("common.loading")),1))}};function Ms({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:o=5,update:a=ot}){const s=n.computed(()=>Math.ceil(n.unref(r)/e)),i=n.computed(()=>{const f=n.unref(t)-1,p=Array.from({length:s.value},(g,h)=>h+1),m=Math.floor(o/2);let d=Math.max(f-m,0);return d+o>=s.value&&(d=Math.max(s.value-o,0)),p.slice(d,d+o)}),l=f=>{const p=n.unref(t)+f;c(p)&&a(p)},u=f=>{c(f)&&a(f)},c=f=>f<=s.value&&f>0;return{page:t,range:i,pageCount:s,goTo:u,pageStep:l}}const Ls={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Cs=n.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Bs=[Cs];function Is(t,e){return n.openBlock(),n.createElementBlock("svg",Ls,Bs)}const zs={render:Is},Rs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vs=n.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Gs=[Vs];function js(t,e){return n.openBlock(),n.createElementBlock("svg",Rs,Gs)}const Fs={render:js},Ys=["disabled"],Us=["disabled"],Hs={key:1,class:"is-disabled"},Ws=["disabled","onClick"],Ks={key:2,class:"is-disabled"},qs=[n.createElementVNode("span",null,"...",-1)],Zs=["disabled"],Xs=["disabled"],Js={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,o=e,a=nt("paginator"),{page:s,pageCount:i,range:l,goTo:u,pageStep:c}=Ms({currentPage:n.computed(()=>r.page),totalItems:n.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:f=>o("change",f)});return(f,p)=>n.unref(i)>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a))},[n.createElementVNode("button",{type:"button",disabled:n.unref(s)===1,onClick:p[0]||(p[0]=m=>n.unref(c)(-1))},[n.renderSlot(f.$slots,"prev",{},()=>[n.createVNode(n.unref(zs),{class:"icon paginator-left"})])],8,Ys),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",disabled:n.unref(s)===1,onClick:p[1]||(p[1]=m=>n.unref(u)(1))},"1",8,Us)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Hs,"...")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),m=>(n.openBlock(),n.createElementBlock("button",{type:"button",key:m,class:n.normalizeClass({"is-active":m===n.unref(s)}),disabled:m===n.unref(s),onClick:d=>n.unref(u)(m)},n.toDisplayString(m),11,Ws))),128)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ks,qs)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:3,type:"button",disabled:n.unref(s)===n.unref(i),onClick:p[2]||(p[2]=m=>n.unref(u)(n.unref(i)))},n.toDisplayString(n.unref(i)),9,Zs)),n.createElementVNode("button",{type:"button",disabled:n.unref(s)===n.unref(i),onClick:p[3]||(p[3]=n.withModifiers(m=>n.unref(c)(1),["prevent"]))},[n.renderSlot(f.$slots,"next",{},()=>[n.createVNode(n.unref(Fs),{class:"icon paginator-left"})])],8,Xs)],2)):n.createCommentVNode("",!0)}},ve={__name:"ResponsiveTable",setup(t){const e=n.ref(null),r=nt("table-responsive");return(o,a)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"el",ref:e,class:n.normalizeClass(n.unref(r))},[n.renderSlot(o.$slots,"default",{el:e.value})],2))}};var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",u="hour",c="day",f="week",p="month",m="quarter",d="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var O=["th","st","nd","rd"],_=E%100;return"["+E+(O[(_-20)%10]||O[_]||O[0])+"]"}},k=function(E,O,_){var P=String(E);return!P||P.length>=O?E:""+Array(O+1-P.length).join(_)+E},A={s:k,z:function(E){var O=-E.utcOffset(),_=Math.abs(O),P=Math.floor(_/60),S=_%60;return(O<=0?"+":"-")+k(P,2,"0")+":"+k(S,2,"0")},m:function E(O,_){if(O.date()<_.date())return-E(_,O);var P=12*(_.year()-O.year())+(_.month()-O.month()),S=O.clone().add(P,p),N=_-S<0,D=O.clone().add(P+(N?-1:1),p);return+(-(P+(_-S)/(N?S-D:D-S))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:p,y:d,w:f,d:c,D:g,h:u,m:l,s:i,ms:s,Q:m}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},v="en",M={};M[v]=$;var I=function(E){return E instanceof R},V=function E(O,_,P){var S;if(!O)return v;if(typeof O=="string"){var N=O.toLowerCase();M[N]&&(S=N),_&&(M[N]=_,S=N);var D=O.split("-");if(!S&&D.length>1)return E(D[0])}else{var C=O.name;M[C]=O,S=C}return!P&&S&&(v=S),S||!P&&v},L=function(E,O){if(I(E))return E.clone();var _=typeof O=="object"?O:{};return _.date=E,_.args=arguments,new R(_)},x=A;x.l=V,x.i=I,x.w=function(E,O){return L(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var R=function(){function E(_){this.$L=V(_.locale,null,!0),this.parse(_)}var O=E.prototype;return O.parse=function(_){this.$d=function(P){var S=P.date,N=P.utc;if(S===null)return new Date(NaN);if(x.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var D=S.match(y);if(D){var C=D[2]-1||0,Y=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)):new Date(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)}}return new Date(S)}(_),this.$x=_.x||{},this.init()},O.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},O.$utils=function(){return x},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(_,P){var S=L(_);return this.startOf(P)<=S&&S<=this.endOf(P)},O.isAfter=function(_,P){return L(_)<this.startOf(P)},O.isBefore=function(_,P){return this.endOf(P)<L(_)},O.$g=function(_,P,S){return x.u(_)?this[P]:this.set(S,_)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(_,P){var S=this,N=!!x.u(P)||P,D=x.p(_),C=function(Et,q){var pt=x.w(S.$u?Date.UTC(S.$y,q,Et):new Date(S.$y,q,Et),S);return N?pt:pt.endOf(c)},Y=function(Et,q){return x.w(S.toDate()[Et].apply(S.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(q)),S)},F=this.$W,W=this.$M,mt=this.$D,it="set"+(this.$u?"UTC":"");switch(D){case d:return N?C(1,0):C(31,11);case p:return N?C(1,W):C(0,W+1);case f:var Vt=this.$locale().weekStart||0,Gt=(F<Vt?F+7:F)-Vt;return C(N?mt-Gt:mt+(6-Gt),W);case c:case g:return Y(it+"Hours",0);case u:return Y(it+"Minutes",1);case l:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},O.endOf=function(_){return this.startOf(_,!1)},O.$set=function(_,P){var S,N=x.p(_),D="set"+(this.$u?"UTC":""),C=(S={},S[c]=D+"Date",S[g]=D+"Date",S[p]=D+"Month",S[d]=D+"FullYear",S[u]=D+"Hours",S[l]=D+"Minutes",S[i]=D+"Seconds",S[s]=D+"Milliseconds",S)[N],Y=N===c?this.$D+(P-this.$W):P;if(N===p||N===d){var F=this.clone().set(g,1);F.$d[C](Y),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else C&&this.$d[C](Y);return this.init(),this},O.set=function(_,P){return this.clone().$set(_,P)},O.get=function(_){return this[x.p(_)]()},O.add=function(_,P){var S,N=this;_=Number(_);var D=x.p(P),C=function(W){var mt=L(N);return x.w(mt.date(mt.date()+Math.round(W*_)),N)};if(D===p)return this.set(p,this.$M+_);if(D===d)return this.set(d,this.$y+_);if(D===c)return C(1);if(D===f)return C(7);var Y=(S={},S[l]=o,S[u]=a,S[i]=r,S)[D]||1,F=this.$d.getTime()+_*Y;return x.w(F,this)},O.subtract=function(_,P){return this.add(-1*_,P)},O.format=function(_){var P=this,S=this.$locale();if(!this.isValid())return S.invalidDate||h;var N=_||"YYYY-MM-DDTHH:mm:ssZ",D=x.z(this),C=this.$H,Y=this.$m,F=this.$M,W=S.weekdays,mt=S.months,it=function(q,pt,Be,oe){return q&&(q[pt]||q(P,N))||Be[pt].slice(0,oe)},Vt=function(q){return x.s(C%12||12,q,"0")},Gt=S.meridiem||function(q,pt,Be){var oe=q<12?"AM":"PM";return Be?oe.toLowerCase():oe},Et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:x.s(F+1,2,"0"),MMM:it(S.monthsShort,F,mt,3),MMMM:it(mt,F),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:it(S.weekdaysMin,this.$W,W,2),ddd:it(S.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(C),HH:x.s(C,2,"0"),h:Vt(1),hh:Vt(2),a:Gt(C,Y,!0),A:Gt(C,Y,!1),m:String(Y),mm:x.s(Y,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:D};return N.replace(T,function(q,pt){return pt||Et[q]||D.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(_,P,S){var N,D=x.p(P),C=L(_),Y=(C.utcOffset()-this.utcOffset())*o,F=this-C,W=x.m(this,C);return W=(N={},N[d]=W/12,N[p]=W,N[m]=W/3,N[f]=(F-Y)/6048e5,N[c]=(F-Y)/864e5,N[u]=F/a,N[l]=F/o,N[i]=F/r,N)[D]||F,S?W:x.a(W)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return M[this.$L]},O.locale=function(_,P){if(!_)return this.$L;var S=this.clone(),N=V(_,P,!0);return N&&(S.$L=N),S},O.clone=function(){return x.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E}(),H=R.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",u],["$W",c],["$M",p],["$y",d],["$D",g]].forEach(function(E){H[E[1]]=function(O){return this.$g(O,E[0],E[1])}}),L.extend=function(E,O){return E.$i||(E(O,R,L),E.$i=!0),L},L.locale=V,L.isDayjs=I,L.unix=function(E){return L(1e3*E)},L.en=M[v],L.Ls=M,L.p={},L})})(nn);var on=nn.exports;const U=ft(on);var an={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var u=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},u.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var f=u.init;u.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var p=u.utcOffset;u.utcOffset=function(h,y){var T=this.$utils().u;if(T(h))return this.$u?0:T(this.$offset)?p.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var M=v.match(o);if(!M)return null;var I=(""+M[0]).match(a)||["-",0,0],V=I[0],L=60*+I[1]+ +I[2];return L===0?0:V==="+"?L:-L}(h),h===null))return this;var $=Math.abs(h)<=16?60*h:h,k=this;if(y)return k.$offset=$,k.$u=h===0,k;if(h!==0){var A=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add($+A,r)).$offset=$,k.$x.$localOffset=A}else k=this.utc();return k};var m=u.format;u.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,y)},u.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=u.diff;u.diff=function(h,y,T){if(h&&this.$u===h.$u)return g.call(this,h,y,T);var $=this.local(),k=l(h).local();return g.call($,k,y,T)}}})})(an);var Qs=an.exports;const ti=ft(Qs);var sn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,u=function(m,d,g){g===void 0&&(g={});var h=new Date(m),y=function(T,$){$===void 0&&($={});var k=$.timeZoneName||"short",A=T+"|"+k,v=o[A];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:k}),o[A]=v),v}(d,g);return y.formatToParts(h)},c=function(m,d){for(var g=u(m,d),h=[],y=0;y<g.length;y+=1){var T=g[y],$=T.type,k=T.value,A=r[$];A>=0&&(h[A]=parseInt(k,10))}var v=h[3],M=v===24?0:v,I=h[0]+"-"+h[1]+"-"+h[2]+" "+M+":"+h[4]+":"+h[5]+":000",V=+m;return(i.utc(I).valueOf()-(V-=V%1e3))/6e4},f=s.prototype;f.tz=function(m,d){m===void 0&&(m=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:m}),T=Math.round((h-new Date(y))/1e3/60),$=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-T,!0);if(d){var k=$.utcOffset();$=$.add(g-k,"minute")}return $.$x.$timezone=m,$},f.offsetName=function(m){var d=this.$x.$timezone||i.tz.guess(),g=u(this.valueOf(),d,{timeZoneName:m}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var p=f.startOf;f.startOf=function(m,d){if(!this.$x||!this.$x.$timezone)return p.call(this,m,d);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return p.call(g,m,d).tz(this.$x.$timezone,!0)},i.tz=function(m,d,g){var h=g&&d,y=g||d||l,T=c(+i(),y);if(typeof m!="string")return i(m).tz(y);var $=function(M,I,V){var L=M-60*I*1e3,x=c(L,V);if(I===x)return[L,I];var R=c(L-=60*(x-I)*1e3,V);return x===R?[L,x]:[M-60*Math.min(x,R)*1e3,Math.max(x,R)]}(i.utc(m,h).valueOf(),T,y),k=$[0],A=$[1],v=i(k).utcOffset(A);return v.$x.$timezone=y,v},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(m){l=m}}})})(sn);var ei=sn.exports;const ri=ft(ei);var ln={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}});return s.bind(this)(f)}}})})(ln);var ni=ln.exports;const oi=ft(ni);var cn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(cn);var ai=cn.exports;const si=ft(ai);var un={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o,a){o.prototype.isBetween=function(s,i,l,u){var c=a(s),f=a(i),p=(u=u||"()")[0]==="(",m=u[1]===")";return(p?this.isAfter(c,l):!this.isBefore(c,l))&&(m?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(c,l):!this.isAfter(c,l))&&(m?this.isAfter(f,l):!this.isBefore(f,l))}}})})(un);var ii=un.exports;const li=ft(ii);var dn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=r,i.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,f=function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,h){var y=h&&h.toUpperCase();return g||m[h]||r[h]||m[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,$,k){return $||k.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,f)}}})})(dn);var ci=dn.exports;const ui=ft(ci);var fn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o,a){r=r||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(c,f,p,m){return s.fromToBase(c,f,p,m)}a.en.relativeTime=i,s.fromToBase=function(c,f,p,m,d){for(var g,h,y,T=p.$locale().relativeTime||i,$=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],k=$.length,A=0;A<k;A+=1){var v=$[A];v.d&&(g=m?a(c).diff(p,v.d,!0):p.diff(c,v.d,!0));var M=(r.rounding||Math.round)(Math.abs(g));if(y=g>0,M<=v.r||!v.r){M<=1&&A>0&&(v=$[A-1]);var I=T[v.l];d&&(M=d(""+M)),h=typeof I=="string"?I.replace("%d",M):I(M,f,v.l,y);break}}if(f)return h;var V=y?T.future:T.past;return typeof V=="function"?V(h):V.replace("%s",h)},s.to=function(c,f){return l(c,f,this,!0)},s.from=function(c,f){return l(c,f,this)};var u=function(c){return c.$u?a.utc():a()};s.toNow=function(c){return this.to(u(this),c)},s.fromNow=function(c){return this.from(u(this),c)}}})})(fn);var di=fn.exports;const fi=ft(di);var mi={exports:{}};(function(t,e){(function(r,o){t.exports=o(on)})(st,function(r){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(r),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(i,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(i,l,u,c){return i+" perc"+(c||l?"":"e")},h:function(i,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(i,l,u,c){return i+" "+(c||l?"óra":"órája")},d:function(i,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(i,l,u,c){return i+" "+(c||l?"nap":"napja")},M:function(i,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(i,l,u,c){return i+" "+(c||l?"hónap":"hónapja")},y:function(i,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(i,l,u,c){return i+" "+(c||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(mi),U.extend(ti),U.extend(ri),U.extend(oi),U.extend(fi),U.extend(ui),U.extend(si),U.extend(li);const mn=()=>U.tz.guess(),Tt=(t="",e="",r="",o="hu")=>(r=r||U.tz.guess(),U(t).isValid()?U(t).tz(r).locale(o).format(e):""),zt=(t="",e="",r="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(pi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},pi=t=>xr.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},pn=t=>{const e=~~(t/60),r=~~t%60;return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},hn=t=>{const e=Math.trunc(t),r=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},Ne=(t,e="day")=>U().isSameOrBefore(U(t),e),hi=(t,e,r)=>U(t).isBetween(e,U(r)),gi=(t,e,r="month")=>U(t).isSame(e,r),yi=(t,e="hu")=>U(t).locale(e).toNow(!0),bi=["onClick"],wi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,o=e,{t:a}=ct(),s=nt("timezone-selector"),i=n.computed(()=>zt(new Date,null,r.locale)),l=mn(),u=n.computed(()=>Array.from(Dr.values()).map(f=>({...f,isActive:zt(new Date,r.currentZone,r.locale)===zt(new Date,f.timezone,r.locale),zoneOffsetName:zt(new Date,f.timezone,r.locale)}))),c=f=>o("change",f);return(f,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(s))},[n.createVNode(n.unref($r),{path:"common.selectTimezone",tag:"span"},{timezone:n.withCtx(()=>[n.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=n.withModifiers(m=>c(n.unref(l)),["prevent"]))},n.toDisplayString(i.value),1)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.value,m=>(n.openBlock(),n.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:n.normalizeClass({"is-active":m.isActive}),onClick:n.withModifiers(d=>c(m.timezone),["prevent"])},n.toDisplayString(n.unref(a)(`common.${m.countryLabelKey}`))+" ("+n.toDisplayString(m.zoneOffsetName)+") ",11,bi))),128))],2))}},xe=(t,e="",r={})=>{const o=n.ref(""),{t:a}=ct(),s=n.computed(()=>{if(n.unref(e))try{const u=gn(n.unref(t),n.unref(e));return Sa(u,n.unref(t))}catch(u){o.value=u}return n.unref(t)}),i=u=>({...u,...u.label&&{label:a(u.label??"",n.unref(r))},...u.tooltip&&{tooltip:a(u.tooltip??"")}});return{columns:n.computed(()=>lt(i,s.value)),error:o}},gn=(t,e="")=>{const r=lt(Jt,$t(",",e)),o=gt(t);if(r[0]==="")return resolve([]);const a=r.findIndex(s=>!o.includes(s));if(a>-1)throw r[a];return r};class De extends Error{constructor(e,r={}){const{key:o,cause:a}=r;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Rt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Si={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},_i={class:"is-portrait-image"},Ti={class:"is-team-name-long"},Oi={class:"is-team-name-short"},$i={class:"is-team-name-long"},Pi={class:"is-team-name-short"},ki={class:"is-team-name-long"},Ei={class:"is-team-name-short"},vi=["href"],Ai={class:"is-team-name-long"},Ni={class:"is-team-name-short"},xi=["href"],Di={key:0,class:"is-text-dark"},Mi=["href","target"],Li={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const r=t,{columns:o,hideColumns:a}=n.toRefs(r),s=e,{onError:i}=ke(),{columns:l,error:u}=xe(o,a,n.computed(()=>({offsetName:r.offsetName})));u.value&&i(new De(Rt.message,{...Rt.options,cause:{column:u.value}}));const c=f=>s("sort",f);return(f,p)=>(n.openBlock(),n.createBlock(ve,null,{default:n.withCtx(({el:m})=>[n.createVNode(Pe,{columns:n.unref(l),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},n.createSlots({"cell-index":n.withCtx(({row:d})=>[n.createElementVNode("span",{class:n.normalizeClass(d.indexClass)},n.toDisplayString(d.index),3)]),"cell-playerPortrait":n.withCtx(({row:d})=>[n.createElementVNode("div",_i,[(n.openBlock(),n.createBlock(_t,{key:d.player.playerId,src:d.player.picture,"default-src":n.unref(Er)},null,8,["src","default-src"]))])]),"cell-teamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image",key:((g=d.team)==null?void 0:g.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:(g=d.homeTeam)==null?void 0:g.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":n.withCtx(({row:d})=>{var g,h;return[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:(g=d.awayTeam)==null?void 0:g.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",Ti,n.toDisplayString((g=d.team)==null?void 0:g.longName),1),n.createElementVNode("span",Oi,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",$i,n.toDisplayString((g=d.homeTeam)==null?void 0:g.longName),1),n.createElementVNode("span",Pi,n.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("span",ki,n.toDisplayString((g=d.awayTeam)==null?void 0:g.longName),1),n.createElementVNode("span",Ei,n.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":n.withCtx(({row:d})=>{var g;return[n.createTextVNode(n.toDisplayString(((g=d.location)==null?void 0:g.locationName)??""),1)]}),"cell-gameResult":n.withCtx(({row:d})=>[d.gameStatus===0?(n.openBlock(),n.createElementBlock("span",Di,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},n.toDisplayString(d.homeTeamScore)+":"+n.toDisplayString(d.awayTeamScore),11,Mi))]),loading:n.withCtx(()=>[n.createVNode(Ee)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:n.withCtx(({row:d})=>{var g,h;return[n.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[n.createElementVNode("span",Ai,n.toDisplayString((g=d.team)==null?void 0:g.longName),1),n.createElementVNode("span",Ni,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)],8,vi)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:n.withCtx(({row:d})=>[n.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},n.toDisplayString(d.name),9,xi)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},yn={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Ci={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Bi={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Ii={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},zi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ri={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Vi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Gi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},ji={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Fi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Yi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},bn=async(t,e,r)=>{const o=`${Pr}${n.unref(t)}?${Ui(r)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Hi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Ui=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Hi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Wi=(t={})=>{const{initial:e=1,items:r=[],limit:o,auto:a=!1}=t,s=n.ref(n.unref(e)),i=c=>Ne(c,"day");return Bn(r,()=>{if(!a)return;const c=ia(br(i,"gameDate"))(n.unref(r));s.value=c===-1?1:Math.floor(c/o)+1}),{page:s,change:c=>{s.value=c}}},Ki=({options:t={},transform:e=a=>a,onError:r=ot,onSuccess:o=ot})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:u=!1}=t,{state:c,error:f,isLoading:p,execute:m}=Ke(()=>bn(a,s,n.unref(i)).then(d=>e(d)),[],{immediate:u,resetOnExecute:l,onError:r,onSuccess:o});return{state:c,error:f,isLoading:p,execute:m}};/*! *****************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
12
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(w,n){"use strict";var Pn={VITE_VBR_API_URL:"htt
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */function wn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o,a,s=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return i}var Sn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Sn||(Sn={}));var qi={type:"xstate.init"};function Me(t){return t===void 0?[]:[].concat(t)}function _n(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Le(t){return function(e){return t===e}}function Zi(t){return typeof t=="string"?{type:t}:t}function Tn(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Le(t)}}function On(t,e,r){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,r):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,r):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Xi(t,e){e===void 0&&(e={});var r=wn(On(Me(t.states[t.initial].entry).map(function(i){return _n(i,e.actions)}),t.context,qi),2),o=r[0],a=r[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Le(t.initial)},transition:function(i,l){var u,c,m=typeof i=="string"?{value:i,context:t.context}:i,p=m.value,f=m.context,d=Zi(l),g=t.states[p];if(g.on){var h=Me(g.on[d.type]);try{for(var y=function(S){var N=typeof Symbol=="function"&&Symbol.iterator,D=N&&S[N],C=0;if(D)return D.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&C>=S.length&&(S=void 0),{value:S&&S[C++],done:!S}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),T=y.next();!T.done;T=y.next()){var $=T.value;if($===void 0)return Tn(p,f);var k=typeof $=="string"?{target:$}:$,A=k.target,v=k.actions,M=v===void 0?[]:v,I=k.cond,V=I===void 0?function(){return!0}:I,L=A===void 0,x=A??p,R=t.states[x];if(V(f,d)){var H=wn(On((L?Me(M):[].concat(g.exit,M,R.entry).filter(function(S){return S})).map(function(S){return _n(S,s._options.actions)}),f,d),3),E=H[0],O=H[1],_=H[2],P=A??p;return{value:P,context:O,actions:E,changed:A!==p||E.length>0||_,matches:Le(P)}}}}catch(S){u={error:S}}finally{try{T&&!T.done&&(c=y.return)&&c.call(y)}finally{if(u)throw u.error}}}return Tn(p,f)}};return s}const Ji=Xi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:at}},[B]:{on:{DIRECTION1:at,DIRECTION2:b}}}}),Qi=(t,e)=>{const r=e===B?"DIRECTION2":"DIRECTION1";return Ji.transition(t,r).value};function tl(t={}){const{sortTarget:e=null,orders:r=[]}=t,o=n.reactive({sortTarget:e,orders:r});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((u,c)=>({...u,direction:Qi(o.orders[c].direction,u.direction)}));o.sortTarget=s,o.orders=l}}}function el(t=!1,e=ot,r=ot){const o=to();n.watch(o,a=>{if(n.unref(t)){if(a==="visible")return e();r()}})}const rl=(t={})=>{const{items:e=[],element:r,offset:o=0}=t,a=l=>Ne(l,"day"),s=()=>{var f;i();const l=oa(br(a,"gameDate"))(n.unref(e));if(!l)return;const u=Tt(l.gameDate,"YYYY-MM-DD"),c=Ot(r).querySelector(`div[data-gamedate="${u}"]`);if(!c)return;const m=getComputedStyle(c).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((f=c.getBoundingClientRect())==null?void 0:f.top)??0)-n.unref(o)-parseFloat(m);window.scrollTo(0,p)},{stop:i}=Fn(()=>({items:n.unref(e),element:n.unref(r)}),async({items:l,element:u})=>{l.length===0||!u||(await n.nextTick(),s())})},nl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],o=!1){if(e){const a=r.map(l=>o?Xt(ye(l),Ht(e)):Xt(yt(l),Sr,da(Sr(e)))),s=Ko(l=>l.name?_a(ha("name"),Ta(",",""),l):l),i=ir(Xt(s,Mo([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===at)return this;const r=ua(Ht(B),pr(pe),pr(Qo));return this.result=wr(e.orders.map(o=>hr(r(o.direction),yt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,o,a)=>{const s=r[r.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,r.push(o),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){if(!r)return this;e=Number(e),r=Number(r);const o=(e-1)*r,a=o+r;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",r="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Tt(o.gameDate,"L dddd",e,r),gameDateTime:Tt(o.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(o=>r[o]?r[`${o}Sec`]=Ae(r[o]):r),r)),this},groupByDays(){return this.result=la(e=>Tt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),ol=(t,...e)=>lt(hr(...e))(t),al=t=>{var e,r,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((r=t.player)==null?void 0:r.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},sl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},il=(t="",e="hu")=>r=>({...r,gameDateDate:Tt(r.gameDate,"L dddd",t,e),gameDateTime:Tt(r.gameDate,"HH:mm",t,e)}),ll=t=>e=>({...e,gameResult:bl(e)}),cl=t=>({...t,opponent:yl(t)}),ul=t=>({...t,resultType:wl(t)}),dl=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},fl=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=Ae(e[r]):e),e),ml=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Min`]=hn(e[r]):e),e),pl=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=pn(e[r])),e),hl=wr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),pe(yt("id")),pe(yt("gameId"))]),gl=Oa((t=>(e,r)=>e[t].localeCompare(r[t],"hu"))("name"));function yl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function bl(t,e){let r=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(r=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[r,o].join(":")}function wl(t){const e=t.gameResult.split(":"),r=e[0]>e[1],o=e[0]<e[1];return r&&t.isOvertime?"OTW":r&&t.isShootout?"SOW":r?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Sl=(t,e={})=>{const r=Ce("gameResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||kr,e))},_l=(t,e={})=>{const r=Ce("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||Ar,e))},Tl=(t,e={})=>{const r=Ce("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||vr,e))},Ol=(t,e="1x1")=>`${Nr}/flag:${t}-${e}.svg`,Ce=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},$l=()=>{window.scrollTo(0,0)},Pl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},kl=n.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),El=n.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),vl=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Al=[kl,El,vl];function Nl(t,e){return n.openBlock(),n.createElementBlock("svg",Pl,Al)}const xl={render:Nl},Dl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ml=n.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Ll=n.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Cl=n.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Bl=[Ml,Ll,Cl];function Il(t,e){return n.openBlock(),n.createElementBlock("svg",Dl,Bl)}const zl={render:Il},Rl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vl=n.createElementVNode("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),Gl=n.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),jl=[Vl,Gl];function Fl(t,e){return n.openBlock(),n.createElementBlock("svg",Rl,jl)}const Yl={render:Fl},Ul={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Hl=n.createElementVNode("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),Wl=n.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Kl=[Hl,Wl];function ql(t,e){return n.openBlock(),n.createElementBlock("svg",Ul,Kl)}const Zl={render:ql},Xl={class:"is-team-name-long"},Jl={class:"is-team-name-short"},Ql={class:"is-team-name-long"},tc={class:"is-team-name-short"},ec={key:0,class:"is-text-dark"},rc=["href","target"],nc={key:0,class:"label"},oc={key:1,class:"label"},ac={key:2,class:"label"},sc={key:1},ic=["onClick","onFocus","onBlur"],lc={class:"is-dropdown-menu"},cc=["href","target"],uc={key:0},dc=["href"],fc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,r=n.ref(null),{onError:o}=ke(),{columns:a,error:s}=xe(yn,n.computed(()=>e.hideColumns),n.computed(()=>({offsetName:e.offsetName})));Yn(s,()=>o(new De(Rt.message,{...Rt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(ve,null,{default:n.withCtx(({el:c})=>[n.createVNode(Pe,{columns:n.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||c},{"cell-homeTeamName":n.withCtx(({row:m})=>[n.createElementVNode("span",Xl,n.toDisplayString(m.homeTeam.longName),1),n.createElementVNode("span",Jl,n.toDisplayString(m.homeTeam.shortName),1)]),"cell-awayTeamName":n.withCtx(({row:m})=>[n.createElementVNode("span",Ql,n.toDisplayString(m.awayTeam.longName),1),n.createElementVNode("span",tc,n.toDisplayString(m.awayTeam.shortName),1)]),"cell-homeTeamLogo":n.withCtx(({row:m})=>[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:m.homeTeam.id,src:m.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":n.withCtx(({row:m})=>[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:m.awayTeam.id,src:m.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":n.withCtx(({row:m})=>[m.gameStatus===0?(n.openBlock(),n.createElementBlock("span",ec,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(m.gameId),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":m.gameStatus!==1,"is-text-accent":m.gameStatus===1})},n.toDisplayString(m.homeTeamScore)+":"+n.toDisplayString(m.awayTeamScore),11,rc))]),"cell-gameResultType":n.withCtx(({row:m})=>[m.isOvertime?(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(n.unref(i)("common.overtimeShort")),1)):n.createCommentVNode("",!0),m.isShootout?(n.openBlock(),n.createElementBlock("span",oc,n.toDisplayString(n.unref(i)("common.shootoutShort")),1)):n.createCommentVNode("",!0),m.seriesStandings?(n.openBlock(),n.createElementBlock("span",ac,n.toDisplayString(m.seriesStandings),1)):n.createCommentVNode("",!0)]),"cell-broadcast":n.withCtx(({row:m})=>[m.broadcast?(n.openBlock(),n.createBlock(n.unref(xl),{key:0})):(n.openBlock(),n.createElementBlock("span",sc))]),"cell-location":n.withCtx(({row:m})=>{var p;return[n.createTextVNode(n.toDisplayString(((p=m.location)==null?void 0:p.locationName)??""),1)]}),"cell-more":n.withCtx(({row:m})=>[n.createVNode($e,{offset:2,placement:"left",theme:"content","append-to":c},{default:n.withCtx(({setRef:p,show:f,hide:d})=>[n.createElementVNode("button",{ref:p,onClick:n.withModifiers(f,["stop"]),onFocus:f,onBlur:d},[n.createVNode(n.unref(zl))],40,ic)]),content:n.withCtx(()=>[n.createElementVNode("ul",lc,[n.createElementVNode("li",null,[n.createElementVNode("a",{href:t.externalGameResolver(m.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[n.createVNode(n.unref(Yl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.report")),1)],8,cc)]),m.video?(n.openBlock(),n.createElementBlock("li",uc,[n.createElementVNode("a",{href:m.video,class:"is-dropdown-item",target:"_blank"},[n.createVNode(n.unref(Zl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.video")),1)],8,dc)])):n.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:n.withCtx(()=>[n.createVNode(Ee)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),n.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}},mc={class:"g-row g-gap-normal is-mb-5"},pc=["value"],hc={key:0},gc=["onClick"],yc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const r=t,o=e,{t:a}=ct(),s=n.computed({get(){return r.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",mc,[n.createElementVNode("div",null,[n.createElementVNode("label",{for:"season",class:n.normalizeClass(n.unref(nt)("label"))},n.toDisplayString(n.unref(a)("selection.season")),3),n.createVNode(Ie,{id:"season",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.seasons,c=>(n.openBlock(),n.createElementBlock("option",{key:c.championshipId,value:c.championshipId},n.toDisplayString(c.seasonName),9,pc))),128))]),_:1},8,["modelValue"])]),n.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",hc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.sections,c=>(n.openBlock(),n.createElementBlock("button",{key:c.phaseId,onClick:m=>i(c),class:n.normalizeClass([n.unref(nt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},n.toDisplayString(c.sectionName),11,gc))),128))]))],64))}},bc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},wc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Sc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},_c={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},$n=({app:t=null,modules:e=[],apiKey:r,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:r,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},Tc={install:(t,e={})=>$n({app:t,...e})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Dr,w.BaseSelect=Ie,w.COLUMNS_FIELD_PLAYERS=Ii,w.COLUMNS_FIELD_PLAYERS_PENALTY=zi,w.COLUMNS_GOALIES=Ri,w.COLUMNS_SCHEDULE=yn,w.COLUMNS_SCORING_EFFICIENCY=Yi,w.COLUMNS_STANDINGS_P_2=Bi,w.COLUMNS_STANDINGS_P_3=Ci,w.COLUMNS_TEAMS_FAIRPLAY=Gi,w.COLUMNS_TEAMS_PENALTY_KILLING=ji,w.COLUMNS_TEAMS_POWERPLAY=Fi,w.COLUMNS_TEAM_ATTENDANCE=Vi,w.DEFAULT_EXTERNAL_GAME_URL=kr,w.DEFAULT_EXTERNAL_PLAYER_URL=vr,w.DEFAULT_EXTERNAL_TEAM_URL=Ar,w.DEFAULT_PORTRAIT_IMAGE_URL=Er,w.DataTable=Pe,w.ErrorNotice=_s,w.ErrorProvider=Os,w.FLAG_BASE_URL=Nr,w.FloatingPanel=$e,w.I18NProvider=As,w.Image=_t,w.InvalidSeasonName=Si,w.LAZY_LOADING_STATE_DELAY=Mr,w.LOCALE_FOR_LANG=xr,w.LoadingIndicator=Ee,w.Paginator=Js,w.REFRESH_DELAY=Na,w.ResponsiveTable=ve,w.SORT_STATE_ASCEND=B,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=at,w.ScheduleTable=fc,w.SeasonSelector=yc,w.StatisticsTable=Li,w.TimezoneSelector=wi,w.UndefinedColumn=Rt,w.VBR_API_BASE_URL=Pr,w.WidgetError=De,w.appendTo=Qr,w.baseProps=bc,w.convert=nl,w.convertMinToMinSec=hn,w.convertMinToSec=Ae,w.convertSecToMin=pn,w.convertTimes=fl,w.convertTimesMinToMinSec=ml,w.convertTimesSecToMin=pl,w.createConfig=$n,w.createI18n=Tr,w.default=Tc,w.externalGameLinkResolver=Sl,w.externalPlayerLinkResolver=Tl,w.externalTeamLinkResolver=_l,w.fetchVBRData=bn,w.flagResolver=Ol,w.format=Tt,w.gameDateTime=il,w.gameProps=_c,w.gameResult=ll,w.getLocalTimezone=mn,w.i18n=$r,w.isBetween=hi,w.isSame=gi,w.isSameOrBefore=Ne,w.localeSort=gl,w.offsetName=zt,w.playerName=al,w.playerStatsProps=Sc,w.rawConvert=ol,w.scrollToTop=$l,w.sortGames=hl,w.teamName=sl,w.teamOpponent=cl,w.teamResultType=ul,w.teamStatsProps=wc,w.templateReplacer=St,w.toKebabCase=tn,w.upperCase=dl,w.useColumns=xe,w.useError=ke,w.useErrorProvider=rn,w.useI18n=ct,w.useLazyLoadingState=Xe,w.useMainClass=nt,w.usePage=Wi,w.useScrollToGameDate=rl,w.useServices=Ki,w.useSort=tl,w.useVisibilityChange=el,w.validateColumnsName=gn,w.yearToNow=yi,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),w}({},Vue);
22
+ ***************************************************************************** */function wn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o,a,s=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return i}var Sn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Sn||(Sn={}));var qi={type:"xstate.init"};function Me(t){return t===void 0?[]:[].concat(t)}function _n(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Le(t){return function(e){return t===e}}function Zi(t){return typeof t=="string"?{type:t}:t}function Tn(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Le(t)}}function On(t,e,r){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,r):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,r):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Xi(t,e){e===void 0&&(e={});var r=wn(On(Me(t.states[t.initial].entry).map(function(i){return _n(i,e.actions)}),t.context,qi),2),o=r[0],a=r[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Le(t.initial)},transition:function(i,l){var u,c,f=typeof i=="string"?{value:i,context:t.context}:i,p=f.value,m=f.context,d=Zi(l),g=t.states[p];if(g.on){var h=Me(g.on[d.type]);try{for(var y=function(S){var N=typeof Symbol=="function"&&Symbol.iterator,D=N&&S[N],C=0;if(D)return D.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&C>=S.length&&(S=void 0),{value:S&&S[C++],done:!S}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),T=y.next();!T.done;T=y.next()){var $=T.value;if($===void 0)return Tn(p,m);var k=typeof $=="string"?{target:$}:$,A=k.target,v=k.actions,M=v===void 0?[]:v,I=k.cond,V=I===void 0?function(){return!0}:I,L=A===void 0,x=A??p,R=t.states[x];if(V(m,d)){var H=wn(On((L?Me(M):[].concat(g.exit,M,R.entry).filter(function(S){return S})).map(function(S){return _n(S,s._options.actions)}),m,d),3),E=H[0],O=H[1],_=H[2],P=A??p;return{value:P,context:O,actions:E,changed:A!==p||E.length>0||_,matches:Le(P)}}}}catch(S){u={error:S}}finally{try{T&&!T.done&&(c=y.return)&&c.call(y)}finally{if(u)throw u.error}}}return Tn(p,m)}};return s}const Ji=Xi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:at}},[B]:{on:{DIRECTION1:at,DIRECTION2:b}}}}),Qi=(t,e)=>{const r=e===B?"DIRECTION2":"DIRECTION1";return Ji.transition(t,r).value};function tl(t={}){const{sortTarget:e=null,orders:r=[]}=t,o=n.reactive({sortTarget:e,orders:r});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((u,c)=>({...u,direction:Qi(o.orders[c].direction,u.direction)}));o.sortTarget=s,o.orders=l}}}function el(t=!1,e=ot,r=ot){const o=to();n.watch(o,a=>{if(n.unref(t)){if(a==="visible")return e();r()}})}const rl=(t={})=>{const{items:e=[],element:r,offset:o=0,enabled:a=!0}=t,s=u=>Ne(u,"day"),i=()=>{var d;if(l(),!n.unref(a))return;const u=oa(br(s,"gameDate"))(n.unref(e));if(!u)return;const c=Tt(u.gameDate,"YYYY-MM-DD"),f=Ot(r).querySelector(`div[data-gamedate="${c}"]`);if(!f)return;const p=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,m=(((d=f.getBoundingClientRect())==null?void 0:d.top)??0)-n.unref(o)-parseFloat(p);window.scrollTo(0,m)},{stop:l}=Fn(()=>({items:n.unref(e),element:n.unref(r)}),async({items:u,element:c})=>{u.length===0||!c||(await n.nextTick(),i())})},nl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],o=!1){if(e){const a=r.map(l=>o?Xt(ye(l),Ht(e)):Xt(yt(l),Sr,da(Sr(e)))),s=Ko(l=>l.name?_a(ha("name"),Ta(",",""),l):l),i=ir(Xt(s,Mo([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===at)return this;const r=ua(Ht(B),pr(pe),pr(Qo));return this.result=wr(e.orders.map(o=>hr(r(o.direction),yt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,o,a)=>{const s=r[r.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,r.push(o),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){if(!r)return this;e=Number(e),r=Number(r);const o=(e-1)*r,a=o+r;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",r="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Tt(o.gameDate,"L dddd",e,r),gameDateTime:Tt(o.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(o=>r[o]?r[`${o}Sec`]=Ae(r[o]):r),r)),this},groupByDays(){return this.result=la(e=>Tt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),ol=(t,...e)=>lt(hr(...e))(t),al=t=>{var e,r,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((r=t.player)==null?void 0:r.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},sl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},il=(t="",e="hu")=>r=>({...r,gameDateDate:Tt(r.gameDate,"L dddd",t,e),gameDateTime:Tt(r.gameDate,"HH:mm",t,e)}),ll=t=>e=>({...e,gameResult:bl(e)}),cl=t=>({...t,opponent:yl(t)}),ul=t=>({...t,resultType:wl(t)}),dl=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},fl=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=Ae(e[r]):e),e),ml=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Min`]=hn(e[r]):e),e),pl=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=pn(e[r])),e),hl=wr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),pe(yt("id")),pe(yt("gameId"))]),gl=Oa((t=>(e,r)=>e[t].localeCompare(r[t],"hu"))("name"));function yl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function bl(t,e){let r=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(r=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[r,o].join(":")}function wl(t){const e=t.gameResult.split(":"),r=e[0]>e[1],o=e[0]<e[1];return r&&t.isOvertime?"OTW":r&&t.isShootout?"SOW":r?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Sl=(t,e={})=>{const r=Ce("gameResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||kr,e))},_l=(t,e={})=>{const r=Ce("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||Ar,e))},Tl=(t,e={})=>{const r=Ce("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||vr,e))},Ol=(t,e="1x1")=>`${Nr}/flag:${t}-${e}.svg`,Ce=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},$l=()=>{window.scrollTo(0,0)},Pl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},kl=n.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),El=n.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),vl=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Al=[kl,El,vl];function Nl(t,e){return n.openBlock(),n.createElementBlock("svg",Pl,Al)}const xl={render:Nl},Dl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ml=n.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Ll=n.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Cl=n.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Bl=[Ml,Ll,Cl];function Il(t,e){return n.openBlock(),n.createElementBlock("svg",Dl,Bl)}const zl={render:Il},Rl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Vl=n.createElementVNode("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),Gl=n.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),jl=[Vl,Gl];function Fl(t,e){return n.openBlock(),n.createElementBlock("svg",Rl,jl)}const Yl={render:Fl},Ul={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Hl=n.createElementVNode("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),Wl=n.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Kl=[Hl,Wl];function ql(t,e){return n.openBlock(),n.createElementBlock("svg",Ul,Kl)}const Zl={render:ql},Xl={class:"is-team-name-long"},Jl={class:"is-team-name-short"},Ql={class:"is-team-name-long"},tc={class:"is-team-name-short"},ec={key:0,class:"is-text-dark"},rc=["href","target"],nc={key:0,class:"label"},oc={key:1,class:"label"},ac={key:2,class:"label"},sc={key:1},ic=["onClick","onFocus","onBlur"],lc={class:"is-dropdown-menu"},cc=["href","target"],uc={key:0},dc=["href"],fc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,r=n.ref(null),{onError:o}=ke(),{columns:a,error:s}=xe(yn,n.computed(()=>e.hideColumns),n.computed(()=>({offsetName:e.offsetName})));Yn(s,()=>o(new De(Rt.message,{...Rt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(ve,null,{default:n.withCtx(({el:c})=>[n.createVNode(Pe,{columns:n.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||c},{"cell-homeTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",Xl,n.toDisplayString(f.homeTeam.longName),1),n.createElementVNode("span",Jl,n.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":n.withCtx(({row:f})=>[n.createElementVNode("span",Ql,n.toDisplayString(f.awayTeam.longName),1),n.createElementVNode("span",tc,n.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":n.withCtx(({row:f})=>[(n.openBlock(),n.createBlock(_t,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":n.withCtx(({row:f})=>[f.gameStatus===0?(n.openBlock(),n.createElementBlock("span",ec,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},n.toDisplayString(f.homeTeamScore)+":"+n.toDisplayString(f.awayTeamScore),11,rc))]),"cell-gameResultType":n.withCtx(({row:f})=>[f.isOvertime?(n.openBlock(),n.createElementBlock("span",nc,n.toDisplayString(n.unref(i)("common.overtimeShort")),1)):n.createCommentVNode("",!0),f.isShootout?(n.openBlock(),n.createElementBlock("span",oc,n.toDisplayString(n.unref(i)("common.shootoutShort")),1)):n.createCommentVNode("",!0),f.seriesStandings?(n.openBlock(),n.createElementBlock("span",ac,n.toDisplayString(f.seriesStandings),1)):n.createCommentVNode("",!0)]),"cell-broadcast":n.withCtx(({row:f})=>[f.broadcast?(n.openBlock(),n.createBlock(n.unref(xl),{key:0})):(n.openBlock(),n.createElementBlock("span",sc))]),"cell-location":n.withCtx(({row:f})=>{var p;return[n.createTextVNode(n.toDisplayString(((p=f.location)==null?void 0:p.locationName)??""),1)]}),"cell-more":n.withCtx(({row:f})=>[n.createVNode($e,{offset:2,placement:"left",theme:"content","append-to":c},{default:n.withCtx(({setRef:p,show:m,hide:d})=>[n.createElementVNode("button",{ref:p,onClick:n.withModifiers(m,["stop"]),onFocus:m,onBlur:d},[n.createVNode(n.unref(zl))],40,ic)]),content:n.withCtx(()=>[n.createElementVNode("ul",lc,[n.createElementVNode("li",null,[n.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[n.createVNode(n.unref(Yl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.report")),1)],8,cc)]),f.video?(n.openBlock(),n.createElementBlock("li",uc,[n.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[n.createVNode(n.unref(Zl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.video")),1)],8,dc)])):n.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:n.withCtx(()=>[n.createVNode(Ee)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),n.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}},mc={class:"g-row g-gap-normal is-mb-5"},pc=["value"],hc={key:0},gc=["onClick"],yc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const r=t,o=e,{t:a}=ct(),s=n.computed({get(){return r.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",mc,[n.createElementVNode("div",null,[n.createElementVNode("label",{for:"season",class:n.normalizeClass(n.unref(nt)("label"))},n.toDisplayString(n.unref(a)("selection.season")),3),n.createVNode(Ie,{id:"season",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.seasons,c=>(n.openBlock(),n.createElementBlock("option",{key:c.championshipId,value:c.championshipId},n.toDisplayString(c.seasonName),9,pc))),128))]),_:1},8,["modelValue"])]),n.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",hc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.sections,c=>(n.openBlock(),n.createElementBlock("button",{key:c.phaseId,onClick:f=>i(c),class:n.normalizeClass([n.unref(nt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},n.toDisplayString(c.sectionName),11,gc))),128))]))],64))}},bc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},wc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Sc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},_c={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},$n=({app:t=null,modules:e=[],apiKey:r,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:r,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},Tc={install:(t,e={})=>$n({app:t,...e})};return w.AVAILABLE_TIMEZONES_BY_COUNTRY=Dr,w.BaseSelect=Ie,w.COLUMNS_FIELD_PLAYERS=Ii,w.COLUMNS_FIELD_PLAYERS_PENALTY=zi,w.COLUMNS_GOALIES=Ri,w.COLUMNS_SCHEDULE=yn,w.COLUMNS_SCORING_EFFICIENCY=Yi,w.COLUMNS_STANDINGS_P_2=Bi,w.COLUMNS_STANDINGS_P_3=Ci,w.COLUMNS_TEAMS_FAIRPLAY=Gi,w.COLUMNS_TEAMS_PENALTY_KILLING=ji,w.COLUMNS_TEAMS_POWERPLAY=Fi,w.COLUMNS_TEAM_ATTENDANCE=Vi,w.DEFAULT_EXTERNAL_GAME_URL=kr,w.DEFAULT_EXTERNAL_PLAYER_URL=vr,w.DEFAULT_EXTERNAL_TEAM_URL=Ar,w.DEFAULT_PORTRAIT_IMAGE_URL=Er,w.DataTable=Pe,w.ErrorNotice=_s,w.ErrorProvider=Os,w.FLAG_BASE_URL=Nr,w.FloatingPanel=$e,w.I18NProvider=As,w.Image=_t,w.InvalidSeasonName=Si,w.LAZY_LOADING_STATE_DELAY=Mr,w.LOCALE_FOR_LANG=xr,w.LoadingIndicator=Ee,w.Paginator=Js,w.REFRESH_DELAY=Na,w.ResponsiveTable=ve,w.SORT_STATE_ASCEND=B,w.SORT_STATE_DESCEND=b,w.SORT_STATE_ORIGINAL=at,w.ScheduleTable=fc,w.SeasonSelector=yc,w.StatisticsTable=Li,w.TimezoneSelector=wi,w.UndefinedColumn=Rt,w.VBR_API_BASE_URL=Pr,w.WidgetError=De,w.appendTo=Qr,w.baseProps=bc,w.convert=nl,w.convertMinToMinSec=hn,w.convertMinToSec=Ae,w.convertSecToMin=pn,w.convertTimes=fl,w.convertTimesMinToMinSec=ml,w.convertTimesSecToMin=pl,w.createConfig=$n,w.createI18n=Tr,w.default=Tc,w.externalGameLinkResolver=Sl,w.externalPlayerLinkResolver=Tl,w.externalTeamLinkResolver=_l,w.fetchVBRData=bn,w.flagResolver=Ol,w.format=Tt,w.gameDateTime=il,w.gameProps=_c,w.gameResult=ll,w.getLocalTimezone=mn,w.i18n=$r,w.isBetween=hi,w.isSame=gi,w.isSameOrBefore=Ne,w.localeSort=gl,w.offsetName=zt,w.playerName=al,w.playerStatsProps=Sc,w.rawConvert=ol,w.scrollToTop=$l,w.sortGames=hl,w.teamName=sl,w.teamOpponent=cl,w.teamResultType=ul,w.teamStatsProps=wc,w.templateReplacer=St,w.toKebabCase=tn,w.upperCase=dl,w.useColumns=xe,w.useError=ke,w.useErrorProvider=rn,w.useI18n=ct,w.useLazyLoadingState=Xe,w.useMainClass=nt,w.usePage=Wi,w.useScrollToGameDate=rl,w.useServices=Ki,w.useSort=tl,w.useVisibilityChange=el,w.validateColumnsName=gn,w.yearToNow=yi,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),w}({},Vue);
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.0 - 04/01/2024, 13:03:06
3
+ * version: v2.2.1 - 04/01/2024, 22:10:50
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Data visualization for MJSZ VBR",
4
4
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
5
5
  "private": false,
6
- "version": "2.2.0",
6
+ "version": "2.2.1",
7
7
  "homepage": "https://api.icehockey.hu/widgets/docs/v2/",
8
8
  "type": "module",
9
9
  "files": [
@@ -38,7 +38,7 @@
38
38
  "dayjs": "^1.11.7",
39
39
  "ramda": "^0.29.0",
40
40
  "vue": "^3.4.3",
41
- "@mjsz-vbr-elements/shared": "^2.2.0"
41
+ "@mjsz-vbr-elements/shared": "^2.2.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@vitejs/plugin-vue": "^5.0.2",