@mjsz-vbr-elements/core 2.29.1 → 2.29.2

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.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -173,12 +173,12 @@ const ro = ["textContent"], ar = {
173
173
  viewBox: "0 0 320 512"
174
174
  };
175
175
  function lo(t, e) {
176
- return h(), g("svg", ao, e[0] || (e[0] = [
176
+ return h(), g("svg", ao, [...e[0] || (e[0] = [
177
177
  w("path", {
178
178
  fill: "currentColor",
179
179
  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"
180
180
  }, null, -1)
181
- ]));
181
+ ])]);
182
182
  }
183
183
  const Jt = { render: lo }, co = {
184
184
  "aria-hidden": "true",
@@ -191,12 +191,12 @@ const Jt = { render: lo }, co = {
191
191
  viewBox: "0 0 320 512"
192
192
  };
193
193
  function uo(t, e) {
194
- return h(), g("svg", co, e[0] || (e[0] = [
194
+ return h(), g("svg", co, [...e[0] || (e[0] = [
195
195
  w("path", {
196
196
  fill: "currentColor",
197
197
  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"
198
198
  }, null, -1)
199
- ]));
199
+ ])]);
200
200
  }
201
201
  const mo = { render: uo }, fo = {
202
202
  "aria-hidden": "true",
@@ -209,12 +209,12 @@ const mo = { render: uo }, fo = {
209
209
  viewBox: "0 0 320 512"
210
210
  };
211
211
  function po(t, e) {
212
- return h(), g("svg", fo, e[0] || (e[0] = [
212
+ return h(), g("svg", fo, [...e[0] || (e[0] = [
213
213
  w("path", {
214
214
  fill: "currentColor",
215
215
  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"
216
216
  }, null, -1)
217
- ]));
217
+ ])]);
218
218
  }
219
219
  const ho = { render: po }, dt = Math.min, st = Math.max, Pt = Math.round, Tt = Math.floor, j = (t) => ({
220
220
  x: t,
@@ -1502,7 +1502,7 @@ const mn = ["data-placement"], ve = {
1502
1502
  "stroke-linejoin": "round"
1503
1503
  };
1504
1504
  function bn(t, e) {
1505
- return h(), g("svg", wn, e[0] || (e[0] = [
1505
+ return h(), g("svg", wn, [...e[0] || (e[0] = [
1506
1506
  w("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1),
1507
1507
  w("line", {
1508
1508
  x1: "12",
@@ -1516,7 +1516,7 @@ function bn(t, e) {
1516
1516
  x2: "12.01",
1517
1517
  y2: "17"
1518
1518
  }, null, -1)
1519
- ]));
1519
+ ])]);
1520
1520
  }
1521
1521
  const Tn = { render: bn }, xn = { class: "error-notice" }, Pn = ["textContent"], lr = {
1522
1522
  __name: "ErrorNotice",
@@ -1650,9 +1650,9 @@ const dr = /* @__PURE__ */ Vn(Ln, [["render", Dn]]), Nn = ["src"], Mn = ["src",
1650
1650
  "stroke-linejoin": "round"
1651
1651
  };
1652
1652
  function Fn(t, e) {
1653
- return h(), g("svg", Bn, e[0] || (e[0] = [
1653
+ return h(), g("svg", Bn, [...e[0] || (e[0] = [
1654
1654
  w("polyline", { points: "15 18 9 12 15 6" }, null, -1)
1655
- ]));
1655
+ ])]);
1656
1656
  }
1657
1657
  const jn = { render: Fn }, Wn = {
1658
1658
  xmlns: "http://www.w3.org/2000/svg",
@@ -1664,9 +1664,9 @@ const jn = { render: Fn }, Wn = {
1664
1664
  "stroke-linejoin": "round"
1665
1665
  };
1666
1666
  function Kn(t, e) {
1667
- return h(), g("svg", Wn, e[0] || (e[0] = [
1667
+ return h(), g("svg", Wn, [...e[0] || (e[0] = [
1668
1668
  w("polyline", { points: "9 18 15 12 9 6" }, null, -1)
1669
- ]));
1669
+ ])]);
1670
1670
  }
1671
1671
  const qn = { render: Kn }, Jn = {
1672
1672
  key: 0,
@@ -1740,9 +1740,9 @@ const qn = { render: Kn }, Jn = {
1740
1740
  disabled: u === p(s),
1741
1741
  onClick: (v) => p(c)(u)
1742
1742
  }, b(u), 11, Xn))), 128)),
1743
- t.isCompact ? S("", !0) : (h(), g("div", Qn, a[4] || (a[4] = [
1743
+ t.isCompact ? S("", !0) : (h(), g("div", Qn, [...a[4] || (a[4] = [
1744
1744
  w("span", null, "...", -1)
1745
- ]))),
1745
+ ])])),
1746
1746
  t.isCompact ? S("", !0) : (h(), g("button", {
1747
1747
  key: 3,
1748
1748
  type: "button",
@@ -1782,7 +1782,7 @@ const qn = { render: Kn }, Jn = {
1782
1782
  "stroke-linejoin": "round"
1783
1783
  };
1784
1784
  function ns(t, e) {
1785
- return h(), g("svg", os, e[0] || (e[0] = [
1785
+ return h(), g("svg", os, [...e[0] || (e[0] = [
1786
1786
  w("rect", {
1787
1787
  x: "2",
1788
1788
  y: "3",
@@ -1803,7 +1803,7 @@ function ns(t, e) {
1803
1803
  x2: "12",
1804
1804
  y2: "21"
1805
1805
  }, null, -1)
1806
- ]));
1806
+ ])]);
1807
1807
  }
1808
1808
  const ss = { render: ns }, rs = {
1809
1809
  xmlns: "http://www.w3.org/2000/svg",
@@ -1815,7 +1815,7 @@ const ss = { render: ns }, rs = {
1815
1815
  "stroke-linejoin": "round"
1816
1816
  };
1817
1817
  function is(t, e) {
1818
- return h(), g("svg", rs, e[0] || (e[0] = [
1818
+ return h(), g("svg", rs, [...e[0] || (e[0] = [
1819
1819
  w("circle", {
1820
1820
  cx: "12",
1821
1821
  cy: "12",
@@ -1831,7 +1831,7 @@ function is(t, e) {
1831
1831
  cy: "19",
1832
1832
  r: "1"
1833
1833
  }, null, -1)
1834
- ]));
1834
+ ])]);
1835
1835
  }
1836
1836
  const as = { render: is }, ls = {
1837
1837
  xmlns: "http://www.w3.org/2000/svg",
@@ -1843,7 +1843,7 @@ const as = { render: is }, ls = {
1843
1843
  "stroke-linejoin": "round"
1844
1844
  };
1845
1845
  function cs(t, e) {
1846
- return h(), g("svg", ls, e[0] || (e[0] = [
1846
+ return h(), g("svg", ls, [...e[0] || (e[0] = [
1847
1847
  w("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1),
1848
1848
  w("rect", {
1849
1849
  x: "8",
@@ -1853,7 +1853,7 @@ function cs(t, e) {
1853
1853
  rx: "1",
1854
1854
  ry: "1"
1855
1855
  }, null, -1)
1856
- ]));
1856
+ ])]);
1857
1857
  }
1858
1858
  const ds = { render: cs }, us = {
1859
1859
  xmlns: "http://www.w3.org/2000/svg",
@@ -1865,10 +1865,10 @@ const ds = { render: cs }, us = {
1865
1865
  "stroke-linejoin": "round"
1866
1866
  };
1867
1867
  function ms(t, e) {
1868
- return h(), g("svg", us, e[0] || (e[0] = [
1868
+ return h(), g("svg", us, [...e[0] || (e[0] = [
1869
1869
  w("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1),
1870
1870
  w("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
1871
- ]));
1871
+ ])]);
1872
1872
  }
1873
1873
  const fs = { render: ms }, ps = { class: "is-team-name-long" }, hs = { class: "is-team-name-short" }, gs = { class: "is-team-name-long" }, ys = { class: "is-team-name-short" }, vs = {
1874
1874
  key: 0,
@@ -2254,15 +2254,15 @@ const fs = { render: ms }, ps = { class: "is-team-name-long" }, hs = { class: "i
2254
2254
  ], 8, Rs)) : (h(), g(G, { key: 1 }, [
2255
2255
  w("span", Ds, [
2256
2256
  H(b(l.team?.longName) + " ", 1),
2257
- l.penaltyPoints ? (h(), g("span", Ns, v[0] || (v[0] = [
2257
+ l.penaltyPoints ? (h(), g("span", Ns, [...v[0] || (v[0] = [
2258
2258
  w("sup", null, "*", -1)
2259
- ]))) : S("", !0)
2259
+ ])])) : S("", !0)
2260
2260
  ]),
2261
2261
  w("span", Ms, [
2262
2262
  H(b(l.team?.shortName) + " ", 1),
2263
- l.penaltyPoints ? (h(), g("span", Hs, v[1] || (v[1] = [
2263
+ l.penaltyPoints ? (h(), g("span", Hs, [...v[1] || (v[1] = [
2264
2264
  w("sup", null, "*", -1)
2265
- ]))) : S("", !0)
2265
+ ])])) : S("", !0)
2266
2266
  ])
2267
2267
  ], 64))
2268
2268
  ]),
package/dist/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { _ as s, a as r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-WKm_DaDH.js";
8
+ import { _ as s, a as r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-qP6OxXMD.js";
9
9
  export {
10
10
  s as AdditionalStandingsText,
11
11
  r as BaseSelect,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
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.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
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.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
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.29.1 - 23/09/2025, 08:19:28
3
+ * version: v2.29.2 - 26/09/2025, 10:33:54
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(T,o){"use strict";const Ae="https://api.icehock
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 We(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,a,i=n.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}var No;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(No||(No={}));var gs={type:"xstate.init"};function pe(t){return t===void 0?[]:[].concat(t)}function $o(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 qe(t){return function(e){return t===e}}function ys(t){return typeof t=="string"?{type:t}:t}function Do(t,e){return{value:t,context:e,actions:[],changed:!1,matches:qe(t)}}function Mo(t,e,n){var r=e,a=!1;return[t.filter(function(i){if(i.type==="xstate.assign"){a=!0;var s=Object.assign({},r);return typeof i.assignment=="function"?s=i.assignment(r,n):Object.keys(i.assignment).forEach(function(l){s[l]=typeof i.assignment[l]=="function"?i.assignment[l](r,n):i.assignment[l]}),r=s,!1}return!0}),r,a]}function bs(t,e){e===void 0&&(e={});var n=We(Mo(pe(t.states[t.initial].entry).map(function(s){return $o(s,e.actions)}),t.context,gs),2),r=n[0],a=n[1],i={config:t,_options:e,initialState:{value:t.initial,actions:r,context:a,matches:qe(t.initial)},transition:function(s,l){var u,c,d=typeof s=="string"?{value:s,context:t.context}:s,f=d.value,g=d.context,p=ys(l),m=t.states[f];if(m.on){var b=pe(m.on[p.type]);"*"in m.on&&b.push.apply(b,function(k,A,N){if(arguments.length===2)for(var $,z=0,Y=A.length;z<Y;z++)!$&&z in A||($||($=Array.prototype.slice.call(A,0,z)),$[z]=A[z]);return k.concat($||Array.prototype.slice.call(A))}([],We(pe(m.on["*"])),!1));try{for(var h=function(k){var A=typeof Symbol=="function"&&Symbol.iterator,N=A&&k[A],$=0;if(N)return N.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&$>=k.length&&(k=void 0),{value:k&&k[$++],done:!k}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(b),w=h.next();!w.done;w=h.next()){var O=w.value;if(O===void 0)return Do(f,g);var v=typeof O=="string"?{target:O}:O,x=v.target,E=v.actions,L=E===void 0?[]:E,B=v.cond,V=B===void 0?function(){return!0}:B,F=x===void 0,M=x??f,D=t.states[M];if(V(g,p)){var R=We(Mo((F?pe(L):[].concat(m.exit,L,D.entry).filter(function(k){return k})).map(function(k){return $o(k,i._options.actions)}),g,p),3),U=R[0],P=R[1],_=R[2],S=x??f;return{value:S,context:P,actions:U,changed:x!==f||U.length>0||_,matches:qe(S)}}}}catch(k){u={error:k}}finally{try{w&&!w.done&&(c=h.return)&&c.call(h)}finally{if(u)throw u.error}}}return Do(f,g)}};return i}const Ts=bs({id:"sort",initial:ct,states:{[ct]:{on:{DIRECTION1:y,DIRECTION2:C}},[y]:{on:{DIRECTION1:C,DIRECTION2:ct}},[C]:{on:{DIRECTION1:ct,DIRECTION2:y}}}});function ws(t,e){const n=e===C?"DIRECTION2":"DIRECTION1";return Ts.transition(t,n).value}function Ss(t={}){const{sortTarget:e=null,orders:n=[]}=t,r=o.reactive({sortTarget:e,orders:n});return{sort:r,change:({target:i,orders:s})=>{if(r.sortTarget!==i){r.sortTarget=i,r.orders=s;return}const l=s.map((u,c)=>({...u,direction:ws(r.orders[c].direction,u.direction)}));r.sortTarget=i,r.orders=l}}}function Os(t=!1,e=Z,n=Z){const r=oi();o.watch(r,a=>{if(o.unref(t)){if(a==="visible")return e();n()}})}const As=["textContent"],ks={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=o.toRef(e,"rows"),{t:r,locale:a}=at(),{isVisible:i,text:s}=qn(n,e.additionalKey,r,a);return(l,u)=>o.unref(i)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:o.toDisplayString(o.unref(s))},null,8,As)):o.createCommentVNode("",!0)}},Co={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,a=o.computed({get:()=>n.modelValue,set:i=>r("update:modelValue",i)});return(i,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>a.value=l),class:"base-input is-select"},[o.renderSlot(i.$slots,"default")],512)),[[o.vModelSelect,a.value]])}},_s={"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"};function Ps(t,e){return o.openBlock(),o.createElementBlock("svg",_s,e[0]||(e[0]=[o.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)]))}const Lo={render:Ps},vs={"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"};function xs(t,e){return o.openBlock(),o.createElementBlock("svg",vs,e[0]||(e[0]=[o.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)]))}const Es={render:xs},Ns={"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"};function $s(t,e){return o.openBlock(),o.createElementBlock("svg",Ns,e[0]||(e[0]=[o.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)]))}const Ds={render:$s},xt=Math.min,wt=Math.max,he=Math.round,ge=Math.floor,it=t=>({x:t,y:t}),Ms={left:"right",right:"left",bottom:"top",top:"bottom"},Cs={start:"end",end:"start"};function Ke(t,e,n){return wt(t,xt(e,n))}function Gt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function Ft(t){return t.split("-")[1]}function Io(t){return t==="x"?"y":"x"}function Ze(t){return t==="y"?"height":"width"}const Ls=new Set(["top","bottom"]);function pt(t){return Ls.has(St(t))?"y":"x"}function Xe(t){return Io(pt(t))}function Is(t,e,n){n===void 0&&(n=!1);const r=Ft(t),a=Xe(t),i=Ze(a);let s=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ye(s)),[s,ye(s)]}function Bs(t){const e=ye(t);return[Je(t),e,Je(e)]}function Je(t){return t.replace(/start|end/g,e=>Cs[e])}const Bo=["left","right"],Ro=["right","left"],Rs=["top","bottom"],zs=["bottom","top"];function Vs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Bo:e?Bo:Ro;case"left":case"right":return e?Rs:zs;default:return[]}}function Gs(t,e,n,r){const a=Ft(t);let i=Vs(St(t),n==="start",r);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map(Je)))),i}function ye(t){return t.replace(/left|right|bottom|top/g,e=>Ms[e])}function Fs(t){return{top:0,right:0,bottom:0,left:0,...t}}function zo(t){return typeof t!="number"?Fs(t):{top:t,right:t,bottom:t,left:t}}function be(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}function Vo(t,e,n){let{reference:r,floating:a}=t;const i=pt(e),s=Xe(e),l=Ze(s),u=St(e),c=i==="y",d=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,g=r[l]/2-a[l]/2;let p;switch(u){case"top":p={x:d,y:r.y-a.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ft(e)){case"start":p[s]-=g*(n&&c?-1:1);break;case"end":p[s]+=g*(n&&c?-1:1);break}return p}const js=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:f}=Vo(c,r,u),g=r,p={},m=0;for(let b=0;b<l.length;b++){const{name:h,fn:w}=l[b],{x:O,y:v,data:x,reset:E}=await w({x:d,y:f,initialPlacement:r,placement:g,strategy:a,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=O??d,f=v??f,p={...p,[h]:{...p[h],...x}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:d,y:f}=Vo(c,g,u)),b=-1)}return{x:d,y:f,placement:g,strategy:a,middlewareData:p}};async function Go(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:i,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:p=0}=Gt(e,t),m=zo(p),h=l[g?f==="floating"?"reference":"floating":f],w=be(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),O=f==="floating"?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),x=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},E=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:v,strategy:u}):O);return{top:(w.top-E.top+m.top)/x.y,bottom:(E.bottom-w.bottom+m.bottom)/x.y,left:(w.left-E.left+m.left)/x.x,right:(E.right-w.right+m.right)/x.x}}const Us=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:i,platform:s,elements:l,middlewareData:u}=e,{element:c,padding:d=0}=Gt(t,e)||{};if(c==null)return{};const f=zo(d),g={x:n,y:r},p=Xe(a),m=Ze(p),b=await s.getDimensions(c),h=p==="y",w=h?"top":"left",O=h?"bottom":"right",v=h?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[p]-g[p]-i.floating[m],E=g[p]-i.reference[p],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let B=L?L[v]:0;(!B||!await(s.isElement==null?void 0:s.isElement(L)))&&(B=l.floating[v]||i.floating[m]);const V=x/2-E/2,F=B/2-b[m]/2-1,M=xt(f[w],F),D=xt(f[O],F),R=M,U=B-b[m]-D,P=B/2-b[m]/2+V,_=Ke(R,P,U),S=!u.arrow&&Ft(a)!=null&&P!==_&&i.reference[m]/2-(P<R?M:D)-b[m]/2<0,k=S?P<R?P-R:P-U:0;return{[p]:g[p]+k,data:{[p]:_,centerOffset:P-_-k,...S&&{alignmentOffset:k}},reset:S}}}),Hs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...h}=Gt(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=St(a),O=pt(l),v=St(l)===l,x=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=g||(v||!b?[ye(l)]:Bs(l)),L=m!=="none";!g&&L&&E.push(...Gs(l,b,m,x));const B=[l,...E],V=await Go(e,h),F=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&F.push(V[w]),f){const P=Is(a,s,x);F.push(V[P[0]],V[P[1]])}if(M=[...M,{placement:a,overflows:F}],!F.every(P=>P<=0)){var D,R;const P=(((D=i.flip)==null?void 0:D.index)||0)+1,_=B[P];if(_&&(!(f==="alignment"?O!==pt(_):!1)||M.every(A=>A.overflows[0]>0&&pt(A.placement)===O)))return{data:{index:P,overflows:M},reset:{placement:_}};let S=(R=M.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:R.placement;if(!S)switch(p){case"bestFit":{var U;const k=(U=M.filter(A=>{if(L){const N=pt(A.placement);return N===O||N==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(N=>N>0).reduce((N,$)=>N+$,0)]).sort((A,N)=>A[1]-N[1])[0])==null?void 0:U[0];k&&(S=k);break}case"initialPlacement":S=l;break}if(a!==S)return{reset:{placement:S}}}return{}}}},Ys=new Set(["left","top"]);async function Ws(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=St(n),l=Ft(n),u=pt(n)==="y",c=Ys.has(s)?-1:1,d=i&&u?-1:1,f=Gt(e,t);let{mainAxis:g,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),u?{x:p*d,y:g*c}:{x:g*c,y:p*d}}const qs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:i,placement:s,middlewareData:l}=e,u=await Ws(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:s}}}}},Ks=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:w,y:O}=h;return{x:w,y:O}}},...u}=Gt(t,e),c={x:n,y:r},d=await Go(e,u),f=pt(St(a)),g=Io(f);let p=c[g],m=c[f];if(i){const h=g==="y"?"top":"left",w=g==="y"?"bottom":"right",O=p+d[h],v=p-d[w];p=Ke(O,p,v)}if(s){const h=f==="y"?"top":"left",w=f==="y"?"bottom":"right",O=m+d[h],v=m-d[w];m=Ke(O,m,v)}const b=l.fn({...e,[g]:p,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:i,[f]:s}}}}}};function Te(){return typeof window<"u"}function Et(t){return Fo(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function st(t){var e;return(e=(Fo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fo(t){return Te()?t instanceof Node||t instanceof J(t).Node:!1}function nt(t){return Te()?t instanceof Element||t instanceof J(t).Element:!1}function lt(t){return Te()?t instanceof HTMLElement||t instanceof J(t).HTMLElement:!1}function jo(t){return!Te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof J(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function jt(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Zs.has(a)}const Xs=new Set(["table","td","th"]);function Js(t){return Xs.has(Et(t))}const Qs=[":popover-open",":modal"];function we(t){return Qs.some(e=>{try{return t.matches(e)}catch{return!1}})}const tl=["transform","translate","scale","rotate","perspective"],el=["transform","translate","scale","rotate","perspective","filter"],nl=["paint","layout","strict","content"];function Qe(t){const e=tn(),n=nt(t)?ot(t):t;return tl.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||el.some(r=>(n.willChange||"").includes(r))||nl.some(r=>(n.contain||"").includes(r))}function ol(t){let e=ht(t);for(;lt(e)&&!Nt(e);){if(Qe(e))return e;if(we(e))return null;e=ht(e)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rl=new Set(["html","body","#document"]);function Nt(t){return rl.has(Et(t))}function ot(t){return J(t).getComputedStyle(t)}function Se(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ht(t){if(Et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jo(t)&&t.host||st(t);return jo(e)?e.host:e}function Uo(t){const e=ht(t);return Nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&jt(e)?e:Uo(e)}function Ut(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Uo(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),s=J(a);if(i){const l=en(s);return e.concat(s,s.visualViewport||[],jt(a)?a:[],l&&n?Ut(l):[])}return e.concat(a,Ut(a,[],n))}function en(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=lt(t),i=a?t.offsetWidth:n,s=a?t.offsetHeight:r,l=he(n)!==i||he(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function nn(t){return nt(t)?t:t.contextElement}function $t(t){const e=nn(t);if(!lt(e))return it(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=Ho(e);let s=(i?he(n.width):n.width)/r,l=(i?he(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const al=it(0);function Yo(t){const e=J(t);return!tn()||!e.visualViewport?al:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function il(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==J(t)?!1:e}function Ot(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=nn(t);let s=it(1);e&&(r?nt(r)&&(s=$t(r)):s=$t(t));const l=il(i,n,r)?Yo(i):it(0);let u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(i){const g=J(i),p=r&&nt(r)?J(r):r;let m=g,b=en(m);for(;b&&r&&p!==m;){const h=$t(b),w=b.getBoundingClientRect(),O=ot(b),v=w.left+(b.clientLeft+parseFloat(O.paddingLeft))*h.x,x=w.top+(b.clientTop+parseFloat(O.paddingTop))*h.y;u*=h.x,c*=h.y,d*=h.x,f*=h.y,u+=v,c+=x,m=J(b),b=en(m)}}return be({width:d,height:f,x:u,y:c})}function on(t,e){const n=Se(t).scrollLeft;return e?e.left+n:Ot(st(t)).left+n}function Wo(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),a=r.left+e.scrollLeft-(n?0:on(t,r)),i=r.top+e.scrollTop;return{x:a,y:i}}function sl(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const i=a==="fixed",s=st(r),l=e?we(e.floating):!1;if(r===s||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=it(1);const d=it(0),f=lt(r);if((f||!f&&!i)&&((Et(r)!=="body"||jt(s))&&(u=Se(r)),lt(r))){const p=Ot(r);c=$t(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const g=s&&!f&&!i?Wo(s,u,!0):it(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-u.scrollTop*c.y+d.y+g.y}}function ll(t){return Array.from(t.getClientRects())}function cl(t){const e=st(t),n=Se(t),r=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=wt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+on(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(s+=wt(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:s,y:l}}function ul(t,e){const n=J(t),r=st(t),a=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,u=0;if(a){i=a.width,s=a.height;const c=tn();(!c||c&&e==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:l,y:u}}const dl=new Set(["absolute","fixed"]);function fl(t,e){const n=Ot(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=lt(t)?$t(t):it(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,c=r*i.y;return{width:s,height:l,x:u,y:c}}function qo(t,e,n){let r;if(e==="viewport")r=ul(t,n);else if(e==="document")r=cl(st(t));else if(nt(e))r=fl(e,n);else{const a=Yo(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return be(r)}function Ko(t,e){const n=ht(t);return n===e||!nt(n)||Nt(n)?!1:ot(n).position==="fixed"||Ko(n,e)}function ml(t,e){const n=e.get(t);if(n)return n;let r=Ut(t,[],!1).filter(l=>nt(l)&&Et(l)!=="body"),a=null;const i=ot(t).position==="fixed";let s=i?ht(t):t;for(;nt(s)&&!Nt(s);){const l=ot(s),u=Qe(s);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&dl.has(a.position)||jt(s)&&!u&&Ko(t,s))?r=r.filter(d=>d!==s):a=l,s=ht(s)}return e.set(t,r),r}function pl(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const s=[...n==="clippingAncestors"?we(e)?[]:ml(e,this._c):[].concat(n),r],l=s[0],u=s.reduce((c,d)=>{const f=qo(e,d,a);return c.top=wt(f.top,c.top),c.right=xt(f.right,c.right),c.bottom=xt(f.bottom,c.bottom),c.left=wt(f.left,c.left),c},qo(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function hl(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function gl(t,e,n){const r=lt(e),a=st(e),i=n==="fixed",s=Ot(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const u=it(0);function c(){u.x=on(a)}if(r||!r&&!i)if((Et(e)!=="body"||jt(a))&&(l=Se(e)),r){const p=Ot(e,!0,i,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else a&&c();i&&!r&&a&&c();const d=a&&!r&&!i?Wo(a,l):it(0),f=s.left+l.scrollLeft-u.x-d.x,g=s.top+l.scrollTop-u.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function rn(t){return ot(t).position==="static"}function Zo(t,e){if(!lt(t)||ot(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return st(t)===n&&(n=n.ownerDocument.body),n}function Xo(t,e){const n=J(t);if(we(t))return n;if(!lt(t)){let a=ht(t);for(;a&&!Nt(a);){if(nt(a)&&!rn(a))return a;a=ht(a)}return n}let r=Zo(t,e);for(;r&&Js(r)&&rn(r);)r=Zo(r,e);return r&&Nt(r)&&rn(r)&&!Qe(r)?n:r||ol(t)||n}const yl=async function(t){const e=this.getOffsetParent||Xo,n=this.getDimensions,r=await n(t.floating);return{reference:gl(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bl(t){return ot(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:sl,getDocumentElement:st,getClippingRect:pl,getOffsetParent:Xo,getElementRects:yl,getClientRects:ll,getDimensions:hl,getScale:$t,isElement:nt,isRTL:bl};function Jo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wl(t,e){let n=null,r;const a=st(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const c=t.getBoundingClientRect(),{left:d,top:f,width:g,height:p}=c;if(l||e(),!g||!p)return;const m=ge(f),b=ge(a.clientWidth-(d+g)),h=ge(a.clientHeight-(f+p)),w=ge(d),v={rootMargin:-m+"px "+-b+"px "+-h+"px "+-w+"px",threshold:wt(0,xt(1,u))||1};let x=!0;function E(L){const B=L[0].intersectionRatio;if(B!==u){if(!x)return s();B?s(!1,B):r=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!Jo(c,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...v,root:a.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(t)}return s(!0),i}function Sl(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=nn(t),d=a||i?[...c?Ut(c):[],...Ut(e)]:[];d.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=c&&l?wl(c,n):null;let g=-1,p=null;s&&(p=new ResizeObserver(w=>{let[O]=w;O&&O.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(e)})),n()}),c&&!u&&p.observe(c),p.observe(e));let m,b=u?Ot(t):null;u&&h();function h(){const w=Ot(t);b&&!Jo(b,w)&&n(),b=w,m=requestAnimationFrame(h)}return n(),()=>{var w;d.forEach(O=>{a&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f?.(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const Ol=qs,Al=Ks,kl=Hs,Qo=Us,_l=(t,e,n)=>{const r=new Map,a={platform:Tl,...n},i={...a.platform,_c:r};return js(t,e,{...a,platform:i})};function tr(t,e="body"){if(!t)return;if(typeof e!="string"){e?.append(t);return}document.querySelector(e)?.append(t)}function Pl(t,e=()=>({})){return t.slice().sort((n,r)=>{const a=e(n),i=e(r);if(a===null||i===null)return 0;const s=a.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vl({middleware:t,placement:e=null,strategy:n,append:r,enabled:a}){const i=o.ref(null),s=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(null),d=o.ref(null),f=o.ref(null),g=o.ref(n??"absolute"),p=o.ref(null),m=()=>{!i.value||!s.value||_l(i.value,s.value,{middleware:t,placement:e,strategy:n}).then(h=>{l.value=h.x,u.value=h.y,g.value=h.strategy,c.value=h.middlewareData.arrow.x,d.value=h.middlewareData.arrow.y,f.value=h.placement})};o.watch(()=>({reference:o.unref(i),floating:o.unref(s),append:o.unref(r)}),({floating:h,append:w})=>{w&&tr(h,w),m()},{flush:"post"}),o.watch(a,h=>{if(!(!i.value||!s.value)){if(!h)return b();p.value=Sl(i.value,s.value,m,{})}},{flush:"post"});function b(){p.value?.(),p.value=null}return{x:l,y:u,arrowX:c,arrowY:d,placement:f,reference:i,floating:s,strategy:g,update:m}}function xl(t){const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(r){return o.isRef(e)?e.value!=null?Qo({element:e.value,padding:n}).fn(r):{}:e?Qo({element:e,padding:n}).fn(r):{}}}}const El=["data-placement"],an={__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},isArrowVisible:{type:Boolean,default:!0}},setup(t){const e=t,n=o.ref(!1),r=o.ref(null),{x:a,y:i,arrowX:s,arrowY:l,placement:u,reference:c,floating:d,strategy:f}=vl({placement:e.placement,middleware:[kl(),Al({padding:5}),Ol(e.offset),xl({element:r,padding:5})],append:o.computed(()=>e.appendTo),enabled:n});function g(){e.disabled||n.value||(n.value=!0)}function p(h){n.value&&h&&(n.value=!1)}function m(h){c.value=h}const b={mouseenter:g,mouseleave:p,focus:g,blur:p};return ni(d,h=>{c.value?.contains(h.target)||p()}),(h,w)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(h.$slots,"default",{setRef:m,show:g,hide:p,events:b}),o.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":o.unref(u),style:o.normalizeStyle({position:o.unref(f),top:o.unref(i)?`${o.unref(i)}px`:"",left:o.unref(a)?`${o.unref(a)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[n.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[[`is-${e.theme}`]]])},[o.renderSlot(h.$slots,"content",{close:p},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),t.isArrowVisible?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:r,class:"is-arrow",style:o.normalizeStyle({position:o.unref(f),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)]),_:3})],12,El)],64))}},Nl={class:"table"},$l=["tabindex","onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown"],Dl={key:0},Ml=["colspan"],Cl={key:1},Ll=["colspan"],sn={__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 n=t,r=e,{isLoading:a,appendTo:i}=o.toRefs(n),s=fo(a,{delay:Tn}),{t:l}=at(),u=o.computed(()=>n.columns),c=o.computed(()=>Object.keys(n.columns).length);function d(f,g){f.sortOrders&&r("sort",{target:g,orders:f.sortOrders})}return(f,g)=>(o.openBlock(),o.createElementBlock("table",Nl,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(p,m)=>(o.openBlock(),o.createBlock(an,{key:m,placement:"top",content:p.tooltip,disabled:!p.tooltip,"append-to":o.unref(i)},{default:o.withCtx(({setRef:b,show:h,hide:w})=>[o.createElementVNode("th",{ref_for:!0,ref:b,class:o.normalizeClass([[p.class],{"is-active":m===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ct),"is-sortable":p.sortOrders,"is-desc":m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(y),"is-asc":m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),tabindex:p.sortOrders?0:-1,role:"button",onMouseenter:h,onMouseleave:w,onFocus:h,onBlur:w,onClick:O=>d(p,m),onKeydown:[o.withKeys(o.withModifiers(O=>d(p,m),["prevent"]),["space"]),o.withKeys(o.withModifiers(O=>d(p,m),["prevent"]),["enter"])]},[o.renderSlot(f.$slots,`header-${m}`,{column:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)]),p.sortOrders&&m!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(Lo),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(ct)?(o.openBlock(),o.createBlock(o.unref(Lo),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(y)?(o.openBlock(),o.createBlock(o.unref(Es),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(Ds),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,$l)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(p,m)=>(o.openBlock(),o.createElementBlock("tr",{key:m,class:o.normalizeClass(p.rowClasses)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(b,h)=>(o.openBlock(),o.createElementBlock("td",{key:h,class:o.normalizeClass([[b.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ct),"is-zero":p[h]===0||p[h]==="00:00"}])},[o.renderSlot(f.$slots,`cell-${h}`,{row:p,prop:h},()=>[o.createTextVNode(o.toDisplayString(p[h]),1)])],2))),128))],2))),128))]),o.unref(s)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Dl,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.loading")),1)])],8,Ml)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(a)&&!o.unref(s)?(o.openBlock(),o.createElementBlock("tfoot",Cl,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.noData")),1)])],8,Ll)])])):o.createCommentVNode("",!0)]))}},Il={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"};function Bl(t,e){return o.openBlock(),o.createElementBlock("svg",Il,e[0]||(e[0]=[o.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),o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)]))}const Rl={render:Bl},zl={class:"error-notice"},Vl=["textContent"],Gl={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})},useRetry:{type:Boolean,default:!1}},emits:["retry"],setup(t){const e=t,{t:n,hasTranslation:r}=at(),a=o.computed(()=>r(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause||[e.error?.message]):e.error?.message);return(i,s)=>(o.openBlock(),o.createElementBlock("div",zl,[o.createVNode(o.unref(Rl),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1),t.useRetry?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",onClick:s[0]||(s[0]=l=>i.$emit("retry")),textContent:o.toDisplayString(o.unref(n)("common.retry"))},null,8,Vl)):o.createCommentVNode("",!0)]))}},Fl={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:r}=no();return(a,i)=>o.renderSlot(a.$slots,"default",{message:o.unref(e),error:o.unref(r),hasError:o.unref(n)})}},jl={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found",gameData:"Game Data: {0}",gameStats:"Game Stats: {0}",gameEvents:"Game Events: {0}",gameOfficials:"Game Officials : {0}"},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",retry:"Try Again"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",info:"{min} to {max} of {total} entries",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},pper:{short:"PPer",tooltip:"Total periods 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"},so:{short:"SO",tooltip:"Shutouts"},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"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},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"}}},Ul={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ő",gameData:"Game Data: {0}",gameStats:"Game Stats: {0}",gameEvents:"Game Events: {0}",gameOfficials:"Game Officials: {0}"},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:"SO",overtimeShort:"OT",all:"Mind",report:"Jegyzőkönyv",video:"Videó",retry:"Újra"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",info:"{min} - {max} / {total} db",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},pper:{short:"PPer",tooltip:"Összes lejátszott játékrész"},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"},so:{short:"SO",tooltip:"Kapott gól nélküli mérkőzé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"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},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"}}},Hl=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Yl=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=jn({hu:Ul,en:jl},t.messages),{translate:n}=Zn({locale:o.computed(()=>t.locale),messages:e});return{translate:n}}});function Wl(t,e,n,r,a,i){return o.renderSlot(t.$slots,"default",{t:t.translate})}const ql=Hl(Yl,[["render",Wl]]),Kl=["src"],Zl=["src","title"],At=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:n}=o.toRefs(e),r=o.ref({src:e.src}),{error:a,isReady:i}=ai(r,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)&&o.unref(n)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(n),class:o.normalizeClass(["is-loaded is-default",[s.$attrs.class]])},null,10,Kl)):o.createCommentVNode("",!0),o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:r.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(i)}]),title:e.title,loading:"lazy"},null,10,Zl))],64))}}),Xl={class:"loading-indicator"},ln={__name:"LoadingIndicator",setup(t){const{t:e}=at();return(n,r)=>(o.openBlock(),o.createElementBlock("div",Xl,o.toDisplayString(o.unref(e)("common.loading")),1))}},Jl={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"};function Ql(t,e){return o.openBlock(),o.createElementBlock("svg",Jl,e[0]||(e[0]=[o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)]))}const tc={render:Ql},ec={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"};function nc(t,e){return o.openBlock(),o.createElementBlock("svg",ec,e[0]||(e[0]=[o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)]))}const oc={render:nc},rc={key:0,class:"paginator"},ac=["disabled"],ic=["disabled"],sc={key:1,class:"is-disabled"},lc=["disabled","onClick"],cc={key:2,class:"is-disabled"},uc=["disabled"],dc=["disabled"],fc={__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 n=t,r=e,{page:a,pageCount:i,range:s,goTo:l,pageStep:u}=ms({currentPage:o.computed(()=>n.page),totalItems:o.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:c=>r("change",c)});return(c,d)=>o.unref(i)>1?(o.openBlock(),o.createElementBlock("div",rc,[o.createElementVNode("button",{type:"button",disabled:o.unref(a)===1,onClick:d[0]||(d[0]=f=>o.unref(u)(-1))},[o.renderSlot(c.$slots,"prev",{},()=>[o.createVNode(o.unref(tc),{class:"icon paginator-left"})])],8,ac),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(a)===1,onClick:d[1]||(d[1]=f=>o.unref(l)(1))}," 1 ",8,ic)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",sc," ... ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),f=>(o.openBlock(),o.createElementBlock("button",{key:f,type:"button",class:o.normalizeClass({"is-active":f===o.unref(a)}),disabled:f===o.unref(a),onClick:g=>o.unref(l)(f)},o.toDisplayString(f),11,lc))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cc,d[4]||(d[4]=[o.createElementVNode("span",null,"...",-1)]))),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(a)===o.unref(i),onClick:d[2]||(d[2]=f=>o.unref(l)(o.unref(i)))},o.toDisplayString(o.unref(i)),9,uc)),o.createElementVNode("button",{type:"button",disabled:o.unref(a)===o.unref(i),onClick:d[3]||(d[3]=o.withModifiers(f=>o.unref(u)(1),["prevent"]))},[o.renderSlot(c.$slots,"next",{},()=>[o.createVNode(o.unref(oc),{class:"icon paginator-left"})])],8,dc)])):o.createCommentVNode("",!0)}},cn={__name:"ResponsiveTable",setup(t){const e=o.ref(null);return(n,r)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:"table-responsive"},[o.renderSlot(n.$slots,"default",{el:e.value})],512))}},mc={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"};function pc(t,e){return o.openBlock(),o.createElementBlock("svg",mc,e[0]||(e[0]=[o.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),o.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),o.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1)]))}const hc={render:pc},gc={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"};function yc(t,e){return o.openBlock(),o.createElementBlock("svg",gc,e[0]||(e[0]=[o.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),o.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),o.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const bc={render:yc},Tc={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"};function wc(t,e){return o.openBlock(),o.createElementBlock("svg",Tc,e[0]||(e[0]=[o.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),o.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)]))}const Sc={render:wc},Oc={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"};function Ac(t,e){return o.openBlock(),o.createElementBlock("svg",Oc,e[0]||(e[0]=[o.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),o.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1)]))}const kc={render:Ac};function _c(t=[]){return{result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],r=!1){if(e){const a=n.map(l=>r?te(Be(l),Zt(e)):te(ut(l),Wn,ka(Wn(e)))),i=Xr(l=>l.name?$a(va("name"),Da(",",""),l):l),s=De(te(i,Zr([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=s.length,this.result=s}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ct)return this;const n=Aa(Zt(C),Rn(Le),Rn(ma));return this.result=Yn(e.orders.map(r=>Vn(n(r.direction),ut)(r.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,r,a)=>{const i=n[n.length-1]||[],s=e&&i[e]===r[e];return r.index=s?i.index:a+1,r.indexClass=s?"is-duplicated":null,n.push(r),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const r=(e-1)*n,a=r+n;return this.result=this.result.slice(r,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:Hc(e)})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(r=>({...r,gameResult:`${r.homeTeamScore}-${r.awayTeamScore}`,gameDateDate:Tt(r.gameDate,"L dddd",e,n),gameDateTime:Tt(r.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()===e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(r=>n[r]?n[`${r}Sec`]=He(n[r]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=Oa(e=>Tt(e.gameDate,"YYYY-MM-DD"))(this.result),this},slice(e=3){return this.result=this.result.slice(0,e),this}}}const Pc=(t,...e)=>mt(Vn(...e))(t);function vc(t){return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...t.player?.playerId&&{name:`${t.player.lastName} ${t.player.firstName}`},...t.player?.id&&{name:`${t.player.lastName} ${t.player.firstName}`},...t.player?.nationality&&{name:t.player?.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}}function xc(t){return{...t,...t?.team?.id&&{teamName:t.team.longName}}}function Ec(t="",e="hu"){return n=>({...n,gameDateDate:Tt(n.gameDate,"L dddd",t,e),gameDateTime:Tt(n.gameDate,"HH:mm",t,e)})}function Nc(t){return e=>({...e,gameResult:Fc(e)})}function $c(t){return{...t,opponent:Gc(t)}}function Dc(t){return{...t,resultType:jc(t)}}function Mc(t){return{...t,rowClasses:t.optional?"is-optional":""}}function Cc(t=[]){return e=>({...e,[t]:e[t]?.toUpperCase()})}function Lc(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Sec`]=He(e[n]):e),e)}function Ic(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Min`]=xo(e[n]):e),e)}function Bc(t=[]){return e=>(t.map(n=>e[`${n}Min`]=vo(e[n])),e)}function Rc(t){return{...t,periodResults:t.result?.match(/\(.*?\)/)?.[0]??""}}const zc=Yn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Le(ut("id")),Le(ut("gameId"))]),Vc=Ma((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Gc(t){return[t.isHomeGame?null:"@",t.opponent?.shortName].join(" ")}function Fc(t){let e=t?.homeTeamScore,n=t?.awayTeamScore;return t.isHomeGame||(e=t?.awayTeamScore,n=t?.homeTeamScore),[e,n].join(":")}function jc(t){const e=t.gameResult.split(":"),n=e[0]>e[1],r=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":r&&t.isOvertime?"OTL":r&&t.isShootout?"SOL":r?"L":"D"}function Uc(t){return t.map(e=>({phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...e.phaseType?.phaseTypeName&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...e.phaseSubType?.phaseSubTypeName&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}))}function Hc(t){return t.player?t.player.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`:`${t.lastName} ${t.firstName}`}class un extends Error{constructor(e,n={}){const{key:r,cause:a}=n;super(e),this.name="WidgetError",this.key=r,this.cause=a}}const Ht={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Yc={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}};function Wc(t){return`${Ae.replace(/^https?/,"wss").replace("/vbr","/socket/vbr")}${t}`}const Yt=(t="")=>window?.__MJSZ_VBR_WIDGET__?.[t];function qc(t,e={}){if(e.externalGameUrl)return e.externalGameUrl;const n=Yt("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||dn,e))}function Kc(t,e={}){const n=Yt("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||pn,e))}function Zc(t,e={}){const n=Yt("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||mn,e))}function Xc(t,e={}){return typeof t=="function"?t(e):encodeURI(dt(t||hn,e))}const Jc=(t,e="1x1")=>`${gn}/flag:${t}-${e}.svg`;function Qc(t){return t||(Yt("apiKey")?Yt("apiKey"):"")}function tu(){window.scrollTo(0,0)}const eu={class:"is-team-name-long"},nu={class:"is-team-name-short"},ou={class:"is-team-name-long"},ru={class:"is-team-name-short"},au={key:0,class:"is-text-dark"},iu=["href","target"],su={key:0,class:"label"},lu={key:1,class:"label"},cu={key:2,class:"label"},uu={key:1},du=["onClick","onFocus","onBlur"],fu={class:"is-dropdown-menu"},mu=["href","target"],pu={key:0},hu=["href"],gu={__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,n=o.ref(null),{onError:r}=Ve(),{columns:a,error:i}=ze(wn,o.computed(()=>e.hideColumns),o.computed(()=>({offsetName:e.offsetName})));ti(i,()=>r(new un(Ht.message,{...Ht.options,cause:{column:i.value}})),{immediate:!0});const{t:s}=at();return(l,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(cn,null,{default:o.withCtx(({el:c})=>[o.createVNode(sn,{columns:o.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||c},{"cell-homeTeamName":o.withCtx(({row:d})=>[d.homeTeam?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",eu,o.toDisplayString(d.homeTeam.longName),1),o.createElementVNode("span",nu,o.toDisplayString(d.homeTeam.shortName),1)],64)):o.createCommentVNode("",!0)]),"cell-awayTeamName":o.withCtx(({row:d})=>[d.awayTeam?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",ou,o.toDisplayString(d.awayTeam.longName),1),o.createElementVNode("span",ru,o.toDisplayString(d.awayTeam.shortName),1)],64)):o.createCommentVNode("",!0)]),"cell-homeTeamLogo":o.withCtx(({row:d})=>[d.homeTeam?(o.openBlock(),o.createBlock(At,{key:d.homeTeam.id,class:"is-logo-image is-right",src:d.homeTeam.logo},null,8,["src"])):o.createCommentVNode("",!0)]),"cell-awayTeamLogo":o.withCtx(({row:d})=>[d.awayTeam?(o.openBlock(),o.createBlock(At,{key:d.awayTeam.id,class:"is-logo-image is-right",src:d.awayTeam.logo},null,8,["src"])):o.createCommentVNode("",!0)]),"cell-gameResult":o.withCtx(({row:d})=>[d.gameStatus===0?(o.openBlock(),o.createElementBlock("span",au,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},o.toDisplayString(d.homeTeamScore)+":"+o.toDisplayString(d.awayTeamScore),11,iu))]),"cell-gameResultType":o.withCtx(({row:d})=>[d.isOvertime?(o.openBlock(),o.createElementBlock("span",su,o.toDisplayString(o.unref(s)("common.overtimeShort")),1)):o.createCommentVNode("",!0),d.isShootout?(o.openBlock(),o.createElementBlock("span",lu,o.toDisplayString(o.unref(s)("common.shootoutShort")),1)):o.createCommentVNode("",!0),d.seriesStandings?(o.openBlock(),o.createElementBlock("span",cu,o.toDisplayString(d.seriesStandings),1)):o.createCommentVNode("",!0)]),"cell-broadcast":o.withCtx(({row:d})=>[d.broadcast?(o.openBlock(),o.createBlock(o.unref(hc),{key:0})):(o.openBlock(),o.createElementBlock("span",uu))]),"cell-location":o.withCtx(({row:d})=>[o.createTextVNode(o.toDisplayString(d.location?.locationName??""),1)]),"cell-more":o.withCtx(({row:d})=>[o.createVNode(an,{offset:2,placement:"left",theme:"content","append-to":c},{default:o.withCtx(({setRef:f,show:g,hide:p})=>[o.createElementVNode("button",{ref:f,onClick:o.withModifiers(g,["stop"]),onFocus:g,onBlur:p},[o.createVNode(o.unref(bc))],40,du)]),content:o.withCtx(()=>[o.createElementVNode("ul",fu,[o.createElementVNode("li",null,[o.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[o.createVNode(o.unref(Sc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.report")),1)],8,mu)]),d.video?(o.openBlock(),o.createElementBlock("li",pu,[o.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[o.createVNode(o.unref(kc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.video")),1)],8,hu)])):o.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:o.withCtx(()=>[o.createVNode(ln)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),o.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},yu={class:"g-row g-gap-normal is-mb-5"},bu={for:"season",class:"label"},Tu=["value"],wu={key:0},Su=["onClick"],Ou={__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 n=t,r=e,{t:a}=at(),i=o.computed({get(){return n.championshipId},set(l){r("onChangeSeason",l)}});function s(l){r("onChangeSection",l)}return(l,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",yu,[o.createElementVNode("div",null,[o.createElementVNode("label",bu,o.toDisplayString(o.unref(a)("selection.season")),1),o.createVNode(Co,{id:"season",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.seasons,c=>(o.openBlock(),o.createElementBlock("option",{key:c.championshipId,value:c.championshipId},o.toDisplayString(c.seasonName),9,Tu))),128))]),_:1},8,["modelValue"])]),o.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",wu,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sections,c=>(o.openBlock(),o.createElementBlock("button",{key:c.phaseId,class:o.normalizeClass(["tab-button",{"is-active":c.sectionId===t.sectionId}]),onClick:d=>s(c)},o.toDisplayString(c.sectionName),11,Su))),128))]))],64))}},Au={class:"is-portrait-image"},ku=["href"],_u={class:"is-team-name-long"},Pu={class:"is-team-name-short"},vu={class:"is-team-name-long"},xu={key:0},Eu={class:"is-team-name-short"},Nu={key:0},$u={class:"is-team-name-long"},Du={class:"is-team-name-short"},Mu={class:"is-team-name-long"},Cu={class:"is-team-name-short"},Lu=["href"],Iu={key:0,class:"is-text-dark"},Bu=["href","target"],Ru={key:0,class:"label"},zu={key:1,class:"label"},Vu={key:2,class:"label"},Gu={__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 n=t,r=e,{columns:a,hideColumns:i}=o.toRefs(n),{onError:s}=Ve(),{t:l}=at(),{columns:u,error:c}=ze(a,i,o.computed(()=>({offsetName:n.offsetName})));c.value&&s(new un(Ht.message,{...Ht.options,cause:{column:c.value}}));const d=f=>r("sort",f);return(f,g)=>(o.openBlock(),o.createBlock(cn,null,{default:o.withCtx(({el:p})=>[o.createVNode(sn,{columns:o.unref(u),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||p,onSort:d},o.createSlots({"cell-index":o.withCtx(({row:m})=>[o.createElementVNode("span",{class:o.normalizeClass(m.indexClass)},o.toDisplayString(m.index),3)]),"cell-playerPortrait":o.withCtx(({row:m})=>[o.createElementVNode("div",Au,[(o.openBlock(),o.createBlock(At,{key:m.player.playerId,src:m.player.picture,"default-src":o.unref(fn)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.team?.id??m.id,class:"is-logo-image",src:m.team?.logo},null,8,["src"]))]),"cell-homeTeamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.homeTeam?.id,class:"is-logo-image is-right",src:m.homeTeam?.logo},null,8,["src"]))]),"cell-awayTeamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.awayTeam?.id,class:"is-logo-image is-right",src:m.awayTeam?.logo},null,8,["src"]))]),"cell-teamName":o.withCtx(({row:m})=>[t.isTeamLinked?(o.openBlock(),o.createElementBlock("a",{key:0,href:t.externalTeamResolver(m),target:"_blank"},[o.createElementVNode("span",_u,o.toDisplayString(m.team?.longName),1),o.createElementVNode("span",Pu,o.toDisplayString(m.team?.shortName),1)],8,ku)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",vu,[o.createTextVNode(o.toDisplayString(m.team?.longName)+" ",1),m.penaltyPoints?(o.openBlock(),o.createElementBlock("span",xu,g[0]||(g[0]=[o.createElementVNode("sup",null,"*",-1)]))):o.createCommentVNode("",!0)]),o.createElementVNode("span",Eu,[o.createTextVNode(o.toDisplayString(m.team?.shortName)+" ",1),m.penaltyPoints?(o.openBlock(),o.createElementBlock("span",Nu,g[1]||(g[1]=[o.createElementVNode("sup",null,"*",-1)]))):o.createCommentVNode("",!0)])],64))]),"cell-homeTeamName":o.withCtx(({row:m})=>[o.createElementVNode("span",$u,o.toDisplayString(m.homeTeam?.longName),1),o.createElementVNode("span",Du,o.toDisplayString(m.homeTeam?.shortName),1)]),"cell-awayTeamName":o.withCtx(({row:m})=>[o.createElementVNode("span",Mu,o.toDisplayString(m.awayTeam?.longName),1),o.createElementVNode("span",Cu,o.toDisplayString(m.awayTeam?.shortName),1)]),"cell-location":o.withCtx(({row:m})=>[o.createTextVNode(o.toDisplayString(m.location?.locationName??""),1)]),"cell-gameResult":o.withCtx(({row:m})=>[m.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Iu,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(m),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":m.gameStatus!==1,"is-text-accent":m.gameStatus===1})},o.toDisplayString(m.homeTeamScore)+":"+o.toDisplayString(m.awayTeamScore),11,Bu))]),"cell-gameResultType":o.withCtx(({row:m})=>[m.isOvertime?(o.openBlock(),o.createElementBlock("span",Ru,o.toDisplayString(o.unref(l)("common.overtimeShort")),1)):o.createCommentVNode("",!0),m.isShootout?(o.openBlock(),o.createElementBlock("span",zu,o.toDisplayString(o.unref(l)("common.shootoutShort")),1)):o.createCommentVNode("",!0),m.seriesStandings?(o.openBlock(),o.createElementBlock("span",Vu,o.toDisplayString(m.seriesStandings),1)):o.createCommentVNode("",!0)]),loading:o.withCtx(()=>[o.createVNode(ln)]),_:2},[t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:m})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(m),target:"_blank"},o.toDisplayString(m.name),9,Lu)]),key:"0"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Fu={class:"timezone-selector"},ju=["onClick"],Uu={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,r=e,{t:a}=at(),i=o.computed(()=>Vt(new Date,null,n.locale)),s=Po(),l=o.computed(()=>Array.from(bn.values()).map(c=>({...c,isActive:Vt(new Date,n.currentZone,n.locale)===Vt(new Date,c.timezone,n.locale),zoneOffsetName:Vt(new Date,c.timezone,n.locale)}))),u=c=>r("change",c);return(c,d)=>(o.openBlock(),o.createElementBlock("div",Fu,[o.createVNode(o.unref(Jn),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:d[0]||(d[0]=o.withModifiers(f=>u(o.unref(s)),["prevent"]))},o.toDisplayString(i.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,f=>(o.openBlock(),o.createElementBlock("a",{key:f.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":f.isActive}),onClick:o.withModifiers(g=>u(f.timezone),["prevent"])},o.toDisplayString(o.unref(a)(`common.${f.countryLabelKey}`))+" ("+o.toDisplayString(f.zoneOffsetName)+") ",11,ju))),128))]))}},Hu={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:""}},Yu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Wu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},qu={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}};function er({app:t=null,modules:e=[],apiKey:n,gameResolver:r,teamResolver:a,playerResolver:i}){if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:r,teamResolver:a,playerResolver:i},e.length===0)throw new Error("At least one module must be set");e.forEach(s=>{if(t)return t.use(s);if(s.register)return s.register();s?.install()})}const Ku={install:(t,e={})=>er({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=bn,T.AdditionalStandingsText=ks,T.BaseSelect=Co,T.COLUMNS_FIELD_PLAYERS=sr,T.COLUMNS_FIELD_PLAYERS_PENALTY=lr,T.COLUMNS_FIELD_PLAYERS_TOI=cr,T.COLUMNS_GOALIES=ur,T.COLUMNS_PLAYERS_NATIONAL=dr,T.COLUMNS_SCHEDULE=wn,T.COLUMNS_SCORING_EFFICIENCY=gr,T.COLUMNS_STANDINGS_P_2=ar,T.COLUMNS_STANDINGS_P_3=or,T.COLUMNS_STANDINGS_P_PER=rr,T.COLUMNS_STANDINGS_SHORT=ir,T.COLUMNS_TEAMS_FAIRPLAY=mr,T.COLUMNS_TEAMS_PENALTY_KILLING=pr,T.COLUMNS_TEAMS_POWERPLAY=hr,T.COLUMNS_TEAM_ATTENDANCE=fr,T.DEFAULT_EXTERNAL_GAME_URL=dn,T.DEFAULT_EXTERNAL_PLAYER_URL=mn,T.DEFAULT_EXTERNAL_STATISTIC_URL=hn,T.DEFAULT_EXTERNAL_TEAM_URL=pn,T.DEFAULT_PORTRAIT_IMAGE_URL=fn,T.DataTable=sn,T.ErrorNotice=Gl,T.ErrorProvider=Fl,T.FLAG_BASE_URL=gn,T.FetchMoreObserver=kr,T.FloatingPanel=an,T.I18NProvider=ql,T.Image=At,T.InvalidSeasonName=Yc,T.LAZY_LOADING_STATE_DELAY=Tn,T.LOCALE_FOR_LANG=yn,T.LoadingIndicator=ln,T.Paginator=fc,T.REFRESH_DELAY=nr,T.ResponsiveTable=cn,T.SORT_STATE_ASCEND=C,T.SORT_STATE_DESCEND=y,T.SORT_STATE_ORIGINAL=ct,T.ScheduleTable=gu,T.SeasonSelector=Ou,T.StatisticsTable=Gu,T.TimezoneSelector=Uu,T.UndefinedColumn=Ht,T.VBR_API_BASE_URL=Ae,T.WidgetError=un,T.addDays=ss,T.appendTo=tr,T.baseProps=Hu,T.convert=_c,T.convertGamePeriodResults=Rc,T.convertMinToMinSec=xo,T.convertMinToSec=He,T.convertPhaseName=Uc,T.convertSecToMin=vo,T.convertTimes=Lc,T.convertTimesMinToMinSec=Ic,T.convertTimesSecToMin=Bc,T.createConfig=er,T.createI18n=Zn,T.currentWeek=rs,T.currentWeekStartEnd=as,T.default=Ku,T.endOfMonth=cs,T.externalGameLinkResolver=qc,T.externalPlayerLinkResolver=Zc,T.externalStatisticLinkResolver=Xc,T.externalTeamLinkResolver=Kc,T.fetchVBRData=oo,T.flagResolver=Jc,T.format=Tt,T.gameDateTime=Ec,T.gameProps=qu,T.gameResult=Nc,T.getLocalTimezone=Po,T.getWebsocketURL=Wc,T.i18n=Jn,T.isAfter=ns,T.isBefore=es,T.isBetween=Eo,T.isSame=Qi,T.isSameOrBefore=Ye,T.isToday=os,T.localeSort=Vc,T.max=ds,T.min=us,T.offsetName=Vt,T.playerName=vc,T.playerStatsProps=Wu,T.rawConvert=Pc,T.resolveApiKey=Qc,T.scheduleOptionalRowClass=Mc,T.scrollToTop=tu,T.sortByDomNode=Pl,T.sortGames=zc,T.startOfMonth=ls,T.subtractDays=is,T.teamName=xc,T.teamOpponent=$c,T.teamResultType=Dc,T.teamStatsProps=Yu,T.templateReplacer=dt,T.toKebabCase=to,T.upperCase=Cc,T.useAdditionalText=qn,T.useColumns=ze,T.useError=Ve,T.useErrorProvider=no,T.useGameDataSocket=si,T.useI18n=at,T.useLazyLoadingState=fo,T.usePage=fs,T.useScrollToGameDate=ps,T.useServices=hs,T.useSort=Ss,T.useVisibilityChange=Os,T.validateColumnsName=Qn,T.yearToNow=ts,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
22
+ ***************************************************************************** */function We(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,a,i=n.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}var No;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(No||(No={}));var gs={type:"xstate.init"};function pe(t){return t===void 0?[]:[].concat(t)}function $o(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 qe(t){return function(e){return t===e}}function ys(t){return typeof t=="string"?{type:t}:t}function Do(t,e){return{value:t,context:e,actions:[],changed:!1,matches:qe(t)}}function Mo(t,e,n){var r=e,a=!1;return[t.filter(function(i){if(i.type==="xstate.assign"){a=!0;var s=Object.assign({},r);return typeof i.assignment=="function"?s=i.assignment(r,n):Object.keys(i.assignment).forEach(function(l){s[l]=typeof i.assignment[l]=="function"?i.assignment[l](r,n):i.assignment[l]}),r=s,!1}return!0}),r,a]}function bs(t,e){e===void 0&&(e={});var n=We(Mo(pe(t.states[t.initial].entry).map(function(s){return $o(s,e.actions)}),t.context,gs),2),r=n[0],a=n[1],i={config:t,_options:e,initialState:{value:t.initial,actions:r,context:a,matches:qe(t.initial)},transition:function(s,l){var u,c,d=typeof s=="string"?{value:s,context:t.context}:s,f=d.value,g=d.context,p=ys(l),m=t.states[f];if(m.on){var b=pe(m.on[p.type]);"*"in m.on&&b.push.apply(b,function(k,A,N){if(arguments.length===2)for(var $,z=0,Y=A.length;z<Y;z++)!$&&z in A||($||($=Array.prototype.slice.call(A,0,z)),$[z]=A[z]);return k.concat($||Array.prototype.slice.call(A))}([],We(pe(m.on["*"])),!1));try{for(var h=function(k){var A=typeof Symbol=="function"&&Symbol.iterator,N=A&&k[A],$=0;if(N)return N.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&$>=k.length&&(k=void 0),{value:k&&k[$++],done:!k}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(b),w=h.next();!w.done;w=h.next()){var O=w.value;if(O===void 0)return Do(f,g);var v=typeof O=="string"?{target:O}:O,x=v.target,E=v.actions,L=E===void 0?[]:E,B=v.cond,V=B===void 0?function(){return!0}:B,F=x===void 0,M=x??f,D=t.states[M];if(V(g,p)){var R=We(Mo((F?pe(L):[].concat(m.exit,L,D.entry).filter(function(k){return k})).map(function(k){return $o(k,i._options.actions)}),g,p),3),U=R[0],P=R[1],_=R[2],S=x??f;return{value:S,context:P,actions:U,changed:x!==f||U.length>0||_,matches:qe(S)}}}}catch(k){u={error:k}}finally{try{w&&!w.done&&(c=h.return)&&c.call(h)}finally{if(u)throw u.error}}}return Do(f,g)}};return i}const Ts=bs({id:"sort",initial:ct,states:{[ct]:{on:{DIRECTION1:y,DIRECTION2:C}},[y]:{on:{DIRECTION1:C,DIRECTION2:ct}},[C]:{on:{DIRECTION1:ct,DIRECTION2:y}}}});function ws(t,e){const n=e===C?"DIRECTION2":"DIRECTION1";return Ts.transition(t,n).value}function Ss(t={}){const{sortTarget:e=null,orders:n=[]}=t,r=o.reactive({sortTarget:e,orders:n});return{sort:r,change:({target:i,orders:s})=>{if(r.sortTarget!==i){r.sortTarget=i,r.orders=s;return}const l=s.map((u,c)=>({...u,direction:ws(r.orders[c].direction,u.direction)}));r.sortTarget=i,r.orders=l}}}function Os(t=!1,e=Z,n=Z){const r=oi();o.watch(r,a=>{if(o.unref(t)){if(a==="visible")return e();n()}})}const As=["textContent"],ks={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=o.toRef(e,"rows"),{t:r,locale:a}=at(),{isVisible:i,text:s}=qn(n,e.additionalKey,r,a);return(l,u)=>o.unref(i)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:o.toDisplayString(o.unref(s))},null,8,As)):o.createCommentVNode("",!0)}},Co={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,a=o.computed({get:()=>n.modelValue,set:i=>r("update:modelValue",i)});return(i,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>a.value=l),class:"base-input is-select"},[o.renderSlot(i.$slots,"default")],512)),[[o.vModelSelect,a.value]])}},_s={"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"};function Ps(t,e){return o.openBlock(),o.createElementBlock("svg",_s,[...e[0]||(e[0]=[o.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)])])}const Lo={render:Ps},vs={"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"};function xs(t,e){return o.openBlock(),o.createElementBlock("svg",vs,[...e[0]||(e[0]=[o.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)])])}const Es={render:xs},Ns={"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"};function $s(t,e){return o.openBlock(),o.createElementBlock("svg",Ns,[...e[0]||(e[0]=[o.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)])])}const Ds={render:$s},xt=Math.min,wt=Math.max,he=Math.round,ge=Math.floor,it=t=>({x:t,y:t}),Ms={left:"right",right:"left",bottom:"top",top:"bottom"},Cs={start:"end",end:"start"};function Ke(t,e,n){return wt(t,xt(e,n))}function Gt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function Ft(t){return t.split("-")[1]}function Io(t){return t==="x"?"y":"x"}function Ze(t){return t==="y"?"height":"width"}const Ls=new Set(["top","bottom"]);function pt(t){return Ls.has(St(t))?"y":"x"}function Xe(t){return Io(pt(t))}function Is(t,e,n){n===void 0&&(n=!1);const r=Ft(t),a=Xe(t),i=Ze(a);let s=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ye(s)),[s,ye(s)]}function Bs(t){const e=ye(t);return[Je(t),e,Je(e)]}function Je(t){return t.replace(/start|end/g,e=>Cs[e])}const Bo=["left","right"],Ro=["right","left"],Rs=["top","bottom"],zs=["bottom","top"];function Vs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Bo:e?Bo:Ro;case"left":case"right":return e?Rs:zs;default:return[]}}function Gs(t,e,n,r){const a=Ft(t);let i=Vs(St(t),n==="start",r);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map(Je)))),i}function ye(t){return t.replace(/left|right|bottom|top/g,e=>Ms[e])}function Fs(t){return{top:0,right:0,bottom:0,left:0,...t}}function zo(t){return typeof t!="number"?Fs(t):{top:t,right:t,bottom:t,left:t}}function be(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}function Vo(t,e,n){let{reference:r,floating:a}=t;const i=pt(e),s=Xe(e),l=Ze(s),u=St(e),c=i==="y",d=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,g=r[l]/2-a[l]/2;let p;switch(u){case"top":p={x:d,y:r.y-a.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-a.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ft(e)){case"start":p[s]-=g*(n&&c?-1:1);break;case"end":p[s]+=g*(n&&c?-1:1);break}return p}const js=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:f}=Vo(c,r,u),g=r,p={},m=0;for(let b=0;b<l.length;b++){const{name:h,fn:w}=l[b],{x:O,y:v,data:x,reset:E}=await w({x:d,y:f,initialPlacement:r,placement:g,strategy:a,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=O??d,f=v??f,p={...p,[h]:{...p[h],...x}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:d,y:f}=Vo(c,g,u)),b=-1)}return{x:d,y:f,placement:g,strategy:a,middlewareData:p}};async function Go(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:i,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:p=0}=Gt(e,t),m=zo(p),h=l[g?f==="floating"?"reference":"floating":f],w=be(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),O=f==="floating"?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),x=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},E=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:v,strategy:u}):O);return{top:(w.top-E.top+m.top)/x.y,bottom:(E.bottom-w.bottom+m.bottom)/x.y,left:(w.left-E.left+m.left)/x.x,right:(E.right-w.right+m.right)/x.x}}const Us=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:i,platform:s,elements:l,middlewareData:u}=e,{element:c,padding:d=0}=Gt(t,e)||{};if(c==null)return{};const f=zo(d),g={x:n,y:r},p=Xe(a),m=Ze(p),b=await s.getDimensions(c),h=p==="y",w=h?"top":"left",O=h?"bottom":"right",v=h?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[p]-g[p]-i.floating[m],E=g[p]-i.reference[p],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let B=L?L[v]:0;(!B||!await(s.isElement==null?void 0:s.isElement(L)))&&(B=l.floating[v]||i.floating[m]);const V=x/2-E/2,F=B/2-b[m]/2-1,M=xt(f[w],F),D=xt(f[O],F),R=M,U=B-b[m]-D,P=B/2-b[m]/2+V,_=Ke(R,P,U),S=!u.arrow&&Ft(a)!=null&&P!==_&&i.reference[m]/2-(P<R?M:D)-b[m]/2<0,k=S?P<R?P-R:P-U:0;return{[p]:g[p]+k,data:{[p]:_,centerOffset:P-_-k,...S&&{alignmentOffset:k}},reset:S}}}),Hs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...h}=Gt(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=St(a),O=pt(l),v=St(l)===l,x=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=g||(v||!b?[ye(l)]:Bs(l)),L=m!=="none";!g&&L&&E.push(...Gs(l,b,m,x));const B=[l,...E],V=await Go(e,h),F=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&F.push(V[w]),f){const P=Is(a,s,x);F.push(V[P[0]],V[P[1]])}if(M=[...M,{placement:a,overflows:F}],!F.every(P=>P<=0)){var D,R;const P=(((D=i.flip)==null?void 0:D.index)||0)+1,_=B[P];if(_&&(!(f==="alignment"?O!==pt(_):!1)||M.every(A=>A.overflows[0]>0&&pt(A.placement)===O)))return{data:{index:P,overflows:M},reset:{placement:_}};let S=(R=M.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:R.placement;if(!S)switch(p){case"bestFit":{var U;const k=(U=M.filter(A=>{if(L){const N=pt(A.placement);return N===O||N==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(N=>N>0).reduce((N,$)=>N+$,0)]).sort((A,N)=>A[1]-N[1])[0])==null?void 0:U[0];k&&(S=k);break}case"initialPlacement":S=l;break}if(a!==S)return{reset:{placement:S}}}return{}}}},Ys=new Set(["left","top"]);async function Ws(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=St(n),l=Ft(n),u=pt(n)==="y",c=Ys.has(s)?-1:1,d=i&&u?-1:1,f=Gt(e,t);let{mainAxis:g,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),u?{x:p*d,y:g*c}:{x:g*c,y:p*d}}const qs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:i,placement:s,middlewareData:l}=e,u=await Ws(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:s}}}}},Ks=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:w,y:O}=h;return{x:w,y:O}}},...u}=Gt(t,e),c={x:n,y:r},d=await Go(e,u),f=pt(St(a)),g=Io(f);let p=c[g],m=c[f];if(i){const h=g==="y"?"top":"left",w=g==="y"?"bottom":"right",O=p+d[h],v=p-d[w];p=Ke(O,p,v)}if(s){const h=f==="y"?"top":"left",w=f==="y"?"bottom":"right",O=m+d[h],v=m-d[w];m=Ke(O,m,v)}const b=l.fn({...e,[g]:p,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:i,[f]:s}}}}}};function Te(){return typeof window<"u"}function Et(t){return Fo(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function st(t){var e;return(e=(Fo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Fo(t){return Te()?t instanceof Node||t instanceof J(t).Node:!1}function nt(t){return Te()?t instanceof Element||t instanceof J(t).Element:!1}function lt(t){return Te()?t instanceof HTMLElement||t instanceof J(t).HTMLElement:!1}function jo(t){return!Te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof J(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function jt(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Zs.has(a)}const Xs=new Set(["table","td","th"]);function Js(t){return Xs.has(Et(t))}const Qs=[":popover-open",":modal"];function we(t){return Qs.some(e=>{try{return t.matches(e)}catch{return!1}})}const tl=["transform","translate","scale","rotate","perspective"],el=["transform","translate","scale","rotate","perspective","filter"],nl=["paint","layout","strict","content"];function Qe(t){const e=tn(),n=nt(t)?ot(t):t;return tl.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||el.some(r=>(n.willChange||"").includes(r))||nl.some(r=>(n.contain||"").includes(r))}function ol(t){let e=ht(t);for(;lt(e)&&!Nt(e);){if(Qe(e))return e;if(we(e))return null;e=ht(e)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rl=new Set(["html","body","#document"]);function Nt(t){return rl.has(Et(t))}function ot(t){return J(t).getComputedStyle(t)}function Se(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ht(t){if(Et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jo(t)&&t.host||st(t);return jo(e)?e.host:e}function Uo(t){const e=ht(t);return Nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&jt(e)?e:Uo(e)}function Ut(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Uo(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),s=J(a);if(i){const l=en(s);return e.concat(s,s.visualViewport||[],jt(a)?a:[],l&&n?Ut(l):[])}return e.concat(a,Ut(a,[],n))}function en(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=lt(t),i=a?t.offsetWidth:n,s=a?t.offsetHeight:r,l=he(n)!==i||he(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function nn(t){return nt(t)?t:t.contextElement}function $t(t){const e=nn(t);if(!lt(e))return it(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=Ho(e);let s=(i?he(n.width):n.width)/r,l=(i?he(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const al=it(0);function Yo(t){const e=J(t);return!tn()||!e.visualViewport?al:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function il(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==J(t)?!1:e}function Ot(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=nn(t);let s=it(1);e&&(r?nt(r)&&(s=$t(r)):s=$t(t));const l=il(i,n,r)?Yo(i):it(0);let u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(i){const g=J(i),p=r&&nt(r)?J(r):r;let m=g,b=en(m);for(;b&&r&&p!==m;){const h=$t(b),w=b.getBoundingClientRect(),O=ot(b),v=w.left+(b.clientLeft+parseFloat(O.paddingLeft))*h.x,x=w.top+(b.clientTop+parseFloat(O.paddingTop))*h.y;u*=h.x,c*=h.y,d*=h.x,f*=h.y,u+=v,c+=x,m=J(b),b=en(m)}}return be({width:d,height:f,x:u,y:c})}function on(t,e){const n=Se(t).scrollLeft;return e?e.left+n:Ot(st(t)).left+n}function Wo(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),a=r.left+e.scrollLeft-(n?0:on(t,r)),i=r.top+e.scrollTop;return{x:a,y:i}}function sl(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const i=a==="fixed",s=st(r),l=e?we(e.floating):!1;if(r===s||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=it(1);const d=it(0),f=lt(r);if((f||!f&&!i)&&((Et(r)!=="body"||jt(s))&&(u=Se(r)),lt(r))){const p=Ot(r);c=$t(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const g=s&&!f&&!i?Wo(s,u,!0):it(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-u.scrollTop*c.y+d.y+g.y}}function ll(t){return Array.from(t.getClientRects())}function cl(t){const e=st(t),n=Se(t),r=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=wt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+on(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(s+=wt(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:s,y:l}}function ul(t,e){const n=J(t),r=st(t),a=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,u=0;if(a){i=a.width,s=a.height;const c=tn();(!c||c&&e==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:l,y:u}}const dl=new Set(["absolute","fixed"]);function fl(t,e){const n=Ot(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=lt(t)?$t(t):it(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,c=r*i.y;return{width:s,height:l,x:u,y:c}}function qo(t,e,n){let r;if(e==="viewport")r=ul(t,n);else if(e==="document")r=cl(st(t));else if(nt(e))r=fl(e,n);else{const a=Yo(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return be(r)}function Ko(t,e){const n=ht(t);return n===e||!nt(n)||Nt(n)?!1:ot(n).position==="fixed"||Ko(n,e)}function ml(t,e){const n=e.get(t);if(n)return n;let r=Ut(t,[],!1).filter(l=>nt(l)&&Et(l)!=="body"),a=null;const i=ot(t).position==="fixed";let s=i?ht(t):t;for(;nt(s)&&!Nt(s);){const l=ot(s),u=Qe(s);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&dl.has(a.position)||jt(s)&&!u&&Ko(t,s))?r=r.filter(d=>d!==s):a=l,s=ht(s)}return e.set(t,r),r}function pl(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const s=[...n==="clippingAncestors"?we(e)?[]:ml(e,this._c):[].concat(n),r],l=s[0],u=s.reduce((c,d)=>{const f=qo(e,d,a);return c.top=wt(f.top,c.top),c.right=xt(f.right,c.right),c.bottom=xt(f.bottom,c.bottom),c.left=wt(f.left,c.left),c},qo(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function hl(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function gl(t,e,n){const r=lt(e),a=st(e),i=n==="fixed",s=Ot(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const u=it(0);function c(){u.x=on(a)}if(r||!r&&!i)if((Et(e)!=="body"||jt(a))&&(l=Se(e)),r){const p=Ot(e,!0,i,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else a&&c();i&&!r&&a&&c();const d=a&&!r&&!i?Wo(a,l):it(0),f=s.left+l.scrollLeft-u.x-d.x,g=s.top+l.scrollTop-u.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function rn(t){return ot(t).position==="static"}function Zo(t,e){if(!lt(t)||ot(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return st(t)===n&&(n=n.ownerDocument.body),n}function Xo(t,e){const n=J(t);if(we(t))return n;if(!lt(t)){let a=ht(t);for(;a&&!Nt(a);){if(nt(a)&&!rn(a))return a;a=ht(a)}return n}let r=Zo(t,e);for(;r&&Js(r)&&rn(r);)r=Zo(r,e);return r&&Nt(r)&&rn(r)&&!Qe(r)?n:r||ol(t)||n}const yl=async function(t){const e=this.getOffsetParent||Xo,n=this.getDimensions,r=await n(t.floating);return{reference:gl(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bl(t){return ot(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:sl,getDocumentElement:st,getClippingRect:pl,getOffsetParent:Xo,getElementRects:yl,getClientRects:ll,getDimensions:hl,getScale:$t,isElement:nt,isRTL:bl};function Jo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wl(t,e){let n=null,r;const a=st(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const c=t.getBoundingClientRect(),{left:d,top:f,width:g,height:p}=c;if(l||e(),!g||!p)return;const m=ge(f),b=ge(a.clientWidth-(d+g)),h=ge(a.clientHeight-(f+p)),w=ge(d),v={rootMargin:-m+"px "+-b+"px "+-h+"px "+-w+"px",threshold:wt(0,xt(1,u))||1};let x=!0;function E(L){const B=L[0].intersectionRatio;if(B!==u){if(!x)return s();B?s(!1,B):r=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!Jo(c,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(E,{...v,root:a.ownerDocument})}catch{n=new IntersectionObserver(E,v)}n.observe(t)}return s(!0),i}function Sl(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=nn(t),d=a||i?[...c?Ut(c):[],...Ut(e)]:[];d.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=c&&l?wl(c,n):null;let g=-1,p=null;s&&(p=new ResizeObserver(w=>{let[O]=w;O&&O.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(e)})),n()}),c&&!u&&p.observe(c),p.observe(e));let m,b=u?Ot(t):null;u&&h();function h(){const w=Ot(t);b&&!Jo(b,w)&&n(),b=w,m=requestAnimationFrame(h)}return n(),()=>{var w;d.forEach(O=>{a&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f?.(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const Ol=qs,Al=Ks,kl=Hs,Qo=Us,_l=(t,e,n)=>{const r=new Map,a={platform:Tl,...n},i={...a.platform,_c:r};return js(t,e,{...a,platform:i})};function tr(t,e="body"){if(!t)return;if(typeof e!="string"){e?.append(t);return}document.querySelector(e)?.append(t)}function Pl(t,e=()=>({})){return t.slice().sort((n,r)=>{const a=e(n),i=e(r);if(a===null||i===null)return 0;const s=a.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vl({middleware:t,placement:e=null,strategy:n,append:r,enabled:a}){const i=o.ref(null),s=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(null),d=o.ref(null),f=o.ref(null),g=o.ref(n??"absolute"),p=o.ref(null),m=()=>{!i.value||!s.value||_l(i.value,s.value,{middleware:t,placement:e,strategy:n}).then(h=>{l.value=h.x,u.value=h.y,g.value=h.strategy,c.value=h.middlewareData.arrow.x,d.value=h.middlewareData.arrow.y,f.value=h.placement})};o.watch(()=>({reference:o.unref(i),floating:o.unref(s),append:o.unref(r)}),({floating:h,append:w})=>{w&&tr(h,w),m()},{flush:"post"}),o.watch(a,h=>{if(!(!i.value||!s.value)){if(!h)return b();p.value=Sl(i.value,s.value,m,{})}},{flush:"post"});function b(){p.value?.(),p.value=null}return{x:l,y:u,arrowX:c,arrowY:d,placement:f,reference:i,floating:s,strategy:g,update:m}}function xl(t){const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(r){return o.isRef(e)?e.value!=null?Qo({element:e.value,padding:n}).fn(r):{}:e?Qo({element:e,padding:n}).fn(r):{}}}}const El=["data-placement"],an={__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},isArrowVisible:{type:Boolean,default:!0}},setup(t){const e=t,n=o.ref(!1),r=o.ref(null),{x:a,y:i,arrowX:s,arrowY:l,placement:u,reference:c,floating:d,strategy:f}=vl({placement:e.placement,middleware:[kl(),Al({padding:5}),Ol(e.offset),xl({element:r,padding:5})],append:o.computed(()=>e.appendTo),enabled:n});function g(){e.disabled||n.value||(n.value=!0)}function p(h){n.value&&h&&(n.value=!1)}function m(h){c.value=h}const b={mouseenter:g,mouseleave:p,focus:g,blur:p};return ni(d,h=>{c.value?.contains(h.target)||p()}),(h,w)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(h.$slots,"default",{setRef:m,show:g,hide:p,events:b}),o.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":o.unref(u),style:o.normalizeStyle({position:o.unref(f),top:o.unref(i)?`${o.unref(i)}px`:"",left:o.unref(a)?`${o.unref(a)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[n.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[[`is-${e.theme}`]]])},[o.renderSlot(h.$slots,"content",{close:p},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),t.isArrowVisible?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:r,class:"is-arrow",style:o.normalizeStyle({position:o.unref(f),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0)]),_:3})],12,El)],64))}},Nl={class:"table"},$l=["tabindex","onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown"],Dl={key:0},Ml=["colspan"],Cl={key:1},Ll=["colspan"],sn={__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 n=t,r=e,{isLoading:a,appendTo:i}=o.toRefs(n),s=fo(a,{delay:Tn}),{t:l}=at(),u=o.computed(()=>n.columns),c=o.computed(()=>Object.keys(n.columns).length);function d(f,g){f.sortOrders&&r("sort",{target:g,orders:f.sortOrders})}return(f,g)=>(o.openBlock(),o.createElementBlock("table",Nl,[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(p,m)=>(o.openBlock(),o.createBlock(an,{key:m,placement:"top",content:p.tooltip,disabled:!p.tooltip,"append-to":o.unref(i)},{default:o.withCtx(({setRef:b,show:h,hide:w})=>[o.createElementVNode("th",{ref_for:!0,ref:b,class:o.normalizeClass([[p.class],{"is-active":m===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ct),"is-sortable":p.sortOrders,"is-desc":m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(y),"is-asc":m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),tabindex:p.sortOrders?0:-1,role:"button",onMouseenter:h,onMouseleave:w,onFocus:h,onBlur:w,onClick:O=>d(p,m),onKeydown:[o.withKeys(o.withModifiers(O=>d(p,m),["prevent"]),["space"]),o.withKeys(o.withModifiers(O=>d(p,m),["prevent"]),["enter"])]},[o.renderSlot(f.$slots,`header-${m}`,{column:p},()=>[o.createTextVNode(o.toDisplayString(p.label),1)]),p.sortOrders&&m!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(Lo),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(ct)?(o.openBlock(),o.createBlock(o.unref(Lo),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(y)?(o.openBlock(),o.createBlock(o.unref(Es),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),m===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(Ds),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,$l)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(p,m)=>(o.openBlock(),o.createElementBlock("tr",{key:m,class:o.normalizeClass(p.rowClasses)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(b,h)=>(o.openBlock(),o.createElementBlock("td",{key:h,class:o.normalizeClass([[b.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ct),"is-zero":p[h]===0||p[h]==="00:00"}])},[o.renderSlot(f.$slots,`cell-${h}`,{row:p,prop:h},()=>[o.createTextVNode(o.toDisplayString(p[h]),1)])],2))),128))],2))),128))]),o.unref(s)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Dl,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.loading")),1)])],8,Ml)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(a)&&!o.unref(s)?(o.openBlock(),o.createElementBlock("tfoot",Cl,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.noData")),1)])],8,Ll)])])):o.createCommentVNode("",!0)]))}},Il={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"};function Bl(t,e){return o.openBlock(),o.createElementBlock("svg",Il,[...e[0]||(e[0]=[o.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),o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)])])}const Rl={render:Bl},zl={class:"error-notice"},Vl=["textContent"],Gl={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})},useRetry:{type:Boolean,default:!1}},emits:["retry"],setup(t){const e=t,{t:n,hasTranslation:r}=at(),a=o.computed(()=>r(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause||[e.error?.message]):e.error?.message);return(i,s)=>(o.openBlock(),o.createElementBlock("div",zl,[o.createVNode(o.unref(Rl),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1),t.useRetry?(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",onClick:s[0]||(s[0]=l=>i.$emit("retry")),textContent:o.toDisplayString(o.unref(n)("common.retry"))},null,8,Vl)):o.createCommentVNode("",!0)]))}},Fl={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:r}=no();return(a,i)=>o.renderSlot(a.$slots,"default",{message:o.unref(e),error:o.unref(r),hasError:o.unref(n)})}},jl={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found",gameData:"Game Data: {0}",gameStats:"Game Stats: {0}",gameEvents:"Game Events: {0}",gameOfficials:"Game Officials : {0}"},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",retry:"Try Again"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",info:"{min} to {max} of {total} entries",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},pper:{short:"PPer",tooltip:"Total periods 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"},so:{short:"SO",tooltip:"Shutouts"},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"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},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"}}},Ul={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ő",gameData:"Game Data: {0}",gameStats:"Game Stats: {0}",gameEvents:"Game Events: {0}",gameOfficials:"Game Officials: {0}"},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:"SO",overtimeShort:"OT",all:"Mind",report:"Jegyzőkönyv",video:"Videó",retry:"Újra"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",info:"{min} - {max} / {total} db",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},pper:{short:"PPer",tooltip:"Összes lejátszott játékrész"},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"},so:{short:"SO",tooltip:"Kapott gól nélküli mérkőzé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"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},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"}}},Hl=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Yl=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=jn({hu:Ul,en:jl},t.messages),{translate:n}=Zn({locale:o.computed(()=>t.locale),messages:e});return{translate:n}}});function Wl(t,e,n,r,a,i){return o.renderSlot(t.$slots,"default",{t:t.translate})}const ql=Hl(Yl,[["render",Wl]]),Kl=["src"],Zl=["src","title"],At=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:n}=o.toRefs(e),r=o.ref({src:e.src}),{error:a,isReady:i}=ai(r,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)&&o.unref(n)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(n),class:o.normalizeClass(["is-loaded is-default",[s.$attrs.class]])},null,10,Kl)):o.createCommentVNode("",!0),o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:r.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(i)}]),title:e.title,loading:"lazy"},null,10,Zl))],64))}}),Xl={class:"loading-indicator"},ln={__name:"LoadingIndicator",setup(t){const{t:e}=at();return(n,r)=>(o.openBlock(),o.createElementBlock("div",Xl,o.toDisplayString(o.unref(e)("common.loading")),1))}},Jl={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"};function Ql(t,e){return o.openBlock(),o.createElementBlock("svg",Jl,[...e[0]||(e[0]=[o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)])])}const tc={render:Ql},ec={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"};function nc(t,e){return o.openBlock(),o.createElementBlock("svg",ec,[...e[0]||(e[0]=[o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)])])}const oc={render:nc},rc={key:0,class:"paginator"},ac=["disabled"],ic=["disabled"],sc={key:1,class:"is-disabled"},lc=["disabled","onClick"],cc={key:2,class:"is-disabled"},uc=["disabled"],dc=["disabled"],fc={__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 n=t,r=e,{page:a,pageCount:i,range:s,goTo:l,pageStep:u}=ms({currentPage:o.computed(()=>n.page),totalItems:o.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:c=>r("change",c)});return(c,d)=>o.unref(i)>1?(o.openBlock(),o.createElementBlock("div",rc,[o.createElementVNode("button",{type:"button",disabled:o.unref(a)===1,onClick:d[0]||(d[0]=f=>o.unref(u)(-1))},[o.renderSlot(c.$slots,"prev",{},()=>[o.createVNode(o.unref(tc),{class:"icon paginator-left"})])],8,ac),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(a)===1,onClick:d[1]||(d[1]=f=>o.unref(l)(1))}," 1 ",8,ic)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",sc," ... ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),f=>(o.openBlock(),o.createElementBlock("button",{key:f,type:"button",class:o.normalizeClass({"is-active":f===o.unref(a)}),disabled:f===o.unref(a),onClick:g=>o.unref(l)(f)},o.toDisplayString(f),11,lc))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",cc,[...d[4]||(d[4]=[o.createElementVNode("span",null,"...",-1)])])),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(a)===o.unref(i),onClick:d[2]||(d[2]=f=>o.unref(l)(o.unref(i)))},o.toDisplayString(o.unref(i)),9,uc)),o.createElementVNode("button",{type:"button",disabled:o.unref(a)===o.unref(i),onClick:d[3]||(d[3]=o.withModifiers(f=>o.unref(u)(1),["prevent"]))},[o.renderSlot(c.$slots,"next",{},()=>[o.createVNode(o.unref(oc),{class:"icon paginator-left"})])],8,dc)])):o.createCommentVNode("",!0)}},cn={__name:"ResponsiveTable",setup(t){const e=o.ref(null);return(n,r)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:"table-responsive"},[o.renderSlot(n.$slots,"default",{el:e.value})],512))}},mc={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"};function pc(t,e){return o.openBlock(),o.createElementBlock("svg",mc,[...e[0]||(e[0]=[o.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),o.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),o.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1)])])}const hc={render:pc},gc={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"};function yc(t,e){return o.openBlock(),o.createElementBlock("svg",gc,[...e[0]||(e[0]=[o.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),o.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),o.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)])])}const bc={render:yc},Tc={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"};function wc(t,e){return o.openBlock(),o.createElementBlock("svg",Tc,[...e[0]||(e[0]=[o.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),o.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)])])}const Sc={render:wc},Oc={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"};function Ac(t,e){return o.openBlock(),o.createElementBlock("svg",Oc,[...e[0]||(e[0]=[o.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),o.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1)])])}const kc={render:Ac};function _c(t=[]){return{result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],r=!1){if(e){const a=n.map(l=>r?te(Be(l),Zt(e)):te(ut(l),Wn,ka(Wn(e)))),i=Xr(l=>l.name?$a(va("name"),Da(",",""),l):l),s=De(te(i,Zr([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=s.length,this.result=s}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ct)return this;const n=Aa(Zt(C),Rn(Le),Rn(ma));return this.result=Yn(e.orders.map(r=>Vn(n(r.direction),ut)(r.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,r,a)=>{const i=n[n.length-1]||[],s=e&&i[e]===r[e];return r.index=s?i.index:a+1,r.indexClass=s?"is-duplicated":null,n.push(r),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const r=(e-1)*n,a=r+n;return this.result=this.result.slice(r,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:Hc(e)})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(r=>({...r,gameResult:`${r.homeTeamScore}-${r.awayTeamScore}`,gameDateDate:Tt(r.gameDate,"L dddd",e,n),gameDateTime:Tt(r.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()===e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(r=>n[r]?n[`${r}Sec`]=He(n[r]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=Oa(e=>Tt(e.gameDate,"YYYY-MM-DD"))(this.result),this},slice(e=3){return this.result=this.result.slice(0,e),this}}}const Pc=(t,...e)=>mt(Vn(...e))(t);function vc(t){return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...t.player?.playerId&&{name:`${t.player.lastName} ${t.player.firstName}`},...t.player?.id&&{name:`${t.player.lastName} ${t.player.firstName}`},...t.player?.nationality&&{name:t.player?.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}}function xc(t){return{...t,...t?.team?.id&&{teamName:t.team.longName}}}function Ec(t="",e="hu"){return n=>({...n,gameDateDate:Tt(n.gameDate,"L dddd",t,e),gameDateTime:Tt(n.gameDate,"HH:mm",t,e)})}function Nc(t){return e=>({...e,gameResult:Fc(e)})}function $c(t){return{...t,opponent:Gc(t)}}function Dc(t){return{...t,resultType:jc(t)}}function Mc(t){return{...t,rowClasses:t.optional?"is-optional":""}}function Cc(t=[]){return e=>({...e,[t]:e[t]?.toUpperCase()})}function Lc(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Sec`]=He(e[n]):e),e)}function Ic(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Min`]=xo(e[n]):e),e)}function Bc(t=[]){return e=>(t.map(n=>e[`${n}Min`]=vo(e[n])),e)}function Rc(t){return{...t,periodResults:t.result?.match(/\(.*?\)/)?.[0]??""}}const zc=Yn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Le(ut("id")),Le(ut("gameId"))]),Vc=Ma((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Gc(t){return[t.isHomeGame?null:"@",t.opponent?.shortName].join(" ")}function Fc(t){let e=t?.homeTeamScore,n=t?.awayTeamScore;return t.isHomeGame||(e=t?.awayTeamScore,n=t?.homeTeamScore),[e,n].join(":")}function jc(t){const e=t.gameResult.split(":"),n=e[0]>e[1],r=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":r&&t.isOvertime?"OTL":r&&t.isShootout?"SOL":r?"L":"D"}function Uc(t){return t.map(e=>({phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...e.phaseType?.phaseTypeName&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...e.phaseSubType?.phaseSubTypeName&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}))}function Hc(t){return t.player?t.player.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`:`${t.lastName} ${t.firstName}`}class un extends Error{constructor(e,n={}){const{key:r,cause:a}=n;super(e),this.name="WidgetError",this.key=r,this.cause=a}}const Ht={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Yc={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}};function Wc(t){return`${Ae.replace(/^https?/,"wss").replace("/vbr","/socket/vbr")}${t}`}const Yt=(t="")=>window?.__MJSZ_VBR_WIDGET__?.[t];function qc(t,e={}){if(e.externalGameUrl)return e.externalGameUrl;const n=Yt("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||dn,e))}function Kc(t,e={}){const n=Yt("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||pn,e))}function Zc(t,e={}){const n=Yt("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(dt(n||mn,e))}function Xc(t,e={}){return typeof t=="function"?t(e):encodeURI(dt(t||hn,e))}const Jc=(t,e="1x1")=>`${gn}/flag:${t}-${e}.svg`;function Qc(t){return t||(Yt("apiKey")?Yt("apiKey"):"")}function tu(){window.scrollTo(0,0)}const eu={class:"is-team-name-long"},nu={class:"is-team-name-short"},ou={class:"is-team-name-long"},ru={class:"is-team-name-short"},au={key:0,class:"is-text-dark"},iu=["href","target"],su={key:0,class:"label"},lu={key:1,class:"label"},cu={key:2,class:"label"},uu={key:1},du=["onClick","onFocus","onBlur"],fu={class:"is-dropdown-menu"},mu=["href","target"],pu={key:0},hu=["href"],gu={__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,n=o.ref(null),{onError:r}=Ve(),{columns:a,error:i}=ze(wn,o.computed(()=>e.hideColumns),o.computed(()=>({offsetName:e.offsetName})));ti(i,()=>r(new un(Ht.message,{...Ht.options,cause:{column:i.value}})),{immediate:!0});const{t:s}=at();return(l,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(cn,null,{default:o.withCtx(({el:c})=>[o.createVNode(sn,{columns:o.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||c},{"cell-homeTeamName":o.withCtx(({row:d})=>[d.homeTeam?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",eu,o.toDisplayString(d.homeTeam.longName),1),o.createElementVNode("span",nu,o.toDisplayString(d.homeTeam.shortName),1)],64)):o.createCommentVNode("",!0)]),"cell-awayTeamName":o.withCtx(({row:d})=>[d.awayTeam?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("span",ou,o.toDisplayString(d.awayTeam.longName),1),o.createElementVNode("span",ru,o.toDisplayString(d.awayTeam.shortName),1)],64)):o.createCommentVNode("",!0)]),"cell-homeTeamLogo":o.withCtx(({row:d})=>[d.homeTeam?(o.openBlock(),o.createBlock(At,{key:d.homeTeam.id,class:"is-logo-image is-right",src:d.homeTeam.logo},null,8,["src"])):o.createCommentVNode("",!0)]),"cell-awayTeamLogo":o.withCtx(({row:d})=>[d.awayTeam?(o.openBlock(),o.createBlock(At,{key:d.awayTeam.id,class:"is-logo-image is-right",src:d.awayTeam.logo},null,8,["src"])):o.createCommentVNode("",!0)]),"cell-gameResult":o.withCtx(({row:d})=>[d.gameStatus===0?(o.openBlock(),o.createElementBlock("span",au,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},o.toDisplayString(d.homeTeamScore)+":"+o.toDisplayString(d.awayTeamScore),11,iu))]),"cell-gameResultType":o.withCtx(({row:d})=>[d.isOvertime?(o.openBlock(),o.createElementBlock("span",su,o.toDisplayString(o.unref(s)("common.overtimeShort")),1)):o.createCommentVNode("",!0),d.isShootout?(o.openBlock(),o.createElementBlock("span",lu,o.toDisplayString(o.unref(s)("common.shootoutShort")),1)):o.createCommentVNode("",!0),d.seriesStandings?(o.openBlock(),o.createElementBlock("span",cu,o.toDisplayString(d.seriesStandings),1)):o.createCommentVNode("",!0)]),"cell-broadcast":o.withCtx(({row:d})=>[d.broadcast?(o.openBlock(),o.createBlock(o.unref(hc),{key:0})):(o.openBlock(),o.createElementBlock("span",uu))]),"cell-location":o.withCtx(({row:d})=>[o.createTextVNode(o.toDisplayString(d.location?.locationName??""),1)]),"cell-more":o.withCtx(({row:d})=>[o.createVNode(an,{offset:2,placement:"left",theme:"content","append-to":c},{default:o.withCtx(({setRef:f,show:g,hide:p})=>[o.createElementVNode("button",{ref:f,onClick:o.withModifiers(g,["stop"]),onFocus:g,onBlur:p},[o.createVNode(o.unref(bc))],40,du)]),content:o.withCtx(()=>[o.createElementVNode("ul",fu,[o.createElementVNode("li",null,[o.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[o.createVNode(o.unref(Sc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.report")),1)],8,mu)]),d.video?(o.openBlock(),o.createElementBlock("li",pu,[o.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[o.createVNode(o.unref(kc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.video")),1)],8,hu)])):o.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:o.withCtx(()=>[o.createVNode(ln)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),o.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},yu={class:"g-row g-gap-normal is-mb-5"},bu={for:"season",class:"label"},Tu=["value"],wu={key:0},Su=["onClick"],Ou={__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 n=t,r=e,{t:a}=at(),i=o.computed({get(){return n.championshipId},set(l){r("onChangeSeason",l)}});function s(l){r("onChangeSection",l)}return(l,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",yu,[o.createElementVNode("div",null,[o.createElementVNode("label",bu,o.toDisplayString(o.unref(a)("selection.season")),1),o.createVNode(Co,{id:"season",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.seasons,c=>(o.openBlock(),o.createElementBlock("option",{key:c.championshipId,value:c.championshipId},o.toDisplayString(c.seasonName),9,Tu))),128))]),_:1},8,["modelValue"])]),o.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",wu,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sections,c=>(o.openBlock(),o.createElementBlock("button",{key:c.phaseId,class:o.normalizeClass(["tab-button",{"is-active":c.sectionId===t.sectionId}]),onClick:d=>s(c)},o.toDisplayString(c.sectionName),11,Su))),128))]))],64))}},Au={class:"is-portrait-image"},ku=["href"],_u={class:"is-team-name-long"},Pu={class:"is-team-name-short"},vu={class:"is-team-name-long"},xu={key:0},Eu={class:"is-team-name-short"},Nu={key:0},$u={class:"is-team-name-long"},Du={class:"is-team-name-short"},Mu={class:"is-team-name-long"},Cu={class:"is-team-name-short"},Lu=["href"],Iu={key:0,class:"is-text-dark"},Bu=["href","target"],Ru={key:0,class:"label"},zu={key:1,class:"label"},Vu={key:2,class:"label"},Gu={__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 n=t,r=e,{columns:a,hideColumns:i}=o.toRefs(n),{onError:s}=Ve(),{t:l}=at(),{columns:u,error:c}=ze(a,i,o.computed(()=>({offsetName:n.offsetName})));c.value&&s(new un(Ht.message,{...Ht.options,cause:{column:c.value}}));const d=f=>r("sort",f);return(f,g)=>(o.openBlock(),o.createBlock(cn,null,{default:o.withCtx(({el:p})=>[o.createVNode(sn,{columns:o.unref(u),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||p,onSort:d},o.createSlots({"cell-index":o.withCtx(({row:m})=>[o.createElementVNode("span",{class:o.normalizeClass(m.indexClass)},o.toDisplayString(m.index),3)]),"cell-playerPortrait":o.withCtx(({row:m})=>[o.createElementVNode("div",Au,[(o.openBlock(),o.createBlock(At,{key:m.player.playerId,src:m.player.picture,"default-src":o.unref(fn)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.team?.id??m.id,class:"is-logo-image",src:m.team?.logo},null,8,["src"]))]),"cell-homeTeamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.homeTeam?.id,class:"is-logo-image is-right",src:m.homeTeam?.logo},null,8,["src"]))]),"cell-awayTeamLogo":o.withCtx(({row:m})=>[(o.openBlock(),o.createBlock(At,{key:m.awayTeam?.id,class:"is-logo-image is-right",src:m.awayTeam?.logo},null,8,["src"]))]),"cell-teamName":o.withCtx(({row:m})=>[t.isTeamLinked?(o.openBlock(),o.createElementBlock("a",{key:0,href:t.externalTeamResolver(m),target:"_blank"},[o.createElementVNode("span",_u,o.toDisplayString(m.team?.longName),1),o.createElementVNode("span",Pu,o.toDisplayString(m.team?.shortName),1)],8,ku)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",vu,[o.createTextVNode(o.toDisplayString(m.team?.longName)+" ",1),m.penaltyPoints?(o.openBlock(),o.createElementBlock("span",xu,[...g[0]||(g[0]=[o.createElementVNode("sup",null,"*",-1)])])):o.createCommentVNode("",!0)]),o.createElementVNode("span",Eu,[o.createTextVNode(o.toDisplayString(m.team?.shortName)+" ",1),m.penaltyPoints?(o.openBlock(),o.createElementBlock("span",Nu,[...g[1]||(g[1]=[o.createElementVNode("sup",null,"*",-1)])])):o.createCommentVNode("",!0)])],64))]),"cell-homeTeamName":o.withCtx(({row:m})=>[o.createElementVNode("span",$u,o.toDisplayString(m.homeTeam?.longName),1),o.createElementVNode("span",Du,o.toDisplayString(m.homeTeam?.shortName),1)]),"cell-awayTeamName":o.withCtx(({row:m})=>[o.createElementVNode("span",Mu,o.toDisplayString(m.awayTeam?.longName),1),o.createElementVNode("span",Cu,o.toDisplayString(m.awayTeam?.shortName),1)]),"cell-location":o.withCtx(({row:m})=>[o.createTextVNode(o.toDisplayString(m.location?.locationName??""),1)]),"cell-gameResult":o.withCtx(({row:m})=>[m.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Iu,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(m),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":m.gameStatus!==1,"is-text-accent":m.gameStatus===1})},o.toDisplayString(m.homeTeamScore)+":"+o.toDisplayString(m.awayTeamScore),11,Bu))]),"cell-gameResultType":o.withCtx(({row:m})=>[m.isOvertime?(o.openBlock(),o.createElementBlock("span",Ru,o.toDisplayString(o.unref(l)("common.overtimeShort")),1)):o.createCommentVNode("",!0),m.isShootout?(o.openBlock(),o.createElementBlock("span",zu,o.toDisplayString(o.unref(l)("common.shootoutShort")),1)):o.createCommentVNode("",!0),m.seriesStandings?(o.openBlock(),o.createElementBlock("span",Vu,o.toDisplayString(m.seriesStandings),1)):o.createCommentVNode("",!0)]),loading:o.withCtx(()=>[o.createVNode(ln)]),_:2},[t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:m})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(m),target:"_blank"},o.toDisplayString(m.name),9,Lu)]),key:"0"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Fu={class:"timezone-selector"},ju=["onClick"],Uu={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,r=e,{t:a}=at(),i=o.computed(()=>Vt(new Date,null,n.locale)),s=Po(),l=o.computed(()=>Array.from(bn.values()).map(c=>({...c,isActive:Vt(new Date,n.currentZone,n.locale)===Vt(new Date,c.timezone,n.locale),zoneOffsetName:Vt(new Date,c.timezone,n.locale)}))),u=c=>r("change",c);return(c,d)=>(o.openBlock(),o.createElementBlock("div",Fu,[o.createVNode(o.unref(Jn),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:d[0]||(d[0]=o.withModifiers(f=>u(o.unref(s)),["prevent"]))},o.toDisplayString(i.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,f=>(o.openBlock(),o.createElementBlock("a",{key:f.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":f.isActive}),onClick:o.withModifiers(g=>u(f.timezone),["prevent"])},o.toDisplayString(o.unref(a)(`common.${f.countryLabelKey}`))+" ("+o.toDisplayString(f.zoneOffsetName)+") ",11,ju))),128))]))}},Hu={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:""}},Yu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Wu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},qu={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}};function er({app:t=null,modules:e=[],apiKey:n,gameResolver:r,teamResolver:a,playerResolver:i}){if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:r,teamResolver:a,playerResolver:i},e.length===0)throw new Error("At least one module must be set");e.forEach(s=>{if(t)return t.use(s);if(s.register)return s.register();s?.install()})}const Ku={install:(t,e={})=>er({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=bn,T.AdditionalStandingsText=ks,T.BaseSelect=Co,T.COLUMNS_FIELD_PLAYERS=sr,T.COLUMNS_FIELD_PLAYERS_PENALTY=lr,T.COLUMNS_FIELD_PLAYERS_TOI=cr,T.COLUMNS_GOALIES=ur,T.COLUMNS_PLAYERS_NATIONAL=dr,T.COLUMNS_SCHEDULE=wn,T.COLUMNS_SCORING_EFFICIENCY=gr,T.COLUMNS_STANDINGS_P_2=ar,T.COLUMNS_STANDINGS_P_3=or,T.COLUMNS_STANDINGS_P_PER=rr,T.COLUMNS_STANDINGS_SHORT=ir,T.COLUMNS_TEAMS_FAIRPLAY=mr,T.COLUMNS_TEAMS_PENALTY_KILLING=pr,T.COLUMNS_TEAMS_POWERPLAY=hr,T.COLUMNS_TEAM_ATTENDANCE=fr,T.DEFAULT_EXTERNAL_GAME_URL=dn,T.DEFAULT_EXTERNAL_PLAYER_URL=mn,T.DEFAULT_EXTERNAL_STATISTIC_URL=hn,T.DEFAULT_EXTERNAL_TEAM_URL=pn,T.DEFAULT_PORTRAIT_IMAGE_URL=fn,T.DataTable=sn,T.ErrorNotice=Gl,T.ErrorProvider=Fl,T.FLAG_BASE_URL=gn,T.FetchMoreObserver=kr,T.FloatingPanel=an,T.I18NProvider=ql,T.Image=At,T.InvalidSeasonName=Yc,T.LAZY_LOADING_STATE_DELAY=Tn,T.LOCALE_FOR_LANG=yn,T.LoadingIndicator=ln,T.Paginator=fc,T.REFRESH_DELAY=nr,T.ResponsiveTable=cn,T.SORT_STATE_ASCEND=C,T.SORT_STATE_DESCEND=y,T.SORT_STATE_ORIGINAL=ct,T.ScheduleTable=gu,T.SeasonSelector=Ou,T.StatisticsTable=Gu,T.TimezoneSelector=Uu,T.UndefinedColumn=Ht,T.VBR_API_BASE_URL=Ae,T.WidgetError=un,T.addDays=ss,T.appendTo=tr,T.baseProps=Hu,T.convert=_c,T.convertGamePeriodResults=Rc,T.convertMinToMinSec=xo,T.convertMinToSec=He,T.convertPhaseName=Uc,T.convertSecToMin=vo,T.convertTimes=Lc,T.convertTimesMinToMinSec=Ic,T.convertTimesSecToMin=Bc,T.createConfig=er,T.createI18n=Zn,T.currentWeek=rs,T.currentWeekStartEnd=as,T.default=Ku,T.endOfMonth=cs,T.externalGameLinkResolver=qc,T.externalPlayerLinkResolver=Zc,T.externalStatisticLinkResolver=Xc,T.externalTeamLinkResolver=Kc,T.fetchVBRData=oo,T.flagResolver=Jc,T.format=Tt,T.gameDateTime=Ec,T.gameProps=qu,T.gameResult=Nc,T.getLocalTimezone=Po,T.getWebsocketURL=Wc,T.i18n=Jn,T.isAfter=ns,T.isBefore=es,T.isBetween=Eo,T.isSame=Qi,T.isSameOrBefore=Ye,T.isToday=os,T.localeSort=Vc,T.max=ds,T.min=us,T.offsetName=Vt,T.playerName=vc,T.playerStatsProps=Wu,T.rawConvert=Pc,T.resolveApiKey=Qc,T.scheduleOptionalRowClass=Mc,T.scrollToTop=tu,T.sortByDomNode=Pl,T.sortGames=zc,T.startOfMonth=ls,T.subtractDays=is,T.teamName=xc,T.teamOpponent=$c,T.teamResultType=Dc,T.teamStatsProps=Yu,T.templateReplacer=dt,T.toKebabCase=to,T.upperCase=Cc,T.useAdditionalText=qn,T.useColumns=ze,T.useError=Ve,T.useErrorProvider=no,T.useGameDataSocket=si,T.useI18n=at,T.useLazyLoadingState=fo,T.usePage=fs,T.useScrollToGameDate=ps,T.useServices=hs,T.useSort=Ss,T.useVisibilityChange=Os,T.validateColumnsName=Qn,T.yearToNow=ts,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
8
  import { COLUMNS_FIELD_PLAYERS as N, COLUMNS_FIELD_PLAYERS_PENALTY as c, COLUMNS_FIELD_PLAYERS_TOI as u, COLUMNS_GOALIES as d, COLUMNS_PLAYERS_NATIONAL as R, COLUMNS_SCHEDULE as f, COLUMNS_SCORING_EFFICIENCY as p, COLUMNS_STANDINGS_P_2 as I, COLUMNS_STANDINGS_P_3 as O, COLUMNS_STANDINGS_P_PER as C, COLUMNS_STANDINGS_SHORT as g, COLUMNS_TEAMS_FAIRPLAY as M, COLUMNS_TEAMS_PENALTY_KILLING as U, COLUMNS_TEAMS_POWERPLAY as y, COLUMNS_TEAM_ATTENDANCE as P } from "./columns.js";
9
- import { _ as D, a as x, b as G, c as F, d as h, e as b, f as B, I as Y, g as k, h as w, i as W, j as V, k as K, l as X, m as j, n as z } from "./TimezoneSelector-WKm_DaDH.js";
9
+ import { _ as D, a as x, b as G, c as F, d as h, e as b, f as B, I as Y, g as k, h as w, i as W, j as V, k as K, l as X, m as j, n as z } from "./TimezoneSelector-qP6OxXMD.js";
10
10
  import { d as Z, i as q, u as J, a as Q, c as $, b as ee, e as ae, f as se, g as te, v as re } from "./useSort-BMv5JZAH.js";
11
11
  import { fetchVBRData as ne, useGameDataSocket as ie, usePage as le, useScrollToGameDate as Se, useServices as _e, useVisibilityChange as Te } from "./composables.js";
12
12
  import "vue";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
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.29.1 - 23/09/2025, 08:19:27
3
+ * version: v2.29.2 - 26/09/2025, 10:33:53
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/core",
3
3
  "type": "module",
4
- "version": "2.29.1",
4
+ "version": "2.29.2",
5
5
  "private": false,
6
6
  "description": "Data visualization for MJSZ VBR",
7
7
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
@@ -39,8 +39,8 @@
39
39
  "@xstate/fsm": "^2.1.0",
40
40
  "dayjs": "^1.11.13",
41
41
  "ramda": "^0.31.3",
42
- "vue": "^3.5.17",
43
- "@mjsz-vbr-elements/shared": "^2.29.1"
42
+ "vue": "^3.5.22",
43
+ "@mjsz-vbr-elements/shared": "^2.29.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@vitejs/plugin-vue": "^6.0.0",