@mjsz-vbr-elements/core 2.1.0-beta.20 → 2.1.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +758 -762
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.1.0-beta.
|
|
3
|
+
* version: v2.1.0-beta.22 - 03/10/2023, 20:44:39
|
|
4
4
|
* (c) 2023
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
var MjszVbrElementsCore=function(S,o){"use strict";const ft=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,dn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=ft("base-input"),s=o.computed({get:()=>r.modelValue,set:a=>e("update:modelValue",a)});return(a,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),class:o.normalizeClass([o.unref(n),"is-select"])},[o.renderSlot(a.$slots,"default")],2)),[[o.vModelSelect,s.value]])}};function Ae(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():o.unref(t)}const Ct=typeof window<"u",rt=()=>{},pn=mn();function mn(){var t;return Ct&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Qt(t,e=!1,r="Timeout"){return new Promise((n,s)=>{setTimeout(e?()=>s(r):n,t)})}function te(t,e=!1){function r(c,{flush:p="sync",deep:d=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const T=[new Promise($=>{y=o.watch(t,D=>{c(D)!==e&&(y==null||y(),$(D))},{flush:p,deep:d,immediate:!0})})];return g!=null&&T.push(Qt(g,h).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race(T)}function n(c,p){if(!o.isRef(c))return r(D=>D===c,p);const{flush:d="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=p??{};let A=null;const $=[new Promise(D=>{A=o.watch([t,c],([x,I])=>{e!==(x===I)&&(A==null||A(),D(x))},{flush:d,deep:g,immediate:!0})})];return h!=null&&$.push(Qt(h,y).then(()=>tt(t)).finally(()=>(A==null||A(),tt(t)))),Promise.race($)}function s(c){return r(p=>!!p,c)}function a(c){return n(null,c)}function i(c){return n(void 0,c)}function l(c){return r(Number.isNaN,c)}function f(c,p){return r(d=>{const g=Array.from(d);return g.includes(c)||g.includes(tt(c))},p)}function u(c){return m(1,c)}function m(c=1,p){let d=-1;return r(()=>(d+=1,d>=c),p)}return Array.isArray(tt(t))?{toMatch:r,toContains:f,changed:u,changedTimes:m,get not(){return te(t,!e)}}:{toMatch:r,toBe:n,toBeTruthy:s,toBeNull:a,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:m,get not(){return te(t,!e)}}}function hn(t){return te(t)}function gn(t,e,r={}){const{immediate:n=!0}=r,s=o.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){s.value=!1,i()}function f(...u){i(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,t(...u)},tt(e))}return n&&(s.value=!0,Ct&&f()),Ae(l),{isPending:o.readonly(s),start:f,stop:l}}function yn(t,e,r){const n=o.watch(t,(...s)=>(o.nextTick(()=>n()),e(...s)),r)}function At(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Te=Ct?window:void 0,bn=Ct?window.document:void 0;function It(...t){let e,r,n,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,s]=t,e=Te):[e,r,n,s]=t,!e)return rt;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],i=()=>{a.forEach(m=>m()),a.length=0},l=(m,c,p,d)=>(m.addEventListener(c,p,d),()=>m.removeEventListener(c,p,d)),f=o.watch(()=>[At(e),tt(s)],([m,c])=>{i(),m&&a.push(...r.flatMap(p=>n.map(d=>l(m,p,d,c))))},{immediate:!0,flush:"post"}),u=()=>{f(),i()};return Ae(u),u}let Oe=!1;function wn(t,e,r={}){const{window:n=Te,ignore:s=[],capture:a=!0,detectIframe:i=!1}=r;if(!n)return;pn&&!Oe&&(Oe=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",rt)));let l=!0;const f=p=>s.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(g=>g===p.target||p.composedPath().includes(g));{const g=At(d);return g&&(p.target===g||p.composedPath().includes(g))}}),m=[It(n,"click",p=>{const d=At(t);if(!(!d||d===p.target||p.composedPath().includes(d))){if(p.detail===0&&(l=!f(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:a}),It(n,"pointerdown",p=>{const d=At(t);d&&(l=!p.composedPath().includes(d)&&!f(p))},{passive:!0}),i&&It(n,"blur",p=>{var d;const g=At(t);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(n.document.activeElement))&&e(p)})].filter(Boolean);return()=>m.forEach(p=>p())}var vn=Object.defineProperty,Sn=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,$e=(t,e,r)=>e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,On=(t,e)=>{for(var r in e||(e={}))An.call(e,r)&&$e(t,r,e[r]);if(Pe)for(var r of Pe(e))Tn.call(e,r)&&$e(t,r,e[r]);return t},Pn=(t,e)=>Sn(t,_n(e));function Ee(t,e,r){const{immediate:n=!0,delay:s=0,onError:a=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:f=!0,throwError:u}=r??{},m=f?o.shallowRef(e):o.ref(e),c=o.ref(!1),p=o.ref(!1),d=o.shallowRef(void 0);async function g(A=0,...T){l&&(m.value=e),d.value=void 0,c.value=!1,p.value=!0,A>0&&await Qt(A);const $=typeof t=="function"?t(...T):t;try{const D=await $;m.value=D,c.value=!0,i(D)}catch(D){if(d.value=D,a(D),u)throw D}finally{p.value=!1}return m.value}n&&g(s);const h={state:m,isReady:c,isLoading:p,error:d,execute:g};function y(){return new Promise((A,T)=>{hn(p).toBe(!1).then(()=>A(h)).catch(T)})}return Pn(On({},h),{then(A,T){return y().then(A,T)}})}function $n({document:t=bn}={}){if(!t)return o.ref("visible");const e=o.ref(t.visibilityState);return It(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var En=Object.defineProperty,ke=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Le=(t,e,r)=>e in t?En(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Dn=(t,e)=>{for(var r in e||(e={}))kn.call(e,r)&&Le(t,r,e[r]);if(ke)for(var r of ke(e))Ln.call(e,r)&&Le(t,r,e[r]);return t};async function xn(t){return new Promise((e,r)=>{const n=new Image,{src:s,srcset:a,sizes:i,class:l,loading:f,crossorigin:u}=t;n.src=s,a&&(n.srcset=a),i&&(n.sizes=i),l&&(n.className=l),f&&(n.loading=f),u&&(n.crossOrigin=u),n.onload=()=>e(n),n.onerror=r})}function Mn(t,e={}){const r=Ee(()=>xn(tt(t)),void 0,Dn({resetOnExecute:!0},e));return o.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function De(t=[],e={}){const{delay:r=0}=e,n=o.ref(!1),s=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(f=>o.unref(f)).some(Boolean):l}),{start:a,stop:i}=gn(()=>{n.value=!0},r);return o.watch(s,l=>{if(l)return a();i(),n.value=!1},{immediate:!0,deep:!0}),n}function B(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(r){return arguments.length===0||B(r)?e:t.apply(this,arguments)}}function R(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return B(r)?e:Y(function(s){return t(r,s)});default:return B(r)&&B(n)?e:B(r)?Y(function(s){return t(s,n)}):B(n)?Y(function(s){return t(r,s)}):t(r,n)}}}function zt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,s){return e.apply(this,arguments)};case 4:return function(r,n,s,a){return e.apply(this,arguments)};case 5:return function(r,n,s,a,i){return e.apply(this,arguments)};case 6:return function(r,n,s,a,i,l){return e.apply(this,arguments)};case 7:return function(r,n,s,a,i,l,f){return e.apply(this,arguments)};case 8:return function(r,n,s,a,i,l,f,u){return e.apply(this,arguments)};case 9:return function(r,n,s,a,i,l,f,u,m){return e.apply(this,arguments)};case 10:return function(r,n,s,a,i,l,f,u,m,c){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ee(t,e,r){return function(){for(var n=[],s=0,a=t,i=0;i<e.length||s<arguments.length;){var l;i<e.length&&(!B(e[i])||s>=arguments.length)?l=e[i]:(l=arguments[s],s+=1),n[i]=l,B(l)||(a-=1),i+=1}return a<=0?r.apply(this,n):zt(a,ee(t,n,r))}}var Bt=R(function(e,r){return e===1?Y(r):zt(e,ee(e,[],r))});function nt(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return B(r)?e:R(function(a,i){return t(r,a,i)});case 2:return B(r)&&B(n)?e:B(r)?R(function(a,i){return t(a,n,i)}):B(n)?R(function(a,i){return t(r,a,i)}):Y(function(a){return t(r,n,a)});default:return B(r)&&B(n)&&B(s)?e:B(r)&&B(n)?R(function(a,i){return t(a,i,s)}):B(r)&&B(s)?R(function(a,i){return t(a,n,i)}):B(n)&&B(s)?R(function(a,i){return t(r,a,i)}):B(r)?Y(function(a){return t(a,n,s)}):B(n)?Y(function(a){return t(r,a,s)}):B(s)?Y(function(a){return t(r,n,a)}):t(r,n,s)}}}const Rt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Nn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Gt(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Rt(n)){for(var s=0;s<t.length;){if(typeof n[t[s]]=="function")return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(Nn(n)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return r.apply(this,arguments)}}function xe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Me(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Ne(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function Cn(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function In(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const re=typeof Object.is=="function"?Object.is:In;var Ce=Object.prototype.toString,Ie=function(){return Ce.call(arguments)==="[object Arguments]"?function(e){return Ce.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),zn=!{toString:null}.propertyIsEnumerable("toString"),ze=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Be=function(){return arguments.propertyIsEnumerable("length")}(),Bn=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},dt=Y(typeof Object.keys=="function"&&!Be?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,s=[],a=Be&&Ie(e);for(r in e)et(r,e)&&(!a||r!=="length")&&(s[s.length]=r);if(zn)for(n=ze.length-1;n>=0;)r=ze[n],et(r,e)&&!Bn(s,r)&&(s[s.length]=r),n-=1;return s}),ne=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Re(t,e,r,n){var s=Me(t),a=Me(e);function i(l,f){return oe(l,f,r.slice(),n.slice())}return!Ne(function(l,f){return!Ne(i,f,l)},a,s)}function oe(t,e,r,n){if(re(t,e))return!0;var s=ne(t);if(s!==ne(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Cn(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&re(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!re(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(s){case"Map":return t.size!==e.size?!1:Re(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:Re(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=dt(t);if(i.length!==dt(e).length)return!1;var l=r.concat([t]),f=n.concat([e]);for(a=i.length-1;a>=0;){var u=i[a];if(!(et(u,e)&&oe(e[u],t[u],l,f)))return!1;a-=1}return!0}var Vt=R(function(e,r){return oe(e,r,[],[])});function Rn(t,e,r){var n,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(s=t[r],s===0&&1/s===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Vt(t[r],e))return r;r+=1}return-1}function Ge(t,e){return Rn(e,t,0)>=0}function jt(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function ae(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Tt=function(e){return(e<10?"0":"")+e},Gn=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Tt(e.getUTCMonth()+1)+"-"+Tt(e.getUTCDate())+"T"+Tt(e.getUTCHours())+":"+Tt(e.getUTCMinutes())+":"+Tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Vn(t){return function(){return!t.apply(this,arguments)}}function Ve(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function jn(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}var Fn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Yn(t){return function(e){return new Fn(t,e)}}var je=R(Gt(["fantasy-land/filter","filter"],Yn,function(t,e){return Ft(e)?Ve(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},dt(e)):jn(t,e)})),Un=R(function(e,r){return je(Vn(e),r)});function Fe(t,e){var r=function(i){var l=e.concat([t]);return Ge(i,l)?"<Circular>":Fe(i,l)},n=function(a,i){return jt(function(l){return ae(l)+": "+r(a[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+jt(r,t).join(", ")+"))";case"[object Array]":return"["+jt(r,t).concat(n(t,Un(function(a){return/^\d+$/.test(a)},dt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ae(Gn(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":ae(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+n(t,dt(t)).join(", ")+"}"}}var se=Y(function(e){return Fe(e,[])}),Hn=R(function(e,r){if(e===r)return r;function n(f,u){if(f>u!=u>f)return u>f?u:f}var s=n(e,r);if(s!==void 0)return s;var a=n(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var i=se(e),l=n(i,se(r));return l!==void 0&&l===i?e:r}),Wn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Kn=function(e){return function(r){return new Wn(e,r)}},qn=R(Gt(["fantasy-land/map","map"],Kn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Bt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Ve(function(n,s){return n[s]=e(r[s]),n},{},dt(r));default:return jt(e,r)}}));const pt=qn,Ye=Number.isInteger||function(e){return e<<0===e};function Yt(t){return Object.prototype.toString.call(t)==="[object String]"}var Ue=R(function(e,r){var n=e<0?r.length+e:e;return Yt(r)?r.charAt(n):r[n]}),Zn=R(function(e,r){if(r!=null)return Ye(e)?Ue(e,r):r[e]});const bt=Zn;var Xn=R(function(e,r){return pt(bt(e),r)}),Jn=Y(function(e){return Rt(e)?!0:!e||typeof e!="object"||Yt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),He=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Qn(t,e,r){return function(s,a,i){if(Jn(i))return t(s,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(s,a,i,"fantasy-land/reduce");if(i[He]!=null)return r(s,a,i[He]());if(typeof i.next=="function")return r(s,a,i);if(typeof i.reduce=="function")return e(s,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function to(t,e,r){for(var n=0,s=r.length;n<s;){if(e=t["@@transducer/step"](e,r[n]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}var eo=R(function(e,r){return zt(e.length,function(){return e.apply(r,arguments)})});function ro(t,e,r){for(var n=r.next();!n.done;){if(e=t["@@transducer/step"](e,n.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function no(t,e,r,n){return t["@@transducer/result"](r[n](eo(t["@@transducer/step"],t),e))}var We=Qn(to,no,ro),oo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function Ke(t){return new oo(t)}var ao=nt(function(t,e,r){return We(typeof t=="function"?Ke(t):t,e,r)});const qe=ao;var so=Y(function(e){return function(){return e}});const Ze=so;var io=Y(function(e){return Bt(qe(Hn,0,Xn("length",e)),function(){for(var r=0,n=e.length;r<n;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const lo=io;var co=nt(function(e,r,n){var s=e(r),a=e(n);return s<a?-1:s>a?1:0});const Xe=co;function uo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function fo(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function ie(t,e,r){if(r||(r=new mo),po(t))return t;var n=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=e?ie(t[l],!0,r):t[l]);return a};switch(ne(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return fo(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function po(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var mo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const n=this.hash(e);let s=this.map[n];s||(this.map[n]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const s in this.map){const a=this.map[s];for(let i=0;i<a.length;i+=1){const l=a[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),n=this.map[r];if(n)for(let s=0;s<n.length;s+=1){const a=n[s];if(a[0]===e)return a[1]}},t}();function ho(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function le(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return Rt(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var go=nt(le("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),yo=Y(le("tail",go(1,1/0)));const bo=yo;function Je(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return zt(arguments[0].length,qe(ho,arguments[0],bo(arguments)))}var wo=Y(function(e){return Yt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const vo=wo;function Qe(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Je.apply(this,vo(arguments))}var So=function(){function t(e,r,n,s){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(et(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,ie(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t}();function _o(t,e,r){return function(n){return new So(t,e,r,n)}}var Ao=ee(4,[],Gt([],_o,function(e,r,n,s){var a=Ke(function(i,l){var f=n(l),u=e(et(f,i)?i[f]:ie(r,!1),l);return u&&u["@@transducer/reduced"]?xe(i):(i[f]=u,i)});return We(a,{},s)})),To=nt(function(e,r,n){var s=e(r),a=e(n);return s>a?-1:s<a?1:0});const Oo=To;function Po(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var $o=Y(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Rt(e)?[]:Yt(e)?"":Ft(e)?{}:Ie(e)?function(){return arguments}():Po(e)?e.constructor.from(""):void 0}),Eo=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=xe(this.xf["@@transducer/step"](e,this.idx))),e},t}();function ko(t){return function(e){return new Eo(t,e)}}var Lo=R(Gt([],ko,function(e,r){for(var n=0,s=r.length;n<s;){if(e(r[n]))return n;n+=1}return-1}));const Do=Lo;var xo=R(le("groupBy",Ao(function(t,e){return t.push(e),t},[])));const Mo=xo;var No=nt(function(e,r,n){return Bt(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});const Co=No;var Io=R(Ge);const zo=Io;var Bo=R(function(e,r){return Bt(e+1,function(){var n=arguments[e];if(n!=null&&uo(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(se(n)+' does not have a method named "'+r+'"')})});const tr=Bo;var Ro=Y(function(e){return e!=null&&Vt(e,$o(e))});const Go=Ro;var Vo=R(function(e,r){return e.map(function(n){for(var s=r,a=0,i;a<n.length;){if(s==null)return;i=n[a],s=Ye(i)?Ue(i,s):s[i],a+=1}return s})}),jo=R(function(e,r){return Vo([e],r)[0]});const Fo=jo;var Yo=nt(function(e,r,n){var s={},a;r=r||{},n=n||{};for(a in r)et(a,r)&&(s[a]=et(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)et(a,n)&&!et(a,s)&&(s[a]=n[a]);return s}),Uo=nt(function t(e,r,n){return Yo(function(s,a,i){return Ft(a)&&Ft(i)?t(e,a,i):e(s,a,i)},r,n)}),Ho=R(function(e,r){return Uo(function(n,s,a){return a},e,r)});const Wo=Ho;var Ko=R(function(e,r){for(var n={},s={},a=0,i=e.length;a<i;)s[e[a]]=1,a+=1;for(var l in r)s.hasOwnProperty(l)||(n[l]=r[l]);return n});const qo=Ko;var Zo=nt(function(e,r,n){return Vt(e,bt(r,n))});const Xo=Zo;var Jo=nt(function(e,r,n){return e(bt(r,n))});const Qo=Jo;var ta=R(function(e,r){return Array.prototype.slice.call(r,0).sort(function(n,s){for(var a=0,i=0;a===0&&i<e.length;)a=e[i](n,s),i+=1;return a})});const er=ta;var ea=tr(1,"split");const Ot=ea;var ra=tr(0,"toLowerCase");const na=ra;var Pt=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,oa="",aa=typeof String.prototype.trim=="function",sa=Y(!aa||Pt.trim()||!oa.trim()?function(e){var r=new RegExp("^["+Pt+"]["+Pt+"]*"),n=new RegExp("["+Pt+"]["+Pt+"]*$");return e.replace(r,"").replace(n,"")}:function(e){return e.trim()});const Ut=sa,rr=Symbol("I18nContext"),K=o.reactive({messages:{},locale:"",fallbackLocale:""}),nr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const n=(f,u={})=>{const m=!Go(u),c=pt(Ut,Ot(".",f));return o.computed(()=>{const d=or(c);return m?la(d,u):d}).value},s=f=>{const u=pt(Ut,Ot(".",f));return!!ce(K.locale,u,K.messages)},a=f=>{K.locale=f},l={locale:o.computed({get(){return K.locale},set(f){K.locale=f}}),setLocale:a,translate:n,hasTranlation:s};return o.provide(rr,l),{translate:n}},wt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=ia();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},ia=()=>{const t=o.inject(rr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},or=(t=[])=>{let e=ce(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ce(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ce(t,e,r){return Fo([t,...e],r)}const la=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},ar=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=pt(Ut,Ot(".",t.path)),n=or(r),s=Ot(/{|}/,n),a=Object.keys(e).map(i=>{const l=s.indexOf(i);return l>-1&&(s[l]=e[i]()[0]),s});return()=>o.h(t.tag,a)}}),sr="https://api.icehockey.hu/vbr",ir="https://www.jegkorongszovetseg.hu/event/game/",lr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",cr="https://www.ersteliga.hu/stats/players#/player/",ur="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",ot="original",b="descend",C="ascend",fr=new Map().set("hu","hu-hu").set("en","hu-gb"),dr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ca=1e3*60*5,pr=1e3,ua={"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"},fa=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),da=[fa];function pa(t,e){return o.openBlock(),o.createElementBlock("svg",ua,da)}const mr={render:pa},ma={"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"},ha=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),ga=[ha];function ya(t,e){return o.openBlock(),o.createElementBlock("svg",ma,ga)}const hr={render:ya};function $t(t){return t.split("-")[1]}function ue(t){return t==="y"?"height":"width"}function mt(t){return t.split("-")[0]}function Et(t){return["top","bottom"].includes(mt(t))?"x":"y"}function gr(t,e,r){let{reference:n,floating:s}=t;const a=n.x+n.width/2-s.width/2,i=n.y+n.height/2-s.height/2,l=Et(e),f=ue(l),u=n[f]/2-s[f]/2,m=l==="x";let c;switch(mt(e)){case"top":c={x:a,y:n.y-s.height};break;case"bottom":c={x:a,y:n.y+n.height};break;case"right":c={x:n.x+n.width,y:i};break;case"left":c={x:n.x-s.width,y:i};break;default:c={x:n.x,y:n.y}}switch($t(e)){case"start":c[l]-=u*(r&&m?-1:1);break;case"end":c[l]+=u*(r&&m?-1:1)}return c}const ba=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),f=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:m,y:c}=gr(u,n,f),p=n,d={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:A}=l[h],{x:T,y:$,data:D,reset:x}=await A({x:m,y:c,initialPlacement:n,placement:p,strategy:s,middlewareData:d,rects:u,platform:i,elements:{reference:t,floating:e}});m=T??m,c=$??c,d={...d,[y]:{...d[y],...D}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):x.rects),{x:m,y:c}=gr(u,p,f)),h=-1)}return{x:m,y:c,placement:p,strategy:s,middlewareData:d}};function yr(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ht(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function br(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:a,rects:i,elements:l,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:c="floating",altBoundary:p=!1,padding:d=0}=e,g=yr(d),h=l[p?c==="floating"?"reference":"floating":c],y=Ht(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),A=c==="floating"?{...i.floating,x:n,y:s}:i.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),$=await(a.isElement==null?void 0:a.isElement(T))&&await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1},D=Ht(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:T,strategy:f}):A);return{top:(y.top-D.top+g.top)/$.y,bottom:(D.bottom-y.bottom+g.bottom)/$.y,left:(y.left-D.left+g.left)/$.x,right:(D.right-y.right+g.right)/$.x}}const wa=Math.min,va=Math.max;function fe(t,e,r){return va(t,wa(e,r))}const wr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:s,y:a,placement:i,rects:l,platform:f,elements:u}=e;if(r==null)return{};const m=yr(n),c={x:s,y:a},p=Et(i),d=ue(p),g=await f.getDimensions(r),h=p==="y",y=h?"top":"left",A=h?"bottom":"right",T=h?"clientHeight":"clientWidth",$=l.reference[d]+l.reference[p]-c[p]-l.floating[d],D=c[p]-l.reference[p],x=await(f.getOffsetParent==null?void 0:f.getOffsetParent(r));let I=x?x[T]:0;I&&await(f.isElement==null?void 0:f.isElement(x))||(I=u.floating[T]||l.floating[d]);const G=$/2-D/2,F=m[y],M=I-g[d]-m[A],k=I/2-g[d]/2+G,z=fe(F,k,M),U=$t(i)!=null&&k!=z&&l.reference[d]/2-(k<F?m[y]:m[A])-g[d]/2<0;return{[p]:c[p]-(U?k<F?F-k:M-k:0),data:{[p]:z,centerOffset:k-z}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Sa={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,e=>Sa[e])}function _a(t,e,r){r===void 0&&(r=!1);const n=$t(t),s=Et(t),a=ue(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Wt(i)),{main:i,cross:Wt(i)}}const Aa={start:"end",end:"start"};function de(t){return t.replace(/start|end/g,e=>Aa[e])}const Ta=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:f}=e,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...h}=t,y=mt(n),A=mt(i)===i,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),$=c||(A||!g?[Wt(i)]:function(z){const U=Wt(z);return[de(z),U,de(U)]}(i));c||d==="none"||$.push(...function(z,U,P,_){const v=$t(z);let O=function(w,E,L){const N=["left","right"],j=["right","left"],V=["top","bottom"],H=["bottom","top"];switch(w){case"top":case"bottom":return L?E?j:N:E?N:j;case"left":case"right":return E?V:H;default:return[]}}(mt(z),P==="start",_);return v&&(O=O.map(w=>w+"-"+v),U&&(O=O.concat(O.map(de)))),O}(i,g,d,T));const D=[i,...$],x=await br(e,h),I=[];let G=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(x[y]),m){const{main:z,cross:U}=_a(n,a,T);I.push(x[z],x[U])}if(G=[...G,{placement:n,overflows:I}],!I.every(z=>z<=0)){var F,M;const z=(((F=s.flip)==null?void 0:F.index)||0)+1,U=D[z];if(U)return{data:{index:z,overflows:G},reset:{placement:U}};let P=(M=G.filter(_=>_.overflows[0]<=0).sort((_,v)=>_.overflows[1]-v.overflows[1])[0])==null?void 0:M.placement;if(!P)switch(p){case"bestFit":{var k;const _=(k=G.map(v=>[v.placement,v.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((v,O)=>v[1]-O[1])[0])==null?void 0:k[0];_&&(P=_);break}case"initialPlacement":P=i}if(n!==P)return{reset:{placement:P}}}return{}}}},Oa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,s=await async function(a,i){const{placement:l,platform:f,elements:u}=a,m=await(f.isRTL==null?void 0:f.isRTL(u.floating)),c=mt(l),p=$t(l),d=Et(l)==="x",g=["left","top"].includes(c)?-1:1,h=m&&d?-1:1,y=typeof i=="function"?i(a):i;let{mainAxis:A,crossAxis:T,alignmentAxis:$}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof $=="number"&&(T=p==="end"?-1*$:$),d?{x:T*h,y:A*g}:{x:A*g,y:T*h}}(e,t);return{x:r+s.x,y:n+s.y,data:s}}}};function Pa(t){return t==="x"?"y":"x"}const $a=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:A,y:T}=y;return{x:A,y:T}}},...f}=t,u={x:r,y:n},m=await br(e,f),c=Et(mt(s)),p=Pa(c);let d=u[c],g=u[p];if(a){const y=c==="y"?"bottom":"right";d=fe(d+m[c==="y"?"top":"left"],d,d-m[y])}if(i){const y=p==="y"?"bottom":"right";g=fe(g+m[p==="y"?"top":"left"],g,g-m[y])}const h=l.fn({...e,[c]:d,[p]:g});return{...h,data:{x:h.x-r,y:h.y-n}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function vr(t){return t instanceof X(t).Node}function st(t){return vr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function Z(t){return t instanceof X(t).Element}function Sr(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function kt(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function Ea(t){return["table","td","th"].includes(st(t))}function pe(t){const e=me(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function me(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(st(t))}const _r=Math.min,Lt=Math.max,qt=Math.round;function Ar(t){const e=J(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=Q(t),a=s?t.offsetWidth:r,i=s?t.offsetHeight:n,l=qt(r)!==a||qt(n)!==i;return l&&(r=a,n=i),{width:r,height:n,fallback:l}}function Tr(t){return Z(t)?t:t.contextElement}const Or={x:1,y:1};function vt(t){const e=Tr(t);if(!Q(e))return Or;const r=e.getBoundingClientRect(),{width:n,height:s,fallback:a}=Ar(e);let i=(a?qt(r.width):r.width)/n,l=(a?qt(r.height):r.height)/s;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Pr={x:0,y:0};function $r(t,e,r){var n,s;if(e===void 0&&(e=!0),!me())return Pr;const a=t?X(t):window;return!r||e&&r!==a?Pr:{x:((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,y:((s=a.visualViewport)==null?void 0:s.offsetTop)||0}}function ht(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=Tr(t);let i=Or;e&&(n?Z(n)&&(i=vt(n)):i=vt(t));const l=$r(a,r,n);let f=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,m=s.width/i.x,c=s.height/i.y;if(a){const p=X(a),d=n&&Z(n)?X(n):n;let g=p.frameElement;for(;g&&n&&d!==p;){const h=vt(g),y=g.getBoundingClientRect(),A=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(A.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat(A.paddingTop))*h.y,f*=h.x,u*=h.y,m*=h.x,c*=h.y,f+=y.x,u+=y.y,g=X(g).frameElement}}return Ht({width:m,height:c,x:f,y:u})}function it(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){return ht(it(t)).left+Zt(t).scrollLeft}function St(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sr(t)&&t.host||it(t);return Sr(e)?e.host:e}function kr(t){const e=St(t);return Kt(e)?e.ownerDocument.body:Q(e)&&kt(e)?e:kr(e)}function Dt(t,e){var r;e===void 0&&(e=[]);const n=kr(t),s=n===((r=t.ownerDocument)==null?void 0:r.body),a=X(n);return s?e.concat(a,a.visualViewport||[],kt(n)?n:[]):e.concat(n,Dt(n))}function Lr(t,e,r){let n;if(e==="viewport")n=function(s,a){const i=X(s),l=it(s),f=i.visualViewport;let u=l.clientWidth,m=l.clientHeight,c=0,p=0;if(f){u=f.width,m=f.height;const d=me();(!d||d&&a==="fixed")&&(c=f.offsetLeft,p=f.offsetTop)}return{width:u,height:m,x:c,y:p}}(t,r);else if(e==="document")n=function(s){const a=it(s),i=Zt(s),l=s.ownerDocument.body,f=Lt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=Lt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let m=-i.scrollLeft+Er(s);const c=-i.scrollTop;return J(l).direction==="rtl"&&(m+=Lt(a.clientWidth,l.clientWidth)-f),{width:f,height:u,x:m,y:c}}(it(t));else if(Z(e))n=function(s,a){const i=ht(s,!0,a==="fixed"),l=i.top+s.clientTop,f=i.left+s.clientLeft,u=Q(s)?vt(s):{x:1,y:1};return{width:s.clientWidth*u.x,height:s.clientHeight*u.y,x:f*u.x,y:l*u.y}}(e,r);else{const s=$r(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Ht(n)}function Dr(t,e){const r=St(t);return!(r===e||!Z(r)||Kt(r))&&(J(r).position==="fixed"||Dr(r,e))}function xr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Mr(t,e){const r=X(t);if(!Q(t))return r;let n=xr(t,e);for(;n&&Ea(n)&&J(n).position==="static";)n=xr(n,e);return n&&(st(n)==="html"||st(n)==="body"&&J(n).position==="static"&&!pe(n))?r:n||function(s){let a=St(s);for(;Q(a)&&!Kt(a);){if(pe(a))return a;a=St(a)}return null}(t)||r}function ka(t,e,r){const n=Q(e),s=it(e),a=r==="fixed",i=ht(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(n||!n&&!a)if((st(e)!=="body"||kt(s))&&(l=Zt(e)),Q(e)){const u=ht(e,!0,a,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else s&&(f.x=Er(s));return{x:i.left+l.scrollLeft-f.x,y:i.top+l.scrollTop-f.y,width:i.width,height:i.height}}const La={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const a=r==="clippingAncestors"?function(u,m){const c=m.get(u);if(c)return c;let p=Dt(u).filter(y=>Z(y)&&st(y)!=="body"),d=null;const g=J(u).position==="fixed";let h=g?St(u):u;for(;Z(h)&&!Kt(h);){const y=J(h),A=pe(h);A||y.position!=="fixed"||(d=null),(g?!A&&!d:!A&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||kt(h)&&!A&&Dr(u,h))?p=p.filter(T=>T!==h):d=y,h=St(h)}return m.set(u,p),p}(e,this._c):[].concat(r),i=[...a,n],l=i[0],f=i.reduce((u,m)=>{const c=Lr(e,m,s);return u.top=Lt(c.top,u.top),u.right=_r(c.right,u.right),u.bottom=_r(c.bottom,u.bottom),u.left=Lt(c.left,u.left),u},Lr(e,l,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const s=Q(r),a=it(r);if(r===a)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const f={x:0,y:0};if((s||!s&&n!=="fixed")&&((st(r)!=="body"||kt(a))&&(i=Zt(r)),Q(r))){const u=ht(r);l=vt(r),f.x=u.x+r.clientLeft,f.y=u.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+f.x,y:e.y*l.y-i.scrollTop*l.y+f.y}},isElement:Z,getDimensions:function(t){return Ar(t)},getOffsetParent:Mr,getDocumentElement:it,getScale:vt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const s=this.getOffsetParent||Mr,a=this.getDimensions;return{reference:ka(e,await s(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Da(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=n,f=s||a?[...Z(t)?Dt(t):t.contextElement?Dt(t.contextElement):[],...Dt(e)]:[];f.forEach(p=>{const d=!Z(p)&&p.toString().includes("V");!s||l&&!d||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let u,m=null;i&&(m=new ResizeObserver(()=>{r()}),Z(t)&&!l&&m.observe(t),Z(t)||!t.contextElement||l||m.observe(t.contextElement),m.observe(e));let c=l?ht(t):null;return l&&function p(){const d=ht(t);!c||d.x===c.x&&d.y===c.y&&d.width===c.width&&d.height===c.height||r(),c=d,u=requestAnimationFrame(p)}(),r(),()=>{var p;f.forEach(d=>{s&&d.removeEventListener("scroll",r),a&&d.removeEventListener("resize",r)}),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(u)}}const xa=(t,e,r)=>{const n=new Map,s={platform:La,...r},a={...s.platform,_c:n};return ba(t,e,{...s,platform:a})},Nr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function Ma({middleware:t,placement:e=null,strategy:r,append:n,enabled:s}){const a=o.ref(null),i=o.ref(null),l=o.ref(null),f=o.ref(null),u=o.ref(null),m=o.ref(null),c=o.ref(null),p=o.ref(r??"absolute"),d=o.ref(null),g=()=>{!a.value||!i.value||xa(a.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,f.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,m.value=y.middlewareData.arrow.y,c.value=y.placement})};o.watch(()=>({reference:o.unref(a),floating:o.unref(i),append:o.unref(n)}),({floating:y,append:A})=>{A&&Nr(y,A),g()},{flush:"post"}),o.watch(s,y=>{if(!(!a.value||!i.value)){if(!y)return h();d.value=Da(a.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:f,arrowX:u,arrowY:m,placement:c,reference:a,floating:i,strategy:p,update:g}}const Na=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?wr({element:e.value,padding:r}).fn(n):{}:e?wr({element:e,padding:r}).fn(n):{}}}},Ca=["data-placement"],Cr={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=o.ref(!1),n=o.ref(null),{x:s,y:a,arrowX:i,arrowY:l,placement:f,reference:u,floating:m,strategy:c}=Ma({placement:e.placement,middleware:[Ta(),$a({padding:5}),Oa(e.offset),Na({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||r.value||(r.value=!0)},d=y=>{r.value&&y&&(r.value=!1)},g=y=>{u.value=y},h={mouseenter:p,mouseleave:d,focus:p,blur:d};return wn(m,y=>{var A;(A=u.value)!=null&&A.contains(y.target)||d()}),(y,A)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(y.$slots,"default",{setRef:g,show:p,hide:d,events:h}),o.createElementVNode("div",{ref_key:"floating",ref:m,"data-placement":o.unref(f),style:o.normalizeStyle({position:o.unref(c),top:o.unref(a)?`${o.unref(a)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(y.$slots,"content",{close:d},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(c),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(i)?`${o.unref(i)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,Ca)],64))}},Ia=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],za={key:0},Ba=["colspan"],Ra={key:1},Ga=["colspan"],Ir={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:n,appendTo:s}=o.toRefs(r),a=De(n,{delay:pr}),{t:i}=wt(),l=ft("table"),f=o.computed(()=>r.columns),u=o.computed(()=>Object.keys(r.columns).length),m=(c,p)=>{c.sortOrders&&e("sort",{target:p,orders:c.sortOrders})};return(c,p)=>(o.openBlock(),o.createElementBlock("table",{class:o.normalizeClass(o.unref(l))},[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(d,g)=>(o.openBlock(),o.createBlock(Cr,{key:g,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":o.unref(s)},{default:o.withCtx(({setRef:h,show:y,hide:A})=>[o.createElementVNode("th",{ref_for:!0,ref:h,class:o.normalizeClass([[d.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ot),"is-sortable":d.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),onMouseenter:y,onMouseleave:A,onFocus:y,onBlur:A,onClick:T=>m(d,g),onKeydown:[o.withKeys(o.withModifiers(T=>m(d,g),["prevent"]),["space"]),o.withKeys(o.withModifiers(T=>m(d,g),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[o.renderSlot(c.$slots,`header-${g}`,{column:d},()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),d.sortOrders&&g!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(mr),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(ot)?(o.openBlock(),o.createBlock(o.unref(mr),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b)?(o.openBlock(),o.createBlock(o.unref(hr),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(hr),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,Ia)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(d,g)=>(o.openBlock(),o.createElementBlock("tr",{key:g},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(h,y)=>(o.openBlock(),o.createElementBlock("td",{key:y,class:o.normalizeClass([[h.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(ot)}])},[o.renderSlot(c.$slots,`cell-${y}`,{row:d,prop:y},()=>[o.createTextVNode(o.toDisplayString(d[y]),1)])],2))),128))]))),128))]),o.unref(a)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",za,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:u.value},[o.renderSlot(c.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)("common.loading")),1)])],8,Ba)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(a)?(o.openBlock(),o.createElementBlock("tfoot",Ra,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:u.value},[o.renderSlot(c.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)("common.noData")),1)])],8,Ga)])])):o.createCommentVNode("",!0)],2))}},Va={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"},ja=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),Fa=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Ya=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Ua=[ja,Fa,Ya];function Ha(t,e){return o.openBlock(),o.createElementBlock("svg",Va,Ua)}const Wa={render:Ha},Ka={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=wt(),s=ft("error-notice"),a=o.computed(()=>{var i;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(s))},[o.createVNode(o.unref(Wa),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1)],2))}};function zr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}function he(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const Br=Symbol("ErrorProviderContext"),Rr=()=>{const t=o.ref(""),e=o.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||zr(a.message),cause:a.cause}},s={onError:r,reset:()=>{t.value="",e.value={}}};return o.provide(Br,s),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},o.onErrorCaptured((a,i,l)=>{console.log("onErrorCaptured:",a,i,l)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Gr=()=>{const t=qa();return{onError:t.onError,reset:t.reset}},qa=()=>{const t=o.inject(Br,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Za={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=Rr();return(s,a)=>o.renderSlot(s.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},Xa={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"M",tooltip:"Mérkőzésszám"},wins:{short:"GY",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"GYH",tooltip:"Győzelem Hosszabbításban"},otl:{short:"VH",tooltip:"Vereség Hosszabbításban"},losses:{short:"V",tooltip:"Vereség"},goalFor:{short:"SZG",tooltip:"Szerzett Gól"},goalAgainst:{short:"KG",tooltip:"Kapott Gól"},goalDiff:{short:"GK",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:"L",tooltip:"Lövések"},sogPercent:{short:"L%",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:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",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:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",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"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{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"}}},Ja={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},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:"PTS",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:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},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"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{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"}}},Vr=(t,e)=>{const r=t.__vccOpts||t;for(const[n,s]of e)r[n]=s;return r},Qa=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Wo({hu:Xa,en:Ja},t.messages),{translate:r}=nr({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function ts(t,e,r,n,s,a){return o.renderSlot(t.$slots,"default",{t:t.translate})}const es=Vr(Qa,[["render",ts]]),rs=["src"],ns=["src","title"],ge=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=o.toRefs(e),n=o.ref({src:e.src}),{error:s,isReady:a}=Mn(n,{resetOnExecute:!1,shallow:!1});return(i,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(s)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",i.$attrs.class])},null,10,rs)):o.createCommentVNode("",!0),o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([i.$attrs.class,{"is-loaded":o.unref(a)}]),title:e.title},null,10,ns))],64))}}),os={style:{"text-align":"center"}},jr={__name:"LoadingIndicator",setup(t){const{t:e}=wt();return(r,n)=>(o.openBlock(),o.createElementBlock("div",os,o.toDisplayString(o.unref(e)("common.loading")),1))}};function as({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:n=5,update:s=rt}){const a=o.computed(()=>Math.ceil(o.unref(r)/e)),i=o.computed(()=>{const m=o.unref(t)-1,c=Array.from({length:a.value},(g,h)=>h+1),p=Math.floor(n/2);let d=Math.max(m-p,0);return d+n>=a.value&&(d=Math.max(a.value-n,0)),c.slice(d,d+n)}),l=m=>{const c=o.unref(t)+m;u(c)&&s(c)},f=m=>{u(m)&&s(m)},u=m=>m<=a.value&&m>0;return{page:t,range:i,pageCount:a,goTo:f,pageStep:l}}const ss={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"},is=o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ls=[is];function cs(t,e){return o.openBlock(),o.createElementBlock("svg",ss,ls)}const us={render:cs},fs={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"},ds=o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),ps=[ds];function ms(t,e){return o.openBlock(),o.createElementBlock("svg",fs,ps)}const hs={render:ms},gs=["disabled"],ys=["disabled"],bs={key:1,class:"is-disabled"},ws=["disabled","onClick"],vs={key:2,class:"is-disabled"},Ss=[o.createElementVNode("span",null,"...",-1)],_s=["disabled"],As=["disabled"],Ts={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,n=ft("paginator"),{page:s,pageCount:a,range:i,goTo:l,pageStep:f}=as({currentPage:o.computed(()=>r.page),totalItems:o.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:u=>e("change",u)});return(u,m)=>o.unref(a)>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(n))},[o.createElementVNode("button",{type:"button",disabled:o.unref(s)===1,onClick:m[0]||(m[0]=c=>o.unref(f)(-1))},[o.renderSlot(u.$slots,"prev",{},()=>[o.createVNode(o.unref(us),{class:"icon paginator-left"})])],8,gs),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(s)===1,onClick:m[1]||(m[1]=c=>o.unref(l)(1))},"1",8,ys)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",bs,"...")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),c=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:c,class:o.normalizeClass({"is-active":c===o.unref(s)}),disabled:c===o.unref(s),onClick:p=>o.unref(l)(c)},o.toDisplayString(c),11,ws))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vs,Ss)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(s)===o.unref(a),onClick:m[2]||(m[2]=c=>o.unref(l)(o.unref(a)))},o.toDisplayString(o.unref(a)),9,_s)),o.createElementVNode("button",{type:"button",disabled:o.unref(s)===o.unref(a),onClick:m[3]||(m[3]=o.withModifiers(c=>o.unref(f)(1),["prevent"]))},[o.renderSlot(u.$slots,"next",{},()=>[o.createVNode(o.unref(hs),{class:"icon paginator-left"})])],8,As)],2)):o.createCommentVNode("",!0)}},Fr={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=ft("table-responsive");return(n,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:o.normalizeClass(o.unref(r))},[o.renderSlot(n.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,s=36e5,a="millisecond",i="second",l="minute",f="hour",u="day",m="week",c="month",p="quarter",d="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var _=["th","st","nd","rd"],v=P%100;return"["+P+(_[(v-20)%10]||_[v]||_[0])+"]"}},$=function(P,_,v){var O=String(P);return!O||O.length>=_?P:""+Array(_+1-O.length).join(v)+P},D={s:$,z:function(P){var _=-P.utcOffset(),v=Math.abs(_),O=Math.floor(v/60),w=v%60;return(_<=0?"+":"-")+$(O,2,"0")+":"+$(w,2,"0")},m:function P(_,v){if(_.date()<v.date())return-P(v,_);var O=12*(v.year()-_.year())+(v.month()-_.month()),w=_.clone().add(O,c),E=v-w<0,L=_.clone().add(O+(E?-1:1),c);return+(-(O+(v-w)/(E?w-L:L-w))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:d,w:m,d:u,D:g,h:f,m:l,s:i,ms:a,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},x="en",I={};I[x]=T;var G=function(P){return P instanceof z},F=function P(_,v,O){var w;if(!_)return x;if(typeof _=="string"){var E=_.toLowerCase();I[E]&&(w=E),v&&(I[E]=v,w=E);var L=_.split("-");if(!w&&L.length>1)return P(L[0])}else{var N=_.name;I[N]=_,w=N}return!O&&w&&(x=w),w||!O&&x},M=function(P,_){if(G(P))return P.clone();var v=typeof _=="object"?_:{};return v.date=P,v.args=arguments,new z(v)},k=D;k.l=F,k.i=G,k.w=function(P,_){return M(P,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var z=function(){function P(v){this.$L=F(v.locale,null,!0),this.parse(v)}var _=P.prototype;return _.parse=function(v){this.$d=function(O){var w=O.date,E=O.utc;if(w===null)return new Date(NaN);if(k.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(y);if(L){var N=L[2]-1||0,j=(L[7]||"0").substring(0,3);return E?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(w)}(v),this.$x=v.x||{},this.init()},_.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(v,O){var w=M(v);return this.startOf(O)<=w&&w<=this.endOf(O)},_.isAfter=function(v,O){return M(v)<this.startOf(O)},_.isBefore=function(v,O){return this.endOf(O)<M(v)},_.$g=function(v,O,w){return k.u(v)?this[O]:this.set(w,v)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(v,O){var w=this,E=!!k.u(O)||O,L=k.p(v),N=function(_t,q){var ut=k.w(w.$u?Date.UTC(w.$y,q,_t):new Date(w.$y,q,_t),w);return E?ut:ut.endOf(u)},j=function(_t,q){return k.w(w.toDate()[_t].apply(w.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(q)),w)},V=this.$W,H=this.$M,ct=this.$D,at="set"+(this.$u?"UTC":"");switch(L){case d:return E?N(1,0):N(31,11);case c:return E?N(1,H):N(0,H+1);case m:var Mt=this.$locale().weekStart||0,Nt=(V<Mt?V+7:V)-Mt;return N(E?ct-Nt:ct+(6-Nt),H);case u:case g:return j(at+"Hours",0);case f:return j(at+"Minutes",1);case l:return j(at+"Seconds",2);case i:return j(at+"Milliseconds",3);default:return this.clone()}},_.endOf=function(v){return this.startOf(v,!1)},_.$set=function(v,O){var w,E=k.p(v),L="set"+(this.$u?"UTC":""),N=(w={},w[u]=L+"Date",w[g]=L+"Date",w[c]=L+"Month",w[d]=L+"FullYear",w[f]=L+"Hours",w[l]=L+"Minutes",w[i]=L+"Seconds",w[a]=L+"Milliseconds",w)[E],j=E===u?this.$D+(O-this.$W):O;if(E===c||E===d){var V=this.clone().set(g,1);V.$d[N](j),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},_.set=function(v,O){return this.clone().$set(v,O)},_.get=function(v){return this[k.p(v)]()},_.add=function(v,O){var w,E=this;v=Number(v);var L=k.p(O),N=function(H){var ct=M(E);return k.w(ct.date(ct.date()+Math.round(H*v)),E)};if(L===c)return this.set(c,this.$M+v);if(L===d)return this.set(d,this.$y+v);if(L===u)return N(1);if(L===m)return N(7);var j=(w={},w[l]=n,w[f]=s,w[i]=r,w)[L]||1,V=this.$d.getTime()+v*j;return k.w(V,this)},_.subtract=function(v,O){return this.add(-1*v,O)},_.format=function(v){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||h;var E=v||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),N=this.$H,j=this.$m,V=this.$M,H=w.weekdays,ct=w.months,at=function(q,ut,_e,Jt){return q&&(q[ut]||q(O,E))||_e[ut].slice(0,Jt)},Mt=function(q){return k.s(N%12||12,q,"0")},Nt=w.meridiem||function(q,ut,_e){var Jt=q<12?"AM":"PM";return _e?Jt.toLowerCase():Jt},_t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:k.s(V+1,2,"0"),MMM:at(w.monthsShort,V,ct,3),MMMM:at(ct,V),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:at(w.weekdaysMin,this.$W,H,2),ddd:at(w.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(N),HH:k.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Nt(N,j,!0),A:Nt(N,j,!1),m:String(j),mm:k.s(j,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:L};return E.replace(A,function(q,ut){return ut||_t[q]||L.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(v,O,w){var E,L=k.p(O),N=M(v),j=(N.utcOffset()-this.utcOffset())*n,V=this-N,H=k.m(this,N);return H=(E={},E[d]=H/12,E[c]=H,E[p]=H/3,E[m]=(V-j)/6048e5,E[u]=(V-j)/864e5,E[f]=V/s,E[l]=V/n,E[i]=V/r,E)[L]||V,w?H:k.a(H)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return I[this.$L]},_.locale=function(v,O){if(!v)return this.$L;var w=this.clone(),E=F(v,O,!0);return E&&(w.$L=E),w},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},P}(),U=z.prototype;return M.prototype=U,[["$ms",a],["$s",i],["$m",l],["$H",f],["$W",u],["$M",c],["$y",d],["$D",g]].forEach(function(P){U[P[1]]=function(_){return this.$g(_,P[0],P[1])}}),M.extend=function(P,_){return P.$i||(P(_,z,M),P.$i=!0),M},M.locale=F,M.isDayjs=G,M.unix=function(P){return M(1e3*P)},M.en=I[x],M.Ls=I,M.p={},M})})(Yr);var Ur=Yr.exports;const W=gt(Ur);var Hr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(a,i,l){var f=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},f.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},f.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=f.parse;f.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var m=f.init;f.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else m.call(this)};var c=f.utcOffset;f.utcOffset=function(h,y){var A=this.$utils().u;if(A(h))return this.$u?0:A(this.$offset)?c.call(this):this.$offset;if(typeof h=="string"&&(h=function(x){x===void 0&&(x="");var I=x.match(n);if(!I)return null;var G=(""+I[0]).match(s)||["-",0,0],F=G[0],M=60*+G[1]+ +G[2];return M===0?0:F==="+"?M:-M}(h),h===null))return this;var T=Math.abs(h)<=16?60*h:h,$=this;if(y)return $.$offset=T,$.$u=h===0,$;if(h!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(T+D,r)).$offset=T,$.$x.$localOffset=D}else $=this.utc();return $};var p=f.format;f.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},f.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var d=f.toDate;f.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=f.diff;f.diff=function(h,y,A){if(h&&this.$u===h.$u)return g.call(this,h,y,A);var T=this.local(),$=l(h).local();return g.call(T,$,y,A)}}})})(Hr);var Os=Hr.exports;const Ps=gt(Os);var Wr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(s,a,i){var l,f=function(p,d,g){g===void 0&&(g={});var h=new Date(p),y=function(A,T){T===void 0&&(T={});var $=T.timeZoneName||"short",D=A+"|"+$,x=n[D];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),n[D]=x),x}(d,g);return y.formatToParts(h)},u=function(p,d){for(var g=f(p,d),h=[],y=0;y<g.length;y+=1){var A=g[y],T=A.type,$=A.value,D=r[T];D>=0&&(h[D]=parseInt($,10))}var x=h[3],I=x===24?0:x,G=h[0]+"-"+h[1]+"-"+h[2]+" "+I+":"+h[4]+":"+h[5]+":000",F=+p;return(i.utc(G).valueOf()-(F-=F%1e3))/6e4},m=a.prototype;m.tz=function(p,d){p===void 0&&(p=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),A=Math.round((h-new Date(y))/1e3/60),T=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-A,!0);if(d){var $=T.utcOffset();T=T.add(g-$,"minute")}return T.$x.$timezone=p,T},m.offsetName=function(p){var d=this.$x.$timezone||i.tz.guess(),g=f(this.valueOf(),d,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var c=m.startOf;m.startOf=function(p,d){if(!this.$x||!this.$x.$timezone)return c.call(this,p,d);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(g,p,d).tz(this.$x.$timezone,!0)},i.tz=function(p,d,g){var h=g&&d,y=g||d||l,A=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var T=function(I,G,F){var M=I-60*G*1e3,k=u(M,F);if(G===k)return[M,G];var z=u(M-=60*(k-G)*1e3,F);return k===z?[M,k]:[I-60*Math.min(k,z)*1e3,Math.max(k,z)]}(i.utc(p,h).valueOf(),A,y),$=T[0],D=T[1],x=i($).utcOffset(D);return x.$x.$timezone=y,x},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(Wr);var $s=Wr.exports;const Es=gt($s);var Kr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var s=n.prototype,a=s.format;s.format=function(i){var l=this,f=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(c){switch(c){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return f.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return f.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),c==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return c}});return a.bind(this)(m)}}})})(Kr);var ks=Kr.exports;const Ls=gt(ks);var qr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(s,a){return this.isSame(s,a)||this.isBefore(s,a)}}})})(qr);var Ds=qr.exports;const xs=gt(Ds);var Zr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,s){n.prototype.isBetween=function(a,i,l,f){var u=s(a),m=s(i),c=(f=f||"()")[0]==="(",p=f[1]===")";return(c?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(m,l):!this.isAfter(m,l))||(c?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(m,l):!this.isBefore(m,l))}}})})(Zr);var Ms=Zr.exports;const Ns=gt(Ms);var Xr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,s,a){var i=s.prototype,l=i.format;a.en.formats=r,i.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,m=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,h){var y=h&&h.toUpperCase();return g||p[h]||r[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,T,$){return T||$.slice(1)})})}(f,u===void 0?{}:u);return l.call(this,m)}}})})(Xr);var Cs=Xr.exports;const Is=gt(Cs);var zs={exports:{}};(function(t,e){(function(r,n){t.exports=n(Ur)})(lt,function(r){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=n(r),a={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,f,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,f,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,f,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,f,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,f,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,f,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,f,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,f,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,f,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,f,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,f,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return s.default.locale(a,null,!0),a})})(zs),W.extend(Ps),W.extend(Es),W.extend(Ls),W.extend(Is),W.extend(xs),W.extend(Ns);const Jr=()=>W.tz.guess(),Xt=(t="",e="",r="",n="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(n).format(e):""),xt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const s=new Intl.DateTimeFormat(Bs(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return s&&s.value},Bs=t=>fr.get(t),ye=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Qr=t=>{const e=~~(t/60),r=~~t%60;return he(e,"0",2)+":"+he(r,"0",2)},tn=(t,e="day")=>W().isSameOrBefore(W(t),e),Rs=(t,e,r)=>W(t).isBetween(e,W(r)),Gs=(t,e,r="month")=>W(t).isSame(e,r),Vs=["onClick"],js={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=wt(),s=ft("timezone-selector"),a=o.computed(()=>xt(new Date,null,r.locale)),i=Jr(),l=o.computed(()=>Array.from(dr.values()).map(u=>({...u,isActive:xt(new Date,r.currentZone,r.locale)===xt(new Date,u.timezone,r.locale),zoneOffsetName:xt(new Date,u.timezone,r.locale)}))),f=u=>e("change",u);return(u,m)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(s))},[o.createVNode(o.unref(ar),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=o.withModifiers(c=>f(o.unref(i)),["prevent"]))},o.toDisplayString(a.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,c=>(o.openBlock(),o.createElementBlock("a",{key:c.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":c.isActive}),onClick:o.withModifiers(p=>f(c.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${c.countryLabelKey}`))+" ("+o.toDisplayString(c.zoneOffsetName)+") ",11,Vs))),128))],2))}},en=(t,e="",r={})=>{const n=o.ref(""),{t:s}=wt();if(e)try{const l=rn(o.unref(t),e);t=qo(l,o.unref(t))}catch(l){n.value=l}const a=l=>({...l,...l.label&&{label:s(l.label??"",o.unref(r))},...l.tooltip&&{tooltip:s(l.tooltip??"")}});return{columns:o.computed(()=>pt(a,o.unref(t))),error:n}},rn=(t,e="")=>{const r=pt(Ut,Ot(",",e)),n=dt(t);if(r[0]==="")return resolve([]);const s=r.findIndex(a=>!n.includes(a));if(s>-1)throw r[s];return r};class nn extends Error{constructor(e,r={}){const{key:n,cause:s}=r;super(e),this.name="WidgetError",this.key=n,this.cause=s}}const be={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Fs={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ys={class:"is-portrait-image"},Us={class:"is-team-name-long"},Hs={class:"is-team-name-short"},Ws=["href"],Ks={class:"is-team-name-long"},qs={class:"is-team-name-short"},Zs=["href"],Xs={__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:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:HTMLElement,default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:n}=Gr(),s=o.computed(()=>r.columns),{columns:a,error:i}=en(s,r.hideColumns);i.value&&n(new nn(be.message,{...be.options,cause:{column:i.value}}));const l=f=>e("sort",f);return(f,u)=>(o.openBlock(),o.createBlock(Fr,null,{default:o.withCtx(({el:m})=>[o.createVNode(Ir,{columns:o.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:l},o.createSlots({"cell-index":o.withCtx(({row:c})=>[o.createElementVNode("span",{class:o.normalizeClass(c.indexClass)},o.toDisplayString(c.index),3)]),"cell-playerPortrait":o.withCtx(({row:c})=>[o.createElementVNode("div",Ys,[(o.openBlock(),o.createBlock(ge,{key:c.id||c.playerId,src:c.playerPortrait,"default-src":o.unref(lr)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:c})=>[(o.openBlock(),o.createBlock(ge,{class:"is-logo-image",key:c.team.id||c.id,src:c.team.logo},null,8,["src"]))]),"cell-teamName":o.withCtx(({row:c})=>[o.createElementVNode("span",Us,o.toDisplayString(c.team.longName),1),o.createElementVNode("span",Hs,o.toDisplayString(c.team.shortName),1)]),loading:o.withCtx(()=>[o.createVNode(jr)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:o.withCtx(({row:c})=>[o.createElementVNode("a",{href:t.externalTeamResolver(c.team.longName),target:"_blank"},[o.createElementVNode("span",Ks,o.toDisplayString(c.team.longName),1),o.createElementVNode("span",qs,o.toDisplayString(c.team.shortName),1)],8,Ws)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:c})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(c.id),target:"_blank"},o.toDisplayString(c.name),9,Zs)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Js={};function Qs(t,e){return o.openBlock(),o.createElementBlock("div",null," Test-8 ")}const ti=Vr(Js,[["render",Qs]]),on=async(t,e,r)=>{const n=`${sr}${o.unref(t)}?${ei(r)}`;return new Promise((s,a)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ri(e)}}).then(i=>i.json()).then(i=>{if(i.error)return a(i);s(i.data)}).catch(i=>{a(i)})})},ei=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ri=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},ni=(t={})=>{const{initial:e=1,items:r=[],limit:n,auto:s=!1}=t,a=o.ref(e),i=u=>tn(u,"day");return yn(r,()=>{if(!s)return;const u=Do(Qo(i,"gameDate"))(o.unref(r));a.value=u===-1?1:Math.floor(u/n)+1}),{page:a,change:u=>{a.value=u}}},oi=({options:t={},transform:e=s=>s,onError:r=rt,onSuccess:n=rt})=>{const{path:s,apiKey:a,params:i}=t,{state:l,error:f,isLoading:u,execute:m}=Ee(()=>on(s,a,o.unref(i)).then(c=>e(c)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:n});return{state:l,error:f,isLoading:u,execute:m}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsCore=function(S,o){"use strict";const ft=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,pn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=ft("base-input"),s=o.computed({get:()=>r.modelValue,set:a=>e("update:modelValue",a)});return(a,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>s.value=l),class:o.normalizeClass([o.unref(n),"is-select"])},[o.renderSlot(a.$slots,"default")],2)),[[o.vModelSelect,s.value]])}};function Te(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():o.unref(t)}const Ct=typeof window<"u",rt=()=>{},mn=hn();function hn(){var t;return Ct&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Qt(t,e=!1,r="Timeout"){return new Promise((n,s)=>{setTimeout(e?()=>s(r):n,t)})}function te(t,e=!1){function r(c,{flush:p="sync",deep:d=!1,timeout:g,throwOnTimeout:h}={}){let y=null;const T=[new Promise($=>{y=o.watch(t,D=>{c(D)!==e&&(y==null||y(),$(D))},{flush:p,deep:d,immediate:!0})})];return g!=null&&T.push(Qt(g,h).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race(T)}function n(c,p){if(!o.isRef(c))return r(D=>D===c,p);const{flush:d="sync",deep:g=!1,timeout:h,throwOnTimeout:y}=p??{};let A=null;const $=[new Promise(D=>{A=o.watch([t,c],([x,I])=>{e!==(x===I)&&(A==null||A(),D(x))},{flush:d,deep:g,immediate:!0})})];return h!=null&&$.push(Qt(h,y).then(()=>tt(t)).finally(()=>(A==null||A(),tt(t)))),Promise.race($)}function s(c){return r(p=>!!p,c)}function a(c){return n(null,c)}function i(c){return n(void 0,c)}function l(c){return r(Number.isNaN,c)}function f(c,p){return r(d=>{const g=Array.from(d);return g.includes(c)||g.includes(tt(c))},p)}function u(c){return m(1,c)}function m(c=1,p){let d=-1;return r(()=>(d+=1,d>=c),p)}return Array.isArray(tt(t))?{toMatch:r,toContains:f,changed:u,changedTimes:m,get not(){return te(t,!e)}}:{toMatch:r,toBe:n,toBeTruthy:s,toBeNull:a,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:m,get not(){return te(t,!e)}}}function gn(t){return te(t)}function yn(t,e,r={}){const{immediate:n=!0}=r,s=o.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function l(){s.value=!1,i()}function f(...u){i(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,t(...u)},tt(e))}return n&&(s.value=!0,Ct&&f()),Te(l),{isPending:o.readonly(s),start:f,stop:l}}function bn(t,e,r){const n=o.watch(t,(...s)=>(o.nextTick(()=>n()),e(...s)),r)}function _t(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Oe=Ct?window:void 0,wn=Ct?window.document:void 0;function It(...t){let e,r,n,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,s]=t,e=Oe):[e,r,n,s]=t,!e)return rt;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],i=()=>{a.forEach(m=>m()),a.length=0},l=(m,c,p,d)=>(m.addEventListener(c,p,d),()=>m.removeEventListener(c,p,d)),f=o.watch(()=>[_t(e),tt(s)],([m,c])=>{i(),m&&a.push(...r.flatMap(p=>n.map(d=>l(m,p,d,c))))},{immediate:!0,flush:"post"}),u=()=>{f(),i()};return Te(u),u}let Pe=!1;function vn(t,e,r={}){const{window:n=Oe,ignore:s=[],capture:a=!0,detectIframe:i=!1}=r;if(!n)return;mn&&!Pe&&(Pe=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",rt)));let l=!0;const f=p=>s.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(g=>g===p.target||p.composedPath().includes(g));{const g=_t(d);return g&&(p.target===g||p.composedPath().includes(g))}}),m=[It(n,"click",p=>{const d=_t(t);if(!(!d||d===p.target||p.composedPath().includes(d))){if(p.detail===0&&(l=!f(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:a}),It(n,"pointerdown",p=>{const d=_t(t);d&&(l=!p.composedPath().includes(d)&&!f(p))},{passive:!0}),i&&It(n,"blur",p=>{var d;const g=_t(t);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(n.document.activeElement))&&e(p)})].filter(Boolean);return()=>m.forEach(p=>p())}var Sn=Object.defineProperty,_n=Object.defineProperties,An=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Ee=(t,e,r)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pn=(t,e)=>{for(var r in e||(e={}))Tn.call(e,r)&&Ee(t,r,e[r]);if($e)for(var r of $e(e))On.call(e,r)&&Ee(t,r,e[r]);return t},$n=(t,e)=>_n(t,An(e));function ke(t,e,r){const{immediate:n=!0,delay:s=0,onError:a=rt,onSuccess:i=rt,resetOnExecute:l=!0,shallow:f=!0,throwError:u}=r??{},m=f?o.shallowRef(e):o.ref(e),c=o.ref(!1),p=o.ref(!1),d=o.shallowRef(void 0);async function g(A=0,...T){l&&(m.value=e),d.value=void 0,c.value=!1,p.value=!0,A>0&&await Qt(A);const $=typeof t=="function"?t(...T):t;try{const D=await $;m.value=D,c.value=!0,i(D)}catch(D){if(d.value=D,a(D),u)throw D}finally{p.value=!1}return m.value}n&&g(s);const h={state:m,isReady:c,isLoading:p,error:d,execute:g};function y(){return new Promise((A,T)=>{gn(p).toBe(!1).then(()=>A(h)).catch(T)})}return $n(Pn({},h),{then(A,T){return y().then(A,T)}})}function En({document:t=wn}={}){if(!t)return o.ref("visible");const e=o.ref(t.visibilityState);return It(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var kn=Object.defineProperty,Le=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,De=(t,e,r)=>e in t?kn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xn=(t,e)=>{for(var r in e||(e={}))Ln.call(e,r)&&De(t,r,e[r]);if(Le)for(var r of Le(e))Dn.call(e,r)&&De(t,r,e[r]);return t};async function Mn(t){return new Promise((e,r)=>{const n=new Image,{src:s,srcset:a,sizes:i,class:l,loading:f,crossorigin:u}=t;n.src=s,a&&(n.srcset=a),i&&(n.sizes=i),l&&(n.className=l),f&&(n.loading=f),u&&(n.crossOrigin=u),n.onload=()=>e(n),n.onerror=r})}function Nn(t,e={}){const r=ke(()=>Mn(tt(t)),void 0,xn({resetOnExecute:!0},e));return o.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function xe(t=[],e={}){const{delay:r=0}=e,n=o.ref(!1),s=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(f=>o.unref(f)).some(Boolean):l}),{start:a,stop:i}=yn(()=>{n.value=!0},r);return o.watch(s,l=>{if(l)return a();i(),n.value=!1},{immediate:!0,deep:!0}),n}function B(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(r){return arguments.length===0||B(r)?e:t.apply(this,arguments)}}function R(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return B(r)?e:Y(function(s){return t(r,s)});default:return B(r)&&B(n)?e:B(r)?Y(function(s){return t(s,n)}):B(n)?Y(function(s){return t(r,s)}):t(r,n)}}}function zt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,s){return e.apply(this,arguments)};case 4:return function(r,n,s,a){return e.apply(this,arguments)};case 5:return function(r,n,s,a,i){return e.apply(this,arguments)};case 6:return function(r,n,s,a,i,l){return e.apply(this,arguments)};case 7:return function(r,n,s,a,i,l,f){return e.apply(this,arguments)};case 8:return function(r,n,s,a,i,l,f,u){return e.apply(this,arguments)};case 9:return function(r,n,s,a,i,l,f,u,m){return e.apply(this,arguments)};case 10:return function(r,n,s,a,i,l,f,u,m,c){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ee(t,e,r){return function(){for(var n=[],s=0,a=t,i=0;i<e.length||s<arguments.length;){var l;i<e.length&&(!B(e[i])||s>=arguments.length)?l=e[i]:(l=arguments[s],s+=1),n[i]=l,B(l)||(a-=1),i+=1}return a<=0?r.apply(this,n):zt(a,ee(t,n,r))}}var Bt=R(function(e,r){return e===1?Y(r):zt(e,ee(e,[],r))});function at(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return B(r)?e:R(function(a,i){return t(r,a,i)});case 2:return B(r)&&B(n)?e:B(r)?R(function(a,i){return t(a,n,i)}):B(n)?R(function(a,i){return t(r,a,i)}):Y(function(a){return t(r,n,a)});default:return B(r)&&B(n)&&B(s)?e:B(r)&&B(n)?R(function(a,i){return t(a,i,s)}):B(r)&&B(s)?R(function(a,i){return t(a,n,i)}):B(n)&&B(s)?R(function(a,i){return t(r,a,i)}):B(r)?Y(function(a){return t(a,n,s)}):B(n)?Y(function(a){return t(r,a,s)}):B(s)?Y(function(a){return t(r,n,a)}):t(r,n,s)}}}const Rt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Cn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Gt(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Rt(n)){for(var s=0;s<t.length;){if(typeof n[t[s]]=="function")return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(Cn(n)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return r.apply(this,arguments)}}function Me(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ne(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Ce(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function In(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function zn(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const re=typeof Object.is=="function"?Object.is:zn;var Ie=Object.prototype.toString,ze=function(){return Ie.call(arguments)==="[object Arguments]"?function(e){return Ie.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Bn=!{toString:null}.propertyIsEnumerable("toString"),Be=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Re=function(){return arguments.propertyIsEnumerable("length")}(),Rn=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},dt=Y(typeof Object.keys=="function"&&!Re?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,s=[],a=Re&&ze(e);for(r in e)et(r,e)&&(!a||r!=="length")&&(s[s.length]=r);if(Bn)for(n=Be.length-1;n>=0;)r=Be[n],et(r,e)&&!Rn(s,r)&&(s[s.length]=r),n-=1;return s}),ne=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Ge(t,e,r,n){var s=Ne(t),a=Ne(e);function i(l,f){return oe(l,f,r.slice(),n.slice())}return!Ce(function(l,f){return!Ce(i,f,l)},a,s)}function oe(t,e,r,n){if(re(t,e))return!0;var s=ne(t);if(s!==ne(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&In(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&re(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!re(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(s){case"Map":return t.size!==e.size?!1:Ge(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:Ge(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=dt(t);if(i.length!==dt(e).length)return!1;var l=r.concat([t]),f=n.concat([e]);for(a=i.length-1;a>=0;){var u=i[a];if(!(et(u,e)&&oe(e[u],t[u],l,f)))return!1;a-=1}return!0}var Vt=R(function(e,r){return oe(e,r,[],[])});function Gn(t,e,r){var n,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(s=t[r],s===0&&1/s===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Vt(t[r],e))return r;r+=1}return-1}function Ve(t,e){return Gn(e,t,0)>=0}function jt(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function ae(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var At=function(e){return(e<10?"0":"")+e},Vn=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+At(e.getUTCMonth()+1)+"-"+At(e.getUTCDate())+"T"+At(e.getUTCHours())+":"+At(e.getUTCMinutes())+":"+At(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function jn(t){return function(){return!t.apply(this,arguments)}}function je(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function Fn(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}var Yn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Un(t){return function(e){return new Yn(t,e)}}var Fe=R(Gt(["fantasy-land/filter","filter"],Un,function(t,e){return Ft(e)?je(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},dt(e)):Fn(t,e)})),Hn=R(function(e,r){return Fe(jn(e),r)});function Ye(t,e){var r=function(i){var l=e.concat([t]);return Ve(i,l)?"<Circular>":Ye(i,l)},n=function(a,i){return jt(function(l){return ae(l)+": "+r(a[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+jt(r,t).join(", ")+"))";case"[object Array]":return"["+jt(r,t).concat(n(t,Hn(function(a){return/^\d+$/.test(a)},dt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ae(Vn(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":ae(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+n(t,dt(t)).join(", ")+"}"}}var se=Y(function(e){return Ye(e,[])}),Wn=R(function(e,r){if(e===r)return r;function n(f,u){if(f>u!=u>f)return u>f?u:f}var s=n(e,r);if(s!==void 0)return s;var a=n(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var i=se(e),l=n(i,se(r));return l!==void 0&&l===i?e:r}),Kn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Zn=function(e){return function(r){return new Kn(e,r)}},qn=R(Gt(["fantasy-land/map","map"],Zn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Bt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return je(function(n,s){return n[s]=e(r[s]),n},{},dt(r));default:return jt(e,r)}}));const pt=qn,Ue=Number.isInteger||function(e){return e<<0===e};function Yt(t){return Object.prototype.toString.call(t)==="[object String]"}var He=R(function(e,r){var n=e<0?r.length+e:e;return Yt(r)?r.charAt(n):r[n]}),Xn=R(function(e,r){if(r!=null)return Ue(e)?He(e,r):r[e]});const Tt=Xn;var Jn=R(function(e,r){return pt(Tt(e),r)}),Qn=Y(function(e){return Rt(e)?!0:!e||typeof e!="object"||Yt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),We=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function to(t,e,r){return function(s,a,i){if(Qn(i))return t(s,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(s,a,i,"fantasy-land/reduce");if(i[We]!=null)return r(s,a,i[We]());if(typeof i.next=="function")return r(s,a,i);if(typeof i.reduce=="function")return e(s,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function eo(t,e,r){for(var n=0,s=r.length;n<s;){if(e=t["@@transducer/step"](e,r[n]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}var ro=R(function(e,r){return zt(e.length,function(){return e.apply(r,arguments)})});function no(t,e,r){for(var n=r.next();!n.done;){if(e=t["@@transducer/step"](e,n.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function oo(t,e,r,n){return t["@@transducer/result"](r[n](ro(t["@@transducer/step"],t),e))}var Ke=to(eo,oo,no),ao=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function Ze(t){return new ao(t)}var so=at(function(t,e,r){return Ke(typeof t=="function"?Ze(t):t,e,r)});const qe=so;var io=Y(function(e){return function(){return e}});const Xe=io;var lo=Y(function(e){return Bt(qe(Wn,0,Jn("length",e)),function(){for(var r=0,n=e.length;r<n;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const co=lo;var uo=at(function(e,r,n){var s=e(r),a=e(n);return s<a?-1:s>a?1:0});const Je=uo;function fo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function po(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function ie(t,e,r){if(r||(r=new ho),mo(t))return t;var n=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=e?ie(t[l],!0,r):t[l]);return a};switch(ne(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return po(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function mo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var ho=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const n=this.hash(e);let s=this.map[n];s||(this.map[n]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const s in this.map){const a=this.map[s];for(let i=0;i<a.length;i+=1){const l=a[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),n=this.map[r];if(n)for(let s=0;s<n.length;s+=1){const a=n[s];if(a[0]===e)return a[1]}},t}();function go(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function le(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return Rt(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var yo=at(le("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),bo=Y(le("tail",yo(1,1/0)));const wo=bo;function ce(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return zt(arguments[0].length,qe(go,arguments[0],wo(arguments)))}var vo=Y(function(e){return Yt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const So=vo;function Qe(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ce.apply(this,So(arguments))}var _o=function(){function t(e,r,n,s){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(et(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,ie(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t}();function Ao(t,e,r){return function(n){return new _o(t,e,r,n)}}var To=ee(4,[],Gt([],Ao,function(e,r,n,s){var a=Ze(function(i,l){var f=n(l),u=e(et(f,i)?i[f]:ie(r,!1),l);return u&&u["@@transducer/reduced"]?Me(i):(i[f]=u,i)});return Ke(a,{},s)})),Oo=at(function(e,r,n){var s=e(r),a=e(n);return s>a?-1:s<a?1:0});const Po=Oo;function $o(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var Eo=Y(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Rt(e)?[]:Yt(e)?"":Ft(e)?{}:ze(e)?function(){return arguments}():$o(e)?e.constructor.from(""):void 0}),ko=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=Me(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Lo(t){return function(e){return new ko(t,e)}}var Do=R(Gt([],Lo,function(e,r){for(var n=0,s=r.length;n<s;){if(e(r[n]))return n;n+=1}return-1}));const xo=Do;var Mo=R(le("groupBy",To(function(t,e){return t.push(e),t},[])));const No=Mo;var Co=at(function(e,r,n){return Bt(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});const Io=Co;var zo=R(Ve);const Bo=zo;var Ro=R(function(e,r){return Bt(e+1,function(){var n=arguments[e];if(n!=null&&fo(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(se(n)+' does not have a method named "'+r+'"')})});const tr=Ro;var Go=Y(function(e){return e!=null&&Vt(e,Eo(e))});const Vo=Go;var jo=R(function(e,r){return e.map(function(n){for(var s=r,a=0,i;a<n.length;){if(s==null)return;i=n[a],s=Ue(i)?He(i,s):s[i],a+=1}return s})}),Fo=R(function(e,r){return jo([e],r)[0]});const er=Fo;var Yo=at(function(e,r,n){var s={},a;r=r||{},n=n||{};for(a in r)et(a,r)&&(s[a]=et(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)et(a,n)&&!et(a,s)&&(s[a]=n[a]);return s}),Uo=at(function t(e,r,n){return Yo(function(s,a,i){return Ft(a)&&Ft(i)?t(e,a,i):e(s,a,i)},r,n)}),Ho=R(function(e,r){return Uo(function(n,s,a){return a},e,r)});const Wo=Ho;var Ko=R(function(e,r){for(var n={},s={},a=0,i=e.length;a<i;)s[e[a]]=1,a+=1;for(var l in r)s.hasOwnProperty(l)||(n[l]=r[l]);return n});const Zo=Ko;var qo=at(function(e,r,n){return e(Tt(r,n))});const Xo=qo;var Jo=R(function(e,r){return Array.prototype.slice.call(r,0).sort(function(n,s){for(var a=0,i=0;a===0&&i<e.length;)a=e[i](n,s),i+=1;return a})});const rr=Jo;var Qo=tr(1,"split");const Ot=Qo;var ta=tr(0,"toLowerCase");const ea=ta;var Pt=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,ra="",na=typeof String.prototype.trim=="function",oa=Y(!na||Pt.trim()||!ra.trim()?function(e){var r=new RegExp("^["+Pt+"]["+Pt+"]*"),n=new RegExp("["+Pt+"]["+Pt+"]*$");return e.replace(r,"").replace(n,"")}:function(e){return e.trim()});const Ut=oa,nr=Symbol("I18nContext"),K=o.reactive({messages:{},locale:"",fallbackLocale:""}),or=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const n=(f,u={})=>{const m=!Vo(u),c=pt(Ut,Ot(".",f));return o.computed(()=>{const d=ar(c);return m?sa(d,u):d}).value},s=f=>{const u=pt(Ut,Ot(".",f));return!!ue(K.locale,u,K.messages)},a=f=>{K.locale=f},l={locale:o.computed({get(){return K.locale},set(f){K.locale=f}}),setLocale:a,translate:n,hasTranlation:s};return o.provide(nr,l),{translate:n}},bt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=aa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},aa=()=>{const t=o.inject(nr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},ar=(t=[])=>{let e=ue(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ue(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ue(t,e,r){return er([t,...e],r)}const sa=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},sr=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=pt(Ut,Ot(".",t.path)),n=ar(r),s=Ot(/{|}/,n),a=Object.keys(e).map(i=>{const l=s.indexOf(i);return l>-1&&(s[l]=e[i]()[0]),s});return()=>o.h(t.tag,a)}}),ir="https://api.icehockey.hu/vbr",lr="https://www.jegkorongszovetseg.hu/event/game/",cr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",ur="https://www.ersteliga.hu/stats/players#/player/",fr="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",nt="original",b="descend",C="ascend",dr=new Map().set("hu","hu-hu").set("en","hu-gb"),pr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ia=1e3*60*5,mr=1e3,la={"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"},ca=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),ua=[ca];function fa(t,e){return o.openBlock(),o.createElementBlock("svg",la,ua)}const hr={render:fa},da={"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"},pa=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),ma=[pa];function ha(t,e){return o.openBlock(),o.createElementBlock("svg",da,ma)}const gr={render:ha};function $t(t){return t.split("-")[1]}function fe(t){return t==="y"?"height":"width"}function mt(t){return t.split("-")[0]}function Et(t){return["top","bottom"].includes(mt(t))?"x":"y"}function yr(t,e,r){let{reference:n,floating:s}=t;const a=n.x+n.width/2-s.width/2,i=n.y+n.height/2-s.height/2,l=Et(e),f=fe(l),u=n[f]/2-s[f]/2,m=l==="x";let c;switch(mt(e)){case"top":c={x:a,y:n.y-s.height};break;case"bottom":c={x:a,y:n.y+n.height};break;case"right":c={x:n.x+n.width,y:i};break;case"left":c={x:n.x-s.width,y:i};break;default:c={x:n.x,y:n.y}}switch($t(e)){case"start":c[l]-=u*(r&&m?-1:1);break;case"end":c[l]+=u*(r&&m?-1:1)}return c}const ga=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),f=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:s}),{x:m,y:c}=yr(u,n,f),p=n,d={},g=0;for(let h=0;h<l.length;h++){const{name:y,fn:A}=l[h],{x:T,y:$,data:D,reset:x}=await A({x:m,y:c,initialPlacement:n,placement:p,strategy:s,middlewareData:d,rects:u,platform:i,elements:{reference:t,floating:e}});m=T??m,c=$??c,d={...d,[y]:{...d[y],...D}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:s}):x.rects),{x:m,y:c}=yr(u,p,f)),h=-1)}return{x:m,y:c,placement:p,strategy:s,middlewareData:d}};function br(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ht(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function wr(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:a,rects:i,elements:l,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:c="floating",altBoundary:p=!1,padding:d=0}=e,g=br(d),h=l[p?c==="floating"?"reference":"floating":c],y=Ht(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:f})),A=c==="floating"?{...i.floating,x:n,y:s}:i.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),$=await(a.isElement==null?void 0:a.isElement(T))&&await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1},D=Ht(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:T,strategy:f}):A);return{top:(y.top-D.top+g.top)/$.y,bottom:(D.bottom-y.bottom+g.bottom)/$.y,left:(y.left-D.left+g.left)/$.x,right:(D.right-y.right+g.right)/$.x}}const ya=Math.min,ba=Math.max;function de(t,e,r){return ba(t,ya(e,r))}const vr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:s,y:a,placement:i,rects:l,platform:f,elements:u}=e;if(r==null)return{};const m=br(n),c={x:s,y:a},p=Et(i),d=fe(p),g=await f.getDimensions(r),h=p==="y",y=h?"top":"left",A=h?"bottom":"right",T=h?"clientHeight":"clientWidth",$=l.reference[d]+l.reference[p]-c[p]-l.floating[d],D=c[p]-l.reference[p],x=await(f.getOffsetParent==null?void 0:f.getOffsetParent(r));let I=x?x[T]:0;I&&await(f.isElement==null?void 0:f.isElement(x))||(I=u.floating[T]||l.floating[d]);const G=$/2-D/2,F=m[y],M=I-g[d]-m[A],k=I/2-g[d]/2+G,z=de(F,k,M),U=$t(i)!=null&&k!=z&&l.reference[d]/2-(k<F?m[y]:m[A])-g[d]/2<0;return{[p]:c[p]-(U?k<F?F-k:M-k:0),data:{[p]:z,centerOffset:k-z}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const wa={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,e=>wa[e])}function va(t,e,r){r===void 0&&(r=!1);const n=$t(t),s=Et(t),a=fe(s);let i=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Wt(i)),{main:i,cross:Wt(i)}}const Sa={start:"end",end:"start"};function pe(t){return t.replace(/start|end/g,e=>Sa[e])}const _a=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:f}=e,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:c,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...h}=t,y=mt(n),A=mt(i)===i,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),$=c||(A||!g?[Wt(i)]:function(z){const U=Wt(z);return[pe(z),U,pe(U)]}(i));c||d==="none"||$.push(...function(z,U,P,_){const v=$t(z);let O=function(w,E,L){const N=["left","right"],j=["right","left"],V=["top","bottom"],H=["bottom","top"];switch(w){case"top":case"bottom":return L?E?j:N:E?N:j;case"left":case"right":return E?V:H;default:return[]}}(mt(z),P==="start",_);return v&&(O=O.map(w=>w+"-"+v),U&&(O=O.concat(O.map(pe)))),O}(i,g,d,T));const D=[i,...$],x=await wr(e,h),I=[];let G=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(x[y]),m){const{main:z,cross:U}=va(n,a,T);I.push(x[z],x[U])}if(G=[...G,{placement:n,overflows:I}],!I.every(z=>z<=0)){var F,M;const z=(((F=s.flip)==null?void 0:F.index)||0)+1,U=D[z];if(U)return{data:{index:z,overflows:G},reset:{placement:U}};let P=(M=G.filter(_=>_.overflows[0]<=0).sort((_,v)=>_.overflows[1]-v.overflows[1])[0])==null?void 0:M.placement;if(!P)switch(p){case"bestFit":{var k;const _=(k=G.map(v=>[v.placement,v.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((v,O)=>v[1]-O[1])[0])==null?void 0:k[0];_&&(P=_);break}case"initialPlacement":P=i}if(n!==P)return{reset:{placement:P}}}return{}}}},Aa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,s=await async function(a,i){const{placement:l,platform:f,elements:u}=a,m=await(f.isRTL==null?void 0:f.isRTL(u.floating)),c=mt(l),p=$t(l),d=Et(l)==="x",g=["left","top"].includes(c)?-1:1,h=m&&d?-1:1,y=typeof i=="function"?i(a):i;let{mainAxis:A,crossAxis:T,alignmentAxis:$}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof $=="number"&&(T=p==="end"?-1*$:$),d?{x:T*h,y:A*g}:{x:A*g,y:T*h}}(e,t);return{x:r+s.x,y:n+s.y,data:s}}}};function Ta(t){return t==="x"?"y":"x"}const Oa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:A,y:T}=y;return{x:A,y:T}}},...f}=t,u={x:r,y:n},m=await wr(e,f),c=Et(mt(s)),p=Ta(c);let d=u[c],g=u[p];if(a){const y=c==="y"?"bottom":"right";d=de(d+m[c==="y"?"top":"left"],d,d-m[y])}if(i){const y=p==="y"?"bottom":"right";g=de(g+m[p==="y"?"top":"left"],g,g-m[y])}const h=l.fn({...e,[c]:d,[p]:g});return{...h,data:{x:h.x-r,y:h.y-n}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function Sr(t){return t instanceof X(t).Node}function st(t){return Sr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function q(t){return t instanceof X(t).Element}function _r(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function kt(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function Pa(t){return["table","td","th"].includes(st(t))}function me(t){const e=he(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function he(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(st(t))}const Ar=Math.min,Lt=Math.max,Zt=Math.round;function Tr(t){const e=J(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=Q(t),a=s?t.offsetWidth:r,i=s?t.offsetHeight:n,l=Zt(r)!==a||Zt(n)!==i;return l&&(r=a,n=i),{width:r,height:n,fallback:l}}function Or(t){return q(t)?t:t.contextElement}const Pr={x:1,y:1};function wt(t){const e=Or(t);if(!Q(e))return Pr;const r=e.getBoundingClientRect(),{width:n,height:s,fallback:a}=Tr(e);let i=(a?Zt(r.width):r.width)/n,l=(a?Zt(r.height):r.height)/s;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const $r={x:0,y:0};function Er(t,e,r){var n,s;if(e===void 0&&(e=!0),!he())return $r;const a=t?X(t):window;return!r||e&&r!==a?$r:{x:((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,y:((s=a.visualViewport)==null?void 0:s.offsetTop)||0}}function ht(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=Or(t);let i=Pr;e&&(n?q(n)&&(i=wt(n)):i=wt(t));const l=Er(a,r,n);let f=(s.left+l.x)/i.x,u=(s.top+l.y)/i.y,m=s.width/i.x,c=s.height/i.y;if(a){const p=X(a),d=n&&q(n)?X(n):n;let g=p.frameElement;for(;g&&n&&d!==p;){const h=wt(g),y=g.getBoundingClientRect(),A=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(A.paddingLeft))*h.x,y.y+=(g.clientTop+parseFloat(A.paddingTop))*h.y,f*=h.x,u*=h.y,m*=h.x,c*=h.y,f+=y.x,u+=y.y,g=X(g).frameElement}}return Ht({width:m,height:c,x:f,y:u})}function it(t){return((Sr(t)?t.ownerDocument:t.document)||window.document).documentElement}function qt(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kr(t){return ht(it(t)).left+qt(t).scrollLeft}function vt(t){if(st(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_r(t)&&t.host||it(t);return _r(e)?e.host:e}function Lr(t){const e=vt(t);return Kt(e)?e.ownerDocument.body:Q(e)&&kt(e)?e:Lr(e)}function Dt(t,e){var r;e===void 0&&(e=[]);const n=Lr(t),s=n===((r=t.ownerDocument)==null?void 0:r.body),a=X(n);return s?e.concat(a,a.visualViewport||[],kt(n)?n:[]):e.concat(n,Dt(n))}function Dr(t,e,r){let n;if(e==="viewport")n=function(s,a){const i=X(s),l=it(s),f=i.visualViewport;let u=l.clientWidth,m=l.clientHeight,c=0,p=0;if(f){u=f.width,m=f.height;const d=he();(!d||d&&a==="fixed")&&(c=f.offsetLeft,p=f.offsetTop)}return{width:u,height:m,x:c,y:p}}(t,r);else if(e==="document")n=function(s){const a=it(s),i=qt(s),l=s.ownerDocument.body,f=Lt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=Lt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let m=-i.scrollLeft+kr(s);const c=-i.scrollTop;return J(l).direction==="rtl"&&(m+=Lt(a.clientWidth,l.clientWidth)-f),{width:f,height:u,x:m,y:c}}(it(t));else if(q(e))n=function(s,a){const i=ht(s,!0,a==="fixed"),l=i.top+s.clientTop,f=i.left+s.clientLeft,u=Q(s)?wt(s):{x:1,y:1};return{width:s.clientWidth*u.x,height:s.clientHeight*u.y,x:f*u.x,y:l*u.y}}(e,r);else{const s=Er(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Ht(n)}function xr(t,e){const r=vt(t);return!(r===e||!q(r)||Kt(r))&&(J(r).position==="fixed"||xr(r,e))}function Mr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Nr(t,e){const r=X(t);if(!Q(t))return r;let n=Mr(t,e);for(;n&&Pa(n)&&J(n).position==="static";)n=Mr(n,e);return n&&(st(n)==="html"||st(n)==="body"&&J(n).position==="static"&&!me(n))?r:n||function(s){let a=vt(s);for(;Q(a)&&!Kt(a);){if(me(a))return a;a=vt(a)}return null}(t)||r}function $a(t,e,r){const n=Q(e),s=it(e),a=r==="fixed",i=ht(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(n||!n&&!a)if((st(e)!=="body"||kt(s))&&(l=qt(e)),Q(e)){const u=ht(e,!0,a,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else s&&(f.x=kr(s));return{x:i.left+l.scrollLeft-f.x,y:i.top+l.scrollTop-f.y,width:i.width,height:i.height}}const Ea={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const a=r==="clippingAncestors"?function(u,m){const c=m.get(u);if(c)return c;let p=Dt(u).filter(y=>q(y)&&st(y)!=="body"),d=null;const g=J(u).position==="fixed";let h=g?vt(u):u;for(;q(h)&&!Kt(h);){const y=J(h),A=me(h);A||y.position!=="fixed"||(d=null),(g?!A&&!d:!A&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||kt(h)&&!A&&xr(u,h))?p=p.filter(T=>T!==h):d=y,h=vt(h)}return m.set(u,p),p}(e,this._c):[].concat(r),i=[...a,n],l=i[0],f=i.reduce((u,m)=>{const c=Dr(e,m,s);return u.top=Lt(c.top,u.top),u.right=Ar(c.right,u.right),u.bottom=Ar(c.bottom,u.bottom),u.left=Lt(c.left,u.left),u},Dr(e,l,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const s=Q(r),a=it(r);if(r===a)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const f={x:0,y:0};if((s||!s&&n!=="fixed")&&((st(r)!=="body"||kt(a))&&(i=qt(r)),Q(r))){const u=ht(r);l=wt(r),f.x=u.x+r.clientLeft,f.y=u.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+f.x,y:e.y*l.y-i.scrollTop*l.y+f.y}},isElement:q,getDimensions:function(t){return Tr(t)},getOffsetParent:Nr,getDocumentElement:it,getScale:wt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const s=this.getOffsetParent||Nr,a=this.getDimensions;return{reference:$a(e,await s(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function ka(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=n,f=s||a?[...q(t)?Dt(t):t.contextElement?Dt(t.contextElement):[],...Dt(e)]:[];f.forEach(p=>{const d=!q(p)&&p.toString().includes("V");!s||l&&!d||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let u,m=null;i&&(m=new ResizeObserver(()=>{r()}),q(t)&&!l&&m.observe(t),q(t)||!t.contextElement||l||m.observe(t.contextElement),m.observe(e));let c=l?ht(t):null;return l&&function p(){const d=ht(t);!c||d.x===c.x&&d.y===c.y&&d.width===c.width&&d.height===c.height||r(),c=d,u=requestAnimationFrame(p)}(),r(),()=>{var p;f.forEach(d=>{s&&d.removeEventListener("scroll",r),a&&d.removeEventListener("resize",r)}),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(u)}}const La=(t,e,r)=>{const n=new Map,s={platform:Ea,...r},a={...s.platform,_c:n};return ga(t,e,{...s,platform:a})},Cr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function Da({middleware:t,placement:e=null,strategy:r,append:n,enabled:s}){const a=o.ref(null),i=o.ref(null),l=o.ref(null),f=o.ref(null),u=o.ref(null),m=o.ref(null),c=o.ref(null),p=o.ref(r??"absolute"),d=o.ref(null),g=()=>{!a.value||!i.value||La(a.value,i.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,f.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,m.value=y.middlewareData.arrow.y,c.value=y.placement})};o.watch(()=>({reference:o.unref(a),floating:o.unref(i),append:o.unref(n)}),({floating:y,append:A})=>{A&&Cr(y,A),g()},{flush:"post"}),o.watch(s,y=>{if(!(!a.value||!i.value)){if(!y)return h();d.value=ka(a.value,i.value,g,{})}},{flush:"post"});const h=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:f,arrowX:u,arrowY:m,placement:c,reference:a,floating:i,strategy:p,update:g}}const xa=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?vr({element:e.value,padding:r}).fn(n):{}:e?vr({element:e,padding:r}).fn(n):{}}}},Ma=["data-placement"],Ir={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=o.ref(!1),n=o.ref(null),{x:s,y:a,arrowX:i,arrowY:l,placement:f,reference:u,floating:m,strategy:c}=Da({placement:e.placement,middleware:[_a(),Oa({padding:5}),Aa(e.offset),xa({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||r.value||(r.value=!0)},d=y=>{r.value&&y&&(r.value=!1)},g=y=>{u.value=y},h={mouseenter:p,mouseleave:d,focus:p,blur:d};return vn(m,y=>{var A;(A=u.value)!=null&&A.contains(y.target)||d()}),(y,A)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(y.$slots,"default",{setRef:g,show:p,hide:d,events:h}),o.createElementVNode("div",{ref_key:"floating",ref:m,"data-placement":o.unref(f),style:o.normalizeStyle({position:o.unref(c),top:o.unref(a)?`${o.unref(a)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(y.$slots,"content",{close:d},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(c),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(i)?`${o.unref(i)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,Ma)],64))}},Na=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ca={key:0},Ia=["colspan"],za={key:1},Ba=["colspan"],zr={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:n,appendTo:s}=o.toRefs(r),a=xe(n,{delay:mr}),{t:i}=bt(),l=ft("table"),f=o.computed(()=>r.columns),u=o.computed(()=>Object.keys(r.columns).length),m=(c,p)=>{c.sortOrders&&e("sort",{target:p,orders:c.sortOrders})};return(c,p)=>(o.openBlock(),o.createElementBlock("table",{class:o.normalizeClass(o.unref(l))},[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(d,g)=>(o.openBlock(),o.createBlock(Ir,{key:g,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":o.unref(s)},{default:o.withCtx(({setRef:h,show:y,hide:A})=>[o.createElementVNode("th",{ref_for:!0,ref:h,class:o.normalizeClass([[d.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt),"is-sortable":d.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),onMouseenter:y,onMouseleave:A,onFocus:y,onBlur:A,onClick:T=>m(d,g),onKeydown:[o.withKeys(o.withModifiers(T=>m(d,g),["prevent"]),["space"]),o.withKeys(o.withModifiers(T=>m(d,g),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[o.renderSlot(c.$slots,`header-${g}`,{column:d},()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),d.sortOrders&&g!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(hr),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(nt)?(o.openBlock(),o.createBlock(o.unref(hr),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b)?(o.openBlock(),o.createBlock(o.unref(gr),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(gr),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,Na)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(d,g)=>(o.openBlock(),o.createElementBlock("tr",{key:g},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.value,(h,y)=>(o.openBlock(),o.createElementBlock("td",{key:y,class:o.normalizeClass([[h.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt)}])},[o.renderSlot(c.$slots,`cell-${y}`,{row:d,prop:y},()=>[o.createTextVNode(o.toDisplayString(d[y]),1)])],2))),128))]))),128))]),o.unref(a)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Ca,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:u.value},[o.renderSlot(c.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)("common.loading")),1)])],8,Ia)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(a)?(o.openBlock(),o.createElementBlock("tfoot",za,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:u.value},[o.renderSlot(c.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(i)("common.noData")),1)])],8,Ba)])])):o.createCommentVNode("",!0)],2))}},Ra={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"},Ga=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),Va=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ja=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Fa=[Ga,Va,ja];function Ya(t,e){return o.openBlock(),o.createElementBlock("svg",Ra,Fa)}const Ua={render:Ya},Ha={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=bt(),s=ft("error-notice"),a=o.computed(()=>{var i;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(s))},[o.createVNode(o.unref(Ua),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1)],2))}};function Br(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}function ge(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const Rr=Symbol("ErrorProviderContext"),Gr=()=>{const t=o.ref(""),e=o.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||Br(a.message),cause:a.cause}},s={onError:r,reset:()=>{t.value="",e.value={}}};return o.provide(Rr,s),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},o.onErrorCaptured((a,i,l)=>{console.log("onErrorCaptured:",a,i,l)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Vr=()=>{const t=Wa();return{onError:t.onError,reset:t.reset}},Wa=()=>{const t=o.inject(Rr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ka={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=Gr();return(s,a)=>o.renderSlot(s.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},Za={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"M",tooltip:"Mérkőzésszám"},wins:{short:"GY",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"GYH",tooltip:"Győzelem Hosszabbításban"},otl:{short:"VH",tooltip:"Vereség Hosszabbításban"},losses:{short:"V",tooltip:"Vereség"},goalFor:{short:"SZG",tooltip:"Szerzett Gól"},goalAgainst:{short:"KG",tooltip:"Kapott Gól"},goalDiff:{short:"GK",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:"L",tooltip:"Lövések"},sogPercent:{short:"L%",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:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",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:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",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"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{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"}}},qa={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},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:"PTS",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:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},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"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{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"}}},jr=(t,e)=>{const r=t.__vccOpts||t;for(const[n,s]of e)r[n]=s;return r},Xa=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Wo({hu:Za,en:qa},t.messages),{translate:r}=or({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function Ja(t,e,r,n,s,a){return o.renderSlot(t.$slots,"default",{t:t.translate})}const Qa=jr(Xa,[["render",Ja]]),ts=["src"],es=["src","title"],ye=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=o.toRefs(e),n=o.ref({src:e.src}),{error:s,isReady:a}=Nn(n,{resetOnExecute:!1,shallow:!1});return(i,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(s)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",i.$attrs.class])},null,10,ts)):o.createCommentVNode("",!0),o.unref(s)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([i.$attrs.class,{"is-loaded":o.unref(a)}]),title:e.title},null,10,es))],64))}}),rs={style:{"text-align":"center"}},Fr={__name:"LoadingIndicator",setup(t){const{t:e}=bt();return(r,n)=>(o.openBlock(),o.createElementBlock("div",rs,o.toDisplayString(o.unref(e)("common.loading")),1))}};function ns({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:n=5,update:s=rt}){const a=o.computed(()=>Math.ceil(o.unref(r)/e)),i=o.computed(()=>{const m=o.unref(t)-1,c=Array.from({length:a.value},(g,h)=>h+1),p=Math.floor(n/2);let d=Math.max(m-p,0);return d+n>=a.value&&(d=Math.max(a.value-n,0)),c.slice(d,d+n)}),l=m=>{const c=o.unref(t)+m;u(c)&&s(c)},f=m=>{u(m)&&s(m)},u=m=>m<=a.value&&m>0;return{page:t,range:i,pageCount:a,goTo:f,pageStep:l}}const os={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"},as=o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ss=[as];function is(t,e){return o.openBlock(),o.createElementBlock("svg",os,ss)}const ls={render:is},cs={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"},us=o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),fs=[us];function ds(t,e){return o.openBlock(),o.createElementBlock("svg",cs,fs)}const ps={render:ds},ms=["disabled"],hs=["disabled"],gs={key:1,class:"is-disabled"},ys=["disabled","onClick"],bs={key:2,class:"is-disabled"},ws=[o.createElementVNode("span",null,"...",-1)],vs=["disabled"],Ss=["disabled"],_s={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,n=ft("paginator"),{page:s,pageCount:a,range:i,goTo:l,pageStep:f}=ns({currentPage:o.computed(()=>r.page),totalItems:o.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:u=>e("change",u)});return(u,m)=>o.unref(a)>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(n))},[o.createElementVNode("button",{type:"button",disabled:o.unref(s)===1,onClick:m[0]||(m[0]=c=>o.unref(f)(-1))},[o.renderSlot(u.$slots,"prev",{},()=>[o.createVNode(o.unref(ls),{class:"icon paginator-left"})])],8,ms),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(s)===1,onClick:m[1]||(m[1]=c=>o.unref(l)(1))},"1",8,hs)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",gs,"...")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),c=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:c,class:o.normalizeClass({"is-active":c===o.unref(s)}),disabled:c===o.unref(s),onClick:p=>o.unref(l)(c)},o.toDisplayString(c),11,ys))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",bs,ws)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(s)===o.unref(a),onClick:m[2]||(m[2]=c=>o.unref(l)(o.unref(a)))},o.toDisplayString(o.unref(a)),9,vs)),o.createElementVNode("button",{type:"button",disabled:o.unref(s)===o.unref(a),onClick:m[3]||(m[3]=o.withModifiers(c=>o.unref(f)(1),["prevent"]))},[o.renderSlot(u.$slots,"next",{},()=>[o.createVNode(o.unref(ps),{class:"icon paginator-left"})])],8,Ss)],2)):o.createCommentVNode("",!0)}},Yr={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=ft("table-responsive");return(n,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:o.normalizeClass(o.unref(r))},[o.renderSlot(n.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ur={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,s=36e5,a="millisecond",i="second",l="minute",f="hour",u="day",m="week",c="month",p="quarter",d="year",g="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var _=["th","st","nd","rd"],v=P%100;return"["+P+(_[(v-20)%10]||_[v]||_[0])+"]"}},$=function(P,_,v){var O=String(P);return!O||O.length>=_?P:""+Array(_+1-O.length).join(v)+P},D={s:$,z:function(P){var _=-P.utcOffset(),v=Math.abs(_),O=Math.floor(v/60),w=v%60;return(_<=0?"+":"-")+$(O,2,"0")+":"+$(w,2,"0")},m:function P(_,v){if(_.date()<v.date())return-P(v,_);var O=12*(v.year()-_.year())+(v.month()-_.month()),w=_.clone().add(O,c),E=v-w<0,L=_.clone().add(O+(E?-1:1),c);return+(-(O+(v-w)/(E?w-L:L-w))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:d,w:m,d:u,D:g,h:f,m:l,s:i,ms:a,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},x="en",I={};I[x]=T;var G=function(P){return P instanceof z},F=function P(_,v,O){var w;if(!_)return x;if(typeof _=="string"){var E=_.toLowerCase();I[E]&&(w=E),v&&(I[E]=v,w=E);var L=_.split("-");if(!w&&L.length>1)return P(L[0])}else{var N=_.name;I[N]=_,w=N}return!O&&w&&(x=w),w||!O&&x},M=function(P,_){if(G(P))return P.clone();var v=typeof _=="object"?_:{};return v.date=P,v.args=arguments,new z(v)},k=D;k.l=F,k.i=G,k.w=function(P,_){return M(P,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var z=function(){function P(v){this.$L=F(v.locale,null,!0),this.parse(v)}var _=P.prototype;return _.parse=function(v){this.$d=function(O){var w=O.date,E=O.utc;if(w===null)return new Date(NaN);if(k.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(y);if(L){var N=L[2]-1||0,j=(L[7]||"0").substring(0,3);return E?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(w)}(v),this.$x=v.x||{},this.init()},_.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(v,O){var w=M(v);return this.startOf(O)<=w&&w<=this.endOf(O)},_.isAfter=function(v,O){return M(v)<this.startOf(O)},_.isBefore=function(v,O){return this.endOf(O)<M(v)},_.$g=function(v,O,w){return k.u(v)?this[O]:this.set(w,v)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(v,O){var w=this,E=!!k.u(O)||O,L=k.p(v),N=function(St,Z){var ut=k.w(w.$u?Date.UTC(w.$y,Z,St):new Date(w.$y,Z,St),w);return E?ut:ut.endOf(u)},j=function(St,Z){return k.w(w.toDate()[St].apply(w.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},V=this.$W,H=this.$M,ct=this.$D,ot="set"+(this.$u?"UTC":"");switch(L){case d:return E?N(1,0):N(31,11);case c:return E?N(1,H):N(0,H+1);case m:var Mt=this.$locale().weekStart||0,Nt=(V<Mt?V+7:V)-Mt;return N(E?ct-Nt:ct+(6-Nt),H);case u:case g:return j(ot+"Hours",0);case f:return j(ot+"Minutes",1);case l:return j(ot+"Seconds",2);case i:return j(ot+"Milliseconds",3);default:return this.clone()}},_.endOf=function(v){return this.startOf(v,!1)},_.$set=function(v,O){var w,E=k.p(v),L="set"+(this.$u?"UTC":""),N=(w={},w[u]=L+"Date",w[g]=L+"Date",w[c]=L+"Month",w[d]=L+"FullYear",w[f]=L+"Hours",w[l]=L+"Minutes",w[i]=L+"Seconds",w[a]=L+"Milliseconds",w)[E],j=E===u?this.$D+(O-this.$W):O;if(E===c||E===d){var V=this.clone().set(g,1);V.$d[N](j),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},_.set=function(v,O){return this.clone().$set(v,O)},_.get=function(v){return this[k.p(v)]()},_.add=function(v,O){var w,E=this;v=Number(v);var L=k.p(O),N=function(H){var ct=M(E);return k.w(ct.date(ct.date()+Math.round(H*v)),E)};if(L===c)return this.set(c,this.$M+v);if(L===d)return this.set(d,this.$y+v);if(L===u)return N(1);if(L===m)return N(7);var j=(w={},w[l]=n,w[f]=s,w[i]=r,w)[L]||1,V=this.$d.getTime()+v*j;return k.w(V,this)},_.subtract=function(v,O){return this.add(-1*v,O)},_.format=function(v){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||h;var E=v||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),N=this.$H,j=this.$m,V=this.$M,H=w.weekdays,ct=w.months,ot=function(Z,ut,Ae,Jt){return Z&&(Z[ut]||Z(O,E))||Ae[ut].slice(0,Jt)},Mt=function(Z){return k.s(N%12||12,Z,"0")},Nt=w.meridiem||function(Z,ut,Ae){var Jt=Z<12?"AM":"PM";return Ae?Jt.toLowerCase():Jt},St={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:k.s(V+1,2,"0"),MMM:ot(w.monthsShort,V,ct,3),MMMM:ot(ct,V),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:ot(w.weekdaysMin,this.$W,H,2),ddd:ot(w.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(N),HH:k.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Nt(N,j,!0),A:Nt(N,j,!1),m:String(j),mm:k.s(j,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:L};return E.replace(A,function(Z,ut){return ut||St[Z]||L.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(v,O,w){var E,L=k.p(O),N=M(v),j=(N.utcOffset()-this.utcOffset())*n,V=this-N,H=k.m(this,N);return H=(E={},E[d]=H/12,E[c]=H,E[p]=H/3,E[m]=(V-j)/6048e5,E[u]=(V-j)/864e5,E[f]=V/s,E[l]=V/n,E[i]=V/r,E)[L]||V,w?H:k.a(H)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return I[this.$L]},_.locale=function(v,O){if(!v)return this.$L;var w=this.clone(),E=F(v,O,!0);return E&&(w.$L=E),w},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},P}(),U=z.prototype;return M.prototype=U,[["$ms",a],["$s",i],["$m",l],["$H",f],["$W",u],["$M",c],["$y",d],["$D",g]].forEach(function(P){U[P[1]]=function(_){return this.$g(_,P[0],P[1])}}),M.extend=function(P,_){return P.$i||(P(_,z,M),P.$i=!0),M},M.locale=F,M.isDayjs=G,M.unix=function(P){return M(1e3*P)},M.en=I[x],M.Ls=I,M.p={},M})})(Ur);var Hr=Ur.exports;const W=gt(Hr);var Wr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(a,i,l){var f=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},f.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),r):y},f.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=f.parse;f.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var m=f.init;f.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else m.call(this)};var c=f.utcOffset;f.utcOffset=function(h,y){var A=this.$utils().u;if(A(h))return this.$u?0:A(this.$offset)?c.call(this):this.$offset;if(typeof h=="string"&&(h=function(x){x===void 0&&(x="");var I=x.match(n);if(!I)return null;var G=(""+I[0]).match(s)||["-",0,0],F=G[0],M=60*+G[1]+ +G[2];return M===0?0:F==="+"?M:-M}(h),h===null))return this;var T=Math.abs(h)<=16?60*h:h,$=this;if(y)return $.$offset=T,$.$u=h===0,$;if(h!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(T+D,r)).$offset=T,$.$x.$localOffset=D}else $=this.utc();return $};var p=f.format;f.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},f.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var d=f.toDate;f.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=f.diff;f.diff=function(h,y,A){if(h&&this.$u===h.$u)return g.call(this,h,y,A);var T=this.local(),$=l(h).local();return g.call(T,$,y,A)}}})})(Wr);var As=Wr.exports;const Ts=gt(As);var Kr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(s,a,i){var l,f=function(p,d,g){g===void 0&&(g={});var h=new Date(p),y=function(A,T){T===void 0&&(T={});var $=T.timeZoneName||"short",D=A+"|"+$,x=n[D];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),n[D]=x),x}(d,g);return y.formatToParts(h)},u=function(p,d){for(var g=f(p,d),h=[],y=0;y<g.length;y+=1){var A=g[y],T=A.type,$=A.value,D=r[T];D>=0&&(h[D]=parseInt($,10))}var x=h[3],I=x===24?0:x,G=h[0]+"-"+h[1]+"-"+h[2]+" "+I+":"+h[4]+":"+h[5]+":000",F=+p;return(i.utc(G).valueOf()-(F-=F%1e3))/6e4},m=a.prototype;m.tz=function(p,d){p===void 0&&(p=l);var g=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),A=Math.round((h-new Date(y))/1e3/60),T=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-A,!0);if(d){var $=T.utcOffset();T=T.add(g-$,"minute")}return T.$x.$timezone=p,T},m.offsetName=function(p){var d=this.$x.$timezone||i.tz.guess(),g=f(this.valueOf(),d,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return g&&g.value};var c=m.startOf;m.startOf=function(p,d){if(!this.$x||!this.$x.$timezone)return c.call(this,p,d);var g=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(g,p,d).tz(this.$x.$timezone,!0)},i.tz=function(p,d,g){var h=g&&d,y=g||d||l,A=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var T=function(I,G,F){var M=I-60*G*1e3,k=u(M,F);if(G===k)return[M,G];var z=u(M-=60*(k-G)*1e3,F);return k===z?[M,k]:[I-60*Math.min(k,z)*1e3,Math.max(k,z)]}(i.utc(p,h).valueOf(),A,y),$=T[0],D=T[1],x=i($).utcOffset(D);return x.$x.$timezone=y,x},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(Kr);var Os=Kr.exports;const Ps=gt(Os);var Zr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var s=n.prototype,a=s.format;s.format=function(i){var l=this,f=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(c){switch(c){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return f.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return f.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),c==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),c==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return c}});return a.bind(this)(m)}}})})(Zr);var $s=Zr.exports;const Es=gt($s);var qr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(s,a){return this.isSame(s,a)||this.isBefore(s,a)}}})})(qr);var ks=qr.exports;const Ls=gt(ks);var Xr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,s){n.prototype.isBetween=function(a,i,l,f){var u=s(a),m=s(i),c=(f=f||"()")[0]==="(",p=f[1]===")";return(c?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(m,l):!this.isAfter(m,l))||(c?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(m,l):!this.isBefore(m,l))}}})})(Xr);var Ds=Xr.exports;const xs=gt(Ds);var Jr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,s,a){var i=s.prototype,l=i.format;a.en.formats=r,i.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,m=function(c,p){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,h){var y=h&&h.toUpperCase();return g||p[h]||r[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,T,$){return T||$.slice(1)})})}(f,u===void 0?{}:u);return l.call(this,m)}}})})(Jr);var Ms=Jr.exports;const Ns=gt(Ms);var Cs={exports:{}};(function(t,e){(function(r,n){t.exports=n(Hr)})(lt,function(r){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var s=n(r),a={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,f,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,f,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,f,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,f,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,f,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,f,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,f,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,f,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,f,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,f,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,f,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return s.default.locale(a,null,!0),a})})(Cs),W.extend(Ts),W.extend(Ps),W.extend(Es),W.extend(Ns),W.extend(Ls),W.extend(xs);const Qr=()=>W.tz.guess(),Xt=(t="",e="",r="",n="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(n).format(e):""),xt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const s=new Intl.DateTimeFormat(Is(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return s&&s.value},Is=t=>dr.get(t),be=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},tn=t=>{const e=~~(t/60),r=~~t%60;return ge(e,"0",2)+":"+ge(r,"0",2)},en=(t,e="day")=>W().isSameOrBefore(W(t),e),zs=(t,e,r)=>W(t).isBetween(e,W(r)),Bs=(t,e,r="month")=>W(t).isSame(e,r),Rs=["onClick"],Gs={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=bt(),s=ft("timezone-selector"),a=o.computed(()=>xt(new Date,null,r.locale)),i=Qr(),l=o.computed(()=>Array.from(pr.values()).map(u=>({...u,isActive:xt(new Date,r.currentZone,r.locale)===xt(new Date,u.timezone,r.locale),zoneOffsetName:xt(new Date,u.timezone,r.locale)}))),f=u=>e("change",u);return(u,m)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(s))},[o.createVNode(o.unref(sr),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=o.withModifiers(c=>f(o.unref(i)),["prevent"]))},o.toDisplayString(a.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,c=>(o.openBlock(),o.createElementBlock("a",{key:c.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":c.isActive}),onClick:o.withModifiers(p=>f(c.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${c.countryLabelKey}`))+" ("+o.toDisplayString(c.zoneOffsetName)+") ",11,Rs))),128))],2))}},rn=(t,e="",r={})=>{const n=o.ref(""),{t:s}=bt();if(e)try{const l=nn(o.unref(t),e);t=Zo(l,o.unref(t))}catch(l){n.value=l}const a=l=>({...l,...l.label&&{label:s(l.label??"",o.unref(r))},...l.tooltip&&{tooltip:s(l.tooltip??"")}});return{columns:o.computed(()=>pt(a,o.unref(t))),error:n}},nn=(t,e="")=>{const r=pt(Ut,Ot(",",e)),n=dt(t);if(r[0]==="")return resolve([]);const s=r.findIndex(a=>!n.includes(a));if(s>-1)throw r[s];return r};class on extends Error{constructor(e,r={}){const{key:n,cause:s}=r;super(e),this.name="WidgetError",this.key=n,this.cause=s}}const we={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Vs={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},js={class:"is-portrait-image"},Fs={class:"is-team-name-long"},Ys={class:"is-team-name-short"},Us=["href"],Hs={class:"is-team-name-long"},Ws={class:"is-team-name-short"},Ks=["href"],Zs={__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:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:HTMLElement,default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:n}=Vr(),s=o.computed(()=>r.columns),{columns:a,error:i}=rn(s,r.hideColumns);i.value&&n(new on(we.message,{...we.options,cause:{column:i.value}}));const l=f=>e("sort",f);return(f,u)=>(o.openBlock(),o.createBlock(Yr,null,{default:o.withCtx(({el:m})=>[o.createVNode(zr,{columns:o.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:l},o.createSlots({"cell-index":o.withCtx(({row:c})=>[o.createElementVNode("span",{class:o.normalizeClass(c.indexClass)},o.toDisplayString(c.index),3)]),"cell-playerPortrait":o.withCtx(({row:c})=>[o.createElementVNode("div",js,[(o.openBlock(),o.createBlock(ye,{key:c.id||c.playerId,src:c.playerPortrait,"default-src":o.unref(cr)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:c})=>[(o.openBlock(),o.createBlock(ye,{class:"is-logo-image",key:c.team.id||c.id,src:c.team.logo},null,8,["src"]))]),"cell-teamName":o.withCtx(({row:c})=>[o.createElementVNode("span",Fs,o.toDisplayString(c.team.longName),1),o.createElementVNode("span",Ys,o.toDisplayString(c.team.shortName),1)]),loading:o.withCtx(()=>[o.createVNode(Fr)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:o.withCtx(({row:c})=>[o.createElementVNode("a",{href:t.externalTeamResolver(c.team.longName),target:"_blank"},[o.createElementVNode("span",Hs,o.toDisplayString(c.team.longName),1),o.createElementVNode("span",Ws,o.toDisplayString(c.team.shortName),1)],8,Us)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:c})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(c.id),target:"_blank"},o.toDisplayString(c.name),9,Ks)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},qs={};function Xs(t,e){return o.openBlock(),o.createElementBlock("div",null," Test-8 ")}const Js=jr(qs,[["render",Xs]]),an=async(t,e,r)=>{const n=`${ir}${o.unref(t)}?${Qs(r)}`;return new Promise((s,a)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ti(e)}}).then(i=>i.json()).then(i=>{if(i.error)return a(i);s(i.data)}).catch(i=>{a(i)})})},Qs=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ti=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},ei=(t={})=>{const{initial:e=1,items:r=[],limit:n,auto:s=!1}=t,a=o.ref(e),i=u=>en(u,"day");return bn(r,()=>{if(!s)return;const u=xo(Xo(i,"gameDate"))(o.unref(r));a.value=u===-1?1:Math.floor(u/n)+1}),{page:a,change:u=>{a.value=u}}},ri=({options:t={},transform:e=s=>s,onError:r=rt,onSuccess:n=rt})=>{const{path:s,apiKey:a,params:i}=t,{state:l,error:f,isLoading:u,execute:m}=ke(()=>an(s,a,o.unref(i)).then(c=>e(c)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:n});return{state:l,error:f,isLoading:u,execute:m}};/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
11
11
|
|
|
12
12
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(S,o){"use strict";const ft=t=>({}.VITE_CSS_CLAS
|
|
|
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 an(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,s,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}var sn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(sn||(sn={}));var ai={type:"xstate.init"};function we(t){return t===void 0?[]:[].concat(t)}function ln(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 ve(t){return function(e){return t===e}}function si(t){return typeof t=="string"?{type:t}:t}function cn(t,e){return{value:t,context:e,actions:[],changed:!1,matches:ve(t)}}function un(t,e,r){var n=e,s=!1;return[t.filter(function(a){if(a.type==="xstate.assign"){s=!0;var i=Object.assign({},n);return typeof a.assignment=="function"?i=a.assignment(n,r):Object.keys(a.assignment).forEach(function(l){i[l]=typeof a.assignment[l]=="function"?a.assignment[l](n,r):a.assignment[l]}),n=i,!1}return!0}),n,s]}function ii(t,e){e===void 0&&(e={});var r=an(un(we(t.states[t.initial].entry).map(function(i){return ln(i,e.actions)}),t.context,ai),2),n=r[0],s=r[1],a={config:t,_options:e,initialState:{value:t.initial,actions:n,context:s,matches:ve(t.initial)},transition:function(i,l){var f,u,m=typeof i=="string"?{value:i,context:t.context}:i,c=m.value,p=m.context,d=si(l),g=t.states[c];if(g.on){var h=we(g.on[d.type]);try{for(var y=function(w){var E=typeof Symbol=="function"&&Symbol.iterator,L=E&&w[E],N=0;if(L)return L.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&N>=w.length&&(w=void 0),{value:w&&w[N++],done:!w}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),A=y.next();!A.done;A=y.next()){var T=A.value;if(T===void 0)return cn(c,p);var $=typeof T=="string"?{target:T}:T,D=$.target,x=$.actions,I=x===void 0?[]:x,G=$.cond,F=G===void 0?function(){return!0}:G,M=D===void 0,k=D??c,z=t.states[k];if(F(p,d)){var U=an(un((M?we(I):[].concat(g.exit,I,z.entry).filter(function(w){return w})).map(function(w){return ln(w,a._options.actions)}),p,d),3),P=U[0],_=U[1],v=U[2],O=D??c;return{value:O,context:_,actions:P,changed:D!==c||P.length>0||v,matches:ve(O)}}}}catch(w){f={error:w}}finally{try{A&&!A.done&&(u=y.return)&&u.call(y)}finally{if(f)throw f.error}}}return cn(c,p)}};return a}const li=ii({id:"sort",initial:ot,states:{[ot]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:ot}},[C]:{on:{DIRECTION1:ot,DIRECTION2:b}}}}),ci=(t,e)=>{const r=e===C?"DIRECTION2":"DIRECTION1";return li.transition(t,r).value};function ui(t={}){const{sortTarget:e=null,orders:r=[]}=t,n=o.reactive({sortTarget:e,orders:r});return{sort:n,change:({target:a,orders:i})=>{if(n.sortTarget!==a){n.sortTarget=a,n.orders=i;return}const l=i.map((f,u)=>({...f,direction:ci(n.orders[u].direction,f.direction)}));n.sortTarget=a,n.orders=l}}}function fi(t=!1,e=rt,r=rt){const n=$n();o.watch(n,s=>{if(o.unref(t)){if(s==="visible")return e();r()}})}const di=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],n=!1){if(e){const s=r.map(i=>n?Xo(i,e):Je(bt(i),na,zo(e))),a=je(lo([...s]),this.result);this.isFiltered=!0,this.filteredRowsLength=a.length,this.result=a}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ot)return this;const r=Co(Vt(C),Ze(Xe),Ze(Oo));return this.result=er(e.orders.map(n=>Qe(r(n.direction),bt)(n.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,n,s)=>{const a=r[r.length-1]||[],i=e&&a[e]===n[e];return n.index=i?a.index:s+1,n.indexClass=i?"is-duplicated":null,r.push(n),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){e=Number(e),r=Number(r);const n=(e-1)*r,s=n+r;return this.result=this.result.slice(n,s),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},schedule(e="",r="hu"){return this.result=this.result.map(n=>({...n,gameResult:`${n.homeTeamScore}-${n.awayTeamScore}`,gameDateDate:Xt(n.gameDate,"L dddd",e,r),gameDateTime:Xt(n.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(n=>r[n]?r[`${n}Sec`]=ye(r[n]):r),r)),this},groupByDays(){return this.result=Mo(e=>Xt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),pi=(t,...e)=>pt(Qe(...e))(t),mi=t=>({...t,...t.lastName&&{name:`${t.lastName} ${t.firstName}`}}),hi=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},gi=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=ye(e[r]):e),e),yi=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=Qr(e[r])),e),bi=er([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Xe(bt("id"))]),wi=(t,e)=>{const r=Se("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:ir+e},vi=(t,e)=>{const r=Se("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:ur+e)},Si=(t,e)=>{const r=Se("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:cr+e)},Se=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},_i={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},fn={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Ai={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...fn},Ti={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Oi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:C}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Pi={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},$i={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},g:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"g",direction:b},{target:"a",direction:b}]},a:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"a",direction:b},{target:"g",direction:b}]},point:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"point",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoot:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoot",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Ei={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},ki={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mip:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mipSec",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Li={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Di={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},xi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTime:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTimeSec",direction:b}]},dvgTimePP1:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1Sec",direction:b}]},dvgTimePP2:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Mi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTime:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTimeSec",direction:b}]},advTimePP1:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1Sec",direction:b}]},advTimePP2:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2Sec",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Ni={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},m:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},plus:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"plus",direction:b}]},minus:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"minus",direction:C}]},gk:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gk",direction:b}]},GFGP:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"GFGP",direction:b}]},GAGP:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"GAGP",direction:C}]},Shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"Shots",direction:b}]},SA:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"SA",direction:C}]},ShotsGP:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"ShotsGP",direction:b}]},SAGP:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"SAGP",direction:C}]},GFShots:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"GFShots",direction:b}]}},Ci=({modules:t=[],apiKey:e,gameResolver:r,teamResolver:n,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:r,teamResolver:n,playerResolver:s},t.length===0)throw new Error("At least one module must be set");t.forEach(a=>{if(a.register)return a.register();a==null||a()})};return S.AVAILABLE_TIMEZONES_BY_COUNTRY=dr,S.BaseSelect=dn,S.COLUMNS_FIELD_PLAYERS=$i,S.COLUMNS_FIELD_PLAYERS_PENALTY=Ei,S.COLUMNS_GOALIES=ki,S.COLUMNS_SCHEDULE=Ti,S.COLUMNS_SCORING_EFFICIENCY=Ni,S.COLUMNS_STANDINGS_P_2=Pi,S.COLUMNS_STANDINGS_P_3=Oi,S.COLUMNS_TEAMS_FAIRPLAY=Di,S.COLUMNS_TEAMS_PENALTY_KILLING=xi,S.COLUMNS_TEAMS_POWERPLAY=Mi,S.COLUMNS_TEAM_ATTENDANCE=Li,S.DEFAULT_EXTERNAL_BASE_URL=ir,S.DEFAULT_EXTERNAL_PLAYER_URL=cr,S.DEFAULT_EXTERNAL_TEAM_URL=ur,S.DEFAULT_PORTRAIT_IMAGE_URL=lr,S.DataTable=Ir,S.ErrorNotice=Ka,S.ErrorProvider=Za,S.FloatingPanel=Cr,S.I18NProvider=es,S.Image=ge,S.InvalidSeasonName=Fs,S.LAZY_LOADING_STATE_DELAY=pr,S.LOCALE_FOR_LANG=fr,S.LoadingIndicator=jr,S.Paginator=Ts,S.REFRESH_DELAY=ca,S.ResponsiveTable=Fr,S.SORT_STATE_ASCEND=C,S.SORT_STATE_DESCEND=b,S.SORT_STATE_ORIGINAL=ot,S.StatisticsTable=Xs,S.Test=ti,S.TimezoneSelector=js,S.UndefinedColumn=be,S.VBR_API_BASE_URL=sr,S.WidgetError=nn,S.appendTo=Nr,S.baseProps=_i,S.convert=di,S.convertMinToSec=ye,S.convertSecToMin=Qr,S.convertTimes=gi,S.convertTimesSecToMin=yi,S.createConfig=Ci,S.createI18n=nr,S.externalGameLinkResolver=wi,S.externalPlayerLinkResolver=Si,S.externalTeamLinkResolver=vi,S.fetchVBRData=on,S.format=Xt,S.getLocalTimezone=Jr,S.i18n=ar,S.isBetween=Rs,S.isSame=Gs,S.isSameOrBefore=tn,S.offsetName=xt,S.playerName=mi,S.playerStatsProps=Ai,S.rawConvert=pi,S.sortGames=bi,S.stringPadLeft=he,S.teamStatsProps=fn,S.toKebabCase=zr,S.upperCase=hi,S.useColumns=en,S.useError=Gr,S.useErrorProvider=Rr,S.useI18n=wt,S.useLazyLoadingState=De,S.useMainClass=ft,S.usePage=ni,S.useServices=oi,S.useSort=ui,S.useVisibilityChange=fi,S.validateColumnsName=rn,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);
|
|
22
|
+
***************************************************************************** */function sn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,s,a=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}var ln;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(ln||(ln={}));var ni={type:"xstate.init"};function ve(t){return t===void 0?[]:[].concat(t)}function cn(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 Se(t){return function(e){return t===e}}function oi(t){return typeof t=="string"?{type:t}:t}function un(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Se(t)}}function fn(t,e,r){var n=e,s=!1;return[t.filter(function(a){if(a.type==="xstate.assign"){s=!0;var i=Object.assign({},n);return typeof a.assignment=="function"?i=a.assignment(n,r):Object.keys(a.assignment).forEach(function(l){i[l]=typeof a.assignment[l]=="function"?a.assignment[l](n,r):a.assignment[l]}),n=i,!1}return!0}),n,s]}function ai(t,e){e===void 0&&(e={});var r=sn(fn(ve(t.states[t.initial].entry).map(function(i){return cn(i,e.actions)}),t.context,ni),2),n=r[0],s=r[1],a={config:t,_options:e,initialState:{value:t.initial,actions:n,context:s,matches:Se(t.initial)},transition:function(i,l){var f,u,m=typeof i=="string"?{value:i,context:t.context}:i,c=m.value,p=m.context,d=oi(l),g=t.states[c];if(g.on){var h=ve(g.on[d.type]);try{for(var y=function(w){var E=typeof Symbol=="function"&&Symbol.iterator,L=E&&w[E],N=0;if(L)return L.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&N>=w.length&&(w=void 0),{value:w&&w[N++],done:!w}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),A=y.next();!A.done;A=y.next()){var T=A.value;if(T===void 0)return un(c,p);var $=typeof T=="string"?{target:T}:T,D=$.target,x=$.actions,I=x===void 0?[]:x,G=$.cond,F=G===void 0?function(){return!0}:G,M=D===void 0,k=D??c,z=t.states[k];if(F(p,d)){var U=sn(fn((M?ve(I):[].concat(g.exit,I,z.entry).filter(function(w){return w})).map(function(w){return cn(w,a._options.actions)}),p,d),3),P=U[0],_=U[1],v=U[2],O=D??c;return{value:O,context:_,actions:P,changed:D!==c||P.length>0||v,matches:Se(O)}}}}catch(w){f={error:w}}finally{try{A&&!A.done&&(u=y.return)&&u.call(y)}finally{if(f)throw f.error}}}return un(c,p)}};return a}const si=ai({id:"sort",initial:nt,states:{[nt]:{on:{DIRECTION1:b,DIRECTION2:C}},[b]:{on:{DIRECTION1:C,DIRECTION2:nt}},[C]:{on:{DIRECTION1:nt,DIRECTION2:b}}}}),ii=(t,e)=>{const r=e===C?"DIRECTION2":"DIRECTION1";return si.transition(t,r).value};function li(t={}){const{sortTarget:e=null,orders:r=[]}=t,n=o.reactive({sortTarget:e,orders:r});return{sort:n,change:({target:a,orders:i})=>{if(n.sortTarget!==a){n.sortTarget=a,n.orders=i;return}const l=i.map((f,u)=>({...f,direction:ii(n.orders[u].direction,f.direction)}));n.sortTarget=a,n.orders=l}}}function ci(t=!1,e=rt,r=rt){const n=En();o.watch(n,s=>{if(o.unref(t)){if(s==="visible")return e();r()}})}const ui=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,r=[],n=!1){if(e){const s=r.map(i=>n?ce(er(i),Vt(e)):ce(Tt(i),ea,Bo(e))),a=Fe(co([...s]),this.result);this.isFiltered=!0,this.filteredRowsLength=a.length,this.result=a}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===nt)return this;const r=Io(Vt(C),Xe(Je),Xe(Po));return this.result=rr(e.orders.map(n=>Qe(r(n.direction),Tt)(n.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,n,s)=>{const a=r[r.length-1]||[],i=e&&a[e]===n[e];return n.index=i?a.index:s+1,n.indexClass=i?"is-duplicated":null,r.push(n),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){e=Number(e),r=Number(r);const n=(e-1)*r,s=n+r;return this.result=this.result.slice(n,s),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},schedule(e="",r="hu"){return this.result=this.result.map(n=>({...n,gameResult:`${n.homeTeamScore}-${n.awayTeamScore}`,gameDateDate:Xt(n.gameDate,"L dddd",e,r),gameDateTime:Xt(n.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(n=>r[n]?r[`${n}Sec`]=be(r[n]):r),r)),this},groupByDays(){return this.result=No(e=>Xt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),fi=(t,...e)=>pt(Qe(...e))(t),di=t=>({...t,...t.lastName&&{name:`${t.lastName} ${t.firstName}`}}),pi=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},mi=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=be(e[r]):e),e),hi=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=tn(e[r])),e),gi=rr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Je(Tt("id"))]),yi=(t,e)=>{const r=_e("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:lr+e},bi=(t,e)=>{const r=_e("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:fr+e)},wi=(t,e)=>{const r=_e("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(r?r+e:ur+e)},_e=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},vi={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},dn={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Si={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...dn},_i={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Ai={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:C}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Ti={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:C}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:C}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Oi={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},g:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"g",direction:b},{target:"a",direction:b}]},a:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"a",direction:b},{target:"g",direction:b}]},point:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"point",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shoot:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shoot",direction:b}]},shootPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Pi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},$i={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:C}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:C}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mip:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mipSec",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Ei={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},ki={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Li={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTime:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTimeSec",direction:b}]},dvgTimePP1:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1Sec",direction:b}]},dvgTimePP2:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Di={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTime:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTimeSec",direction:b}]},advTimePP1:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1Sec",direction:b}]},advTimePP2:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2Sec",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},xi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:C}]},m:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},plus:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"plus",direction:b}]},minus:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"minus",direction:C}]},gk:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gk",direction:b}]},GFGP:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"GFGP",direction:b}]},GAGP:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"GAGP",direction:C}]},Shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"Shots",direction:b}]},SA:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"SA",direction:C}]},ShotsGP:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"ShotsGP",direction:b}]},SAGP:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"SAGP",direction:C}]},GFShots:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"GFShots",direction:b}]}},Mi=({modules:t=[],apiKey:e,gameResolver:r,teamResolver:n,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:r,teamResolver:n,playerResolver:s},t.length===0)throw new Error("At least one module must be set");t.forEach(a=>{if(a.register)return a.register();a==null||a()})};return S.AVAILABLE_TIMEZONES_BY_COUNTRY=pr,S.BaseSelect=pn,S.COLUMNS_FIELD_PLAYERS=Oi,S.COLUMNS_FIELD_PLAYERS_PENALTY=Pi,S.COLUMNS_GOALIES=$i,S.COLUMNS_SCHEDULE=_i,S.COLUMNS_SCORING_EFFICIENCY=xi,S.COLUMNS_STANDINGS_P_2=Ti,S.COLUMNS_STANDINGS_P_3=Ai,S.COLUMNS_TEAMS_FAIRPLAY=ki,S.COLUMNS_TEAMS_PENALTY_KILLING=Li,S.COLUMNS_TEAMS_POWERPLAY=Di,S.COLUMNS_TEAM_ATTENDANCE=Ei,S.DEFAULT_EXTERNAL_BASE_URL=lr,S.DEFAULT_EXTERNAL_PLAYER_URL=ur,S.DEFAULT_EXTERNAL_TEAM_URL=fr,S.DEFAULT_PORTRAIT_IMAGE_URL=cr,S.DataTable=zr,S.ErrorNotice=Ha,S.ErrorProvider=Ka,S.FloatingPanel=Ir,S.I18NProvider=Qa,S.Image=ye,S.InvalidSeasonName=Vs,S.LAZY_LOADING_STATE_DELAY=mr,S.LOCALE_FOR_LANG=dr,S.LoadingIndicator=Fr,S.Paginator=_s,S.REFRESH_DELAY=ia,S.ResponsiveTable=Yr,S.SORT_STATE_ASCEND=C,S.SORT_STATE_DESCEND=b,S.SORT_STATE_ORIGINAL=nt,S.StatisticsTable=Zs,S.Test=Js,S.TimezoneSelector=Gs,S.UndefinedColumn=we,S.VBR_API_BASE_URL=ir,S.WidgetError=on,S.appendTo=Cr,S.baseProps=vi,S.convert=ui,S.convertMinToSec=be,S.convertSecToMin=tn,S.convertTimes=mi,S.convertTimesSecToMin=hi,S.createConfig=Mi,S.createI18n=or,S.externalGameLinkResolver=yi,S.externalPlayerLinkResolver=wi,S.externalTeamLinkResolver=bi,S.fetchVBRData=an,S.format=Xt,S.getLocalTimezone=Qr,S.i18n=sr,S.isBetween=zs,S.isSame=Bs,S.isSameOrBefore=en,S.offsetName=xt,S.playerName=di,S.playerStatsProps=Si,S.rawConvert=fi,S.sortGames=gi,S.stringPadLeft=ge,S.teamStatsProps=dn,S.toKebabCase=Br,S.upperCase=pi,S.useColumns=rn,S.useError=Vr,S.useErrorProvider=Gr,S.useI18n=bt,S.useLazyLoadingState=xe,S.useMainClass=ft,S.usePage=ei,S.useServices=ri,S.useSort=li,S.useVisibilityChange=ci,S.validateColumnsName=nn,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);
|