@mjsz-vbr-elements/extended 2.1.0-beta.26 → 2.1.0-beta.28
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 +12 -12
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +931 -897
- package/package.json +3 -3
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/extended
|
|
3
|
-
* version: v2.1.0-beta.
|
|
3
|
+
* version: v2.1.0-beta.28 - 06/10/2023, 16:58:17
|
|
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 MjszVbrElementsExtended=function(ht,o){"use strict";const rt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Oe={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=rt("base-input"),a=o.computed({get:()=>r.modelValue,set:i=>e("update:modelValue",i)});return(i,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>a.value=l),class:o.normalizeClass([o.unref(n),"is-select"])},[o.renderSlot(i.$slots,"default")],2)),[[o.vModelSelect,a.value]])}};function Pe(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():o.unref(t)}const te=typeof window<"u",bt=()=>{},wn=xn();function xn(){var t;return te&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function ee(t,e=!1,r="Timeout"){return new Promise((n,a)=>{setTimeout(e?()=>a(r):n,t)})}function re(t,e=!1){function r(u,{flush:f="sync",deep:m=!1,timeout:b,throwOnTimeout:g}={}){let h=null;const v=[new Promise(w=>{h=o.watch(t,y=>{u(y)!==e&&(h==null||h(),w(y))},{flush:f,deep:m,immediate:!0})})];return b!=null&&v.push(ee(b,g).then(()=>tt(t)).finally(()=>h==null?void 0:h())),Promise.race(v)}function n(u,f){if(!o.isRef(u))return r(y=>y===u,f);const{flush:m="sync",deep:b=!1,timeout:g,throwOnTimeout:h}=f??{};let v=null;const w=[new Promise(y=>{v=o.watch([t,u],([S,E])=>{e!==(S===E)&&(v==null||v(),y(S))},{flush:m,deep:b,immediate:!0})})];return g!=null&&w.push(ee(g,h).then(()=>tt(t)).finally(()=>(v==null||v(),tt(t)))),Promise.race(w)}function a(u){return r(f=>!!f,u)}function i(u){return n(null,u)}function s(u){return n(void 0,u)}function l(u){return r(Number.isNaN,u)}function c(u,f){return r(m=>{const b=Array.from(m);return b.includes(u)||b.includes(tt(u))},f)}function p(u){return d(1,u)}function d(u=1,f){let m=-1;return r(()=>(m+=1,m>=u),f)}return Array.isArray(tt(t))?{toMatch:r,toContains:c,changed:p,changedTimes:d,get not(){return re(t,!e)}}:{toMatch:r,toBe:n,toBeTruthy:a,toBeNull:i,toBeNaN:l,toBeUndefined:s,changed:p,changedTimes:d,get not(){return re(t,!e)}}}function kn(t){return re(t)}function zn(t,e,r={}){const{immediate:n=!0}=r,a=o.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function c(...p){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...p)},tt(e))}return n&&(a.value=!0,te&&c()),Pe(l),{isPending:o.readonly(a),start:c,stop:l}}function Sn(t,e,r){return o.watch(t,(n,a,i)=>{n&&e(n,a,i)},r)}function zt(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Ne=te?window:void 0;function ne(...t){let e,r,n,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,a]=t,e=Ne):[e,r,n,a]=t,!e)return bt;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},l=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),c=o.watch(()=>[zt(e),tt(a)],([d,u])=>{s(),d&&i.push(...r.flatMap(f=>n.map(m=>l(d,f,m,u))))},{immediate:!0,flush:"post"}),p=()=>{c(),s()};return Pe(p),p}let De=!1;function jn(t,e,r={}){const{window:n=Ne,ignore:a=[],capture:i=!0,detectIframe:s=!1}=r;if(!n)return;wn&&!De&&(De=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",bt)));let l=!0;const c=d=>a.some(u=>{if(typeof u=="string")return Array.from(n.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=zt(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[ne(n,"click",d=>{const u=zt(t);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:i}),ne(n,"pointerdown",d=>{const u=zt(t);u&&(l=!d.composedPath().includes(u)&&!c(d))},{passive:!0}),s&&ne(n,"blur",d=>{var u;const f=zt(t);((u=n.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(n.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var An=Object.defineProperty,En=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Me=(t,e,r)=>e in t?An(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)&&Me(t,r,e[r]);if($e)for(var r of $e(e))On.call(e,r)&&Me(t,r,e[r]);return t},Nn=(t,e)=>En(t,_n(e));function Ve(t,e,r){const{immediate:n=!0,delay:a=0,onError:i=bt,onSuccess:s=bt,resetOnExecute:l=!0,shallow:c=!0,throwError:p}=r??{},d=c?o.shallowRef(e):o.ref(e),u=o.ref(!1),f=o.ref(!1),m=o.shallowRef(void 0);async function b(v=0,...w){l&&(d.value=e),m.value=void 0,u.value=!1,f.value=!0,v>0&&await ee(v);const y=typeof t=="function"?t(...w):t;try{const S=await y;d.value=S,u.value=!0,s(S)}catch(S){if(m.value=S,i(S),p)throw S}finally{f.value=!1}return d.value}n&&b(a);const g={state:d,isReady:u,isLoading:f,error:m,execute:b};function h(){return new Promise((v,w)=>{kn(f).toBe(!1).then(()=>v(g)).catch(w)})}return Nn(Pn({},g),{then(v,w){return h().then(v,w)}})}var Dn=Object.defineProperty,Be=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Ce=(t,e,r)=>e in t?Dn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vn=(t,e)=>{for(var r in e||(e={}))$n.call(e,r)&&Ce(t,r,e[r]);if(Be)for(var r of Be(e))Mn.call(e,r)&&Ce(t,r,e[r]);return t};async function Bn(t){return new Promise((e,r)=>{const n=new Image,{src:a,srcset:i,sizes:s,class:l,loading:c,crossorigin:p}=t;n.src=a,i&&(n.srcset=i),s&&(n.sizes=s),l&&(n.className=l),c&&(n.loading=c),p&&(n.crossOrigin=p),n.onload=()=>e(n),n.onerror=r})}function Cn(t,e={}){const r=Ve(()=>Bn(tt(t)),void 0,Vn({resetOnExecute:!0},e));return o.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function Ie(t=[],e={}){const{delay:r=0}=e,n=o.ref(!1),a=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(c=>o.unref(c)).some(Boolean):l}),{start:i,stop:s}=zn(()=>{n.value=!0},r);return o.watch(a,l=>{if(l)return i();s(),n.value=!1},{immediate:!0,deep:!0}),n}function B(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function R(t){return function e(r){return arguments.length===0||B(r)?e:t.apply(this,arguments)}}function I(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return B(r)?e:R(function(a){return t(r,a)});default:return B(r)&&B(n)?e:B(r)?R(function(a){return t(a,n)}):B(n)?R(function(a){return t(r,a)}):t(r,n)}}}function Bt(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,a){return e.apply(this,arguments)};case 4:return function(r,n,a,i){return e.apply(this,arguments)};case 5:return function(r,n,a,i,s){return e.apply(this,arguments)};case 6:return function(r,n,a,i,s,l){return e.apply(this,arguments)};case 7:return function(r,n,a,i,s,l,c){return e.apply(this,arguments)};case 8:return function(r,n,a,i,s,l,c,p){return e.apply(this,arguments)};case 9:return function(r,n,a,i,s,l,c,p,d){return e.apply(this,arguments)};case 10:return function(r,n,a,i,s,l,c,p,d,u){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function oe(t,e,r){return function(){for(var n=[],a=0,i=t,s=0;s<e.length||a<arguments.length;){var l;s<e.length&&(!B(e[s])||a>=arguments.length)?l=e[s]:(l=arguments[a],a+=1),n[s]=l,B(l)||(i-=1),s+=1}return i<=0?r.apply(this,n):Bt(i,oe(t,n,r))}}var Ct=I(function(t,e){return t===1?R(e):Bt(t,oe(t,[],e))});function dt(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return B(r)?e:I(function(i,s){return t(r,i,s)});case 2:return B(r)&&B(n)?e:B(r)?I(function(i,s){return t(i,n,s)}):B(n)?I(function(i,s){return t(r,i,s)}):R(function(i){return t(r,n,i)});default:return B(r)&&B(n)&&B(a)?e:B(r)&&B(n)?I(function(i,s){return t(i,s,a)}):B(r)&&B(a)?I(function(i,s){return t(i,n,s)}):B(n)&&B(a)?I(function(i,s){return t(r,i,s)}):B(r)?R(function(i){return t(i,n,a)}):B(n)?R(function(i){return t(r,i,a)}):B(a)?R(function(i){return t(r,n,i)}):t(r,n,a)}}}const It=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function In(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function ae(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!It(n)){for(var a=0;a<t.length;){if(typeof n[t[a]]=="function")return n[t[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(In(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}function Ln(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const St={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Le(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Ge(t,e,r){for(var n=0,a=r.length;n<a;){if(t(e,r[n]))return!0;n+=1}return!1}function Gn(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 Rn(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ie=typeof Object.is=="function"?Object.is:Rn;var Re=Object.prototype.toString,Fe=function(){return Re.call(arguments)==="[object Arguments]"?function(t){return Re.call(t)==="[object Arguments]"}:function(t){return et("callee",t)}}(),Fn=!{toString:null}.propertyIsEnumerable("toString"),He=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ye=function(){return arguments.propertyIsEnumerable("length")}(),Hn=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},pt=R(typeof Object.keys=="function"&&!Ye?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,r,n=[],a=Ye&&Fe(t);for(e in t)et(e,t)&&(!a||e!=="length")&&(n[n.length]=e);if(Fn)for(r=He.length-1;r>=0;)e=He[r],et(e,t)&&!Hn(n,e)&&(n[n.length]=e),r-=1;return n}),se=R(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function We(t,e,r,n){var a=Le(t),i=Le(e);function s(l,c){return le(l,c,r.slice(),n.slice())}return!Ge(function(l,c){return!Ge(s,c,l)},i,a)}function le(t,e,r,n){if(ie(t,e))return!0;var a=se(t);if(a!==se(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Gn(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ie(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ie(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 i=r.length-1;i>=0;){if(r[i]===t)return n[i]===e;i-=1}switch(a){case"Map":return t.size!==e.size?!1:We(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:We(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 s=pt(t);if(s.length!==pt(e).length)return!1;var l=r.concat([t]),c=n.concat([e]);for(i=s.length-1;i>=0;){var p=s[i];if(!(et(p,e)&&le(e[p],t[p],l,c)))return!1;i-=1}return!0}var Lt=I(function(t,e){return le(t,e,[],[])});function Yn(t,e,r){var n,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(a=t[r],a===0&&1/a===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(a=t[r],typeof a=="number"&&a!==a)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Lt(t[r],e))return r;r+=1}return-1}function Ue(t,e){return Yn(e,t,0)>=0}function Gt(t,e){for(var r=0,n=e.length,a=Array(n);r<n;)a[r]=t(e[r]),r+=1;return a}function ce(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 jt=function(t){return(t<10?"0":"")+t},Wn=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+jt(t.getUTCMonth()+1)+"-"+jt(t.getUTCDate())+"T"+jt(t.getUTCHours())+":"+jt(t.getUTCMinutes())+":"+jt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Un(t){return function(){return!t.apply(this,arguments)}}function Ke(t,e,r){for(var n=0,a=r.length;n<a;)e=t(e,r[n]),n+=1;return e}function Kn(t,e){for(var r=0,n=e.length,a=[];r<n;)t(e[r])&&(a[a.length]=e[r]),r+=1;return a}function Rt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Zn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Jn(t){return function(e){return new Zn(t,e)}}var Ze=I(ae(["fantasy-land/filter","filter"],Jn,function(t,e){return Rt(e)?Ke(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},pt(e)):Kn(t,e)})),qn=I(function(t,e){return Ze(Un(t),e)});function Je(t,e){var r=function(i){var s=e.concat([t]);return Ue(i,s)?"<Circular>":Je(i,s)},n=function(i,s){return Gt(function(l){return ce(l)+": "+r(i[l])},s.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Gt(r,t).join(", ")+"))";case"[object Array]":return"["+Gt(r,t).concat(n(t,qn(function(i){return/^\d+$/.test(i)},pt(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):ce(Wn(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())+")":ce(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+n(t,pt(t)).join(", ")+"}"}}var ue=R(function(t){return Je(t,[])}),Xn=I(function(t,e){if(t===e)return e;function r(l,c){if(l>c!=c>l)return c>l?c:l}var n=r(t,e);if(n!==void 0)return n;var a=r(typeof t,typeof e);if(a!==void 0)return a===typeof t?t:e;var i=ue(t),s=r(i,ue(e));return s!==void 0&&s===i?t:e}),Qn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),to=function(t){return function(e){return new Qn(t,e)}},eo=I(ae(["fantasy-land/map","map"],to,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Ct(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return Ke(function(r,n){return r[n]=t(e[n]),r},{},pt(e));default:return Gt(t,e)}}));const yt=eo,qe=Number.isInteger||function(t){return t<<0===t};function Ft(t){return Object.prototype.toString.call(t)==="[object String]"}var Xe=I(function(t,e){var r=t<0?e.length+t:t;return Ft(e)?e.charAt(r):e[r]}),ro=I(function(t,e){if(e!=null)return qe(t)?Xe(t,e):e[t]});const Ht=ro;var no=I(function(t,e){return yt(Ht(t),e)}),oo=R(function(t){return It(t)?!0:!t||typeof t!="object"||Ft(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Qe=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ao(t,e,r){return function(n,a,i){if(oo(i))return t(n,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(n,a,i,"fantasy-land/reduce");if(i[Qe]!=null)return r(n,a,i[Qe]());if(typeof i.next=="function")return r(n,a,i);if(typeof i.reduce=="function")return e(n,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function io(t,e,r){for(var n=0,a=r.length;n<a;){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 so=I(function(t,e){return Bt(t.length,function(){return t.apply(e,arguments)})});function lo(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 co(t,e,r,n){return t["@@transducer/result"](r[n](so(t["@@transducer/step"],t),e))}var tr=ao(io,co,lo),uo=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 er(t){return new uo(t)}var po=dt(function(t,e,r){return tr(typeof t=="function"?er(t):t,e,r)});const rr=po;var fo=R(function(t){return function(){return t}});const nr=fo;var mo=R(function(t){return Ct(rr(Xn,0,no("length",t)),function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})});const go=mo;var ho=dt(function(t,e,r){var n=t(e),a=t(r);return n<a?-1:n>a?1:0});const or=ho;function bo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function yo(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 de(t,e,r){if(r||(r=new wo),vo(t))return t;var n=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=e?de(t[s],!0,r):t[s]);return a};switch(se(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return yo(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function vo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var wo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const n=this.hash(e);let a=this.map[n];a||(this.map[n]=a=[]),a.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 a in this.map){const i=this.map[a];for(let s=0;s<i.length;s+=1){const l=i[s];if(l[0]===e)return l[1]}}return}const r=this.hash(e),n=this.map[r];if(n)for(let a=0;a<n.length;a+=1){const i=n[a];if(i[0]===e)return i[1]}},t}();function xo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function pe(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return It(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var ko=dt(pe("slice",function(t,e,r){return Array.prototype.slice.call(r,t,e)})),zo=R(pe("tail",ko(1,1/0)));const So=zo;function fe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Bt(arguments[0].length,rr(xo,arguments[0],So(arguments)))}var jo=R(function(t){return Ft(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const Ao=jo;function Eo(){if(arguments.length===0)throw new Error("compose requires at least one argument");return fe.apply(this,Ao(arguments))}var _o=function(){function t(e,r,n,a){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=St.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,de(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t}();function To(t,e,r){return function(n){return new _o(t,e,r,n)}}var Oo=oe(4,[],ae([],To,function(t,e,r,n){var a=er(function(i,s){var l=r(s),c=t(et(l,i)?i[l]:de(e,!1),s);return c&&c["@@transducer/reduced"]?Ln(i):(i[l]=c,i)});return tr(a,{},n)})),Po=dt(function(t,e,r){var n=t(e),a=t(r);return n>a?-1:n<a?1:0});const No=Po;function Do(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=R(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():It(t)?[]:Ft(t)?"":Rt(t)?{}:Fe(t)?function(){return arguments}():Do(t)?t.constructor.from(""):void 0}),Mo=I(pe("groupBy",Oo(function(t,e){return t.push(e),t},[])));const Vo=Mo;var Bo=dt(function(t,e,r){return Ct(Math.max(t.length,e.length,r.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):r.apply(this,arguments)})});const Co=Bo;var Io=I(Ue);const Lo=Io;var Go=I(function(t,e){return Ct(t+1,function(){var r=arguments[t];if(r!=null&&bo(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(ue(r)+' does not have a method named "'+e+'"')})});const ar=Go;var Ro=R(function(t){return t!=null&&Lt(t,$o(t))});const Fo=Ro;var Ho=I(function(t,e){return t.map(function(r){for(var n=e,a=0,i;a<r.length;){if(n==null)return;i=r[a],n=qe(i)?Xe(i,n):n[i],a+=1}return n})}),Yo=I(function(t,e){return Ho([t],e)[0]});const ir=Yo;var Wo=dt(function(t,e,r){var n={},a;e=e||{},r=r||{};for(a in e)et(a,e)&&(n[a]=et(a,r)?t(a,e[a],r[a]):e[a]);for(a in r)et(a,r)&&!et(a,n)&&(n[a]=r[a]);return n}),Uo=dt(function t(e,r,n){return Wo(function(a,i,s){return Rt(i)&&Rt(s)?t(e,i,s):e(a,i,s)},r,n)}),Ko=I(function(t,e){return Uo(function(r,n,a){return a},t,e)});const Zo=Ko;var Jo=I(function(t,e){for(var r={},n={},a=0,i=t.length;a<i;)n[t[a]]=1,a+=1;for(var s in e)n.hasOwnProperty(s)||(r[s]=e[s]);return r});const qo=Jo;var Xo=I(function(t,e){return Array.prototype.slice.call(e,0).sort(function(r,n){for(var a=0,i=0;a===0&&i<t.length;)a=t[i](r,n),i+=1;return a})});const sr=Xo;var Qo=ar(1,"split");const At=Qo;var ta=ar(0,"toLowerCase");const ea=ta;var Et=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,ra="",na=typeof String.prototype.trim=="function",oa=R(!na||Et.trim()||!ra.trim()?function(t){var e=new RegExp("^["+Et+"]["+Et+"]*"),r=new RegExp("["+Et+"]["+Et+"]*$");return t.replace(e,"").replace(r,"")}:function(t){return t.trim()});const Yt=oa,lr=Symbol("I18nContext"),Y=o.reactive({messages:{},locale:"",fallbackLocale:""}),aa=({messages:t={},locale:e="",fallbackLocale:r=""})=>{Y.messages=t,Y.locale=e,Y.fallbackLocale=r;const n=(l,c={})=>{const p=!Fo(c),d=yt(Yt,At(".",l));return o.computed(()=>{const u=cr(d);return p?sa(u,c):u}).value},a=l=>{const c=yt(Yt,At(".",l));return!!me(Y.locale,c,Y.messages)},i=l=>{Y.locale=l},s={locale:o.computed({get(){return Y.locale},set(l){Y.locale=l}}),setLocale:i,translate:n,hasTranlation:a};return o.provide(lr,s),{translate:n}},ot=t=>{t&&(Y.messages=t.messages,Y.locale=t.locale,Y.fallbackLocale=t.fallbackLocale);const e=ia();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},ia=()=>{const t=o.inject(lr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},cr=(t=[])=>{let e=me(Y.locale,t,Y.messages);return!e&&Y.fallbackLocale&&(e=me(Y.fallbackLocale,t,Y.messages)),e||t.join(".")};function me(t,e,r){return ir([t,...e],r)}const sa=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},la=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=yt(Yt,At(".",t.path)),n=cr(r),a=At(/{|}/,n),i=Object.keys(e).map(s=>{const l=a.indexOf(s);return l>-1&&(a[l]=e[s]()[0]),a});return()=>o.h(t.tag,i)}}),ca="https://api.icehockey.hu/vbr",ua="https://www.jegkorongszovetseg.hu/event/game/",at="original",_t="descend",vt="ascend",da=new Map().set("hu","hu-hu").set("en","hu-gb"),pa=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),fa=1e3,ma={"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"},ga=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),ha=[ga];function ba(t,e){return o.openBlock(),o.createElementBlock("svg",ma,ha)}const ur={render:ba},ya={"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"},va=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),wa=[va];function xa(t,e){return o.openBlock(),o.createElementBlock("svg",ya,wa)}const dr={render:xa};function Tt(t){return t.split("-")[1]}function ge(t){return t==="y"?"height":"width"}function ft(t){return t.split("-")[0]}function Ot(t){return["top","bottom"].includes(ft(t))?"x":"y"}function pr(t,e,r){let{reference:n,floating:a}=t;const i=n.x+n.width/2-a.width/2,s=n.y+n.height/2-a.height/2,l=Ot(e),c=ge(l),p=n[c]/2-a[c]/2,d=l==="x";let u;switch(ft(e)){case"top":u={x:i,y:n.y-a.height};break;case"bottom":u={x:i,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:s};break;case"left":u={x:n.x-a.width,y:s};break;default:u={x:n.x,y:n.y}}switch(Tt(e)){case"start":u[l]-=p*(r&&d?-1:1);break;case"end":u[l]+=p*(r&&d?-1:1)}return u}const ka=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:u}=pr(p,n,c),f=n,m={},b=0;for(let g=0;g<l.length;g++){const{name:h,fn:v}=l[g],{x:w,y,data:S,reset:E}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:a,middlewareData:m,rects:p,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,m={...m,[h]:{...m[h],...S}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:d,y:u}=pr(p,f,c)),g=-1)}return{x:d,y:u,placement:f,strategy:a,middlewareData:m}};function fr(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 Wt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function mr(t,e){var r;e===void 0&&(e={});const{x:n,y:a,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:m=0}=e,b=fr(m),g=l[f?u==="floating"?"reference":"floating":u],h=Wt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:d,strategy:c})),v=u==="floating"?{...s.floating,x:n,y:a}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),y=await(i.isElement==null?void 0:i.isElement(w))&&await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1},S=Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(h.top-S.top+b.top)/y.y,bottom:(S.bottom-h.bottom+b.bottom)/y.y,left:(h.left-S.left+b.left)/y.x,right:(S.right-h.right+b.right)/y.x}}const za=Math.min,Sa=Math.max;function he(t,e,r){return Sa(t,za(e,r))}const gr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:a,y:i,placement:s,rects:l,platform:c,elements:p}=e;if(r==null)return{};const d=fr(n),u={x:a,y:i},f=Ot(s),m=ge(f),b=await c.getDimensions(r),g=f==="y",h=g?"top":"left",v=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[f]-u[f]-l.floating[m],S=u[f]-l.reference[f],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let D=E?E[w]:0;D&&await(c.isElement==null?void 0:c.isElement(E))||(D=p.floating[w]||l.floating[m]);const M=y/2-S/2,$=d[h],P=D-b[m]-d[v],T=D/2-b[m]/2+M,V=he($,T,P),F=Tt(s)!=null&&T!=V&&l.reference[m]/2-(T<$?d[h]:d[v])-b[m]/2<0;return{[f]:u[f]-(F?T<$?$-T:P-T:0),data:{[f]:V,centerOffset:T-V}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const ja={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(t){return t.replace(/left|right|bottom|top/g,e=>ja[e])}function Aa(t,e,r){r===void 0&&(r=!1);const n=Tt(t),a=Ot(t),i=ge(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Ut(s)),{main:s,cross:Ut(s)}}const Ea={start:"end",end:"start"};function be(t){return t.replace(/start|end/g,e=>Ea[e])}const _a=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...g}=t,h=ft(n),v=ft(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),y=u||(v||!b?[Ut(s)]:function(V){const F=Ut(V);return[be(V),F,be(F)]}(s));u||m==="none"||y.push(...function(V,F,A,z){const k=Tt(V);let j=function(x,_,O){const N=["left","right"],G=["right","left"],L=["top","bottom"],H=["bottom","top"];switch(x){case"top":case"bottom":return O?_?G:N:_?N:G;case"left":case"right":return _?L:H;default:return[]}}(ft(V),A==="start",z);return k&&(j=j.map(x=>x+"-"+k),F&&(j=j.concat(j.map(be)))),j}(s,b,m,w));const S=[s,...y],E=await mr(e,g),D=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&D.push(E[h]),d){const{main:V,cross:F}=Aa(n,i,w);D.push(E[V],E[F])}if(M=[...M,{placement:n,overflows:D}],!D.every(V=>V<=0)){var $,P;const V=((($=a.flip)==null?void 0:$.index)||0)+1,F=S[V];if(F)return{data:{index:V,overflows:M},reset:{placement:F}};let A=(P=M.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:P.placement;if(!A)switch(f){case"bestFit":{var T;const z=(T=M.map(k=>[k.placement,k.overflows.filter(j=>j>0).reduce((j,x)=>j+x,0)]).sort((k,j)=>k[1]-j[1])[0])==null?void 0:T[0];z&&(A=z);break}case"initialPlacement":A=s}if(n!==A)return{reset:{placement:A}}}return{}}}},Ta=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,a=await async function(i,s){const{placement:l,platform:c,elements:p}=i,d=await(c.isRTL==null?void 0:c.isRTL(p.floating)),u=ft(l),f=Tt(l),m=Ot(l)==="x",b=["left","top"].includes(u)?-1:1,g=d&&m?-1:1,h=typeof s=="function"?s(i):s;let{mainAxis:v,crossAxis:w,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return f&&typeof y=="number"&&(w=f==="end"?-1*y:y),m?{x:w*g,y:v*b}:{x:v*b,y:w*g}}(e,t);return{x:r+a.x,y:n+a.y,data:a}}}};function Oa(t){return t==="x"?"y":"x"}const Pa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:v,y:w}=h;return{x:v,y:w}}},...c}=t,p={x:r,y:n},d=await mr(e,c),u=Ot(ft(a)),f=Oa(u);let m=p[u],b=p[f];if(i){const h=u==="y"?"bottom":"right";m=he(m+d[u==="y"?"top":"left"],m,m-d[h])}if(s){const h=f==="y"?"bottom":"right";b=he(b+d[f==="y"?"top":"left"],b,b-d[h])}const g=l.fn({...e,[u]:m,[f]:b});return{...g,data:{x:g.x-r,y:g.y-n}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){return J(t).getComputedStyle(t)}function hr(t){return t instanceof J(t).Node}function it(t){return hr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof J(t).HTMLElement}function U(t){return t instanceof J(t).Element}function br(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Pt(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(a)}function Na(t){return["table","td","th"].includes(it(t))}function ye(t){const e=ve(),r=X(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 ve(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(it(t))}const yr=Math.min,Nt=Math.max,Zt=Math.round;function vr(t){const e=X(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=Q(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:n,l=Zt(r)!==i||Zt(n)!==s;return l&&(r=i,n=s),{width:r,height:n,fallback:l}}function wr(t){return U(t)?t:t.contextElement}const xr={x:1,y:1};function wt(t){const e=wr(t);if(!Q(e))return xr;const r=e.getBoundingClientRect(),{width:n,height:a,fallback:i}=vr(e);let s=(i?Zt(r.width):r.width)/n,l=(i?Zt(r.height):r.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const kr={x:0,y:0};function zr(t,e,r){var n,a;if(e===void 0&&(e=!0),!ve())return kr;const i=t?J(t):window;return!r||e&&r!==i?kr:{x:((n=i.visualViewport)==null?void 0:n.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function mt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),i=wr(t);let s=xr;e&&(n?U(n)&&(s=wt(n)):s=wt(t));const l=zr(i,r,n);let c=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,d=a.width/s.x,u=a.height/s.y;if(i){const f=J(i),m=n&&U(n)?J(n):n;let b=f.frameElement;for(;b&&n&&m!==f;){const g=wt(b),h=b.getBoundingClientRect(),v=getComputedStyle(b);h.x+=(b.clientLeft+parseFloat(v.paddingLeft))*g.x,h.y+=(b.clientTop+parseFloat(v.paddingTop))*g.y,c*=g.x,p*=g.y,d*=g.x,u*=g.y,c+=h.x,p+=h.y,b=J(b).frameElement}}return Wt({width:d,height:u,x:c,y:p})}function st(t){return((hr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jt(t){return U(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sr(t){return mt(st(t)).left+Jt(t).scrollLeft}function xt(t){if(it(t)==="html")return t;const e=t.assignedSlot||t.parentNode||br(t)&&t.host||st(t);return br(e)?e.host:e}function jr(t){const e=xt(t);return Kt(e)?e.ownerDocument.body:Q(e)&&Pt(e)?e:jr(e)}function Dt(t,e){var r;e===void 0&&(e=[]);const n=jr(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),i=J(n);return a?e.concat(i,i.visualViewport||[],Pt(n)?n:[]):e.concat(n,Dt(n))}function Ar(t,e,r){let n;if(e==="viewport")n=function(a,i){const s=J(a),l=st(a),c=s.visualViewport;let p=l.clientWidth,d=l.clientHeight,u=0,f=0;if(c){p=c.width,d=c.height;const m=ve();(!m||m&&i==="fixed")&&(u=c.offsetLeft,f=c.offsetTop)}return{width:p,height:d,x:u,y:f}}(t,r);else if(e==="document")n=function(a){const i=st(a),s=Jt(a),l=a.ownerDocument.body,c=Nt(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),p=Nt(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+Sr(a);const u=-s.scrollTop;return X(l).direction==="rtl"&&(d+=Nt(i.clientWidth,l.clientWidth)-c),{width:c,height:p,x:d,y:u}}(st(t));else if(U(e))n=function(a,i){const s=mt(a,!0,i==="fixed"),l=s.top+a.clientTop,c=s.left+a.clientLeft,p=Q(a)?wt(a):{x:1,y:1};return{width:a.clientWidth*p.x,height:a.clientHeight*p.y,x:c*p.x,y:l*p.y}}(e,r);else{const a=zr(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Wt(n)}function Er(t,e){const r=xt(t);return!(r===e||!U(r)||Kt(r))&&(X(r).position==="fixed"||Er(r,e))}function _r(t,e){return Q(t)&&X(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Tr(t,e){const r=J(t);if(!Q(t))return r;let n=_r(t,e);for(;n&&Na(n)&&X(n).position==="static";)n=_r(n,e);return n&&(it(n)==="html"||it(n)==="body"&&X(n).position==="static"&&!ye(n))?r:n||function(a){let i=xt(a);for(;Q(i)&&!Kt(i);){if(ye(i))return i;i=xt(i)}return null}(t)||r}function Da(t,e,r){const n=Q(e),a=st(e),i=r==="fixed",s=mt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(n||!n&&!i)if((it(e)!=="body"||Pt(a))&&(l=Jt(e)),Q(e)){const p=mt(e,!0,i,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else a&&(c.x=Sr(a));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}const $a={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const i=r==="clippingAncestors"?function(p,d){const u=d.get(p);if(u)return u;let f=Dt(p).filter(h=>U(h)&&it(h)!=="body"),m=null;const b=X(p).position==="fixed";let g=b?xt(p):p;for(;U(g)&&!Kt(g);){const h=X(g),v=ye(g);v||h.position!=="fixed"||(m=null),(b?!v&&!m:!v&&h.position==="static"&&m&&["absolute","fixed"].includes(m.position)||Pt(g)&&!v&&Er(p,g))?f=f.filter(w=>w!==g):m=h,g=xt(g)}return d.set(p,f),f}(e,this._c):[].concat(r),s=[...i,n],l=s[0],c=s.reduce((p,d)=>{const u=Ar(e,d,a);return p.top=Nt(u.top,p.top),p.right=yr(u.right,p.right),p.bottom=yr(u.bottom,p.bottom),p.left=Nt(u.left,p.left),p},Ar(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const a=Q(r),i=st(r);if(r===i)return e;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&n!=="fixed")&&((it(r)!=="body"||Pt(i))&&(s=Jt(r)),Q(r))){const p=mt(r);l=wt(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}},isElement:U,getDimensions:function(t){return vr(t)},getOffsetParent:Tr,getDocumentElement:st,getScale:wt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const a=this.getOffsetParent||Tr,i=this.getDimensions;return{reference:Da(e,await a(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>X(t).direction==="rtl"};function Ma(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:l=!1}=n,c=a||i?[...U(t)?Dt(t):t.contextElement?Dt(t.contextElement):[],...Dt(e)]:[];c.forEach(f=>{const m=!U(f)&&f.toString().includes("V");!a||l&&!m||f.addEventListener("scroll",r,{passive:!0}),i&&f.addEventListener("resize",r)});let p,d=null;s&&(d=new ResizeObserver(()=>{r()}),U(t)&&!l&&d.observe(t),U(t)||!t.contextElement||l||d.observe(t.contextElement),d.observe(e));let u=l?mt(t):null;return l&&function f(){const m=mt(t);!u||m.x===u.x&&m.y===u.y&&m.width===u.width&&m.height===u.height||r(),u=m,p=requestAnimationFrame(f)}(),r(),()=>{var f;c.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),(f=d)==null||f.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Va=(t,e,r)=>{const n=new Map,a={platform:$a,...r},i={...a.platform,_c:n};return ka(t,e,{...a,platform:i})},Ba=(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 Ca({middleware:t,placement:e=null,strategy:r,append:n,enabled:a}){const i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),p=o.ref(null),d=o.ref(null),u=o.ref(null),f=o.ref(r??"absolute"),m=o.ref(null),b=()=>{!i.value||!s.value||Va(i.value,s.value,{middleware:t,placement:e,strategy:r}).then(h=>{l.value=h.x,c.value=h.y,f.value=h.strategy,p.value=h.middlewareData.arrow.x,d.value=h.middlewareData.arrow.y,u.value=h.placement})};o.watch(()=>({reference:o.unref(i),floating:o.unref(s),append:o.unref(n)}),({floating:h,append:v})=>{v&&Ba(h,v),b()},{flush:"post"}),o.watch(a,h=>{if(!(!i.value||!s.value)){if(!h)return g();m.value=Ma(i.value,s.value,b,{})}},{flush:"post"});const g=()=>{var h;(h=m.value)==null||h.call(m),m.value=null};return{x:l,y:c,arrowX:p,arrowY:d,placement:u,reference:i,floating:s,strategy:f,update:b}}const Ia=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?gr({element:e.value,padding:r}).fn(n):{}:e?gr({element:e,padding:r}).fn(n):{}}}},La=["data-placement"],Or={__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:a,y:i,arrowX:s,arrowY:l,placement:c,reference:p,floating:d,strategy:u}=Ca({placement:e.placement,middleware:[_a(),Pa({padding:5}),Ta(e.offset),Ia({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),f=()=>{e.disabled||r.value||(r.value=!0)},m=h=>{r.value&&h&&(r.value=!1)},b=h=>{p.value=h},g={mouseenter:f,mouseleave:m,focus:f,blur:m};return jn(d,h=>{var v;(v=p.value)!=null&&v.contains(h.target)||m()}),(h,v)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(h.$slots,"default",{setRef:b,show:f,hide:m,events:g}),o.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":o.unref(c),style:o.normalizeStyle({position:o.unref(u),top:o.unref(i)?`${o.unref(i)}px`:"",left:o.unref(a)?`${o.unref(a)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(h.$slots,"content",{close:m},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(u),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,La)],64))}},Ga=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ra={key:0},Fa=["colspan"],Ha={key:1},Ya=["colspan"],Wa={__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:a}=o.toRefs(r),i=Ie(n,{delay:fa}),{t:s}=ot(),l=rt("table"),c=o.computed(()=>r.columns),p=o.computed(()=>Object.keys(r.columns).length),d=(u,f)=>{u.sortOrders&&e("sort",{target:f,orders:u.sortOrders})};return(u,f)=>(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(c.value,(m,b)=>(o.openBlock(),o.createBlock(Or,{key:b,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":o.unref(a)},{default:o.withCtx(({setRef:g,show:h,hide:v})=>[o.createElementVNode("th",{ref_for:!0,ref:g,class:o.normalizeClass([[m.class],{"is-active":b===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(at),"is-sortable":m.sortOrders,"is-desc":b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(_t),"is-asc":b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(vt)}]),onMouseenter:h,onMouseleave:v,onFocus:h,onBlur:v,onClick:w=>d(m,b),onKeydown:[o.withKeys(o.withModifiers(w=>d(m,b),["prevent"]),["space"]),o.withKeys(o.withModifiers(w=>d(m,b),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[o.renderSlot(u.$slots,`header-${b}`,{column:m},()=>[o.createTextVNode(o.toDisplayString(m.label),1)]),m.sortOrders&&b!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(ur),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(at)?(o.openBlock(),o.createBlock(o.unref(ur),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(_t)?(o.openBlock(),o.createBlock(o.unref(dr),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(vt)?(o.openBlock(),o.createBlock(o.unref(dr),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,Ga)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(m,b)=>(o.openBlock(),o.createElementBlock("tr",{key:b},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(g,h)=>(o.openBlock(),o.createElementBlock("td",{key:h,class:o.normalizeClass([[g.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(at)}])},[o.renderSlot(u.$slots,`cell-${h}`,{row:m,prop:h},()=>[o.createTextVNode(o.toDisplayString(m[h]),1)])],2))),128))]))),128))]),o.unref(i)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Ra,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:p.value},[o.renderSlot(u.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.loading")),1)])],8,Fa)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(i)?(o.openBlock(),o.createElementBlock("tfoot",Ha,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:p.value},[o.renderSlot(u.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.noData")),1)])],8,Ya)])])):o.createCommentVNode("",!0)],2))}},Ua={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"},Ka=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),Za=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),qa=[Ka,Za,Ja];function Xa(t,e){return o.openBlock(),o.createElementBlock("svg",Ua,qa)}const Qa={render:Xa},ti={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=ot(),a=rt("error-notice"),i=o.computed(()=>{var s;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(s=e.error)==null?void 0:s.message}`});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a))},[o.createVNode(o.unref(Qa),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(i.value),1)],2))}};function ei(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const Pr=Symbol("ErrorProviderContext"),ri=()=>{const t=o.ref(""),e=o.ref({}),r=n=>{console.log({error:n}),t.value=n.message||n.error.message,e.value={message:n.message,key:n.key||ei(n.message),cause:n.cause}};return o.provide(Pr,{onError:r,reset:()=>{t.value="",e.value={}}}),window.onerror=n=>{console.log("WINDOW_ONERROR:",n)},o.onErrorCaptured((n,a,i)=>{console.log("onErrorCaptured:",n,a,i)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Nr=()=>{const t=ni();return{onError:t.onError,reset:t.reset}},ni=()=>{const t=o.inject(Pr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},oi={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=ri();return(a,i)=>o.renderSlot(a.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},ai={"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ő"},ii={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ó"},si={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"}},li={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"}},ci={errors:ai,common:ii,table:si,game:li},ui={"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},di={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"},pi={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"}},fi={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"}},mi={errors:ui,common:di,table:pi,game:fi},gi=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},hi=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Zo({hu:ci,en:mi},t.messages),{translate:r}=aa({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function bi(t,e,r,n,a,i){return o.renderSlot(t.$slots,"default",{t:t.translate})}const yi=gi(hi,[["render",bi]]),vi=["src"],wi=["src","title"],Dr=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:a,isReady:i}=Cn(n,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",s.$attrs.class])},null,10,vi)):o.createCommentVNode("",!0),o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(i)}]),title:e.title},null,10,wi))],64))}}),xi={style:{"text-align":"center"}},$r={__name:"LoadingIndicator",setup(t){const{t:e}=ot();return(r,n)=>(o.openBlock(),o.createElementBlock("div",xi,o.toDisplayString(o.unref(e)("common.loading")),1))}},ki={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=rt("table-responsive");return(n,a)=>(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 Mr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",l="minute",c="hour",p="day",d="week",u="month",f="quarter",m="year",b="date",g="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,w={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(A){var z=["th","st","nd","rd"],k=A%100;return"["+A+(z[(k-20)%10]||z[k]||z[0])+"]"}},y=function(A,z,k){var j=String(A);return!j||j.length>=z?A:""+Array(z+1-j.length).join(k)+A},S={s:y,z:function(A){var z=-A.utcOffset(),k=Math.abs(z),j=Math.floor(k/60),x=k%60;return(z<=0?"+":"-")+y(j,2,"0")+":"+y(x,2,"0")},m:function A(z,k){if(z.date()<k.date())return-A(k,z);var j=12*(k.year()-z.year())+(k.month()-z.month()),x=z.clone().add(j,u),_=k-x<0,O=z.clone().add(j+(_?-1:1),u);return+(-(j+(k-x)/(_?x-O:O-x))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:m,w:d,d:p,D:b,h:c,m:l,s,ms:i,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},E="en",D={};D[E]=w;var M=function(A){return A instanceof V},$=function A(z,k,j){var x;if(!z)return E;if(typeof z=="string"){var _=z.toLowerCase();D[_]&&(x=_),k&&(D[_]=k,x=_);var O=z.split("-");if(!x&&O.length>1)return A(O[0])}else{var N=z.name;D[N]=z,x=N}return!j&&x&&(E=x),x||!j&&E},P=function(A,z){if(M(A))return A.clone();var k=typeof z=="object"?z:{};return k.date=A,k.args=arguments,new V(k)},T=S;T.l=$,T.i=M,T.w=function(A,z){return P(A,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var V=function(){function A(k){this.$L=$(k.locale,null,!0),this.parse(k)}var z=A.prototype;return z.parse=function(k){this.$d=function(j){var x=j.date,_=j.utc;if(x===null)return new Date(NaN);if(T.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var O=x.match(h);if(O){var N=O[2]-1||0,G=(O[7]||"0").substring(0,3);return _?new Date(Date.UTC(O[1],N,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)):new Date(O[1],N,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)}}return new Date(x)}(k),this.$x=k.x||{},this.init()},z.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},z.$utils=function(){return T},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function(k,j){var x=P(k);return this.startOf(j)<=x&&x<=this.endOf(j)},z.isAfter=function(k,j){return P(k)<this.startOf(j)},z.isBefore=function(k,j){return this.endOf(j)<P(k)},z.$g=function(k,j,x){return T.u(k)?this[j]:this.set(x,k)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(k,j){var x=this,_=!!T.u(j)||j,O=T.p(k),N=function(kt,W){var ut=T.w(x.$u?Date.UTC(x.$y,W,kt):new Date(x.$y,W,kt),x);return _?ut:ut.endOf(p)},G=function(kt,W){return T.w(x.toDate()[kt].apply(x.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(W)),x)},L=this.$W,H=this.$M,ct=this.$D,nt="set"+(this.$u?"UTC":"");switch(O){case m:return _?N(1,0):N(31,11);case u:return _?N(1,H):N(0,H+1);case d:var Mt=this.$locale().weekStart||0,Vt=(L<Mt?L+7:L)-Mt;return N(_?ct-Vt:ct+(6-Vt),H);case p:case b:return G(nt+"Hours",0);case c:return G(nt+"Minutes",1);case l:return G(nt+"Seconds",2);case s:return G(nt+"Milliseconds",3);default:return this.clone()}},z.endOf=function(k){return this.startOf(k,!1)},z.$set=function(k,j){var x,_=T.p(k),O="set"+(this.$u?"UTC":""),N=(x={},x[p]=O+"Date",x[b]=O+"Date",x[u]=O+"Month",x[m]=O+"FullYear",x[c]=O+"Hours",x[l]=O+"Minutes",x[s]=O+"Seconds",x[i]=O+"Milliseconds",x)[_],G=_===p?this.$D+(j-this.$W):j;if(_===u||_===m){var L=this.clone().set(b,1);L.$d[N](G),L.init(),this.$d=L.set(b,Math.min(this.$D,L.daysInMonth())).$d}else N&&this.$d[N](G);return this.init(),this},z.set=function(k,j){return this.clone().$set(k,j)},z.get=function(k){return this[T.p(k)]()},z.add=function(k,j){var x,_=this;k=Number(k);var O=T.p(j),N=function(H){var ct=P(_);return T.w(ct.date(ct.date()+Math.round(H*k)),_)};if(O===u)return this.set(u,this.$M+k);if(O===m)return this.set(m,this.$y+k);if(O===p)return N(1);if(O===d)return N(7);var G=(x={},x[l]=n,x[c]=a,x[s]=r,x)[O]||1,L=this.$d.getTime()+k*G;return T.w(L,this)},z.subtract=function(k,j){return this.add(-1*k,j)},z.format=function(k){var j=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var _=k||"YYYY-MM-DDTHH:mm:ssZ",O=T.z(this),N=this.$H,G=this.$m,L=this.$M,H=x.weekdays,ct=x.months,nt=function(W,ut,Te,Qt){return W&&(W[ut]||W(j,_))||Te[ut].slice(0,Qt)},Mt=function(W){return T.s(N%12||12,W,"0")},Vt=x.meridiem||function(W,ut,Te){var Qt=W<12?"AM":"PM";return Te?Qt.toLowerCase():Qt},kt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:T.s(L+1,2,"0"),MMM:nt(x.monthsShort,L,ct,3),MMMM:nt(ct,L),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:nt(x.weekdaysMin,this.$W,H,2),ddd:nt(x.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(N),HH:T.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Vt(N,G,!0),A:Vt(N,G,!1),m:String(G),mm:T.s(G,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:O};return _.replace(v,function(W,ut){return ut||kt[W]||O.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(k,j,x){var _,O=T.p(j),N=P(k),G=(N.utcOffset()-this.utcOffset())*n,L=this-N,H=T.m(this,N);return H=(_={},_[m]=H/12,_[u]=H,_[f]=H/3,_[d]=(L-G)/6048e5,_[p]=(L-G)/864e5,_[c]=L/a,_[l]=L/n,_[s]=L/r,_)[O]||L,x?H:T.a(H)},z.daysInMonth=function(){return this.endOf(u).$D},z.$locale=function(){return D[this.$L]},z.locale=function(k,j){if(!k)return this.$L;var x=this.clone(),_=$(k,j,!0);return _&&(x.$L=_),x},z.clone=function(){return T.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},A}(),F=V.prototype;return P.prototype=F,[["$ms",i],["$s",s],["$m",l],["$H",c],["$W",p],["$M",u],["$y",m],["$D",b]].forEach(function(A){F[A[1]]=function(z){return this.$g(z,A[0],A[1])}}),P.extend=function(A,z){return A.$i||(A(z,V,P),A.$i=!0),P},P.locale=$,P.isDayjs=M,P.unix=function(A){return P(1e3*A)},P.en=D[E],P.Ls=D,P.p={},P})})(Mr);var Vr=Mr.exports;const q=gt(Vr);var Br={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,l){var c=s.prototype;l.utc=function(g){var h={date:g,utc:!0,args:arguments};return new s(h)},c.utc=function(g){var h=l(this.toDate(),{locale:this.$L,utc:!0});return g?h.add(this.utcOffset(),r):h},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var p=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),p.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var u=c.utcOffset;c.utcOffset=function(g,h){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=function(E){E===void 0&&(E="");var D=E.match(n);if(!D)return null;var M=(""+D[0]).match(a)||["-",0,0],$=M[0],P=60*+M[1]+ +M[2];return P===0?0:$==="+"?P:-P}(g),g===null))return this;var w=Math.abs(g)<=16?60*g:g,y=this;if(h)return y.$offset=w,y.$u=g===0,y;if(g!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(w+S,r)).$offset=w,y.$x.$localOffset=S}else y=this.utc();return y};var f=c.format;c.format=function(g){var h=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,h)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var m=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=c.diff;c.diff=function(g,h,v){if(g&&this.$u===g.$u)return b.call(this,g,h,v);var w=this.local(),y=l(g).local();return b.call(w,y,h,v)}}})})(Br);var zi=Br.exports;const Si=gt(zi);var Cr={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(a,i,s){var l,c=function(f,m,b){b===void 0&&(b={});var g=new Date(f),h=function(v,w){w===void 0&&(w={});var y=w.timeZoneName||"short",S=v+"|"+y,E=n[S];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),n[S]=E),E}(m,b);return h.formatToParts(g)},p=function(f,m){for(var b=c(f,m),g=[],h=0;h<b.length;h+=1){var v=b[h],w=v.type,y=v.value,S=r[w];S>=0&&(g[S]=parseInt(y,10))}var E=g[3],D=E===24?0:E,M=g[0]+"-"+g[1]+"-"+g[2]+" "+D+":"+g[4]+":"+g[5]+":000",$=+f;return(s.utc(M).valueOf()-($-=$%1e3))/6e4},d=i.prototype;d.tz=function(f,m){f===void 0&&(f=l);var b=this.utcOffset(),g=this.toDate(),h=g.toLocaleString("en-US",{timeZone:f}),v=Math.round((g-new Date(h))/1e3/60),w=s(h).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-v,!0);if(m){var y=w.utcOffset();w=w.add(b-y,"minute")}return w.$x.$timezone=f,w},d.offsetName=function(f){var m=this.$x.$timezone||s.tz.guess(),b=c(this.valueOf(),m,{timeZoneName:f}).find(function(g){return g.type.toLowerCase()==="timezonename"});return b&&b.value};var u=d.startOf;d.startOf=function(f,m){if(!this.$x||!this.$x.$timezone)return u.call(this,f,m);var b=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(b,f,m).tz(this.$x.$timezone,!0)},s.tz=function(f,m,b){var g=b&&m,h=b||m||l,v=p(+s(),h);if(typeof f!="string")return s(f).tz(h);var w=function(D,M,$){var P=D-60*M*1e3,T=p(P,$);if(M===T)return[P,M];var V=p(P-=60*(T-M)*1e3,$);return T===V?[P,T]:[D-60*Math.min(T,V)*1e3,Math.max(T,V)]}(s.utc(f,g).valueOf(),v,h),y=w[0],S=w[1],E=s(y).utcOffset(S);return E.$x.$timezone=h,E},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){l=f}}})})(Cr);var ji=Cr.exports;const Ai=gt(ji);var Ir={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),d=(s||"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(u){switch(u){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return p.s(l.week(),u==="w"?1:2,"0");case"W":case"WW":return p.s(l.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return p.s(String(l.$H===0?24:l.$H),u==="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 u}});return i.bind(this)(d)}}})})(Ir);var Ei=Ir.exports;const _i=gt(Ei);var Lr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Lr);var Ti=Lr.exports;const Oi=gt(Ti);var Gr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,a){n.prototype.isBetween=function(i,s,l,c){var p=a(i),d=a(s),u=(c=c||"()")[0]==="(",f=c[1]===")";return(u?this.isAfter(p,l):!this.isBefore(p,l))&&(f?this.isBefore(d,l):!this.isAfter(d,l))||(u?this.isBefore(p,l):!this.isAfter(p,l))&&(f?this.isAfter(d,l):!this.isBefore(d,l))}}})})(Gr);var Pi=Gr.exports;const Ni=gt(Pi);var Rr={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,a,i){var s=a.prototype,l=s.format;i.en.formats=r,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,d=function(u,f){return u.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,g){var h=g&&g.toUpperCase();return b||f[g]||r[g]||f[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,w,y){return w||y.slice(1)})})}(c,p===void 0?{}:p);return l.call(this,d)}}})})(Rr);var Di=Rr.exports;const $i=gt(Di);var Mi={exports:{}};(function(t,e){(function(r,n){t.exports=n(Vr)})(lt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=n(r),i={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(s){return s+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(s,l,c,p){return"néhány másodperc"+(p||l?"":"e")},m:function(s,l,c,p){return"egy perc"+(p||l?"":"e")},mm:function(s,l,c,p){return s+" perc"+(p||l?"":"e")},h:function(s,l,c,p){return"egy "+(p||l?"óra":"órája")},hh:function(s,l,c,p){return s+" "+(p||l?"óra":"órája")},d:function(s,l,c,p){return"egy "+(p||l?"nap":"napja")},dd:function(s,l,c,p){return s+" "+(p||l?"nap":"napja")},M:function(s,l,c,p){return"egy "+(p||l?"hónap":"hónapja")},MM:function(s,l,c,p){return s+" "+(p||l?"hónap":"hónapja")},y:function(s,l,c,p){return"egy "+(p||l?"év":"éve")},yy:function(s,l,c,p){return s+" "+(p||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(i,null,!0),i})})(Mi),q.extend(Si),q.extend(Ai),q.extend(_i),q.extend($i),q.extend(Oi),q.extend(Ni);const Fr=()=>q.tz.guess(),we=(t="",e="",r="",n="hu")=>(r=r||q.tz.guess(),q(t).isValid()?q(t).tz(r).locale(n).format(e):""),$t=(t="",e="",r="hu")=>{if(!q(t).isValid())return"";e=e||q.tz.guess();const n=new Intl.DateTimeFormat(Vi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return n&&n.value},Vi=t=>da.get(t),Bi=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Ci=["onClick"],Ii={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=ot(),a=rt("timezone-selector"),i=o.computed(()=>$t(new Date,null,r.locale)),s=Fr(),l=o.computed(()=>Array.from(pa.values()).map(p=>({...p,isActive:$t(new Date,r.currentZone,r.locale)===$t(new Date,p.timezone,r.locale),zoneOffsetName:$t(new Date,p.timezone,r.locale)}))),c=p=>e("change",p);return(p,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a))},[o.createVNode(o.unref(la),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:d[0]||(d[0]=o.withModifiers(u=>c(o.unref(s)),["prevent"]))},o.toDisplayString(i.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,u=>(o.openBlock(),o.createElementBlock("a",{key:u.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":u.isActive}),onClick:o.withModifiers(f=>c(u.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${u.countryLabelKey}`))+" ("+o.toDisplayString(u.zoneOffsetName)+") ",11,Ci))),128))],2))}},Li=(t,e="",r={})=>{const n=o.ref(""),{t:a}=ot();if(e)try{const s=Gi(o.unref(t),e);t=qo(s,o.unref(t))}catch(s){n.value=s}const i=s=>({...s,...s.label&&{label:a(s.label??"",o.unref(r))},...s.tooltip&&{tooltip:a(s.tooltip??"")}});return{columns:o.computed(()=>yt(i,o.unref(t))),error:n}},Gi=(t,e="")=>{const r=yt(Yt,At(",",e)),n=pt(t);if(r[0]==="")return resolve([]);const a=r.findIndex(i=>!n.includes(i));if(a>-1)throw r[a];return r};class Hr extends Error{constructor(e,r={}){const{key:n,cause:a}=r;super(e),this.name="WidgetError",this.key=n,this.cause=a}}const Yr={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Wr={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ri={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:""}},Fi=async(t,e,r)=>{const n=`${ca}${o.unref(t)}?${Hi(r)}`;return new Promise((a,i)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Yi(e)}}).then(s=>s.json()).then(s=>{if(s.error)return i(s);a(s.data)}).catch(s=>{i(s)})})},Hi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Yi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},xe=({options:t={},transform:e=a=>a,onError:r=bt,onSuccess:n=bt})=>{const{path:a,apiKey:i,params:s}=t,{state:l,error:c,isLoading:p,execute:d}=Ve(()=>Fi(a,i,o.unref(s)).then(u=>e(u)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:n});return{state:l,error:c,isLoading:p,execute:d}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsExtended=function(ht,o){"use strict";const rt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Oe={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=rt("base-input"),a=o.computed({get:()=>r.modelValue,set:i=>e("update:modelValue",i)});return(i,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>a.value=l),class:o.normalizeClass([o.unref(n),"is-select"])},[o.renderSlot(i.$slots,"default")],2)),[[o.vModelSelect,a.value]])}};function Te(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():o.unref(t)}const te=typeof window<"u",bt=()=>{},vn=wn();function wn(){var t;return te&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function ee(t,e=!1,r="Timeout"){return new Promise((n,a)=>{setTimeout(e?()=>a(r):n,t)})}function re(t,e=!1){function r(u,{flush:f="sync",deep:m=!1,timeout:b,throwOnTimeout:g}={}){let h=null;const v=[new Promise(w=>{h=o.watch(t,y=>{u(y)!==e&&(h==null||h(),w(y))},{flush:f,deep:m,immediate:!0})})];return b!=null&&v.push(ee(b,g).then(()=>tt(t)).finally(()=>h==null?void 0:h())),Promise.race(v)}function n(u,f){if(!o.isRef(u))return r(y=>y===u,f);const{flush:m="sync",deep:b=!1,timeout:g,throwOnTimeout:h}=f??{};let v=null;const w=[new Promise(y=>{v=o.watch([t,u],([S,E])=>{e!==(S===E)&&(v==null||v(),y(S))},{flush:m,deep:b,immediate:!0})})];return g!=null&&w.push(ee(g,h).then(()=>tt(t)).finally(()=>(v==null||v(),tt(t)))),Promise.race(w)}function a(u){return r(f=>!!f,u)}function i(u){return n(null,u)}function s(u){return n(void 0,u)}function l(u){return r(Number.isNaN,u)}function c(u,f){return r(m=>{const b=Array.from(m);return b.includes(u)||b.includes(tt(u))},f)}function p(u){return d(1,u)}function d(u=1,f){let m=-1;return r(()=>(m+=1,m>=u),f)}return Array.isArray(tt(t))?{toMatch:r,toContains:c,changed:p,changedTimes:d,get not(){return re(t,!e)}}:{toMatch:r,toBe:n,toBeTruthy:a,toBeNull:i,toBeNaN:l,toBeUndefined:s,changed:p,changedTimes:d,get not(){return re(t,!e)}}}function xn(t){return re(t)}function kn(t,e,r={}){const{immediate:n=!0}=r,a=o.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function c(...p){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...p)},tt(e))}return n&&(a.value=!0,te&&c()),Te(l),{isPending:o.readonly(a),start:c,stop:l}}function zn(t,e,r){return o.watch(t,(n,a,i)=>{n&&e(n,a,i)},r)}function zt(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Ne=te?window:void 0;function ne(...t){let e,r,n,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,a]=t,e=Ne):[e,r,n,a]=t,!e)return bt;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},l=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),c=o.watch(()=>[zt(e),tt(a)],([d,u])=>{s(),d&&i.push(...r.flatMap(f=>n.map(m=>l(d,f,m,u))))},{immediate:!0,flush:"post"}),p=()=>{c(),s()};return Te(p),p}let $e=!1;function Sn(t,e,r={}){const{window:n=Ne,ignore:a=[],capture:i=!0,detectIframe:s=!1}=r;if(!n)return;vn&&!$e&&($e=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",bt)));let l=!0;const c=d=>a.some(u=>{if(typeof u=="string")return Array.from(n.document.querySelectorAll(u)).some(f=>f===d.target||d.composedPath().includes(f));{const f=zt(u);return f&&(d.target===f||d.composedPath().includes(f))}}),p=[ne(n,"click",d=>{const u=zt(t);if(!(!u||u===d.target||d.composedPath().includes(u))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:i}),ne(n,"pointerdown",d=>{const u=zt(t);u&&(l=!d.composedPath().includes(u)&&!c(d))},{passive:!0}),s&&ne(n,"blur",d=>{var u;const f=zt(t);((u=n.document.activeElement)==null?void 0:u.tagName)==="IFRAME"&&!(f!=null&&f.contains(n.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var jn=Object.defineProperty,An=Object.defineProperties,En=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Me=(t,e,r)=>e in t?jn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,On=(t,e)=>{for(var r in e||(e={}))_n.call(e,r)&&Me(t,r,e[r]);if(De)for(var r of De(e))Pn.call(e,r)&&Me(t,r,e[r]);return t},Tn=(t,e)=>An(t,En(e));function Ve(t,e,r){const{immediate:n=!0,delay:a=0,onError:i=bt,onSuccess:s=bt,resetOnExecute:l=!0,shallow:c=!0,throwError:p}=r??{},d=c?o.shallowRef(e):o.ref(e),u=o.ref(!1),f=o.ref(!1),m=o.shallowRef(void 0);async function b(v=0,...w){l&&(d.value=e),m.value=void 0,u.value=!1,f.value=!0,v>0&&await ee(v);const y=typeof t=="function"?t(...w):t;try{const S=await y;d.value=S,u.value=!0,s(S)}catch(S){if(m.value=S,i(S),p)throw S}finally{f.value=!1}return d.value}n&&b(a);const g={state:d,isReady:u,isLoading:f,error:m,execute:b};function h(){return new Promise((v,w)=>{xn(f).toBe(!1).then(()=>v(g)).catch(w)})}return Tn(On({},g),{then(v,w){return h().then(v,w)}})}var Nn=Object.defineProperty,Be=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,Ce=(t,e,r)=>e in t?Nn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mn=(t,e)=>{for(var r in e||(e={}))$n.call(e,r)&&Ce(t,r,e[r]);if(Be)for(var r of Be(e))Dn.call(e,r)&&Ce(t,r,e[r]);return t};async function Vn(t){return new Promise((e,r)=>{const n=new Image,{src:a,srcset:i,sizes:s,class:l,loading:c,crossorigin:p}=t;n.src=a,i&&(n.srcset=i),s&&(n.sizes=s),l&&(n.className=l),c&&(n.loading=c),p&&(n.crossOrigin=p),n.onload=()=>e(n),n.onerror=r})}function Bn(t,e={}){const r=Ve(()=>Vn(tt(t)),void 0,Mn({resetOnExecute:!0},e));return o.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function Ie(t=[],e={}){const{delay:r=0}=e,n=o.ref(!1),a=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(c=>o.unref(c)).some(Boolean):l}),{start:i,stop:s}=kn(()=>{n.value=!0},r);return o.watch(a,l=>{if(l)return i();s(),n.value=!1},{immediate:!0,deep:!0}),n}function B(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function R(t){return function e(r){return arguments.length===0||B(r)?e:t.apply(this,arguments)}}function I(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return B(r)?e:R(function(a){return t(r,a)});default:return B(r)&&B(n)?e:B(r)?R(function(a){return t(a,n)}):B(n)?R(function(a){return t(r,a)}):t(r,n)}}}function Bt(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,a){return e.apply(this,arguments)};case 4:return function(r,n,a,i){return e.apply(this,arguments)};case 5:return function(r,n,a,i,s){return e.apply(this,arguments)};case 6:return function(r,n,a,i,s,l){return e.apply(this,arguments)};case 7:return function(r,n,a,i,s,l,c){return e.apply(this,arguments)};case 8:return function(r,n,a,i,s,l,c,p){return e.apply(this,arguments)};case 9:return function(r,n,a,i,s,l,c,p,d){return e.apply(this,arguments)};case 10:return function(r,n,a,i,s,l,c,p,d,u){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function oe(t,e,r){return function(){for(var n=[],a=0,i=t,s=0;s<e.length||a<arguments.length;){var l;s<e.length&&(!B(e[s])||a>=arguments.length)?l=e[s]:(l=arguments[a],a+=1),n[s]=l,B(l)||(i-=1),s+=1}return i<=0?r.apply(this,n):Bt(i,oe(t,n,r))}}var Ct=I(function(t,e){return t===1?R(e):Bt(t,oe(t,[],e))});function dt(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return B(r)?e:I(function(i,s){return t(r,i,s)});case 2:return B(r)&&B(n)?e:B(r)?I(function(i,s){return t(i,n,s)}):B(n)?I(function(i,s){return t(r,i,s)}):R(function(i){return t(r,n,i)});default:return B(r)&&B(n)&&B(a)?e:B(r)&&B(n)?I(function(i,s){return t(i,s,a)}):B(r)&&B(a)?I(function(i,s){return t(i,n,s)}):B(n)&&B(a)?I(function(i,s){return t(r,i,s)}):B(r)?R(function(i){return t(i,n,a)}):B(n)?R(function(i){return t(r,i,a)}):B(a)?R(function(i){return t(r,n,i)}):t(r,n,a)}}}const It=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Cn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function ae(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!It(n)){for(var a=0;a<t.length;){if(typeof n[t[a]]=="function")return n[t[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Cn(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}function In(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const St={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Le(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Ge(t,e,r){for(var n=0,a=r.length;n<a;){if(t(e,r[n]))return!0;n+=1}return!1}function Ln(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 Gn(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ie=typeof Object.is=="function"?Object.is:Gn;var Re=Object.prototype.toString,Fe=function(){return Re.call(arguments)==="[object Arguments]"?function(t){return Re.call(t)==="[object Arguments]"}:function(t){return et("callee",t)}}(),Rn=!{toString:null}.propertyIsEnumerable("toString"),He=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ye=function(){return arguments.propertyIsEnumerable("length")}(),Fn=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},pt=R(typeof Object.keys=="function"&&!Ye?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,r,n=[],a=Ye&&Fe(t);for(e in t)et(e,t)&&(!a||e!=="length")&&(n[n.length]=e);if(Rn)for(r=He.length-1;r>=0;)e=He[r],et(e,t)&&!Fn(n,e)&&(n[n.length]=e),r-=1;return n}),se=R(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function We(t,e,r,n){var a=Le(t),i=Le(e);function s(l,c){return le(l,c,r.slice(),n.slice())}return!Ge(function(l,c){return!Ge(s,c,l)},i,a)}function le(t,e,r,n){if(ie(t,e))return!0;var a=se(t);if(a!==se(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Ln(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ie(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ie(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 i=r.length-1;i>=0;){if(r[i]===t)return n[i]===e;i-=1}switch(a){case"Map":return t.size!==e.size?!1:We(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:We(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 s=pt(t);if(s.length!==pt(e).length)return!1;var l=r.concat([t]),c=n.concat([e]);for(i=s.length-1;i>=0;){var p=s[i];if(!(et(p,e)&&le(e[p],t[p],l,c)))return!1;i-=1}return!0}var Lt=I(function(t,e){return le(t,e,[],[])});function Hn(t,e,r){var n,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(a=t[r],a===0&&1/a===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(a=t[r],typeof a=="number"&&a!==a)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Lt(t[r],e))return r;r+=1}return-1}function Ue(t,e){return Hn(e,t,0)>=0}function Gt(t,e){for(var r=0,n=e.length,a=Array(n);r<n;)a[r]=t(e[r]),r+=1;return a}function ce(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 jt=function(t){return(t<10?"0":"")+t},Yn=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+jt(t.getUTCMonth()+1)+"-"+jt(t.getUTCDate())+"T"+jt(t.getUTCHours())+":"+jt(t.getUTCMinutes())+":"+jt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wn(t){return function(){return!t.apply(this,arguments)}}function Ke(t,e,r){for(var n=0,a=r.length;n<a;)e=t(e,r[n]),n+=1;return e}function Un(t,e){for(var r=0,n=e.length,a=[];r<n;)t(e[r])&&(a[a.length]=e[r]),r+=1;return a}function Rt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Kn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Zn(t){return function(e){return new Kn(t,e)}}var Ze=I(ae(["fantasy-land/filter","filter"],Zn,function(t,e){return Rt(e)?Ke(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},pt(e)):Un(t,e)})),qn=I(function(t,e){return Ze(Wn(t),e)});function qe(t,e){var r=function(i){var s=e.concat([t]);return Ue(i,s)?"<Circular>":qe(i,s)},n=function(i,s){return Gt(function(l){return ce(l)+": "+r(i[l])},s.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Gt(r,t).join(", ")+"))";case"[object Array]":return"["+Gt(r,t).concat(n(t,qn(function(i){return/^\d+$/.test(i)},pt(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):ce(Yn(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())+")":ce(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+n(t,pt(t)).join(", ")+"}"}}var ue=R(function(t){return qe(t,[])}),Jn=I(function(t,e){if(t===e)return e;function r(l,c){if(l>c!=c>l)return c>l?c:l}var n=r(t,e);if(n!==void 0)return n;var a=r(typeof t,typeof e);if(a!==void 0)return a===typeof t?t:e;var i=ue(t),s=r(i,ue(e));return s!==void 0&&s===i?t:e}),Xn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=St.init,t.prototype["@@transducer/result"]=St.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Qn=function(t){return function(e){return new Xn(t,e)}},to=I(ae(["fantasy-land/map","map"],Qn,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Ct(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return Ke(function(r,n){return r[n]=t(e[n]),r},{},pt(e));default:return Gt(t,e)}}));const yt=to,Je=Number.isInteger||function(t){return t<<0===t};function Ft(t){return Object.prototype.toString.call(t)==="[object String]"}var Xe=I(function(t,e){var r=t<0?e.length+t:t;return Ft(e)?e.charAt(r):e[r]}),eo=I(function(t,e){if(e!=null)return Je(t)?Xe(t,e):e[t]});const Ht=eo;var ro=I(function(t,e){return yt(Ht(t),e)}),no=R(function(t){return It(t)?!0:!t||typeof t!="object"||Ft(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Qe=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function oo(t,e,r){return function(n,a,i){if(no(i))return t(n,a,i);if(i==null)return a;if(typeof i["fantasy-land/reduce"]=="function")return e(n,a,i,"fantasy-land/reduce");if(i[Qe]!=null)return r(n,a,i[Qe]());if(typeof i.next=="function")return r(n,a,i);if(typeof i.reduce=="function")return e(n,a,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ao(t,e,r){for(var n=0,a=r.length;n<a;){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 io=I(function(t,e){return Bt(t.length,function(){return t.apply(e,arguments)})});function so(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 lo(t,e,r,n){return t["@@transducer/result"](r[n](io(t["@@transducer/step"],t),e))}var tr=oo(ao,lo,so),co=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 er(t){return new co(t)}var uo=dt(function(t,e,r){return tr(typeof t=="function"?er(t):t,e,r)});const rr=uo;var po=R(function(t){return function(){return t}});const nr=po;var fo=R(function(t){return Ct(rr(Jn,0,ro("length",t)),function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})});const mo=fo;var go=dt(function(t,e,r){var n=t(e),a=t(r);return n<a?-1:n>a?1:0});const or=go;function ho(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function bo(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 de(t,e,r){if(r||(r=new vo),yo(t))return t;var n=function(a){var i=r.get(t);if(i)return i;r.set(t,a);for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=e?de(t[s],!0,r):t[s]);return a};switch(se(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return bo(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 yo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var vo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const n=this.hash(e);let a=this.map[n];a||(this.map[n]=a=[]),a.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 a in this.map){const i=this.map[a];for(let s=0;s<i.length;s+=1){const l=i[s];if(l[0]===e)return l[1]}}return}const r=this.hash(e),n=this.map[r];if(n)for(let a=0;a<n.length;a+=1){const i=n[a];if(i[0]===e)return i[1]}},t}();function wo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function pe(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return It(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var xo=dt(pe("slice",function(t,e,r){return Array.prototype.slice.call(r,t,e)})),ko=R(pe("tail",xo(1,1/0)));const zo=ko;function fe(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Bt(arguments[0].length,rr(wo,arguments[0],zo(arguments)))}var So=R(function(t){return Ft(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const jo=So;function Ao(){if(arguments.length===0)throw new Error("compose requires at least one argument");return fe.apply(this,jo(arguments))}var Eo=function(){function t(e,r,n,a){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=St.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,de(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 Eo(t,e,r,n)}}var Po=oe(4,[],ae([],_o,function(t,e,r,n){var a=er(function(i,s){var l=r(s),c=t(et(l,i)?i[l]:de(e,!1),s);return c&&c["@@transducer/reduced"]?In(i):(i[l]=c,i)});return tr(a,{},n)})),Oo=dt(function(t,e,r){var n=t(e),a=t(r);return n>a?-1:n<a?1:0});const To=Oo;function No(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=R(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():It(t)?[]:Ft(t)?"":Rt(t)?{}:Fe(t)?function(){return arguments}():No(t)?t.constructor.from(""):void 0}),Do=I(pe("groupBy",Po(function(t,e){return t.push(e),t},[])));const Mo=Do;var Vo=dt(function(t,e,r){return Ct(Math.max(t.length,e.length,r.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):r.apply(this,arguments)})});const Bo=Vo;var Co=I(Ue);const Io=Co;var Lo=I(function(t,e){return Ct(t+1,function(){var r=arguments[t];if(r!=null&&ho(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(ue(r)+' does not have a method named "'+e+'"')})});const ar=Lo;var Go=R(function(t){return t!=null&&Lt(t,$o(t))});const Ro=Go;var Fo=I(function(t,e){return t.map(function(r){for(var n=e,a=0,i;a<r.length;){if(n==null)return;i=r[a],n=Je(i)?Xe(i,n):n[i],a+=1}return n})}),Ho=I(function(t,e){return Fo([t],e)[0]});const ir=Ho;var Yo=dt(function(t,e,r){var n={},a;e=e||{},r=r||{};for(a in e)et(a,e)&&(n[a]=et(a,r)?t(a,e[a],r[a]):e[a]);for(a in r)et(a,r)&&!et(a,n)&&(n[a]=r[a]);return n}),Wo=dt(function t(e,r,n){return Yo(function(a,i,s){return Rt(i)&&Rt(s)?t(e,i,s):e(a,i,s)},r,n)}),Uo=I(function(t,e){return Wo(function(r,n,a){return a},t,e)});const Ko=Uo;var Zo=I(function(t,e){for(var r={},n={},a=0,i=t.length;a<i;)n[t[a]]=1,a+=1;for(var s in e)n.hasOwnProperty(s)||(r[s]=e[s]);return r});const qo=Zo;var Jo=I(function(t,e){return Array.prototype.slice.call(e,0).sort(function(r,n){for(var a=0,i=0;a===0&&i<t.length;)a=t[i](r,n),i+=1;return a})});const sr=Jo;var Xo=ar(1,"split");const At=Xo;var Qo=ar(0,"toLowerCase");const ta=Qo;var Et=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,ea="",ra=typeof String.prototype.trim=="function",na=R(!ra||Et.trim()||!ea.trim()?function(t){var e=new RegExp("^["+Et+"]["+Et+"]*"),r=new RegExp("["+Et+"]["+Et+"]*$");return t.replace(e,"").replace(r,"")}:function(t){return t.trim()});const Yt=na,lr=Symbol("I18nContext"),Y=o.reactive({messages:{},locale:"",fallbackLocale:""}),oa=({messages:t={},locale:e="",fallbackLocale:r=""})=>{Y.messages=t,Y.locale=e,Y.fallbackLocale=r;const n=(l,c={})=>{const p=!Ro(c),d=yt(Yt,At(".",l));return o.computed(()=>{const u=cr(d);return p?ia(u,c):u}).value},a=l=>{const c=yt(Yt,At(".",l));return!!me(Y.locale,c,Y.messages)},i=l=>{Y.locale=l},s={locale:o.computed({get(){return Y.locale},set(l){Y.locale=l}}),setLocale:i,translate:n,hasTranlation:a};return o.provide(lr,s),{translate:n}},ot=t=>{t&&(Y.messages=t.messages,Y.locale=t.locale,Y.fallbackLocale=t.fallbackLocale);const e=aa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},aa=()=>{const t=o.inject(lr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},cr=(t=[])=>{let e=me(Y.locale,t,Y.messages);return!e&&Y.fallbackLocale&&(e=me(Y.fallbackLocale,t,Y.messages)),e||t.join(".")};function me(t,e,r){return ir([t,...e],r)}const ia=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},sa=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=yt(Yt,At(".",t.path)),n=cr(r),a=At(/{|}/,n),i=Object.keys(e).map(s=>{const l=a.indexOf(s);return l>-1&&(a[l]=e[s]()[0]),a});return()=>o.h(t.tag,i)}}),la="https://api.icehockey.hu/vbr",ca="https://www.jegkorongszovetseg.hu/event/game/",at="original",_t="descend",vt="ascend",ua=new Map().set("hu","hu-hu").set("en","hu-gb"),da=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),pa=1e3,fa={"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"},ma=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),ga=[ma];function ha(t,e){return o.openBlock(),o.createElementBlock("svg",fa,ga)}const ur={render:ha},ba={"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"},ya=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),va=[ya];function wa(t,e){return o.openBlock(),o.createElementBlock("svg",ba,va)}const xa={render:wa},ka={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},za=o.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),Sa=[za];function ja(t,e){return o.openBlock(),o.createElementBlock("svg",ka,Sa)}const Aa={render:ja};function Pt(t){return t.split("-")[1]}function ge(t){return t==="y"?"height":"width"}function ft(t){return t.split("-")[0]}function Ot(t){return["top","bottom"].includes(ft(t))?"x":"y"}function dr(t,e,r){let{reference:n,floating:a}=t;const i=n.x+n.width/2-a.width/2,s=n.y+n.height/2-a.height/2,l=Ot(e),c=ge(l),p=n[c]/2-a[c]/2,d=l==="x";let u;switch(ft(e)){case"top":u={x:i,y:n.y-a.height};break;case"bottom":u={x:i,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:s};break;case"left":u={x:n.x-a.width,y:s};break;default:u={x:n.x,y:n.y}}switch(Pt(e)){case"start":u[l]-=p*(r&&d?-1:1);break;case"end":u[l]+=p*(r&&d?-1:1)}return u}const Ea=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let p=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:u}=dr(p,n,c),f=n,m={},b=0;for(let g=0;g<l.length;g++){const{name:h,fn:v}=l[g],{x:w,y,data:S,reset:E}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:a,middlewareData:m,rects:p,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,m={...m,[h]:{...m[h],...S}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):E.rects),{x:d,y:u}=dr(p,f,c)),g=-1)}return{x:d,y:u,placement:f,strategy:a,middlewareData:m}};function pr(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 Wt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function fr(t,e){var r;e===void 0&&(e={});const{x:n,y:a,platform:i,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:m=0}=e,b=pr(m),g=l[f?u==="floating"?"reference":"floating":u],h=Wt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:d,strategy:c})),v=u==="floating"?{...s.floating,x:n,y:a}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),y=await(i.isElement==null?void 0:i.isElement(w))&&await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1},S=Wt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(h.top-S.top+b.top)/y.y,bottom:(S.bottom-h.bottom+b.bottom)/y.y,left:(h.left-S.left+b.left)/y.x,right:(S.right-h.right+b.right)/y.x}}const _a=Math.min,Pa=Math.max;function he(t,e,r){return Pa(t,_a(e,r))}const mr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:a,y:i,placement:s,rects:l,platform:c,elements:p}=e;if(r==null)return{};const d=pr(n),u={x:a,y:i},f=Ot(s),m=ge(f),b=await c.getDimensions(r),g=f==="y",h=g?"top":"left",v=g?"bottom":"right",w=g?"clientHeight":"clientWidth",y=l.reference[m]+l.reference[f]-u[f]-l.floating[m],S=u[f]-l.reference[f],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let $=E?E[w]:0;$&&await(c.isElement==null?void 0:c.isElement(E))||($=p.floating[w]||l.floating[m]);const M=y/2-S/2,D=d[h],T=$-b[m]-d[v],P=$/2-b[m]/2+M,V=he(D,P,T),F=Pt(s)!=null&&P!=V&&l.reference[m]/2-(P<D?d[h]:d[v])-b[m]/2<0;return{[f]:u[f]-(F?P<D?D-P:T-P:0),data:{[f]:V,centerOffset:P-V}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Oa={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(t){return t.replace(/left|right|bottom|top/g,e=>Oa[e])}function Ta(t,e,r){r===void 0&&(r=!1);const n=Pt(t),a=Ot(t),i=ge(a);let s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Ut(s)),{main:s,cross:Ut(s)}}const Na={start:"end",end:"start"};function be(t){return t.replace(/start|end/g,e=>Na[e])}const $a=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...g}=t,h=ft(n),v=ft(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),y=u||(v||!b?[Ut(s)]:function(V){const F=Ut(V);return[be(V),F,be(F)]}(s));u||m==="none"||y.push(...function(V,F,A,z){const k=Pt(V);let j=function(x,_,O){const N=["left","right"],G=["right","left"],L=["top","bottom"],H=["bottom","top"];switch(x){case"top":case"bottom":return O?_?G:N:_?N:G;case"left":case"right":return _?L:H;default:return[]}}(ft(V),A==="start",z);return k&&(j=j.map(x=>x+"-"+k),F&&(j=j.concat(j.map(be)))),j}(s,b,m,w));const S=[s,...y],E=await fr(e,g),$=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&$.push(E[h]),d){const{main:V,cross:F}=Ta(n,i,w);$.push(E[V],E[F])}if(M=[...M,{placement:n,overflows:$}],!$.every(V=>V<=0)){var D,T;const V=(((D=a.flip)==null?void 0:D.index)||0)+1,F=S[V];if(F)return{data:{index:V,overflows:M},reset:{placement:F}};let A=(T=M.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:T.placement;if(!A)switch(f){case"bestFit":{var P;const z=(P=M.map(k=>[k.placement,k.overflows.filter(j=>j>0).reduce((j,x)=>j+x,0)]).sort((k,j)=>k[1]-j[1])[0])==null?void 0:P[0];z&&(A=z);break}case"initialPlacement":A=s}if(n!==A)return{reset:{placement:A}}}return{}}}},Da=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,a=await async function(i,s){const{placement:l,platform:c,elements:p}=i,d=await(c.isRTL==null?void 0:c.isRTL(p.floating)),u=ft(l),f=Pt(l),m=Ot(l)==="x",b=["left","top"].includes(u)?-1:1,g=d&&m?-1:1,h=typeof s=="function"?s(i):s;let{mainAxis:v,crossAxis:w,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return f&&typeof y=="number"&&(w=f==="end"?-1*y:y),m?{x:w*g,y:v*b}:{x:v*b,y:w*g}}(e,t);return{x:r+a.x,y:n+a.y,data:a}}}};function Ma(t){return t==="x"?"y":"x"}const Va=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:v,y:w}=h;return{x:v,y:w}}},...c}=t,p={x:r,y:n},d=await fr(e,c),u=Ot(ft(a)),f=Ma(u);let m=p[u],b=p[f];if(i){const h=u==="y"?"bottom":"right";m=he(m+d[u==="y"?"top":"left"],m,m-d[h])}if(s){const h=f==="y"?"bottom":"right";b=he(b+d[f==="y"?"top":"left"],b,b-d[h])}const g=l.fn({...e,[u]:m,[f]:b});return{...g,data:{x:g.x-r,y:g.y-n}}}}};function q(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){return q(t).getComputedStyle(t)}function gr(t){return t instanceof q(t).Node}function it(t){return gr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof q(t).HTMLElement}function U(t){return t instanceof q(t).Element}function hr(t){return typeof ShadowRoot>"u"?!1:t instanceof q(t).ShadowRoot||t instanceof ShadowRoot}function Tt(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=X(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(a)}function Ba(t){return["table","td","th"].includes(it(t))}function ye(t){const e=ve(),r=X(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 ve(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(it(t))}const br=Math.min,Nt=Math.max,Zt=Math.round;function yr(t){const e=X(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=Q(t),i=a?t.offsetWidth:r,s=a?t.offsetHeight:n,l=Zt(r)!==i||Zt(n)!==s;return l&&(r=i,n=s),{width:r,height:n,fallback:l}}function vr(t){return U(t)?t:t.contextElement}const wr={x:1,y:1};function wt(t){const e=vr(t);if(!Q(e))return wr;const r=e.getBoundingClientRect(),{width:n,height:a,fallback:i}=yr(e);let s=(i?Zt(r.width):r.width)/n,l=(i?Zt(r.height):r.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const xr={x:0,y:0};function kr(t,e,r){var n,a;if(e===void 0&&(e=!0),!ve())return xr;const i=t?q(t):window;return!r||e&&r!==i?xr:{x:((n=i.visualViewport)==null?void 0:n.offsetLeft)||0,y:((a=i.visualViewport)==null?void 0:a.offsetTop)||0}}function mt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),i=vr(t);let s=wr;e&&(n?U(n)&&(s=wt(n)):s=wt(t));const l=kr(i,r,n);let c=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,d=a.width/s.x,u=a.height/s.y;if(i){const f=q(i),m=n&&U(n)?q(n):n;let b=f.frameElement;for(;b&&n&&m!==f;){const g=wt(b),h=b.getBoundingClientRect(),v=getComputedStyle(b);h.x+=(b.clientLeft+parseFloat(v.paddingLeft))*g.x,h.y+=(b.clientTop+parseFloat(v.paddingTop))*g.y,c*=g.x,p*=g.y,d*=g.x,u*=g.y,c+=h.x,p+=h.y,b=q(b).frameElement}}return Wt({width:d,height:u,x:c,y:p})}function st(t){return((gr(t)?t.ownerDocument:t.document)||window.document).documentElement}function qt(t){return U(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zr(t){return mt(st(t)).left+qt(t).scrollLeft}function xt(t){if(it(t)==="html")return t;const e=t.assignedSlot||t.parentNode||hr(t)&&t.host||st(t);return hr(e)?e.host:e}function Sr(t){const e=xt(t);return Kt(e)?e.ownerDocument.body:Q(e)&&Tt(e)?e:Sr(e)}function $t(t,e){var r;e===void 0&&(e=[]);const n=Sr(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),i=q(n);return a?e.concat(i,i.visualViewport||[],Tt(n)?n:[]):e.concat(n,$t(n))}function jr(t,e,r){let n;if(e==="viewport")n=function(a,i){const s=q(a),l=st(a),c=s.visualViewport;let p=l.clientWidth,d=l.clientHeight,u=0,f=0;if(c){p=c.width,d=c.height;const m=ve();(!m||m&&i==="fixed")&&(u=c.offsetLeft,f=c.offsetTop)}return{width:p,height:d,x:u,y:f}}(t,r);else if(e==="document")n=function(a){const i=st(a),s=qt(a),l=a.ownerDocument.body,c=Nt(i.scrollWidth,i.clientWidth,l.scrollWidth,l.clientWidth),p=Nt(i.scrollHeight,i.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+zr(a);const u=-s.scrollTop;return X(l).direction==="rtl"&&(d+=Nt(i.clientWidth,l.clientWidth)-c),{width:c,height:p,x:d,y:u}}(st(t));else if(U(e))n=function(a,i){const s=mt(a,!0,i==="fixed"),l=s.top+a.clientTop,c=s.left+a.clientLeft,p=Q(a)?wt(a):{x:1,y:1};return{width:a.clientWidth*p.x,height:a.clientHeight*p.y,x:c*p.x,y:l*p.y}}(e,r);else{const a=kr(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Wt(n)}function Ar(t,e){const r=xt(t);return!(r===e||!U(r)||Kt(r))&&(X(r).position==="fixed"||Ar(r,e))}function Er(t,e){return Q(t)&&X(t).position!=="fixed"?e?e(t):t.offsetParent:null}function _r(t,e){const r=q(t);if(!Q(t))return r;let n=Er(t,e);for(;n&&Ba(n)&&X(n).position==="static";)n=Er(n,e);return n&&(it(n)==="html"||it(n)==="body"&&X(n).position==="static"&&!ye(n))?r:n||function(a){let i=xt(a);for(;Q(i)&&!Kt(i);){if(ye(i))return i;i=xt(i)}return null}(t)||r}function Ca(t,e,r){const n=Q(e),a=st(e),i=r==="fixed",s=mt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(n||!n&&!i)if((it(e)!=="body"||Tt(a))&&(l=qt(e)),Q(e)){const p=mt(e,!0,i,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else a&&(c.x=zr(a));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}const Ia={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const i=r==="clippingAncestors"?function(p,d){const u=d.get(p);if(u)return u;let f=$t(p).filter(h=>U(h)&&it(h)!=="body"),m=null;const b=X(p).position==="fixed";let g=b?xt(p):p;for(;U(g)&&!Kt(g);){const h=X(g),v=ye(g);v||h.position!=="fixed"||(m=null),(b?!v&&!m:!v&&h.position==="static"&&m&&["absolute","fixed"].includes(m.position)||Tt(g)&&!v&&Ar(p,g))?f=f.filter(w=>w!==g):m=h,g=xt(g)}return d.set(p,f),f}(e,this._c):[].concat(r),s=[...i,n],l=s[0],c=s.reduce((p,d)=>{const u=jr(e,d,a);return p.top=Nt(u.top,p.top),p.right=br(u.right,p.right),p.bottom=br(u.bottom,p.bottom),p.left=Nt(u.left,p.left),p},jr(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const a=Q(r),i=st(r);if(r===i)return e;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&n!=="fixed")&&((it(r)!=="body"||Tt(i))&&(s=qt(r)),Q(r))){const p=mt(r);l=wt(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}},isElement:U,getDimensions:function(t){return yr(t)},getOffsetParent:_r,getDocumentElement:st,getScale:wt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const a=this.getOffsetParent||_r,i=this.getDimensions;return{reference:Ca(e,await a(r),n),floating:{x:0,y:0,...await i(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>X(t).direction==="rtl"};function La(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:l=!1}=n,c=a||i?[...U(t)?$t(t):t.contextElement?$t(t.contextElement):[],...$t(e)]:[];c.forEach(f=>{const m=!U(f)&&f.toString().includes("V");!a||l&&!m||f.addEventListener("scroll",r,{passive:!0}),i&&f.addEventListener("resize",r)});let p,d=null;s&&(d=new ResizeObserver(()=>{r()}),U(t)&&!l&&d.observe(t),U(t)||!t.contextElement||l||d.observe(t.contextElement),d.observe(e));let u=l?mt(t):null;return l&&function f(){const m=mt(t);!u||m.x===u.x&&m.y===u.y&&m.width===u.width&&m.height===u.height||r(),u=m,p=requestAnimationFrame(f)}(),r(),()=>{var f;c.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),(f=d)==null||f.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Ga=(t,e,r)=>{const n=new Map,a={platform:Ia,...r},i={...a.platform,_c:n};return Ea(t,e,{...a,platform:i})},Ra=(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 Fa({middleware:t,placement:e=null,strategy:r,append:n,enabled:a}){const i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.ref(null),p=o.ref(null),d=o.ref(null),u=o.ref(null),f=o.ref(r??"absolute"),m=o.ref(null),b=()=>{!i.value||!s.value||Ga(i.value,s.value,{middleware:t,placement:e,strategy:r}).then(h=>{l.value=h.x,c.value=h.y,f.value=h.strategy,p.value=h.middlewareData.arrow.x,d.value=h.middlewareData.arrow.y,u.value=h.placement})};o.watch(()=>({reference:o.unref(i),floating:o.unref(s),append:o.unref(n)}),({floating:h,append:v})=>{v&&Ra(h,v),b()},{flush:"post"}),o.watch(a,h=>{if(!(!i.value||!s.value)){if(!h)return g();m.value=La(i.value,s.value,b,{})}},{flush:"post"});const g=()=>{var h;(h=m.value)==null||h.call(m),m.value=null};return{x:l,y:c,arrowX:p,arrowY:d,placement:u,reference:i,floating:s,strategy:f,update:b}}const Ha=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?mr({element:e.value,padding:r}).fn(n):{}:e?mr({element:e,padding:r}).fn(n):{}}}},Ya=["data-placement"],Pr={__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:a,y:i,arrowX:s,arrowY:l,placement:c,reference:p,floating:d,strategy:u}=Fa({placement:e.placement,middleware:[$a(),Va({padding:5}),Da(e.offset),Ha({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),f=()=>{e.disabled||r.value||(r.value=!0)},m=h=>{r.value&&h&&(r.value=!1)},b=h=>{p.value=h},g={mouseenter:f,mouseleave:m,focus:f,blur:m};return Sn(d,h=>{var v;(v=p.value)!=null&&v.contains(h.target)||m()}),(h,v)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(h.$slots,"default",{setRef:b,show:f,hide:m,events:g}),o.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":o.unref(c),style:o.normalizeStyle({position:o.unref(u),top:o.unref(i)?`${o.unref(i)}px`:"",left:o.unref(a)?`${o.unref(a)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(h.$slots,"content",{close:m},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(u),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,Ya)],64))}},Wa=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ua={key:0},Ka=["colspan"],Za={key:1},qa=["colspan"],Ja={__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:a}=o.toRefs(r),i=Ie(n,{delay:pa}),{t:s}=ot(),l=rt("table"),c=o.computed(()=>r.columns),p=o.computed(()=>Object.keys(r.columns).length),d=(u,f)=>{u.sortOrders&&e("sort",{target:f,orders:u.sortOrders})};return(u,f)=>(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(c.value,(m,b)=>(o.openBlock(),o.createBlock(Pr,{key:b,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":o.unref(a)},{default:o.withCtx(({setRef:g,show:h,hide:v})=>[o.createElementVNode("th",{ref_for:!0,ref:g,class:o.normalizeClass([[m.class],{"is-active":b===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(at),"is-sortable":m.sortOrders,"is-desc":b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(_t),"is-asc":b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(vt)}]),onMouseenter:h,onMouseleave:v,onFocus:h,onBlur:v,onClick:w=>d(m,b),onKeydown:[o.withKeys(o.withModifiers(w=>d(m,b),["prevent"]),["space"]),o.withKeys(o.withModifiers(w=>d(m,b),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[o.renderSlot(u.$slots,`header-${b}`,{column:m},()=>[o.createTextVNode(o.toDisplayString(m.label),1)]),m.sortOrders&&b!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(ur),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(at)?(o.openBlock(),o.createBlock(o.unref(ur),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(_t)?(o.openBlock(),o.createBlock(o.unref(xa),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),b===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(vt)?(o.openBlock(),o.createBlock(o.unref(Aa),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,Wa)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(m,b)=>(o.openBlock(),o.createElementBlock("tr",{key:b},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(g,h)=>(o.openBlock(),o.createElementBlock("td",{key:h,class:o.normalizeClass([[g.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(at)}])},[o.renderSlot(u.$slots,`cell-${h}`,{row:m,prop:h},()=>[o.createTextVNode(o.toDisplayString(m[h]),1)])],2))),128))]))),128))]),o.unref(i)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Ua,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:p.value},[o.renderSlot(u.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.loading")),1)])],8,Ka)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(i)?(o.openBlock(),o.createElementBlock("tfoot",Za,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:p.value},[o.renderSlot(u.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.noData")),1)])],8,qa)])])):o.createCommentVNode("",!0)],2))}},Xa={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"},Qa=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),ti=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ei=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ri=[Qa,ti,ei];function ni(t,e){return o.openBlock(),o.createElementBlock("svg",Xa,ri)}const oi={render:ni},ai={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=ot(),a=rt("error-notice"),i=o.computed(()=>{var s;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(s=e.error)==null?void 0:s.message}`});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a))},[o.createVNode(o.unref(oi),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(i.value),1)],2))}};function ii(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const Or=Symbol("ErrorProviderContext"),si=()=>{const t=o.ref(""),e=o.ref({}),r=n=>{console.log({error:n}),t.value=n.message||n.error.message,e.value={message:n.message,key:n.key||ii(n.message),cause:n.cause}};return o.provide(Or,{onError:r,reset:()=>{t.value="",e.value={}}}),window.onerror=n=>{console.log("WINDOW_ONERROR:",n)},o.onErrorCaptured((n,a,i)=>{console.log("onErrorCaptured:",n,a,i)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Tr=()=>{const t=li();return{onError:t.onError,reset:t.reset}},li=()=>{const t=o.inject(Or,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},ci={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=si();return(a,i)=>o.renderSlot(a.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},ui={"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ő"},di={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ó"},pi={blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"M",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"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"}},fi={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"}},mi={errors:ui,common:di,table:pi,game:fi},gi={"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},hi={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"},bi={blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"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"}},yi={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"}},vi={errors:gi,common:hi,table:bi,game:yi},wi=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},xi=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Ko({hu:mi,en:vi},t.messages),{translate:r}=oa({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function ki(t,e,r,n,a,i){return o.renderSlot(t.$slots,"default",{t:t.translate})}const zi=wi(xi,[["render",ki]]),Si=["src"],ji=["src","title"],Nr=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:a,isReady:i}=Bn(n,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",s.$attrs.class])},null,10,Si)):o.createCommentVNode("",!0),o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(i)}]),title:e.title},null,10,ji))],64))}}),Ai={style:{"text-align":"center"}},$r={__name:"LoadingIndicator",setup(t){const{t:e}=ot();return(r,n)=>(o.openBlock(),o.createElementBlock("div",Ai,o.toDisplayString(o.unref(e)("common.loading")),1))}},Ei={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=rt("table-responsive");return(n,a)=>(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 Dr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",l="minute",c="hour",p="day",d="week",u="month",f="quarter",m="year",b="date",g="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,w={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(A){var z=["th","st","nd","rd"],k=A%100;return"["+A+(z[(k-20)%10]||z[k]||z[0])+"]"}},y=function(A,z,k){var j=String(A);return!j||j.length>=z?A:""+Array(z+1-j.length).join(k)+A},S={s:y,z:function(A){var z=-A.utcOffset(),k=Math.abs(z),j=Math.floor(k/60),x=k%60;return(z<=0?"+":"-")+y(j,2,"0")+":"+y(x,2,"0")},m:function A(z,k){if(z.date()<k.date())return-A(k,z);var j=12*(k.year()-z.year())+(k.month()-z.month()),x=z.clone().add(j,u),_=k-x<0,O=z.clone().add(j+(_?-1:1),u);return+(-(j+(k-x)/(_?x-O:O-x))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:m,w:d,d:p,D:b,h:c,m:l,s,ms:i,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},E="en",$={};$[E]=w;var M=function(A){return A instanceof V},D=function A(z,k,j){var x;if(!z)return E;if(typeof z=="string"){var _=z.toLowerCase();$[_]&&(x=_),k&&($[_]=k,x=_);var O=z.split("-");if(!x&&O.length>1)return A(O[0])}else{var N=z.name;$[N]=z,x=N}return!j&&x&&(E=x),x||!j&&E},T=function(A,z){if(M(A))return A.clone();var k=typeof z=="object"?z:{};return k.date=A,k.args=arguments,new V(k)},P=S;P.l=D,P.i=M,P.w=function(A,z){return T(A,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var V=function(){function A(k){this.$L=D(k.locale,null,!0),this.parse(k)}var z=A.prototype;return z.parse=function(k){this.$d=function(j){var x=j.date,_=j.utc;if(x===null)return new Date(NaN);if(P.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var O=x.match(h);if(O){var N=O[2]-1||0,G=(O[7]||"0").substring(0,3);return _?new Date(Date.UTC(O[1],N,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)):new Date(O[1],N,O[3]||1,O[4]||0,O[5]||0,O[6]||0,G)}}return new Date(x)}(k),this.$x=k.x||{},this.init()},z.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},z.$utils=function(){return P},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function(k,j){var x=T(k);return this.startOf(j)<=x&&x<=this.endOf(j)},z.isAfter=function(k,j){return T(k)<this.startOf(j)},z.isBefore=function(k,j){return this.endOf(j)<T(k)},z.$g=function(k,j,x){return P.u(k)?this[j]:this.set(x,k)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(k,j){var x=this,_=!!P.u(j)||j,O=P.p(k),N=function(kt,W){var ut=P.w(x.$u?Date.UTC(x.$y,W,kt):new Date(x.$y,W,kt),x);return _?ut:ut.endOf(p)},G=function(kt,W){return P.w(x.toDate()[kt].apply(x.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(W)),x)},L=this.$W,H=this.$M,ct=this.$D,nt="set"+(this.$u?"UTC":"");switch(O){case m:return _?N(1,0):N(31,11);case u:return _?N(1,H):N(0,H+1);case d:var Mt=this.$locale().weekStart||0,Vt=(L<Mt?L+7:L)-Mt;return N(_?ct-Vt:ct+(6-Vt),H);case p:case b:return G(nt+"Hours",0);case c:return G(nt+"Minutes",1);case l:return G(nt+"Seconds",2);case s:return G(nt+"Milliseconds",3);default:return this.clone()}},z.endOf=function(k){return this.startOf(k,!1)},z.$set=function(k,j){var x,_=P.p(k),O="set"+(this.$u?"UTC":""),N=(x={},x[p]=O+"Date",x[b]=O+"Date",x[u]=O+"Month",x[m]=O+"FullYear",x[c]=O+"Hours",x[l]=O+"Minutes",x[s]=O+"Seconds",x[i]=O+"Milliseconds",x)[_],G=_===p?this.$D+(j-this.$W):j;if(_===u||_===m){var L=this.clone().set(b,1);L.$d[N](G),L.init(),this.$d=L.set(b,Math.min(this.$D,L.daysInMonth())).$d}else N&&this.$d[N](G);return this.init(),this},z.set=function(k,j){return this.clone().$set(k,j)},z.get=function(k){return this[P.p(k)]()},z.add=function(k,j){var x,_=this;k=Number(k);var O=P.p(j),N=function(H){var ct=T(_);return P.w(ct.date(ct.date()+Math.round(H*k)),_)};if(O===u)return this.set(u,this.$M+k);if(O===m)return this.set(m,this.$y+k);if(O===p)return N(1);if(O===d)return N(7);var G=(x={},x[l]=n,x[c]=a,x[s]=r,x)[O]||1,L=this.$d.getTime()+k*G;return P.w(L,this)},z.subtract=function(k,j){return this.add(-1*k,j)},z.format=function(k){var j=this,x=this.$locale();if(!this.isValid())return x.invalidDate||g;var _=k||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),N=this.$H,G=this.$m,L=this.$M,H=x.weekdays,ct=x.months,nt=function(W,ut,Pe,Qt){return W&&(W[ut]||W(j,_))||Pe[ut].slice(0,Qt)},Mt=function(W){return P.s(N%12||12,W,"0")},Vt=x.meridiem||function(W,ut,Pe){var Qt=W<12?"AM":"PM";return Pe?Qt.toLowerCase():Qt},kt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:P.s(L+1,2,"0"),MMM:nt(x.monthsShort,L,ct,3),MMMM:nt(ct,L),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:nt(x.weekdaysMin,this.$W,H,2),ddd:nt(x.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(N),HH:P.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Vt(N,G,!0),A:Vt(N,G,!1),m:String(G),mm:P.s(G,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:O};return _.replace(v,function(W,ut){return ut||kt[W]||O.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(k,j,x){var _,O=P.p(j),N=T(k),G=(N.utcOffset()-this.utcOffset())*n,L=this-N,H=P.m(this,N);return H=(_={},_[m]=H/12,_[u]=H,_[f]=H/3,_[d]=(L-G)/6048e5,_[p]=(L-G)/864e5,_[c]=L/a,_[l]=L/n,_[s]=L/r,_)[O]||L,x?H:P.a(H)},z.daysInMonth=function(){return this.endOf(u).$D},z.$locale=function(){return $[this.$L]},z.locale=function(k,j){if(!k)return this.$L;var x=this.clone(),_=D(k,j,!0);return _&&(x.$L=_),x},z.clone=function(){return P.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},A}(),F=V.prototype;return T.prototype=F,[["$ms",i],["$s",s],["$m",l],["$H",c],["$W",p],["$M",u],["$y",m],["$D",b]].forEach(function(A){F[A[1]]=function(z){return this.$g(z,A[0],A[1])}}),T.extend=function(A,z){return A.$i||(A(z,V,T),A.$i=!0),T},T.locale=D,T.isDayjs=M,T.unix=function(A){return T(1e3*A)},T.en=$[E],T.Ls=$,T.p={},T})})(Dr);var Mr=Dr.exports;const J=gt(Mr);var Vr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,l){var c=s.prototype;l.utc=function(g){var h={date:g,utc:!0,args:arguments};return new s(h)},c.utc=function(g){var h=l(this.toDate(),{locale:this.$L,utc:!0});return g?h.add(this.utcOffset(),r):h},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var p=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),p.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var u=c.utcOffset;c.utcOffset=function(g,h){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?u.call(this):this.$offset;if(typeof g=="string"&&(g=function(E){E===void 0&&(E="");var $=E.match(n);if(!$)return null;var M=(""+$[0]).match(a)||["-",0,0],D=M[0],T=60*+M[1]+ +M[2];return T===0?0:D==="+"?T:-T}(g),g===null))return this;var w=Math.abs(g)<=16?60*g:g,y=this;if(h)return y.$offset=w,y.$u=g===0,y;if(g!==0){var S=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(y=this.local().add(w+S,r)).$offset=w,y.$x.$localOffset=S}else y=this.utc();return y};var f=c.format;c.format=function(g){var h=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,h)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var m=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var b=c.diff;c.diff=function(g,h,v){if(g&&this.$u===g.$u)return b.call(this,g,h,v);var w=this.local(),y=l(g).local();return b.call(w,y,h,v)}}})})(Vr);var _i=Vr.exports;const Pi=gt(_i);var Br={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(a,i,s){var l,c=function(f,m,b){b===void 0&&(b={});var g=new Date(f),h=function(v,w){w===void 0&&(w={});var y=w.timeZoneName||"short",S=v+"|"+y,E=n[S];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:y}),n[S]=E),E}(m,b);return h.formatToParts(g)},p=function(f,m){for(var b=c(f,m),g=[],h=0;h<b.length;h+=1){var v=b[h],w=v.type,y=v.value,S=r[w];S>=0&&(g[S]=parseInt(y,10))}var E=g[3],$=E===24?0:E,M=g[0]+"-"+g[1]+"-"+g[2]+" "+$+":"+g[4]+":"+g[5]+":000",D=+f;return(s.utc(M).valueOf()-(D-=D%1e3))/6e4},d=i.prototype;d.tz=function(f,m){f===void 0&&(f=l);var b=this.utcOffset(),g=this.toDate(),h=g.toLocaleString("en-US",{timeZone:f}),v=Math.round((g-new Date(h))/1e3/60),w=s(h).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-v,!0);if(m){var y=w.utcOffset();w=w.add(b-y,"minute")}return w.$x.$timezone=f,w},d.offsetName=function(f){var m=this.$x.$timezone||s.tz.guess(),b=c(this.valueOf(),m,{timeZoneName:f}).find(function(g){return g.type.toLowerCase()==="timezonename"});return b&&b.value};var u=d.startOf;d.startOf=function(f,m){if(!this.$x||!this.$x.$timezone)return u.call(this,f,m);var b=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(b,f,m).tz(this.$x.$timezone,!0)},s.tz=function(f,m,b){var g=b&&m,h=b||m||l,v=p(+s(),h);if(typeof f!="string")return s(f).tz(h);var w=function($,M,D){var T=$-60*M*1e3,P=p(T,D);if(M===P)return[T,M];var V=p(T-=60*(P-M)*1e3,D);return P===V?[T,P]:[$-60*Math.min(P,V)*1e3,Math.max(P,V)]}(s.utc(f,g).valueOf(),v,h),y=w[0],S=w[1],E=s(y).utcOffset(S);return E.$x.$timezone=h,E},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){l=f}}})})(Br);var Oi=Br.exports;const Ti=gt(Oi);var Cr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),d=(s||"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(u){switch(u){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return p.s(l.week(),u==="w"?1:2,"0");case"W":case"WW":return p.s(l.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return p.s(String(l.$H===0?24:l.$H),u==="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 u}});return i.bind(this)(d)}}})})(Cr);var Ni=Cr.exports;const $i=gt(Ni);var Ir={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Ir);var Di=Ir.exports;const Mi=gt(Di);var Lr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,a){n.prototype.isBetween=function(i,s,l,c){var p=a(i),d=a(s),u=(c=c||"()")[0]==="(",f=c[1]===")";return(u?this.isAfter(p,l):!this.isBefore(p,l))&&(f?this.isBefore(d,l):!this.isAfter(d,l))||(u?this.isBefore(p,l):!this.isAfter(p,l))&&(f?this.isAfter(d,l):!this.isBefore(d,l))}}})})(Lr);var Vi=Lr.exports;const Bi=gt(Vi);var Gr={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,a,i){var s=a.prototype,l=s.format;i.en.formats=r,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,d=function(u,f){return u.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,b,g){var h=g&&g.toUpperCase();return b||f[g]||r[g]||f[h].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,w,y){return w||y.slice(1)})})}(c,p===void 0?{}:p);return l.call(this,d)}}})})(Gr);var Ci=Gr.exports;const Ii=gt(Ci);var Li={exports:{}};(function(t,e){(function(r,n){t.exports=n(Mr)})(lt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=n(r),i={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(s){return s+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(s,l,c,p){return"néhány másodperc"+(p||l?"":"e")},m:function(s,l,c,p){return"egy perc"+(p||l?"":"e")},mm:function(s,l,c,p){return s+" perc"+(p||l?"":"e")},h:function(s,l,c,p){return"egy "+(p||l?"óra":"órája")},hh:function(s,l,c,p){return s+" "+(p||l?"óra":"órája")},d:function(s,l,c,p){return"egy "+(p||l?"nap":"napja")},dd:function(s,l,c,p){return s+" "+(p||l?"nap":"napja")},M:function(s,l,c,p){return"egy "+(p||l?"hónap":"hónapja")},MM:function(s,l,c,p){return s+" "+(p||l?"hónap":"hónapja")},y:function(s,l,c,p){return"egy "+(p||l?"év":"éve")},yy:function(s,l,c,p){return s+" "+(p||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(i,null,!0),i})})(Li),J.extend(Pi),J.extend(Ti),J.extend($i),J.extend(Ii),J.extend(Mi),J.extend(Bi);const Rr=()=>J.tz.guess(),we=(t="",e="",r="",n="hu")=>(r=r||J.tz.guess(),J(t).isValid()?J(t).tz(r).locale(n).format(e):""),Dt=(t="",e="",r="hu")=>{if(!J(t).isValid())return"";e=e||J.tz.guess();const n=new Intl.DateTimeFormat(Gi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return n&&n.value},Gi=t=>ua.get(t),Ri=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Fi=["onClick"],Hi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=ot(),a=rt("timezone-selector"),i=o.computed(()=>Dt(new Date,null,r.locale)),s=Rr(),l=o.computed(()=>Array.from(da.values()).map(p=>({...p,isActive:Dt(new Date,r.currentZone,r.locale)===Dt(new Date,p.timezone,r.locale),zoneOffsetName:Dt(new Date,p.timezone,r.locale)}))),c=p=>e("change",p);return(p,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a))},[o.createVNode(o.unref(sa),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:d[0]||(d[0]=o.withModifiers(u=>c(o.unref(s)),["prevent"]))},o.toDisplayString(i.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,u=>(o.openBlock(),o.createElementBlock("a",{key:u.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":u.isActive}),onClick:o.withModifiers(f=>c(u.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${u.countryLabelKey}`))+" ("+o.toDisplayString(u.zoneOffsetName)+") ",11,Fi))),128))],2))}},Yi=(t,e="",r={})=>{const n=o.ref(""),{t:a}=ot();if(e)try{const s=Wi(o.unref(t),e);t=qo(s,o.unref(t))}catch(s){n.value=s}const i=s=>({...s,...s.label&&{label:a(s.label??"",o.unref(r))},...s.tooltip&&{tooltip:a(s.tooltip??"")}});return{columns:o.computed(()=>yt(i,o.unref(t))),error:n}},Wi=(t,e="")=>{const r=yt(Yt,At(",",e)),n=pt(t);if(r[0]==="")return resolve([]);const a=r.findIndex(i=>!n.includes(i));if(a>-1)throw r[a];return r};class Fr extends Error{constructor(e,r={}){const{key:n,cause:a}=r;super(e),this.name="WidgetError",this.key=n,this.cause=a}}const Hr={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Yr={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ui={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:""}},Ki=async(t,e,r)=>{const n=`${la}${o.unref(t)}?${Zi(r)}`;return new Promise((a,i)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":qi(e)}}).then(s=>s.json()).then(s=>{if(s.error)return i(s);a(s.data)}).catch(s=>{i(s)})})},Zi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),qi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},xe=({options:t={},transform:e=a=>a,onError:r=bt,onSuccess:n=bt})=>{const{path:a,apiKey:i,params:s}=t,{state:l,error:c,isLoading:p,execute:d}=Ve(()=>Ki(a,i,o.unref(s)).then(u=>e(u)),[],{immediate:!1,resetOnExecute:!1,onError:r,onSuccess:n});return{state:l,error:c,isLoading:p,execute:d}};/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
11
11
|
|
|
12
12
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -19,12 +19,12 @@ var MjszVbrElementsExtended=function(ht,o){"use strict";const rt=t=>({}.VITE_CSS
|
|
|
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 Ur(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return s}var Kr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Kr||(Kr={}));var Wi={type:"xstate.init"};function ke(t){return t===void 0?[]:[].concat(t)}function Zr(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 ze(t){return function(e){return t===e}}function Ui(t){return typeof t=="string"?{type:t}:t}function Jr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:ze(t)}}function qr(t,e,r){var n=e,a=!1;return[t.filter(function(i){if(i.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof i.assignment=="function"?s=i.assignment(n,r):Object.keys(i.assignment).forEach(function(l){s[l]=typeof i.assignment[l]=="function"?i.assignment[l](n,r):i.assignment[l]}),n=s,!1}return!0}),n,a]}function Ki(t,e){e===void 0&&(e={});var r=Ur(qr(ke(t.states[t.initial].entry).map(function(s){return Zr(s,e.actions)}),t.context,Wi),2),n=r[0],a=r[1],i={config:t,_options:e,initialState:{value:t.initial,actions:n,context:a,matches:ze(t.initial)},transition:function(s,l){var c,p,d=typeof s=="string"?{value:s,context:t.context}:s,u=d.value,f=d.context,m=Ui(l),b=t.states[u];if(b.on){var g=ke(b.on[m.type]);try{for(var h=function(x){var _=typeof Symbol=="function"&&Symbol.iterator,O=_&&x[_],N=0;if(O)return O.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&N>=x.length&&(x=void 0),{value:x&&x[N++],done:!x}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),v=h.next();!v.done;v=h.next()){var w=v.value;if(w===void 0)return Jr(u,f);var y=typeof w=="string"?{target:w}:w,S=y.target,E=y.actions,D=E===void 0?[]:E,M=y.cond,$=M===void 0?function(){return!0}:M,P=S===void 0,T=S??u,V=t.states[T];if($(f,m)){var F=Ur(qr((P?ke(D):[].concat(b.exit,D,V.entry).filter(function(x){return x})).map(function(x){return Zr(x,i._options.actions)}),f,m),3),A=F[0],z=F[1],k=F[2],j=S??u;return{value:j,context:z,actions:A,changed:S!==u||A.length>0||k,matches:ze(j)}}}}catch(x){c={error:x}}finally{try{v&&!v.done&&(p=h.return)&&p.call(h)}finally{if(c)throw c.error}}}return Jr(u,f)}};return i}Ki({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:_t,DIRECTION2:vt}},[_t]:{on:{DIRECTION1:vt,DIRECTION2:at}},[vt]:{on:{DIRECTION1:at,DIRECTION2:_t}}}});const Zi=(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 a=r.map(s=>n?fe(ir(s),Lt(e)):fe(Ht(s),ea,Lo(e))),i=Ze(go([...a]),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===at)return this;const r=Co(Lt(vt),nr(or),nr(No));return this.result=sr(e.orders.map(n=>Eo(r(n.direction),Ht)(n.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,n,a)=>{const i=r[r.length-1]||[],s=e&&i[e]===n[e];return n.index=s?i.index:a+1,n.indexClass=s?"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,a=n+r;return this.result=this.result.slice(n,a),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:we(n.gameDate,"L dddd",e,r),gameDateTime:we(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`]=Bi(r[n]):r),r)),this},groupByDays(){return this.result=Vo(e=>we(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Ji=(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),qi=sr([Ji,or(Ht("id"))]),Xi=(t,e)=>{const r=Qi("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:ua+e},Qi=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},ts={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"},es=o.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),rs=o.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),ns=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),os=[es,rs,ns];function as(t,e){return o.openBlock(),o.createElementBlock("svg",ts,os)}const is={render:as},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"},ls=o.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),cs=o.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),us=o.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),ds=[ls,cs,us];function ps(t,e){return o.openBlock(),o.createElementBlock("svg",ss,ds)}const fs={render:ps},ms={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"},gs=o.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),hs=o.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),bs=[gs,hs];function ys(t,e){return o.openBlock(),o.createElementBlock("svg",ms,bs)}const vs={render:ys},ws={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"},xs=o.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),ks=o.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),zs=[xs,ks];function Ss(t,e){return o.openBlock(),o.createElementBlock("svg",ws,zs)}const js={render:Ss},As={class:"is-team-name-long"},Es={class:"is-team-name-short"},_s={class:"is-team-name-long"},Ts={class:"is-team-name-short"},Os={key:0,class:"is-text-dark"},Ps=["href","target"],Ns={key:0,class:"label"},Ds={key:1,class:"label"},$s={key:2,class:"label"},Ms={key:1},Vs=["onClick","onFocus","onBlur"],Bs={class:"is-dropdown-menu"},Cs=["href","target"],Is={key:0},Ls=["href"],Gs={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,r=o.ref(null),{onError:n}=Nr(),{columns:a,error:i}=Li(Ri,e.hideColumns,o.computed(()=>({offsetName:e.offsetName})));Sn(i,()=>n(new Hr(Yr.message,{...Yr.options,cause:{column:i.value}})),{immediate:!0});const{t:s}=ot();return(l,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(ki,null,{default:o.withCtx(({el:p})=>[o.createVNode(Wa,{columns:o.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||p},{"cell-homeTeamName":o.withCtx(({row:d})=>[o.createElementVNode("span",As,o.toDisplayString(d.homeTeam.longName),1),o.createElementVNode("span",Es,o.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":o.withCtx(({row:d})=>[o.createElementVNode("span",_s,o.toDisplayString(d.awayTeam.longName),1),o.createElementVNode("span",Ts,o.toDisplayString(d.awayTeam.shortName),1)]),"cell-homeTeamLogo":o.withCtx(({row:d})=>[(o.openBlock(),o.createBlock(Dr,{class:"is-logo-image is-right",key:d.homeTeam.id,src:d.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":o.withCtx(({row:d})=>[(o.openBlock(),o.createBlock(Dr,{class:"is-logo-image is-right",key:d.awayTeam.id,src:d.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":o.withCtx(({row:d})=>[d.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Os,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},o.toDisplayString(d.homeTeamScore)+":"+o.toDisplayString(d.awayTeamScore),11,Ps))]),"cell-gameResultType":o.withCtx(({row:d})=>[d.isOvertime?(o.openBlock(),o.createElementBlock("span",Ns,o.toDisplayString(o.unref(s)("common.overtimeShort")),1)):o.createCommentVNode("",!0),d.isShootout?(o.openBlock(),o.createElementBlock("span",Ds,o.toDisplayString(o.unref(s)("common.shootoutShort")),1)):o.createCommentVNode("",!0),d.seriesStandings?(o.openBlock(),o.createElementBlock("span",$s,o.toDisplayString(d.seriesStandings),1)):o.createCommentVNode("",!0)]),"cell-broadcast":o.withCtx(({row:d})=>[d.broadcast?(o.openBlock(),o.createBlock(o.unref(is),{key:0})):(o.openBlock(),o.createElementBlock("span",Ms))]),"cell-location":o.withCtx(({row:d})=>{var u;return[o.createTextVNode(o.toDisplayString(((u=d.location)==null?void 0:u.locationName)??""),1)]}),"cell-more":o.withCtx(({row:d})=>[o.createVNode(Or,{offset:2,placement:"left",theme:"content","append-to":p},{default:o.withCtx(({setRef:u,show:f,hide:m})=>[o.createElementVNode("button",{ref:u,onClick:o.withModifiers(f,["stop"]),onFocus:f,onBlur:m},[o.createVNode(o.unref(fs))],40,Vs)]),content:o.withCtx(()=>[o.createElementVNode("ul",Bs,[o.createElementVNode("li",null,[o.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[o.createVNode(o.unref(vs),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.report")),1)],8,Cs)]),d.video?(o.openBlock(),o.createElementBlock("li",Is,[o.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[o.createVNode(o.unref(js),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.video")),1)],8,Ls)])):o.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:o.withCtx(()=>[o.createVNode($r)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),o.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}};function Rs(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Xr(t){return typeof t=="function"?t():o.unref(t)}const Fs=typeof window<"u",Hs=t=>typeof t<"u",Se=()=>{};function Ys(t,e){function r(...n){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(a).catch(i)})}return r}const Qr=t=>t();function Ws(t=Qr){const e=o.ref(!0);function r(){e.value=!1}function n(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:o.readonly(e),pause:r,resume:n,eventFilter:a}}var tn=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable,Zs=(t,e)=>{var r={};for(var n in t)Us.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&tn)for(var n of tn(t))e.indexOf(n)<0&&Ks.call(t,n)&&(r[n]=t[n]);return r};function Js(t,e,r={}){const n=r,{eventFilter:a=Qr}=n,i=Zs(n,["eventFilter"]);return o.watch(t,Ys(a,e),i)}var qs=Object.defineProperty,Xs=Object.defineProperties,Qs=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,nn=(t,e,r)=>e in t?qs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tl=(t,e)=>{for(var r in e||(e={}))en.call(e,r)&&nn(t,r,e[r]);if(qt)for(var r of qt(e))rn.call(e,r)&&nn(t,r,e[r]);return t},el=(t,e)=>Xs(t,Qs(e)),rl=(t,e)=>{var r={};for(var n in t)en.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&qt)for(var n of qt(t))e.indexOf(n)<0&&rn.call(t,n)&&(r[n]=t[n]);return r};function nl(t,e,r={}){const n=r,{eventFilter:a}=n,i=rl(n,["eventFilter"]),{eventFilter:s,pause:l,resume:c,isActive:p}=Ws(a);return{stop:Js(t,e,el(tl({},i),{eventFilter:s})),pause:l,resume:c,isActive:p}}function ol(t){var e;const r=Xr(t);return(e=r==null?void 0:r.$el)!=null?e:r}const on=Fs?window:void 0;function an(...t){let e,r,n,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,a]=t,e=on):[e,r,n,a]=t,!e)return Se;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},l=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),c=o.watch(()=>[ol(e),Xr(a)],([d,u])=>{s(),d&&i.push(...r.flatMap(f=>n.map(m=>l(d,f,m,u))))},{immediate:!0,flush:"post"}),p=()=>{c(),s()};return Rs(p),p}function sn(t,e={}){const{interrupt:r=!0,onError:n=Se,onFinished:a=Se}=e,i={pending:"pending",rejected:"rejected",fulfilled:"fulfilled"},s=Array.from(new Array(t.length),()=>({state:i.pending,data:null})),l=o.reactive(s),c=o.ref(-1);if(!t||t.length===0)return a(),{activeIndex:c,result:l};function p(d,u){c.value++,l[c.value].data=u,l[c.value].state=d}return t.reduce((d,u)=>d.then(f=>{var m;if(((m=l[c.value])==null?void 0:m.state)===i.rejected&&r){a();return}return u(f).then(b=>(p(i.fulfilled,b),c.value===t.length-1&&a(),b))}).catch(f=>(p(i.rejected,f),n(),f)),Promise.resolve()),{activeIndex:c,result:l}}function al(t){return JSON.parse(JSON.stringify(t))}function il(t="history",e={}){const{initialValue:r={},removeNullishValues:n=!0,removeFalsyValues:a=!1,write:i=!0,window:s=on}=e;if(!s)return o.reactive(r);const l=o.reactive({});function c(){if(t==="history")return s.location.search||"";if(t==="hash"){const v=s.location.hash||"",w=v.indexOf("?");return w>0?v.slice(w):""}else return(s.location.hash||"").replace(/^#/,"")}function p(v){const w=v.toString();if(t==="history")return`${w?`?${w}`:""}${s.location.hash||""}`;if(t==="hash-params")return`${s.location.search||""}${w?`#${w}`:""}`;const y=s.location.hash||"#",S=y.indexOf("?");return S>0?`${y.slice(0,S)}${w?`?${w}`:""}`:`${y}${w?`?${w}`:""}`}function d(){return new URLSearchParams(c())}function u(v){const w=new Set(Object.keys(l));for(const y of v.keys()){const S=v.getAll(y);l[y]=S.length>1?S:v.get(y)||"",w.delete(y)}Array.from(w).forEach(y=>delete l[y])}const{pause:f,resume:m}=nl(l,()=>{const v=new URLSearchParams("");Object.keys(l).forEach(w=>{const y=l[w];Array.isArray(y)?y.forEach(S=>v.append(w,S)):n&&y==null||a&&!y?v.delete(w):v.set(w,y)}),b(v)},{deep:!0});function b(v,w){f(),w&&u(v),s.history.replaceState(s.history.state,s.document.title,s.location.pathname+p(v)),m()}function g(){i&&b(d(),!0)}an(s,"popstate",g,!1),t!=="history"&&an(s,"hashchange",g,!1);const h=d();return h.keys().next().value?u(h):Object.assign(l,r),l}function sl(t,e,r,n={}){var a,i,s;const{clone:l=!1,passive:c=!1,eventName:p,deep:d=!1,defaultValue:u,shouldEmit:f}=n,m=o.getCurrentInstance(),b=r||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let g=p;e||(e="modelValue"),g=p||g||`update:${e.toString()}`;const h=y=>l?typeof l=="function"?l(y):al(y):y,v=()=>Hs(t[e])?h(t[e]):u,w=y=>{f?f(y)&&b(g,y):b(g,y)};if(c){const y=v(),S=o.ref(y);return o.watch(()=>t[e],E=>S.value=h(E)),o.watch(S,E=>{(E!==t[e]||d)&&w(E)},{deep:d}),S}else return o.computed({get(){return v()},set(y){w(y)}})}function ln(t,e,r={}){const n={};for(const a in t)n[a]=sl(t,a,e,r);return n}function C(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function K(t){return function e(r){return arguments.length===0||C(r)?e:t.apply(this,arguments)}}function Z(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return C(r)?e:K(function(a){return t(r,a)});default:return C(r)&&C(n)?e:C(r)?K(function(a){return t(a,n)}):C(n)?K(function(a){return t(r,a)}):t(r,n)}}}function Xt(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,a){return e.apply(this,arguments)};case 4:return function(r,n,a,i){return e.apply(this,arguments)};case 5:return function(r,n,a,i,s){return e.apply(this,arguments)};case 6:return function(r,n,a,i,s,l){return e.apply(this,arguments)};case 7:return function(r,n,a,i,s,l,c){return e.apply(this,arguments)};case 8:return function(r,n,a,i,s,l,c,p){return e.apply(this,arguments)};case 9:return function(r,n,a,i,s,l,c,p,d){return e.apply(this,arguments)};case 10:return function(r,n,a,i,s,l,c,p,d,u){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function cn(t,e,r){return function(){for(var n=[],a=0,i=t,s=0;s<e.length||a<arguments.length;){var l;s<e.length&&(!C(e[s])||a>=arguments.length)?l=e[s]:(l=arguments[a],a+=1),n[s]=l,C(l)||(i-=1),s+=1}return i<=0?r.apply(this,n):Xt(i,cn(t,n,r))}}var ll=Z(function(e,r){return e===1?K(r):Xt(e,cn(e,[],r))});function je(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return C(r)?e:Z(function(i,s){return t(r,i,s)});case 2:return C(r)&&C(n)?e:C(r)?Z(function(i,s){return t(i,n,s)}):C(n)?Z(function(i,s){return t(r,i,s)}):K(function(i){return t(r,n,i)});default:return C(r)&&C(n)&&C(a)?e:C(r)&&C(n)?Z(function(i,s){return t(i,s,a)}):C(r)&&C(a)?Z(function(i,s){return t(i,n,s)}):C(n)&&C(a)?Z(function(i,s){return t(r,i,s)}):C(r)?K(function(i){return t(i,n,a)}):C(n)?K(function(i){return t(r,i,a)}):C(a)?K(function(i){return t(r,n,i)}):t(r,n,a)}}}const Ae=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function cl(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function ul(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Ae(n)){for(var a=0;a<t.length;){if(typeof n[t[a]]=="function")return n[t[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(cl(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}const un={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ee(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var dn=Object.prototype.toString,dl=function(){return dn.call(arguments)==="[object Arguments]"?function(e){return dn.call(e)==="[object Arguments]"}:function(e){return Ee("callee",e)}}(),pl=!{toString:null}.propertyIsEnumerable("toString"),pn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],fn=function(){return arguments.propertyIsEnumerable("length")}(),fl=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},ml=K(typeof Object.keys=="function"&&!fn?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,a=[],i=fn&&dl(e);for(r in e)Ee(r,e)&&(!i||r!=="length")&&(a[a.length]=r);if(pl)for(n=pn.length-1;n>=0;)r=pn[n],Ee(r,e)&&!fl(a,r)&&(a[a.length]=r),n-=1;return a});function gl(t,e){for(var r=0,n=e.length,a=Array(n);r<n;)a[r]=t(e[r]),r+=1;return a}function hl(t,e,r){for(var n=0,a=r.length;n<a;)e=t(e,r[n]),n+=1;return e}var bl=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=un.init,t.prototype["@@transducer/result"]=un.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),yl=function(e){return function(r){return new bl(e,r)}},vl=Z(ul(["fantasy-land/map","map"],yl,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return ll(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return hl(function(n,a){return n[a]=e(r[a]),n},{},ml(r));default:return gl(e,r)}}));const wl=vl,xl=Number.isInteger||function(e){return e<<0===e};function _e(t){return Object.prototype.toString.call(t)==="[object String]"}var kl=Z(function(e,r){var n=e<0?r.length+e:e;return _e(r)?r.charAt(n):r[n]});const mn=kl;var zl=Z(function(e,r){if(r!=null)return xl(e)?mn(e,r):r[e]});const Sl=zl;var jl=K(function(e){return Ae(e)?!0:!e||typeof e!="object"||_e(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),gn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Al(t,e,r){return function(a,i,s){if(jl(s))return t(a,i,s);if(s==null)return i;if(typeof s["fantasy-land/reduce"]=="function")return e(a,i,s,"fantasy-land/reduce");if(s[gn]!=null)return r(a,i,s[gn]());if(typeof s.next=="function")return r(a,i,s);if(typeof s.reduce=="function")return e(a,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function El(t,e,r){for(var n=0,a=r.length;n<a;){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 _l=Z(function(e,r){return Xt(e.length,function(){return e.apply(r,arguments)})});function Tl(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 Ol(t,e,r,n){return t["@@transducer/result"](r[n](_l(t["@@transducer/step"],t),e))}var Pl=Al(El,Ol,Tl),Nl=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 Dl(t){return new Nl(t)}var $l=je(function(t,e,r){return Pl(typeof t=="function"?Dl(t):t,e,r)});const Ml=$l;function Vl(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function hn(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return Ae(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Bl=je(hn("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),Cl=K(hn("tail",Bl(1,1/0)));const Il=Cl;function Ll(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Xt(arguments[0].length,Ml(Vl,arguments[0],Il(arguments)))}var Gl=K(function(e){return _e(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Rl=Gl;function Fl(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Ll.apply(this,Rl(arguments))}var Hl=mn(0);const Yl=Hl;var Wl=je(function(e,r,n){var a=e(r),i=e(n);return a>i?-1:a<i?1:0});const Ul=Wl;var Kl=Z(function(e,r){for(var n={},a=0;a<e.length;)e[a]in r&&(n[e[a]]=r[e[a]]),a+=1;return n});const Zl=Kl;var Jl=Z(function(e,r){return Array.prototype.slice.call(r,0).sort(e)});const ql=Jl,Xl=(t,e)=>{if(t.length===0)throw new Hr(Wr.message,Wr.options);e.seasons=Ql(t),e.championshipId||(e.championshipId=Yl(e.seasons).championshipId)},Ql=t=>Fl(ql(Ul(Sl("seasonName"))),wl(Zl(["championshipId","seasonName"])))(t),tc=(t,e)=>{var r,n,a;e.championships=t,e.selectedChampionshipId=(r=t==null?void 0:t[0])==null?void 0:r.sectionId,e.phaseId=(a=(n=t==null?void 0:t[0])==null?void 0:n.phases[0])==null?void 0:a.phaseId},ec={__name:"DataProvider",props:{championshipName:{type:String,default:""},championshipId:{type:Number,default:0},limit:{type:Number,default:20},apiKey:{type:String,default:""},locale:{type:String,default:"hu"},timezone:{type:String,default:""}},setup(t){const e=t,r=il("history"),n=o.reactive({loading:!1,seasons:[],championshipId:Number(r.championshipId)||0,championships:[],phaseId:null,selectedChampionshipId:null,sections:[],section:r.section||null}),a=o.toRef(e,"timezone"),{onError:i}=Nr();o.computed(()=>{switch(n.selectedTeamGameType){case"all":return[["homeTeam","id"],["awayTeam","id"]];case"home":return[["homeTeam","id"]];default:return[["awayTeam","id"]]}});const{isLoading:s,execute:l}=xe({options:{path:"/v2/championship-seasons",apiKey:e.apiKey,params:{championshipName:e.championshipName}},transform:y=>Xl(y,n),onError:i}),{isLoading:c,execute:p}=xe({options:{path:"/v2/championship-sections",apiKey:e.apiKey,params:o.computed(()=>({championshipId:n.championshipId}))},transform:y=>tc(y,n),onError:i}),{isLoading:d,state:u,execute:f}=xe({options:{path:"/v2/games-list",apiKey:e.apiKey,params:o.computed(()=>({championshipId:n.championshipId,phaseId:n.phaseId}))},transform:y=>qi(y),onError:i}),m=Ie([c,s,d],{delay:1e3});sn([l,p,f]);const b=o.computed(()=>{const y=n.championships.find(S=>S.sectionId===n.selectedChampionshipId);return(y==null?void 0:y.phases)??[]}),g=o.computed(()=>Zi(o.unref(u)).schedule(o.unref(a),o.unref(e.locale)).value()),h=y=>{n.championshipId=y,r.championshipId=y,sn([p,f])},v=y=>{var S;n.selectedChampionshipId=y,n.phaseId=((S=b.value[0])==null?void 0:S.phaseId)??null,f()},w=y=>{n.phaseId=y,f()};return(y,S)=>o.renderSlot(y.$slots,"default",o.normalizeProps(o.guardReactiveProps({...n,games:g.value,phases:b.value,isLoading:o.unref(m),changeSeason:h,changeChampionship:v,changePhase:w})))}},rc={class:"g-row"},nc=["value"],oc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0}},emits:["update:championshipId"],setup(t,{emit:e}){const r=t,{t:n}=ot(),{championshipId:a}=ln(r,e),i=rt("label");return(s,l)=>(o.openBlock(),o.createElementBlock("div",rc,[o.createElementVNode("div",null,[o.createElementVNode("label",{for:"season",class:o.normalizeClass(o.unref(i))},o.toDisplayString(o.unref(n)("selection.season")),3),o.createVNode(o.unref(Oe),{id:"season",modelValue:o.unref(a),"onUpdate:modelValue":l[0]||(l[0]=c=>o.isRef(a)?a.value=c:null)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.seasons,c=>(o.openBlock(),o.createElementBlock("option",{key:c.championshipId,value:c.championshipId},o.toDisplayString(c.seasonName),9,nc))),128))]),_:1},8,["modelValue"])])]))}},ac={class:"g-row",style:{"column-gap":"8px"}},ic={key:0,value:null},sc=["value"],lc={__name:"Selector",props:{phases:{type:Array,default:()=>[]},phaseId:{type:Number,default:null}},emits:["update:phaseId"],setup(t,{emit:e}){const r=t,{t:n}=ot(),{phaseId:a}=ln(r,e),i=rt("label");return(s,l)=>(o.openBlock(),o.createElementBlock("div",ac,[o.createElementVNode("div",null,[o.createElementVNode("label",{for:"phases",class:o.normalizeClass(o.unref(i))},o.toDisplayString(o.unref(n)("selection.phases")),3),o.createVNode(o.unref(Oe),{id:"phases",modelValue:o.unref(a),"onUpdate:modelValue":l[0]||(l[0]=c=>o.isRef(a)?a.value=c:null),disabled:o.unref(a)===null},{default:o.withCtx(()=>[o.unref(a)===null?(o.openBlock(),o.createElementBlock("option",ic,o.toDisplayString(o.unref(n)("selection.noPhases")),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.phases,c=>(o.openBlock(),o.createElementBlock("option",{key:c.phaseId,value:c.phaseId},o.toDisplayString(c.phaseName),9,sc))),128))]),_:1},8,["modelValue","disabled"])])]))}},cc={selection:{report:"Riport",video:"Videó",season:"Szezon",section:"Szakasz",phases:"Szakaszok",noPhases:"Nincsenek szakaszok",teams:"Csapatok",filterName:"Szűrés névre",players:"Játékosok",month:"Hónap",homeOrAway:"Hazai vagy Vendég",home:"Hazai",away:"Vendég"},report:{points:"Pontok",goals:"Gólok",assists:"Gólpasszok",penalties:"Büntetések",goalies:"Kapusok",goaliesLimit:"Kapusok 40% jégidő alatt",teamAttendance:"Nézőszám",teamFairplay:"Büntetések",teamPenaltyKilling:"Emberhátrányok",teamPowerplay:"Emberelőnyök",teamScoringEfficiency:"Hatékonyság"},playoffs:{Negyeddöntő1:"Negyeddöntő 1",Negyeddöntő2:"Negyeddöntő 2",Negyeddöntő3:"Negyeddöntő 3",Negyeddöntő4:"Negyeddöntő 4",Elődöntő1:"Elődöntő 1",Elődöntő2:"Elődöntő 2",Döntő:"Döntő"}},uc={selection:{report:"Report",video:"Video",season:"Season",section:"Section",phases:"Phases",noPhases:"No Phases",teams:"Teams",filterName:"Filter by Name",players:"Players",month:"Month",homeOrAway:"Home or Away",home:"Home",away:"Away"},report:{points:"Points",goals:"Goals",assists:"Assists",penalties:"Penalties",goalies:"Goalies",goaliesLimit:"Goalies under 40%",teamAttendance:"Attendance",teamFairplay:"Fairplay",teamPenaltyKilling:"Penalty Killing",teamPowerplay:"Powerplay",teamScoringEfficiency:"Scoring Efficiency"},playoffs:{Negyeddöntő1:"Quarterfinal 1",Negyeddöntő2:"Quarterfinal 2",Negyeddöntő3:"Quarterfinal 3",Negyeddöntő4:"Quarterfinal 4",Elődöntő1:"Semifinal 1",Elődöntő2:"Semifinal 2",Döntő:"Final"}},dc=`h1,h2,h3,ul,li,dl,dt,dd{margin:0;padding:0}button{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;border-width:0;-webkit-appearance:button;background-color:transparent;background-image:none;cursor:pointer}ol,ul{list-style:none}:root,:host{font-family:Roboto Condensed,Avenir,Helvetica,Arial,sans-serif;--vbr-widget-primary-color-0: #ffffff;--vbr-widget-primary-color-50: #eceff1;--vbr-widget-primary-color-100: #cfd8dc;--vbr-widget-primary-color-200: #b0bec5;--vbr-widget-primary-color-300: #90a4ae;--vbr-widget-primary-color-400: #78909c;--vbr-widget-primary-color-500: #607d8b;--vbr-widget-primary-color-600: #546e7a;--vbr-widget-primary-color-700: #455a64;--vbr-widget-primary-color-800: #37474f;--vbr-widget-primary-color-900: #263238;--vbr-widget-secondary-color-100: #dcedc8;--vbr-widget-secondary-color-200: #badb94;--vbr-widget-secondary-color-300: #aed581;--vbr-widget-secondary-color-400: #9ccc65;--vbr-widget-secondary-color-500: #8bc34a;--vbr-widget-secondary-color-700: #689f38;--vbr-widget-secondary-color-800: #558b2f;--vbr-widget-secondary-color-900: #33691e;--vbr-widget-danger-color-50: #ffebee;--vbr-widget-danger-color-100: #ffcdd2;--vbr-widget-danger-color-200: #ef9a9a;--vbr-widget-danger-color-300: #e57373;--vbr-widget-danger-color-400: #ef5350;--vbr-widget-danger-color-500: #f44336;--vbr-widget-danger-color-700: #d32f2f;--vbr-widget-danger-color-900: #b71c1c;--vbr-widget-danger-color-a400: #ff1744;--vbr-widget-live-game-color: #8bc34a;--vbr-widget-table-header-font-size: 12px;--vbr-widget-table-default-column-width: 30px;--vbr-widget-table-default-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-table-color: var(--vbr-widget-primary-color-800);--vbr-widget-table-neutral-color: var(--vbr-widget-primary-color-300);--vbr-widget-table-header-bg-color: var(--vbr-widget-primary-color-800);--vbr-widget-table-header-hover-bg-color: var(--vbr-widget-primary-color-700);--vbr-widget-table-header-color: var(--vbr-widget-primary-color-200);--vbr-widget-table-table-header-active-bg-color: var(--vbr-widget-primary-color-700);--vbr-widget-table-header-active-color: var(--vbr-widget-primary-color-0);--vbr-widget-table-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-hover-bg-color: var(--vbr-widget-secondary-color-100);--vbr-widget-table-active-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-active-bg-color: var(--vbr-widget-secondary-color-200);--vbr-widget-table-active-even-bg-color: var(--vbr-widget-secondary-color-300);--vbr-widget-table-active-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-active-hover-bg-color: var(--vbr-widget-secondary-color-400);--vbr-widget-table-portrait-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-table-portrait-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-table-cell-light-color: var(--vbr-widget-primary-color-600);--vbr-widget-table-cell-dark-color: var(--vbr-widget-primary-color-900);--vbr-widget-table-stripped-bg-color: #f8f9fa;--vbr-widget-table-label-color: var(--vbr-widget-primary-color-500);--vbr-widget-table-label-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-table-cell-logo-size: 20px;--vbr-widget-table-cell-portrait-size: 26px;--vbr-widget-paginator-color: var(--vbr-widget-primary-color-500);--vbr-widget-paginator-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-paginator-hover-color: var(--vbr-widget-primary-color-700);--vbr-widget-paginator-hover-bg-color: var(--vbr-widget-primary-color-100);--vbr-widget-paginator-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-paginator-active-color: var(--vbr-widget-primary-color-0);--vbr-widget-paginator-active-bg-color: var(--vbr-widget-primary-color-900);--vbr-widget-paginator-disabled-color: var(--vbr-widget-primary-color-200);--vbr-widget-tooltip-font-size: 12px;--vbr-widget-tooltip-color: #ffffff;--vbr-widget-tooltip-bg-color: #000000;--vbr-widget-popover-trigger-hover-bg-color: var(--vbr-widget-secondary-color-200);--vbr-widget-popover-trigger-focus-bg-color: var(--vbr-widget-secondary-color-300);--vbr-widget-popover-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-dropdown-item-color: var(--vbr-widget-primary-color-500);--vbr-widget-dropdown-item-hover-color: var(--vbr-widget-primary-color-800);--vbr-widget-dropdown-item-hover-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-error-notice-bg-color: var(--vbr-widget-danger-color-50);--vbr-widget-error-notice-border-color: var(--vbr-widget-danger-color-100);--vbr-widget-error-notice-color: var(--vbr-widget-danger-color-700);--vbr-widget-link-color: var(--vbr-widget-secondary-color-700);--vbr-widget-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-base-input-color: var(--vbr-widget-primary-color-800);--vbr-widget-base-input-font-size: .875rem;--vbr-widget-base-input-border-color: var(--vbr-widget-primary-color-300);--vbr-widget-base-input-border-radius: 3px;--vbr-widget-form-label-color: var(--vbr-widget-primary-color-500);--vbr-widget-form-label-font-size: .75rem;--vbr-widget-timezone-selector-color: var(--vbr-widget-primary-color-500);--vbr-widget-timezone-selector-font-size: .8125rem;--vbr-widget-badge-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-badge-color: var(--vbr-widget-primary-color-400);--vbr-widget-badge-font-size: .625rem;--vbr-widget-badge-large-font-size: .6875rem;--vbr-widget-tab-btn-padding: .625rem 1rem;--vbr-widget-tab-btn-font-size: 1rem;--vbr-widget-tab-btn-font-weight: 500;--vbr-widget-tab-btn-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-color: var(--vbr-widget-primary-color-300);--vbr-widget-tab-btn-border-color: transparent;--vbr-widget-tab-btn-border-style: solid;--vbr-widget-tab-btn-border-width: 0 0 3px 0;--vbr-widget-tab-btn-text-transform: uppercase;--vbr-widget-tab-btn-hover-color: var(--vbr-widget-primary-color-500);--vbr-widget-tab-btn-hover-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-hover-border-color: transparent;--vbr-widget-tab-btn-active-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-active-color: var(--vbr-widget-primary-color-900);--vbr-widget-tab-btn-active-border-color: var(--vbr-widget-secondary-color-500);--vbr-widget-progress-height: 10px;--vbr-widget-progress-border-radius: 5px;--vbr-widget-progress-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-progress-bar-color: var(--vbr-widget-live-game-color);--vbr-widget-progress-bar-stripe-color: rgba(255, 255, 255, .2);--vbr-widget-progress-bar-stripe-angle: 45deg;--vbr-widget-gamecenter-result-size: 6rem;--vbr-widget-gamecenter-result-weight: 700;--vbr-widget-gamecenter-result-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-teamname-size: 1.3125rem;--vbr-widget-gamecenter-teamname-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-teamname-weight: 700;--vbr-widget-gamecenter-title-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-title-size: 1rem;--vbr-widget-gamecenter-title-weight: 700;--vbr-widget-gamecenter-gamedate-color: var(--vbr-widget-primary-color-500);--vbr-widget-gamecenter-gamedate-size: 1rem;--vbr-widget-gamecenter-local-gamedate-color: var(--vbr-widget-primary-color-500);--vbr-widget-gamecenter-local-gamedate-size: .8125rem;--vbr-widget-gamecenter-gamestatus-color: var(--vbr-widget-primary-color-600);--vbr-widget-gamecenter-gamestatus-size: .9375rem;--vbr-widget-gamecenter-periodresults-color: var(--vbr-widget-primary-color-600);--vbr-widget-gamecenter-periodresults-size: 1.3125rem;--vbr-widget-gamecenter-period-header-bg-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-period-header-color: var(--vbr-widget-primary-color-0);--vbr-widget-gamecenter-period-header-size: .8125rem;--vbr-widget-gamecenter-period-header-weight: 500;--vbr-widget-gamecenter-stats-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-gamecenter-stats-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-stats-title-size: .8125rem;--vbr-widget-gamecenter-stats-title-color: var(--vbr-widget-primary-color-400);--vbr-widget-gamecenter-stats-size: 1rem;--vbr-widget-gamecenter-stats-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-team-container-title-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-team-container-title-bg-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-team-container-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-events-evented-person-size: 1rem;--vbr-widget-gamecenter-events-evented-person-weight: 500;--vbr-widget-gamecenter-events-assitst-list-size: .9375rem;--vbr-widget-gamecenter-events-poi-list-size: .75rem;--vbr-widget-gamecenter-events-score-size: 1rem;--vbr-widget-gamecenter-events-penalty-size: .875rem;--vbr-widget-gamecenter-events-goalie-direction-size: .875rem}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .25s ease}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}img{opacity:0;transition:opacity .5s ease-out}img.is-loaded{opacity:1}a{color:var(--vbr-widget-link-color);text-decoration:none}a:hover{color:var(--vbr-widget-hover-color)}.floating-content.is-tooltip{background-color:var(--vbr-widget-tooltip-bg-color);color:var(--vbr-widget-tooltip-color);font-weight:700;padding:5px 10px;border-radius:4px;font-size:var(--vbr-widget-tooltip-font-size);white-space:nowrap;pointer-events:none}.floating-content.is-tooltip .is-arrow{background-color:var(--vbr-widget-tooltip-bg-color)}.floating-content.is-content{border-radius:4px;box-shadow:2px 14px 23px #00000040}.floating-content.is-content .is-arrow{background-color:var(--vbr-widget-primary-color-50)}.floating-content .is-arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] .floating-content .is-arrow{bottom:-4px}[data-placement^=bottom] .floating-content .is-arrow{top:-4px}[data-placement^=left] .floating-content .is-arrow{right:-4px}[data-placement^=right] .floating-content .is-arrow{left:-4px}.mjsz-vbr-error-notice{display:flex;align-items:center;justify-items:flex-start;margin:10px 0;padding:10px 20px;background-color:var(--vbr-widget-error-notice-bg-color);color:var(--vbr-widget-error-notice-color);border:1px solid var(--vbr-widget-error-notice-border-color)}.mjsz-vbr-error-notice .icon{margin-right:15px}.mjsz-vbr-timezone-selector{padding:3px 0;color:var(--vbr-widget-timezone-selector-color);font-size:var(--vbr-widget-timezone-selector-font-size);font-weight:500}.mjsz-vbr-timezone-selector .is-active{font-weight:700}.is-badge{display:inline-block;padding:.125rem .25rem;color:var(--vbr-widget-badge-color);font-size:var(--vbr-widget-badge-font-size);font-weight:700;text-transform:uppercase;background-color:var(--vbr-widget-badge-bg-color);border-radius:3px}.is-badge+.is-badge{margin-left:3px}.is-badge.is-invert{color:var(--vbr-widget-badge-bg-color);background-color:var(--vbr-widget-badge-color)}.is-badge.is-green{color:var(--vbr-widget-primary-color-0);background-color:var(--vbr-widget-live-game-color)}.is-badge.is-large{font-size:var(--vbr-widget-badge-large-font-size);padding:.15rem .35rem}
|
|
23
|
-
`,
|
|
24
|
-
`,
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,
|
|
28
|
-
`,
|
|
29
|
-
`,
|
|
30
|
-
`,
|
|
22
|
+
***************************************************************************** */function Wr(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,a,i=r.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return s}var Ur;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Ur||(Ur={}));var Ji={type:"xstate.init"};function ke(t){return t===void 0?[]:[].concat(t)}function Kr(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 ze(t){return function(e){return t===e}}function Xi(t){return typeof t=="string"?{type:t}:t}function Zr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:ze(t)}}function qr(t,e,r){var n=e,a=!1;return[t.filter(function(i){if(i.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof i.assignment=="function"?s=i.assignment(n,r):Object.keys(i.assignment).forEach(function(l){s[l]=typeof i.assignment[l]=="function"?i.assignment[l](n,r):i.assignment[l]}),n=s,!1}return!0}),n,a]}function Qi(t,e){e===void 0&&(e={});var r=Wr(qr(ke(t.states[t.initial].entry).map(function(s){return Kr(s,e.actions)}),t.context,Ji),2),n=r[0],a=r[1],i={config:t,_options:e,initialState:{value:t.initial,actions:n,context:a,matches:ze(t.initial)},transition:function(s,l){var c,p,d=typeof s=="string"?{value:s,context:t.context}:s,u=d.value,f=d.context,m=Xi(l),b=t.states[u];if(b.on){var g=ke(b.on[m.type]);try{for(var h=function(x){var _=typeof Symbol=="function"&&Symbol.iterator,O=_&&x[_],N=0;if(O)return O.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&N>=x.length&&(x=void 0),{value:x&&x[N++],done:!x}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),v=h.next();!v.done;v=h.next()){var w=v.value;if(w===void 0)return Zr(u,f);var y=typeof w=="string"?{target:w}:w,S=y.target,E=y.actions,$=E===void 0?[]:E,M=y.cond,D=M===void 0?function(){return!0}:M,T=S===void 0,P=S??u,V=t.states[P];if(D(f,m)){var F=Wr(qr((T?ke($):[].concat(b.exit,$,V.entry).filter(function(x){return x})).map(function(x){return Kr(x,i._options.actions)}),f,m),3),A=F[0],z=F[1],k=F[2],j=S??u;return{value:j,context:z,actions:A,changed:S!==u||A.length>0||k,matches:ze(j)}}}}catch(x){c={error:x}}finally{try{v&&!v.done&&(p=h.return)&&p.call(h)}finally{if(c)throw c.error}}}return Zr(u,f)}};return i}Qi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:_t,DIRECTION2:vt}},[_t]:{on:{DIRECTION1:vt,DIRECTION2:at}},[vt]:{on:{DIRECTION1:at,DIRECTION2:_t}}}});const ts=(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 a=r.map(s=>n?fe(ir(s),Lt(e)):fe(Ht(s),ta,Io(e))),i=Ze(mo([...a]),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===at)return this;const r=Bo(Lt(vt),nr(or),nr(To));return this.result=sr(e.orders.map(n=>Ao(r(n.direction),Ht)(n.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,n,a)=>{const i=r[r.length-1]||[],s=e&&i[e]===n[e];return n.index=s?i.index:a+1,n.indexClass=s?"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,a=n+r;return this.result=this.result.slice(n,a),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:we(n.gameDate,"L dddd",e,r),gameDateTime:we(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`]=Ri(r[n]):r),r)),this},groupByDays(){return this.result=Mo(e=>we(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),es=(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),rs=sr([es,or(Ht("id"))]),ns=(t,e)=>{const r=os("gameResolver")||t;return typeof r=="function"?r(e):r?r+e:ca+e},os=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},as={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("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),ss=o.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),ls=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),cs=[is,ss,ls];function us(t,e){return o.openBlock(),o.createElementBlock("svg",as,cs)}const ds={render:us},ps={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},fs=o.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),ms=o.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),gs=o.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),hs=[fs,ms,gs];function bs(t,e){return o.openBlock(),o.createElementBlock("svg",ps,hs)}const ys={render:bs},vs={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"},ws=o.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),xs=o.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),ks=[ws,xs];function zs(t,e){return o.openBlock(),o.createElementBlock("svg",vs,ks)}const Ss={render:zs},js={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("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),Es=o.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),_s=[As,Es];function Ps(t,e){return o.openBlock(),o.createElementBlock("svg",js,_s)}const Os={render:Ps},Ts={class:"is-team-name-long"},Ns={class:"is-team-name-short"},$s={class:"is-team-name-long"},Ds={class:"is-team-name-short"},Ms={key:0,class:"is-text-dark"},Vs=["href","target"],Bs={key:0,class:"label"},Cs={key:1,class:"label"},Is={key:2,class:"label"},Ls={key:1},Gs=["onClick","onFocus","onBlur"],Rs={class:"is-dropdown-menu"},Fs=["href","target"],Hs={key:0},Ys=["href"],Ws={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,r=o.ref(null),{onError:n}=Tr(),{columns:a,error:i}=Yi(Ui,e.hideColumns,o.computed(()=>({offsetName:e.offsetName})));zn(i,()=>n(new Fr(Hr.message,{...Hr.options,cause:{column:i.value}})),{immediate:!0});const{t:s}=ot();return(l,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(Ei,null,{default:o.withCtx(({el:p})=>[o.createVNode(Ja,{columns:o.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||p},{"cell-homeTeamName":o.withCtx(({row:d})=>[o.createElementVNode("span",Ts,o.toDisplayString(d.homeTeam.longName),1),o.createElementVNode("span",Ns,o.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":o.withCtx(({row:d})=>[o.createElementVNode("span",$s,o.toDisplayString(d.awayTeam.longName),1),o.createElementVNode("span",Ds,o.toDisplayString(d.awayTeam.shortName),1)]),"cell-homeTeamLogo":o.withCtx(({row:d})=>[(o.openBlock(),o.createBlock(Nr,{class:"is-logo-image is-right",key:d.homeTeam.id,src:d.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":o.withCtx(({row:d})=>[(o.openBlock(),o.createBlock(Nr,{class:"is-logo-image is-right",key:d.awayTeam.id,src:d.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":o.withCtx(({row:d})=>[d.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Ms,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},o.toDisplayString(d.homeTeamScore)+":"+o.toDisplayString(d.awayTeamScore),11,Vs))]),"cell-gameResultType":o.withCtx(({row:d})=>[d.isOvertime?(o.openBlock(),o.createElementBlock("span",Bs,o.toDisplayString(o.unref(s)("common.overtimeShort")),1)):o.createCommentVNode("",!0),d.isShootout?(o.openBlock(),o.createElementBlock("span",Cs,o.toDisplayString(o.unref(s)("common.shootoutShort")),1)):o.createCommentVNode("",!0),d.seriesStandings?(o.openBlock(),o.createElementBlock("span",Is,o.toDisplayString(d.seriesStandings),1)):o.createCommentVNode("",!0)]),"cell-broadcast":o.withCtx(({row:d})=>[d.broadcast?(o.openBlock(),o.createBlock(o.unref(ds),{key:0})):(o.openBlock(),o.createElementBlock("span",Ls))]),"cell-location":o.withCtx(({row:d})=>{var u;return[o.createTextVNode(o.toDisplayString(((u=d.location)==null?void 0:u.locationName)??""),1)]}),"cell-more":o.withCtx(({row:d})=>[o.createVNode(Pr,{offset:2,placement:"left",theme:"content","append-to":p},{default:o.withCtx(({setRef:u,show:f,hide:m})=>[o.createElementVNode("button",{ref:u,onClick:o.withModifiers(f,["stop"]),onFocus:f,onBlur:m},[o.createVNode(o.unref(ys))],40,Gs)]),content:o.withCtx(()=>[o.createElementVNode("ul",Rs,[o.createElementVNode("li",null,[o.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[o.createVNode(o.unref(Ss),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.report")),1)],8,Fs)]),d.video?(o.openBlock(),o.createElementBlock("li",Hs,[o.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[o.createVNode(o.unref(Os),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(s)("common.video")),1)],8,Ys)])):o.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:o.withCtx(()=>[o.createVNode($r)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),o.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},null,512)],64))}};function Us(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Jr(t){return typeof t=="function"?t():o.unref(t)}const Ks=typeof window<"u",Zs=t=>typeof t<"u",Se=()=>{};function qs(t,e){function r(...n){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(a).catch(i)})}return r}const Xr=t=>t();function Js(t=Xr){const e=o.ref(!0);function r(){e.value=!1}function n(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:o.readonly(e),pause:r,resume:n,eventFilter:a}}var Qr=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,Qs=Object.prototype.propertyIsEnumerable,tl=(t,e)=>{var r={};for(var n in t)Xs.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Qr)for(var n of Qr(t))e.indexOf(n)<0&&Qs.call(t,n)&&(r[n]=t[n]);return r};function el(t,e,r={}){const n=r,{eventFilter:a=Xr}=n,i=tl(n,["eventFilter"]);return o.watch(t,qs(a,e),i)}var rl=Object.defineProperty,nl=Object.defineProperties,ol=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,rn=(t,e,r)=>e in t?rl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,al=(t,e)=>{for(var r in e||(e={}))tn.call(e,r)&&rn(t,r,e[r]);if(Jt)for(var r of Jt(e))en.call(e,r)&&rn(t,r,e[r]);return t},il=(t,e)=>nl(t,ol(e)),sl=(t,e)=>{var r={};for(var n in t)tn.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Jt)for(var n of Jt(t))e.indexOf(n)<0&&en.call(t,n)&&(r[n]=t[n]);return r};function ll(t,e,r={}){const n=r,{eventFilter:a}=n,i=sl(n,["eventFilter"]),{eventFilter:s,pause:l,resume:c,isActive:p}=Js(a);return{stop:el(t,e,il(al({},i),{eventFilter:s})),pause:l,resume:c,isActive:p}}function cl(t){var e;const r=Jr(t);return(e=r==null?void 0:r.$el)!=null?e:r}const nn=Ks?window:void 0;function on(...t){let e,r,n,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,a]=t,e=nn):[e,r,n,a]=t,!e)return Se;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},l=(d,u,f,m)=>(d.addEventListener(u,f,m),()=>d.removeEventListener(u,f,m)),c=o.watch(()=>[cl(e),Jr(a)],([d,u])=>{s(),d&&i.push(...r.flatMap(f=>n.map(m=>l(d,f,m,u))))},{immediate:!0,flush:"post"}),p=()=>{c(),s()};return Us(p),p}function an(t,e={}){const{interrupt:r=!0,onError:n=Se,onFinished:a=Se}=e,i={pending:"pending",rejected:"rejected",fulfilled:"fulfilled"},s=Array.from(new Array(t.length),()=>({state:i.pending,data:null})),l=o.reactive(s),c=o.ref(-1);if(!t||t.length===0)return a(),{activeIndex:c,result:l};function p(d,u){c.value++,l[c.value].data=u,l[c.value].state=d}return t.reduce((d,u)=>d.then(f=>{var m;if(((m=l[c.value])==null?void 0:m.state)===i.rejected&&r){a();return}return u(f).then(b=>(p(i.fulfilled,b),c.value===t.length-1&&a(),b))}).catch(f=>(p(i.rejected,f),n(),f)),Promise.resolve()),{activeIndex:c,result:l}}function ul(t){return JSON.parse(JSON.stringify(t))}function dl(t="history",e={}){const{initialValue:r={},removeNullishValues:n=!0,removeFalsyValues:a=!1,write:i=!0,window:s=nn}=e;if(!s)return o.reactive(r);const l=o.reactive({});function c(){if(t==="history")return s.location.search||"";if(t==="hash"){const v=s.location.hash||"",w=v.indexOf("?");return w>0?v.slice(w):""}else return(s.location.hash||"").replace(/^#/,"")}function p(v){const w=v.toString();if(t==="history")return`${w?`?${w}`:""}${s.location.hash||""}`;if(t==="hash-params")return`${s.location.search||""}${w?`#${w}`:""}`;const y=s.location.hash||"#",S=y.indexOf("?");return S>0?`${y.slice(0,S)}${w?`?${w}`:""}`:`${y}${w?`?${w}`:""}`}function d(){return new URLSearchParams(c())}function u(v){const w=new Set(Object.keys(l));for(const y of v.keys()){const S=v.getAll(y);l[y]=S.length>1?S:v.get(y)||"",w.delete(y)}Array.from(w).forEach(y=>delete l[y])}const{pause:f,resume:m}=ll(l,()=>{const v=new URLSearchParams("");Object.keys(l).forEach(w=>{const y=l[w];Array.isArray(y)?y.forEach(S=>v.append(w,S)):n&&y==null||a&&!y?v.delete(w):v.set(w,y)}),b(v)},{deep:!0});function b(v,w){f(),w&&u(v),s.history.replaceState(s.history.state,s.document.title,s.location.pathname+p(v)),m()}function g(){i&&b(d(),!0)}on(s,"popstate",g,!1),t!=="history"&&on(s,"hashchange",g,!1);const h=d();return h.keys().next().value?u(h):Object.assign(l,r),l}function pl(t,e,r,n={}){var a,i,s;const{clone:l=!1,passive:c=!1,eventName:p,deep:d=!1,defaultValue:u,shouldEmit:f}=n,m=o.getCurrentInstance(),b=r||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((s=(i=m==null?void 0:m.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let g=p;e||(e="modelValue"),g=p||g||`update:${e.toString()}`;const h=y=>l?typeof l=="function"?l(y):ul(y):y,v=()=>Zs(t[e])?h(t[e]):u,w=y=>{f?f(y)&&b(g,y):b(g,y)};if(c){const y=v(),S=o.ref(y);return o.watch(()=>t[e],E=>S.value=h(E)),o.watch(S,E=>{(E!==t[e]||d)&&w(E)},{deep:d}),S}else return o.computed({get(){return v()},set(y){w(y)}})}function sn(t,e,r={}){const n={};for(const a in t)n[a]=pl(t,a,e,r);return n}function C(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function K(t){return function e(r){return arguments.length===0||C(r)?e:t.apply(this,arguments)}}function Z(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return C(r)?e:K(function(a){return t(r,a)});default:return C(r)&&C(n)?e:C(r)?K(function(a){return t(a,n)}):C(n)?K(function(a){return t(r,a)}):t(r,n)}}}function Xt(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,a){return e.apply(this,arguments)};case 4:return function(r,n,a,i){return e.apply(this,arguments)};case 5:return function(r,n,a,i,s){return e.apply(this,arguments)};case 6:return function(r,n,a,i,s,l){return e.apply(this,arguments)};case 7:return function(r,n,a,i,s,l,c){return e.apply(this,arguments)};case 8:return function(r,n,a,i,s,l,c,p){return e.apply(this,arguments)};case 9:return function(r,n,a,i,s,l,c,p,d){return e.apply(this,arguments)};case 10:return function(r,n,a,i,s,l,c,p,d,u){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ln(t,e,r){return function(){for(var n=[],a=0,i=t,s=0;s<e.length||a<arguments.length;){var l;s<e.length&&(!C(e[s])||a>=arguments.length)?l=e[s]:(l=arguments[a],a+=1),n[s]=l,C(l)||(i-=1),s+=1}return i<=0?r.apply(this,n):Xt(i,ln(t,n,r))}}var fl=Z(function(e,r){return e===1?K(r):Xt(e,ln(e,[],r))});function je(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return C(r)?e:Z(function(i,s){return t(r,i,s)});case 2:return C(r)&&C(n)?e:C(r)?Z(function(i,s){return t(i,n,s)}):C(n)?Z(function(i,s){return t(r,i,s)}):K(function(i){return t(r,n,i)});default:return C(r)&&C(n)&&C(a)?e:C(r)&&C(n)?Z(function(i,s){return t(i,s,a)}):C(r)&&C(a)?Z(function(i,s){return t(i,n,s)}):C(n)&&C(a)?Z(function(i,s){return t(r,i,s)}):C(r)?K(function(i){return t(i,n,a)}):C(n)?K(function(i){return t(r,i,a)}):C(a)?K(function(i){return t(r,n,i)}):t(r,n,a)}}}const Ae=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function ml(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function gl(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Ae(n)){for(var a=0;a<t.length;){if(typeof n[t[a]]=="function")return n[t[a]].apply(n,Array.prototype.slice.call(arguments,0,-1));a+=1}if(ml(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}const cn={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ee(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var un=Object.prototype.toString,hl=function(){return un.call(arguments)==="[object Arguments]"?function(e){return un.call(e)==="[object Arguments]"}:function(e){return Ee("callee",e)}}(),bl=!{toString:null}.propertyIsEnumerable("toString"),dn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],pn=function(){return arguments.propertyIsEnumerable("length")}(),yl=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},vl=K(typeof Object.keys=="function"&&!pn?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,a=[],i=pn&&hl(e);for(r in e)Ee(r,e)&&(!i||r!=="length")&&(a[a.length]=r);if(bl)for(n=dn.length-1;n>=0;)r=dn[n],Ee(r,e)&&!yl(a,r)&&(a[a.length]=r),n-=1;return a});function wl(t,e){for(var r=0,n=e.length,a=Array(n);r<n;)a[r]=t(e[r]),r+=1;return a}function xl(t,e,r){for(var n=0,a=r.length;n<a;)e=t(e,r[n]),n+=1;return e}var kl=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=cn.init,t.prototype["@@transducer/result"]=cn.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),zl=function(e){return function(r){return new kl(e,r)}},Sl=Z(gl(["fantasy-land/map","map"],zl,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return fl(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return xl(function(n,a){return n[a]=e(r[a]),n},{},vl(r));default:return wl(e,r)}}));const jl=Sl,Al=Number.isInteger||function(e){return e<<0===e};function _e(t){return Object.prototype.toString.call(t)==="[object String]"}var El=Z(function(e,r){var n=e<0?r.length+e:e;return _e(r)?r.charAt(n):r[n]});const fn=El;var _l=Z(function(e,r){if(r!=null)return Al(e)?fn(e,r):r[e]});const Pl=_l;var Ol=K(function(e){return Ae(e)?!0:!e||typeof e!="object"||_e(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),mn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Tl(t,e,r){return function(a,i,s){if(Ol(s))return t(a,i,s);if(s==null)return i;if(typeof s["fantasy-land/reduce"]=="function")return e(a,i,s,"fantasy-land/reduce");if(s[mn]!=null)return r(a,i,s[mn]());if(typeof s.next=="function")return r(a,i,s);if(typeof s.reduce=="function")return e(a,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Nl(t,e,r){for(var n=0,a=r.length;n<a;){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 $l=Z(function(e,r){return Xt(e.length,function(){return e.apply(r,arguments)})});function Dl(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 Ml(t,e,r,n){return t["@@transducer/result"](r[n]($l(t["@@transducer/step"],t),e))}var Vl=Tl(Nl,Ml,Dl),Bl=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 Cl(t){return new Bl(t)}var Il=je(function(t,e,r){return Vl(typeof t=="function"?Cl(t):t,e,r)});const Ll=Il;function Gl(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function gn(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return Ae(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Rl=je(gn("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),Fl=K(gn("tail",Rl(1,1/0)));const Hl=Fl;function Yl(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Xt(arguments[0].length,Ll(Gl,arguments[0],Hl(arguments)))}var Wl=K(function(e){return _e(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Ul=Wl;function Kl(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Yl.apply(this,Ul(arguments))}var Zl=fn(0);const ql=Zl;var Jl=je(function(e,r,n){var a=e(r),i=e(n);return a>i?-1:a<i?1:0});const Xl=Jl;var Ql=Z(function(e,r){for(var n={},a=0;a<e.length;)e[a]in r&&(n[e[a]]=r[e[a]]),a+=1;return n});const tc=Ql;var ec=Z(function(e,r){return Array.prototype.slice.call(r,0).sort(e)});const rc=ec,nc=(t,e)=>{if(t.length===0)throw new Fr(Yr.message,Yr.options);e.seasons=oc(t),e.championshipId||(e.championshipId=ql(e.seasons).championshipId)},oc=t=>Kl(rc(Xl(Pl("seasonName"))),jl(tc(["championshipId","seasonName"])))(t),ac=(t,e)=>{var r,n,a;e.championships=t,e.selectedChampionshipId=(r=t==null?void 0:t[0])==null?void 0:r.sectionId,e.phaseId=(a=(n=t==null?void 0:t[0])==null?void 0:n.phases[0])==null?void 0:a.phaseId},ic={__name:"DataProvider",props:{championshipName:{type:String,default:""},championshipId:{type:Number,default:0},limit:{type:Number,default:20},apiKey:{type:String,default:""},locale:{type:String,default:"hu"},timezone:{type:String,default:""}},setup(t){const e=t,r=dl("history"),n=o.reactive({loading:!1,seasons:[],championshipId:Number(r.championshipId)||0,championships:[],phaseId:null,selectedChampionshipId:null,sections:[],section:r.section||null}),a=o.toRef(e,"timezone"),{onError:i}=Tr();o.computed(()=>{switch(n.selectedTeamGameType){case"all":return[["homeTeam","id"],["awayTeam","id"]];case"home":return[["homeTeam","id"]];default:return[["awayTeam","id"]]}});const{isLoading:s,execute:l}=xe({options:{path:"/v2/championship-seasons",apiKey:e.apiKey,params:{championshipName:e.championshipName}},transform:y=>nc(y,n),onError:i}),{isLoading:c,execute:p}=xe({options:{path:"/v2/championship-sections",apiKey:e.apiKey,params:o.computed(()=>({championshipId:n.championshipId}))},transform:y=>ac(y,n),onError:i}),{isLoading:d,state:u,execute:f}=xe({options:{path:"/v2/games-list",apiKey:e.apiKey,params:o.computed(()=>({championshipId:n.championshipId,phaseId:n.phaseId}))},transform:y=>rs(y),onError:i}),m=Ie([c,s,d],{delay:1e3});an([l,p,f]);const b=o.computed(()=>{const y=n.championships.find(S=>S.sectionId===n.selectedChampionshipId);return(y==null?void 0:y.phases)??[]}),g=o.computed(()=>ts(o.unref(u)).schedule(o.unref(a),o.unref(e.locale)).value()),h=y=>{n.championshipId=y,r.championshipId=y,an([p,f])},v=y=>{var S;n.selectedChampionshipId=y,n.phaseId=((S=b.value[0])==null?void 0:S.phaseId)??null,f()},w=y=>{n.phaseId=y,f()};return(y,S)=>o.renderSlot(y.$slots,"default",o.normalizeProps(o.guardReactiveProps({...n,games:g.value,phases:b.value,isLoading:o.unref(m),changeSeason:h,changeChampionship:v,changePhase:w})))}},sc={class:"g-row"},lc=["value"],cc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0}},emits:["update:championshipId"],setup(t,{emit:e}){const r=t,{t:n}=ot(),{championshipId:a}=sn(r,e),i=rt("label");return(s,l)=>(o.openBlock(),o.createElementBlock("div",sc,[o.createElementVNode("div",null,[o.createElementVNode("label",{for:"season",class:o.normalizeClass(o.unref(i))},o.toDisplayString(o.unref(n)("selection.season")),3),o.createVNode(o.unref(Oe),{id:"season",modelValue:o.unref(a),"onUpdate:modelValue":l[0]||(l[0]=c=>o.isRef(a)?a.value=c:null)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.seasons,c=>(o.openBlock(),o.createElementBlock("option",{key:c.championshipId,value:c.championshipId},o.toDisplayString(c.seasonName),9,lc))),128))]),_:1},8,["modelValue"])])]))}},uc={class:"g-row",style:{"column-gap":"8px"}},dc={key:0,value:null},pc=["value"],fc={__name:"Selector",props:{phases:{type:Array,default:()=>[]},phaseId:{type:Number,default:null}},emits:["update:phaseId"],setup(t,{emit:e}){const r=t,{t:n}=ot(),{phaseId:a}=sn(r,e),i=rt("label");return(s,l)=>(o.openBlock(),o.createElementBlock("div",uc,[o.createElementVNode("div",null,[o.createElementVNode("label",{for:"phases",class:o.normalizeClass(o.unref(i))},o.toDisplayString(o.unref(n)("selection.phases")),3),o.createVNode(o.unref(Oe),{id:"phases",modelValue:o.unref(a),"onUpdate:modelValue":l[0]||(l[0]=c=>o.isRef(a)?a.value=c:null),disabled:o.unref(a)===null},{default:o.withCtx(()=>[o.unref(a)===null?(o.openBlock(),o.createElementBlock("option",dc,o.toDisplayString(o.unref(n)("selection.noPhases")),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.phases,c=>(o.openBlock(),o.createElementBlock("option",{key:c.phaseId,value:c.phaseId},o.toDisplayString(c.phaseName),9,pc))),128))]),_:1},8,["modelValue","disabled"])])]))}},mc={selection:{report:"Riport",video:"Videó",season:"Szezon",section:"Szakasz",phases:"Szakaszok",noPhases:"Nincsenek szakaszok",teams:"Csapatok",filterName:"Szűrés névre",players:"Játékosok",month:"Hónap",homeOrAway:"Hazai vagy Vendég",home:"Hazai",away:"Vendég"},report:{points:"Pontok",goals:"Gólok",assists:"Gólpasszok",penalties:"Büntetések",goalies:"Kapusok",goaliesLimit:"Kapusok 40% jégidő alatt",teamAttendance:"Nézőszám",teamFairplay:"Büntetések",teamPenaltyKilling:"Emberhátrányok",teamPowerplay:"Emberelőnyök",teamScoringEfficiency:"Hatékonyság"},playoffs:{Negyeddöntő1:"Negyeddöntő 1",Negyeddöntő2:"Negyeddöntő 2",Negyeddöntő3:"Negyeddöntő 3",Negyeddöntő4:"Negyeddöntő 4",Elődöntő1:"Elődöntő 1",Elődöntő2:"Elődöntő 2",Döntő:"Döntő"}},gc={selection:{report:"Report",video:"Video",season:"Season",section:"Section",phases:"Phases",noPhases:"No Phases",teams:"Teams",filterName:"Filter by Name",players:"Players",month:"Month",homeOrAway:"Home or Away",home:"Home",away:"Away"},report:{points:"Points",goals:"Goals",assists:"Assists",penalties:"Penalties",goalies:"Goalies",goaliesLimit:"Goalies under 40%",teamAttendance:"Attendance",teamFairplay:"Fairplay",teamPenaltyKilling:"Penalty Killing",teamPowerplay:"Powerplay",teamScoringEfficiency:"Scoring Efficiency"},playoffs:{Negyeddöntő1:"Quarterfinal 1",Negyeddöntő2:"Quarterfinal 2",Negyeddöntő3:"Quarterfinal 3",Negyeddöntő4:"Quarterfinal 4",Elődöntő1:"Semifinal 1",Elődöntő2:"Semifinal 2",Döntő:"Final"}},hc=`h1,h2,h3,ul,li,dl,dt,dd{margin:0;padding:0}button{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;border-width:0;-webkit-appearance:button;background-color:transparent;background-image:none;cursor:pointer}ol,ul{list-style:none}:root,:host{font-family:Roboto Condensed,Avenir,Helvetica,Arial,sans-serif;--vbr-widget-primary-color-0: #ffffff;--vbr-widget-primary-color-50: #eceff1;--vbr-widget-primary-color-100: #cfd8dc;--vbr-widget-primary-color-200: #b0bec5;--vbr-widget-primary-color-300: #90a4ae;--vbr-widget-primary-color-400: #78909c;--vbr-widget-primary-color-500: #607d8b;--vbr-widget-primary-color-600: #546e7a;--vbr-widget-primary-color-700: #455a64;--vbr-widget-primary-color-800: #37474f;--vbr-widget-primary-color-900: #263238;--vbr-widget-secondary-color-100: #dcedc8;--vbr-widget-secondary-color-200: #badb94;--vbr-widget-secondary-color-300: #aed581;--vbr-widget-secondary-color-400: #9ccc65;--vbr-widget-secondary-color-500: #8bc34a;--vbr-widget-secondary-color-700: #689f38;--vbr-widget-secondary-color-800: #558b2f;--vbr-widget-secondary-color-900: #33691e;--vbr-widget-danger-color-50: #ffebee;--vbr-widget-danger-color-100: #ffcdd2;--vbr-widget-danger-color-200: #ef9a9a;--vbr-widget-danger-color-300: #e57373;--vbr-widget-danger-color-400: #ef5350;--vbr-widget-danger-color-500: #f44336;--vbr-widget-danger-color-700: #d32f2f;--vbr-widget-danger-color-900: #b71c1c;--vbr-widget-danger-color-a400: #ff1744;--vbr-widget-live-game-color: #8bc34a;--vbr-widget-table-header-font-size: 12px;--vbr-widget-table-default-column-width: 30px;--vbr-widget-table-default-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-table-color: var(--vbr-widget-primary-color-800);--vbr-widget-table-neutral-color: var(--vbr-widget-primary-color-300);--vbr-widget-table-header-bg-color: var(--vbr-widget-primary-color-800);--vbr-widget-table-header-hover-bg-color: var(--vbr-widget-primary-color-700);--vbr-widget-table-header-color: var(--vbr-widget-primary-color-200);--vbr-widget-table-table-header-active-bg-color: var(--vbr-widget-primary-color-700);--vbr-widget-table-header-active-color: var(--vbr-widget-primary-color-0);--vbr-widget-table-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-hover-bg-color: var(--vbr-widget-secondary-color-100);--vbr-widget-table-active-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-active-bg-color: var(--vbr-widget-secondary-color-200);--vbr-widget-table-active-even-bg-color: var(--vbr-widget-secondary-color-300);--vbr-widget-table-active-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-table-active-hover-bg-color: var(--vbr-widget-secondary-color-400);--vbr-widget-table-portrait-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-table-portrait-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-table-cell-light-color: var(--vbr-widget-primary-color-600);--vbr-widget-table-cell-dark-color: var(--vbr-widget-primary-color-900);--vbr-widget-table-stripped-bg-color: #f8f9fa;--vbr-widget-table-label-color: var(--vbr-widget-primary-color-500);--vbr-widget-table-label-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-table-cell-logo-size: 20px;--vbr-widget-table-cell-portrait-size: 26px;--vbr-widget-paginator-color: var(--vbr-widget-primary-color-500);--vbr-widget-paginator-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-paginator-hover-color: var(--vbr-widget-primary-color-700);--vbr-widget-paginator-hover-bg-color: var(--vbr-widget-primary-color-100);--vbr-widget-paginator-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-paginator-active-color: var(--vbr-widget-primary-color-0);--vbr-widget-paginator-active-bg-color: var(--vbr-widget-primary-color-900);--vbr-widget-paginator-disabled-color: var(--vbr-widget-primary-color-200);--vbr-widget-tooltip-font-size: 12px;--vbr-widget-tooltip-color: #ffffff;--vbr-widget-tooltip-bg-color: #000000;--vbr-widget-popover-trigger-hover-bg-color: var(--vbr-widget-secondary-color-200);--vbr-widget-popover-trigger-focus-bg-color: var(--vbr-widget-secondary-color-300);--vbr-widget-popover-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-dropdown-item-color: var(--vbr-widget-primary-color-500);--vbr-widget-dropdown-item-hover-color: var(--vbr-widget-primary-color-800);--vbr-widget-dropdown-item-hover-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-error-notice-bg-color: var(--vbr-widget-danger-color-50);--vbr-widget-error-notice-border-color: var(--vbr-widget-danger-color-100);--vbr-widget-error-notice-color: var(--vbr-widget-danger-color-700);--vbr-widget-link-color: var(--vbr-widget-secondary-color-700);--vbr-widget-hover-color: var(--vbr-widget-secondary-color-900);--vbr-widget-base-input-color: var(--vbr-widget-primary-color-800);--vbr-widget-base-input-font-size: .875rem;--vbr-widget-base-input-border-color: var(--vbr-widget-primary-color-300);--vbr-widget-base-input-border-radius: 3px;--vbr-widget-form-label-color: var(--vbr-widget-primary-color-500);--vbr-widget-form-label-font-size: .75rem;--vbr-widget-timezone-selector-color: var(--vbr-widget-primary-color-500);--vbr-widget-timezone-selector-font-size: .8125rem;--vbr-widget-badge-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-badge-color: var(--vbr-widget-primary-color-400);--vbr-widget-badge-font-size: .625rem;--vbr-widget-badge-large-font-size: .6875rem;--vbr-widget-tab-btn-padding: .625rem 1rem;--vbr-widget-tab-btn-font-size: 1rem;--vbr-widget-tab-btn-font-weight: 500;--vbr-widget-tab-btn-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-color: var(--vbr-widget-primary-color-300);--vbr-widget-tab-btn-border-color: transparent;--vbr-widget-tab-btn-border-style: solid;--vbr-widget-tab-btn-border-width: 0 0 3px 0;--vbr-widget-tab-btn-text-transform: uppercase;--vbr-widget-tab-btn-hover-color: var(--vbr-widget-primary-color-500);--vbr-widget-tab-btn-hover-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-hover-border-color: transparent;--vbr-widget-tab-btn-active-bg-color: var(--vbr-widget-primary-color-0);--vbr-widget-tab-btn-active-color: var(--vbr-widget-primary-color-900);--vbr-widget-tab-btn-active-border-color: var(--vbr-widget-secondary-color-500);--vbr-widget-progress-height: 10px;--vbr-widget-progress-border-radius: 5px;--vbr-widget-progress-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-progress-bar-color: var(--vbr-widget-live-game-color);--vbr-widget-progress-bar-stripe-color: rgba(255, 255, 255, .2);--vbr-widget-progress-bar-stripe-angle: 45deg;--vbr-widget-gamecenter-result-size: 6rem;--vbr-widget-gamecenter-result-weight: 700;--vbr-widget-gamecenter-result-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-teamname-size: 1.3125rem;--vbr-widget-gamecenter-teamname-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-teamname-weight: 700;--vbr-widget-gamecenter-title-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-title-size: 1rem;--vbr-widget-gamecenter-title-weight: 700;--vbr-widget-gamecenter-gamedate-color: var(--vbr-widget-primary-color-500);--vbr-widget-gamecenter-gamedate-size: 1rem;--vbr-widget-gamecenter-local-gamedate-color: var(--vbr-widget-primary-color-500);--vbr-widget-gamecenter-local-gamedate-size: .8125rem;--vbr-widget-gamecenter-gamestatus-color: var(--vbr-widget-primary-color-600);--vbr-widget-gamecenter-gamestatus-size: .9375rem;--vbr-widget-gamecenter-periodresults-color: var(--vbr-widget-primary-color-600);--vbr-widget-gamecenter-periodresults-size: 1.3125rem;--vbr-widget-gamecenter-period-header-bg-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-period-header-color: var(--vbr-widget-primary-color-0);--vbr-widget-gamecenter-period-header-size: .8125rem;--vbr-widget-gamecenter-period-header-weight: 500;--vbr-widget-gamecenter-stats-bg-color: var(--vbr-widget-primary-color-50);--vbr-widget-gamecenter-stats-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-stats-title-size: .8125rem;--vbr-widget-gamecenter-stats-title-color: var(--vbr-widget-primary-color-400);--vbr-widget-gamecenter-stats-size: 1rem;--vbr-widget-gamecenter-stats-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-team-container-title-color: var(--vbr-widget-primary-color-800);--vbr-widget-gamecenter-team-container-title-bg-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-team-container-border-color: var(--vbr-widget-primary-color-100);--vbr-widget-gamecenter-events-evented-person-size: 1rem;--vbr-widget-gamecenter-events-evented-person-weight: 500;--vbr-widget-gamecenter-events-assitst-list-size: .9375rem;--vbr-widget-gamecenter-events-poi-list-size: .75rem;--vbr-widget-gamecenter-events-score-size: 1rem;--vbr-widget-gamecenter-events-penalty-size: .875rem;--vbr-widget-gamecenter-events-goalie-direction-size: .875rem}.transition-fade-enter-active,.transition-fade-leave-active{transition:all .25s ease}.transition-fade-enter-from,.transition-fade-leave-to{opacity:0;transform:translateY(5px)}img{opacity:0;transition:opacity .5s ease-out}img.is-loaded{opacity:1}a{color:var(--vbr-widget-link-color);text-decoration:none}a:hover{color:var(--vbr-widget-hover-color)}.floating-content.is-tooltip{background-color:var(--vbr-widget-tooltip-bg-color);color:var(--vbr-widget-tooltip-color);font-weight:700;padding:5px 10px;border-radius:4px;font-size:var(--vbr-widget-tooltip-font-size);white-space:nowrap;pointer-events:none}.floating-content.is-tooltip .is-arrow{background-color:var(--vbr-widget-tooltip-bg-color)}.floating-content.is-content{border-radius:4px;box-shadow:2px 14px 23px #00000040}.floating-content.is-content .is-arrow{background-color:var(--vbr-widget-primary-color-50)}.floating-content .is-arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg)}[data-placement^=top] .floating-content .is-arrow{bottom:-4px}[data-placement^=bottom] .floating-content .is-arrow{top:-4px}[data-placement^=left] .floating-content .is-arrow{right:-4px}[data-placement^=right] .floating-content .is-arrow{left:-4px}.mjsz-vbr-error-notice{display:flex;align-items:center;justify-items:flex-start;margin:10px 0;padding:10px 20px;background-color:var(--vbr-widget-error-notice-bg-color);color:var(--vbr-widget-error-notice-color);border:1px solid var(--vbr-widget-error-notice-border-color)}.mjsz-vbr-error-notice .icon{margin-right:15px}.mjsz-vbr-timezone-selector{padding:3px 0;color:var(--vbr-widget-timezone-selector-color);font-size:var(--vbr-widget-timezone-selector-font-size);font-weight:500}.mjsz-vbr-timezone-selector .is-active{font-weight:700}.is-badge{display:inline-block;padding:.125rem .25rem;color:var(--vbr-widget-badge-color);font-size:var(--vbr-widget-badge-font-size);font-weight:700;text-transform:uppercase;background-color:var(--vbr-widget-badge-bg-color);border-radius:3px}.is-badge+.is-badge{margin-left:3px}.is-badge.is-invert{color:var(--vbr-widget-badge-bg-color);background-color:var(--vbr-widget-badge-color)}.is-badge.is-green{color:var(--vbr-widget-primary-color-0);background-color:var(--vbr-widget-live-game-color)}.is-badge.is-large{font-size:var(--vbr-widget-badge-large-font-size);padding:.15rem .35rem}
|
|
23
|
+
`,bc=`.is-text-right{text-align:right}.is-text-center{text-align:center}.is-text-bold{font-weight:700}.is-text-italic{font-style:italic}.is-text-xs{font-size:.75rem;line-height:1rem}.is-text-sm{font-size:.875rem;line-height:1.25rem}.is-text-base{font-size:1rem;line-height:1.5rem}.is-text-lg{font-size:1.125rem;line-height:1.75rem}.is-text-xl{font-size:1.25rem;line-height:1.75rem}.is-uppercase{text-transform:uppercase}.is-opacity-20{opacity:.2}.is-opacity-30{opacity:.3}.is-opacity-50{opacity:.5}.is-mb-5{margin-bottom:1rem}
|
|
24
|
+
`,yc=`.mjsz-vbr-base-input{padding:.375rem .75rem;color:var(--vbr-widget-base-input-color);border:1px solid var(--vbr-widget-base-input-border-color);border-radius:var(--vbr-widget-base-input-border-radius);width:100%;-moz-padding-start:calc(.75rem - 3px);font-size:var(--vbr-widget-base-input-font-size);font-weight:400;line-height:1.5;background-color:#fff;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}.mjsz-vbr-base-input:disabled{opacity:.3}.mjsz-vbr-base-input.is-select{padding-right:2.25rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}label{display:block;margin-bottom:3px;color:var(--vbr-widget-form-label-color);font-size:var(--vbr-widget-form-label-font-size);font-weight:700;text-transform:uppercase}.mjsz-vbr-tab-button{padding:var(--vbr-widget-tab-btn-padding);font-family:inherit;font-size:var(--vbr-widget-tab-btn-font-size);font-weight:var(--vbr-widget-tab-btn-font-weight);color:var(--vbr-widget-tab-btn-color);text-transform:var(--vbr-widget-tab-btn-text-transform);background-color:var(--vbr-widget-tab-btn-bg-color);border-color:var(--vbr-widget-tab-btn-border-color);border-width:var(--vbr-widget-tab-btn-border-width);border-style:var(--vbr-widget-tab-btn-border-style);outline:none;box-shadow:none;cursor:pointer}.mjsz-vbr-tab-button:hover{color:var(--vbr-widget-tab-btn-hover-color);border-color:var(--vbr-widget-tab-btn-hover-border-color);background-color:var(--vbr-widget-tab-btn-hover-bg-color)}.mjsz-vbr-tab-button.is-active{color:var(--vbr-widget-tab-btn-active-color);border-color:var(--vbr-widget-tab-btn-active-border-color);background-color:var(--vbr-widget-tab-btn-active-bg-color)}
|
|
25
|
+
`,vc=`.g-row{display:flex}.g-row-wrap{display:flex;flex-wrap:wrap}.g-col{flex:1 0 0%}[class^=g-col-]{flex:0 0 auto}.g-col-6{width:50%}.g-col-5{width:41.66666667%}.g-col-3{width:25%}.g-col-auto{width:auto}.g-gap-normal{gap:20px}
|
|
26
|
+
`,wc=`.mjsz-vbr-table-responsive{container-name:table-wrapper;container-type:inline-size;width:100%;overflow-x:auto}.mjsz-vbr-table-responsive table{width:100%}
|
|
27
|
+
`,xc=`.mjsz-vbr-table{border-collapse:collapse;border-spacing:0}.mjsz-vbr-table table,.mjsz-vbr-table caption,.mjsz-vbr-table tbody,.mjsz-vbr-table tfoot,.mjsz-vbr-table thead,.mjsz-vbr-table tr,.mjsz-vbr-table th,.mjsz-vbr-table td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.mjsz-vbr-table{color:var(--vbr-widget-table-color);background-color:var(--vbr-widget-table-default-bg-color)}.mjsz-vbr-table th{width:var(--vbr-widget-table-default-column-width);background-color:var(--vbr-widget-table-header-bg-color);font-size:var(--vbr-widget-table-header-font-size);font-weight:700;color:var(--vbr-widget-table-header-color);text-align:center}.mjsz-vbr-table th:focus-visible,.mjsz-vbr-table th:hover{background-color:var(--vbr-widget-table-header-hover-bg-color);outline:none}.mjsz-vbr-table th.is-sortable{position:relative;cursor:pointer}.mjsz-vbr-table th.is-sortable .icon-sort{opacity:.5}.mjsz-vbr-table th.is-active{background-color:var(--vbr-widget-table-table-header-active-bg-color);color:var(--vbr-widget-table-header-active-color)}.mjsz-vbr-table th.is-active .icon-sort{opacity:1}.mjsz-vbr-table th.is-asc,.mjsz-vbr-table th.is-desc{position:relative}.mjsz-vbr-table th.is-w-auto{width:auto}.mjsz-vbr-table th .is-icon-sort{width:11px;height:11px;margin-left:5px}.mjsz-vbr-table td{text-align:center}.mjsz-vbr-table td.is-active{font-weight:700;color:var(--vbr-widget-table-active-color);background-color:var(--vbr-widget-table-active-bg-color)}.mjsz-vbr-table td .is-text-light,.mjsz-vbr-table td.is-text-light{color:var(--vbr-widget-table-cell-light-color)}.mjsz-vbr-table td .is-text-dark,.mjsz-vbr-table td.is-text-dark{color:var(--vbr-widget-table-cell-dark-color)}.mjsz-vbr-table td .is-logo-image{display:inline-block;vertical-align:middle;width:var(--vbr-widget-table-cell-logo-size);height:var(--vbr-widget-table-cell-logo-size)}.mjsz-vbr-table td .is-portrait-image{display:inline-block;vertical-align:middle;width:var(--vbr-widget-table-cell-portrait-size);height:var(--vbr-widget-table-cell-portrait-size);object-fit:cover;object-position:top;overflow:hidden;border-radius:100%;border:1px solid var(--vbr-widget-primary-color-100)}.mjsz-vbr-table td .is-portrait-image img{width:var(--vbr-widget-table-cell-portrait-size);height:auto}.mjsz-vbr-table td.is-text-bold{font-weight:700}.mjsz-vbr-table td.is-text-italic{font-style:italic}.mjsz-vbr-table td.is-text-xl{font-size:1.2 rem}.mjsz-vbr-table td .is-text-accent{color:var(--vbr-widget-secondary-color-500)}.mjsz-vbr-table td.is-w-auto{width:auto}.mjsz-vbr-table td svg{width:16px;height:16px}.mjsz-vbr-table td button{padding:3px;line-height:0;border:none;outline:none;background-color:transparent}.mjsz-vbr-table td button:hover{background-color:var(--vbr-widget-popover-trigger-hover-bg-color)}.mjsz-vbr-table td button:active,.mjsz-vbr-table td button:focus{background-color:var(--vbr-widget-popover-trigger-focus-bg-color)}.mjsz-vbr-table td a{text-decoration:none}.mjsz-vbr-table td .label{padding:3px 6px;font-size:11px;font-weight:700;color:var(--vbr-widget-table-label-color);background-color:var(--vbr-widget-table-label-bg-color);border-radius:2px}.mjsz-vbr-table td .label:not(:last-of-type){margin-right:3px}.mjsz-vbr-table td a{color:var(--vbr-widget-link-color)}.mjsz-vbr-table td a:hover{color:var(--vbr-widget-hover-color)}.mjsz-vbr-table td .is-team-name-long{display:block}.mjsz-vbr-table td .is-team-name-short{display:none}@container table-wrapper (max-width: 768px){.mjsz-vbr-table td .is-team-name-long{display:none}.mjsz-vbr-table td .is-team-name-short{display:block}}.mjsz-vbr-table th,.mjsz-vbr-table td{padding:8px;white-space:nowrap;vertical-align:middle}.mjsz-vbr-table th.is-text-left,.mjsz-vbr-table td.is-text-left{text-align:left}.mjsz-vbr-table th.is-text-right,.mjsz-vbr-table td.is-text-right{text-align:right}.mjsz-vbr-table th.is-has-image,.mjsz-vbr-table td.is-has-image{padding:0 2px}.mjsz-vbr-table th .is-duplicated,.mjsz-vbr-table td .is-duplicated{color:var(--vbr-widget-table-neutral-color)}.mjsz-vbr-table tr:nth-child(even){background-color:var(--vbr-widget-table-stripped-bg-color)}.mjsz-vbr-table tr:nth-child(even) td.is-active{background-color:var(--vbr-widget-table-active-even-bg-color)}.mjsz-vbr-table tr:focus-within,.mjsz-vbr-table tr:hover{color:var(--vbr-widget-table-hover-color);background-color:var(--vbr-widget-table-hover-bg-color)}.mjsz-vbr-table tr:focus-within td.is-active,.mjsz-vbr-table tr:hover td.is-active{color:var(--vbr-widget-table-active-hover-color);background-color:var(--vbr-widget-table-active-hover-bg-color)}
|
|
28
|
+
`,kc=`.is-dropdown-menu{padding:8px 0;margin:0;min-width:160px;color:#000;list-style:none;background:var(--vbr-widget-popover-bg-color);border-radius:3px;box-shadow:0 5px 30px rgba(black,.3)}.is-dropdown-menu .is-dropdown-item{display:flex;align-items:center;padding:.25rem 1rem;font-family:var(--vbr-widget-font-family);line-height:24px;color:var(--vbr-widget-dropdown-item-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.is-dropdown-menu .is-dropdown-item:hover{color:var(--vbr-widget-dropdown-item-hover-color);background-color:var(--vbr-widget-dropdown-item-hover-bg-color)}.is-dropdown-menu .is-dropdown-item svg{margin-right:8px}
|
|
29
|
+
`,zc=`.is-card{container-name:card-row;container-type:inline-size;background-color:#fff;padding:15px;margin-bottom:20px;box-shadow:0 2px 4px #0000001a,0 2px 2px #0000001a}.is-card>div{border-bottom:1px solid var(--vbr-widget-primary-color-100)}.is-card>div:last-of-type{border:none}.mjsz-vbr-card-item{display:grid;grid-gap:1rem;grid-template-columns:2fr 1fr 2fr;padding:2rem 0;border-bottom:1px solid var(--vbr-widget-primary-color-100)}.mjsz-vbr-card-item svg{display:block}.mjsz-vbr-card-item .is-team-name-short{display:none}@container card-row (max-width: 768px){.mjsz-vbr-card-item .is-team-name-long{display:none}.mjsz-vbr-card-item .is-team-name-short{display:block}}.mjsz-vbr-card-item .is-info{grid-column:1/4;display:flex;justify-content:center;align-items:center;color:var(--vbr-widget-primary-color-500)}.mjsz-vbr-card-item .is-home-team{display:flex;gap:8px;align-items:center;justify-content:flex-end;font-weight:700}.mjsz-vbr-card-item .is-away-team{display:flex;gap:8px;align-items:center;justify-content:flex-start;font-weight:700}.mjsz-vbr-card-item .is-logo-image{width:40px}.mjsz-vbr-card-item .is-game-data{display:flex;flex-direction:column;align-items:center;justify-content:center}.mjsz-vbr-card-item .is-game-data a{display:flex;flex-direction:column;align-items:center;color:var(--vbr-widget-primary-color-900)}.mjsz-vbr-card-item .is-game-data a:hover{color:var(--vbr-widget-primary-color-600)}.mjsz-vbr-card-item .is-game-data.is-live,.mjsz-vbr-card-item .is-game-data.is-live a{color:var(--vbr-widget-live-game-color)}.mjsz-vbr-section-selector{margin:20px 0;border-bottom:1px solid var(--vbr-widget-primary-color-200)}
|
|
30
|
+
`,Sc=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r},jc=["onClick"],hn=Sc({__name:"Championship.ce",props:{locale:{type:String,default:"hu"},apiKey:{type:String,default:""},championshipName:{type:String,default:""},timezoneSelector:{type:Boolean,default:!1},externalGameLink:{type:[String,Function],default:""}},setup(t){const e=t,r=o.ref(Rr()),n=o.computed(()=>Dt(new Date,o.unref(r),e.locale)),a=rt("tab-button"),i=rt("section-selector"),s={en:gc,hu:mc},l=p=>ns(e.externalGameLink,p),c=p=>{r.value=p};return(p,d)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(o.unref(zi),{locale:e.locale,messages:s},{default:o.withCtx(()=>[o.createVNode(o.unref(ci),null,{default:o.withCtx(({error:u,hasError:f})=>[f?(o.openBlock(),o.createBlock(o.unref(ai),{key:0,error:u},null,8,["error"])):o.createCommentVNode("",!0),o.createVNode(ic,{locale:t.locale,timezone:r.value,"championship-name":t.championshipName},{default:o.withCtx(({seasons:m,championshipId:b,championships:g,selectedChampionshipId:h,games:v,isLoading:w,phases:y,phaseId:S,changeSeason:E,changeChampionship:$,changePhase:M})=>[o.createVNode(cc,{seasons:m,"championship-id":b,"onUpdate:championshipId":E},null,8,["seasons","championship-id","onUpdate:championshipId"]),o.createElementVNode("div",{class:o.normalizeClass(o.unref(i))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g,D=>(o.openBlock(),o.createElementBlock("button",{key:D.phaseId,onClick:T=>$(D.sectionId),class:o.normalizeClass([o.unref(a),{"is-active":D.sectionId===h}])},o.toDisplayString(D.sectionName),11,jc))),128))],2),o.createVNode(fc,{phases:y,"phase-id":S,"onUpdate:phaseId":M},null,8,["phases","phase-id","onUpdate:phaseId"]),o.createElementVNode("div",{class:o.normalizeClass(o.unref(i))},[o.createElementVNode("button",{class:o.normalizeClass([o.unref(a),{"is-active":!0}]),onClick:d[0]||(d[0]=D=>p.changeSection(p.rawSection.sectionId))}," Menetrend ",2)],2),e.timezoneSelector?(o.openBlock(),o.createBlock(o.unref(Hi),{class:"is-mb-5",key:e.locale,locale:e.locale,"current-zone":r.value,onChange:c},null,8,["locale","current-zone"])):o.createCommentVNode("",!0),w?(o.openBlock(),o.createBlock(o.unref($r),{key:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(Ws),{rows:v.rows,"offset-name":n.value,"is-loading":w,"external-game-resolver":l,"hide-columns":"broadcast"},null,8,["rows","offset-name","is-loading"])]),_:1},8,["locale","timezone","championship-name"])]),_:1})]),_:1},8,["locale"])]))}},[["styles",[hc,bc,yc,vc,wc,xc,kc,zc]]]),bn=o.defineCustomElement(hn);function yn(){customElements.define("mjsz-vbr-championship",bn)}return ht.Championship=hn,ht.ChampionshipCE=bn,ht.default=yn,ht.register=yn,Object.defineProperties(ht,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),ht}({},Vue);
|