@mjsz-vbr-elements/core 2.1.0-rc.3 → 2.1.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.1.0-rc.3 - 22/11/2023, 22:50:31
3
+ * version: v2.1.0-rc.5 - 24/11/2023, 21:26:39
4
4
  * (c) 2023
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- var MjszVbrElementsCore=function(S,r){"use strict";const rt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Le={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=rt("base-input"),a=r.computed({get:()=>n.modelValue,set:s=>e("update:modelValue",s)});return(s,i)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),class:r.normalizeClass([r.unref(o),"is-select"])},[r.renderSlot(s.$slots,"default")],2)),[[r.vModelSelect,a.value]])}};function Ce(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function nt(t){return typeof t=="function"?t():r.unref(t)}const Gt=typeof window<"u",ot=()=>{},Sr=wr();function wr(){var t;return Gt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function oe(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function ae(t,e=!1){function n(m,{flush:d="sync",deep:f=!1,timeout:h,throwOnTimeout:g}={}){let y=null;const k=[new Promise(E=>{y=r.watch(t,v=>{m(v)!==e&&(y==null||y(),E(v))},{flush:d,deep:f,immediate:!0})})];return h!=null&&k.push(oe(h,g).then(()=>nt(t)).finally(()=>y==null?void 0:y())),Promise.race(k)}function o(m,d){if(!r.isRef(m))return n(v=>v===m,d);const{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:y}=d??{};let T=null;const E=[new Promise(v=>{T=r.watch([t,m],([P,M])=>{e!==(P===M)&&(T==null||T(),v(P))},{flush:f,deep:h,immediate:!0})})];return g!=null&&E.push(oe(g,y).then(()=>nt(t)).finally(()=>(T==null||T(),nt(t)))),Promise.race(E)}function a(m){return n(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,d){return n(f=>{const h=Array.from(f);return h.includes(m)||h.includes(nt(m))},d)}function u(m){return p(1,m)}function p(m=1,d){let f=-1;return n(()=>(f+=1,f>=m),d)}return Array.isArray(nt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:p,get not(){return ae(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:p,get not(){return ae(t,!e)}}}function _r(t){return ae(t)}function Tr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},nt(e))}return o&&(a.value=!0,Gt&&c()),Ce(l),{isPending:r.readonly(a),start:c,stop:l}}function $r(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n)}function kr(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function At(t){var e;const n=nt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Be=Gt?window:void 0,Or=Gt?window.document:void 0;function jt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Be):[e,n,o,a]=t,!e)return ot;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,m,d,f)=>(p.addEventListener(m,d,f),()=>p.removeEventListener(m,d,f)),c=r.watch(()=>[At(e),nt(a)],([p,m])=>{i(),p&&s.push(...n.flatMap(d=>o.map(f=>l(p,d,f,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Ce(u),u}let Ie=!1;function Er(t,e,n={}){const{window:o=Be,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;Sr&&!Ie&&(Ie=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",ot)));let l=!0;const c=d=>a.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(h=>h===d.target||d.composedPath().includes(h));{const h=At(f);return h&&(d.target===h||d.composedPath().includes(h))}}),p=[jt(o,"click",d=>{const f=At(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:s}),jt(o,"pointerdown",d=>{const f=At(t);f&&(l=!d.composedPath().includes(f)&&!c(d))},{passive:!0}),i&&jt(o,"blur",d=>{var f;const h=At(t);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var Ar=Object.defineProperty,Pr=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Ve=(t,e,n)=>e in t?Ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Dr=(t,e)=>{for(var n in e||(e={}))Nr.call(e,n)&&Ve(t,n,e[n]);if(ze)for(var n of ze(e))xr.call(e,n)&&Ve(t,n,e[n]);return t},Mr=(t,e)=>Pr(t,vr(e));function Re(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=ot,onSuccess:i=ot,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},p=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),d=r.ref(!1),f=r.shallowRef(void 0);async function h(T=0,...k){l&&(p.value=e),f.value=void 0,m.value=!1,d.value=!0,T>0&&await oe(T);const E=typeof t=="function"?t(...k):t;try{const v=await E;p.value=v,m.value=!0,i(v)}catch(v){if(f.value=v,s(v),u)throw v}finally{d.value=!1}return p.value}o&&h(a);const g={state:p,isReady:m,isLoading:d,error:f,execute:h};function y(){return new Promise((T,k)=>{_r(d).toBe(!1).then(()=>T(g)).catch(k)})}return Mr(Dr({},g),{then(T,k){return y().then(T,k)}})}function Lr({document:t=Or}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return jt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Cr=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,je=(t,e,n)=>e in t?Cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zr=(t,e)=>{for(var n in e||(e={}))Br.call(e,n)&&je(t,n,e[n]);if(Ge)for(var n of Ge(e))Ir.call(e,n)&&je(t,n,e[n]);return t};async function Vr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=n})}function Rr(t,e={}){const n=Re(()=>Vr(nt(t)),void 0,zr({resetOnExecute:!0},e));return r.watch(()=>nt(t),()=>n.execute(e.delay),{deep:!0}),n}function Fe(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=Tr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(n){return arguments.length===0||G(n)?e:t.apply(this,arguments)}}function z(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return G(n)?e:j(function(a){return t(n,a)});default:return G(n)&&G(o)?e:G(n)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(n,a)}):t(n,o)}}}function Ft(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,p){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,p,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function se(t,e,n){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?n.apply(this,o):Ft(s,se(t,o,n))}}var Pt=z(function(e,n){return e===1?j(n):Ft(e,se(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return G(n)?e:z(function(s,i){return t(n,s,i)});case 2:return G(n)&&G(o)?e:G(n)?z(function(s,i){return t(s,o,i)}):G(o)?z(function(s,i){return t(n,s,i)}):j(function(s){return t(n,o,s)});default:return G(n)&&G(o)&&G(a)?e:G(n)&&G(o)?z(function(s,i){return t(s,i,a)}):G(n)&&G(a)?z(function(s,i){return t(s,o,i)}):G(o)&&G(a)?z(function(s,i){return t(n,s,i)}):G(n)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(n,s,a)}):G(a)?j(function(s){return t(n,o,s)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Gr(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Yt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Gr(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ye(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const _t={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ue(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function He(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function jr(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Q(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Fr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ie=typeof Object.is=="function"?Object.is:Fr;var We=Object.prototype.toString,Ke=function(){return We.call(arguments)==="[object Arguments]"?function(e){return We.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),Yr=!{toString:null}.propertyIsEnumerable("toString"),Ze=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],qe=function(){return arguments.propertyIsEnumerable("length")}(),Ur=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},ht=j(typeof Object.keys=="function"&&!qe?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=qe&&Ke(e);for(n in e)Q(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Yr)for(o=Ze.length-1;o>=0;)n=Ze[o],Q(n,e)&&!Ur(a,n)&&(a[a.length]=n),o-=1;return a}),le=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Xe(t,e,n,o){var a=Ue(t),s=Ue(e);function i(l,c){return ce(l,c,n.slice(),o.slice())}return!He(function(l,c){return!He(i,c,l)},s,a)}function ce(t,e,n,o){if(ie(t,e))return!0;var a=le(t);if(a!==le(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"&&jr(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 s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:Xe(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Xe(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=ht(t);if(i.length!==ht(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(Q(u,e)&&ce(e[u],t[u],l,c)))return!1;s-=1}return!0}var Ut=z(function(e,n){return ce(e,n,[],[])});function Hr(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Ut(t[n],e))return n;n+=1}return-1}function Je(t,e){return Hr(e,t,0)>=0}function Ht(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function ue(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 Nt=function(e){return(e<10?"0":"")+e},Wr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Nt(e.getUTCMonth()+1)+"-"+Nt(e.getUTCDate())+"T"+Nt(e.getUTCHours())+":"+Nt(e.getUTCMinutes())+":"+Nt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Kr(t){return function(){return!t.apply(this,arguments)}}function Qe(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Zr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}var qr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Xr(t){return function(e){return new qr(t,e)}}var tn=z(Yt(["fantasy-land/filter","filter"],Xr,function(t,e){return Wt(e)?Qe(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},ht(e)):Zr(t,e)})),Jr=z(function(e,n){return tn(Kr(e),n)});function en(t,e){var n=function(i){var l=e.concat([t]);return Je(i,l)?"<Circular>":en(i,l)},o=function(s,i){return Ht(function(l){return ue(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(n,t).join(", ")+"))";case"[object Array]":return"["+Ht(n,t).concat(o(t,Jr(function(s){return/^\d+$/.test(s)},ht(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):ue(Wr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":ue(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,ht(t)).join(", ")+"}"}}var de=j(function(e){return en(e,[])}),Qr=z(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=de(e),l=o(i,de(n));return l!==void 0&&l===i?e:n}),to=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),eo=function(e){return function(n){return new to(e,n)}},no=z(Yt(["fantasy-land/map","map"],eo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Pt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Qe(function(o,a){return o[a]=e(n[a]),o},{},ht(n));default:return Ht(e,n)}}));const lt=no,Kt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var nn=z(function(e,n){var o=e<0?n.length+e:e;return Zt(n)?n.charAt(o):n[o]}),ro=z(function(e,n){if(n!=null)return Kt(e)?nn(e,n):n[e]});const gt=ro;var oo=z(function(e,n){return lt(gt(e),n)}),ao=j(function(e){return vt(e)?!0:!e||typeof e!="object"||Zt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),rn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function so(t,e,n){return function(a,s,i){if(ao(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[rn]!=null)return n(a,s,i[rn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function io(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var lo=z(function(e,n){return Ft(e.length,function(){return e.apply(n,arguments)})});function co(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function uo(t,e,n,o){return t["@@transducer/result"](n[o](lo(t["@@transducer/step"],t),e))}var on=so(io,uo,co),fo=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,n){return this.f(e,n)},t}();function an(t){return new fo(t)}var mo=X(function(t,e,n){return on(typeof t=="function"?an(t):t,e,n)});const sn=mo;var po=j(function(e){return function(){return e}});const ln=po;var ho=j(function(e){return Pt(sn(Qr,0,oo("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})});const go=ho;var yo=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});const fe=yo;function bo(t,e,n){if(Kt(t)&&vt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var So=j(function(e){return e==null}),wo=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!So(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:Kt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return bo(a,n,o)}),_o=X(function(e,n,o){return wo([e],n,o)});function To(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function $o(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 me(t,e,n){if(n||(n=new Oo),ko(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?me(t[l],!0,n):t[l]);return s};switch(le(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return $o(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 ko(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Oo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){let n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const n=this.hash(e),o=this.map[n];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function Eo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function pe(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Ao=X(pe("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Po=j(pe("tail",Ao(1,1/0)));const vo=Po;function qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ft(arguments[0].length,sn(Eo,arguments[0],vo(arguments)))}var No=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const xo=No;function cn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return qt.apply(this,xo(arguments))}var Do=j(function(e){return Pt(e.length,e)});const Mo=Do;var Lo=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(Q(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,me(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Co(t,e,n){return function(o){return new Lo(t,e,n,o)}}var Bo=se(4,[],Yt([],Co,function(e,n,o,a){var s=an(function(i,l){var c=o(l),u=e(Q(c,i)?i[c]:me(n,!1),l);return u&&u["@@transducer/reduced"]?Ye(i):(i[c]=u,i)});return on(s,{},a)})),Io=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const zo=Io;function Vo(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 Ro=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():vt(e)?[]:Zt(e)?"":Wt(e)?{}:Ke(e)?function(){return arguments}():Vo(e)?e.constructor.from(""):void 0}),Go=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=Ye(this.xf["@@transducer/step"](e,this.idx))),e},t}();function jo(t){return function(e){return new Go(t,e)}}var Fo=z(Yt([],jo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1}));const Yo=Fo;var Uo=z(pe("groupBy",Bo(function(t,e){return t.push(e),t},[])));const Ho=Uo;var Wo=X(function(e,n,o){return Pt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const Ko=Wo;var Zo=z(Je);const qo=Zo;var Xo=z(function(e,n){return Pt(e+1,function(){var o=arguments[e];if(o!=null&&To(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(de(o)+' does not have a method named "'+n+'"')})});const un=Xo;var Jo=j(function(e){return e!=null&&Ut(e,Ro(e))});const Qo=Jo;var ta=z(function(e,n){return function(o){return function(a){return lt(function(s){return n(s,a)},o(e(a)))}}}),ea=z(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Kt(i)?nn(i,a):a[i],s+=1}return a})}),na=z(function(e,n){return ea([e],n)[0]});const he=na;var ra=j(function(e){return ta(gt(e),_o(e))});const oa=ra;var aa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)Q(s,n)&&(a[s]=Q(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),sa=X(function t(e,n,o){return aa(function(a,s,i){return Wt(s)&&Wt(i)?t(e,s,i):e(a,s,i)},n,o)}),ia=z(function(e,n){return sa(function(o,a,s){return s},e,n)});const la=ia;var ca=z(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o});const ua=ca;var dn=function(t){return{value:t,map:function(e){return dn(e(t))}}},da=X(function(e,n,o){return e(function(a){return dn(n(a))})(o).value});const fa=da;var ma=X(function(e,n,o){return e(gt(n,o))});const pa=ma;var ha=X(function(e,n,o){return o.replace(e,n)});const ga=ha;var ya=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)});const ba=ya;var Sa=z(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const fn=Sa;var wa=un(1,"split");const Tt=wa;var _a=un(0,"toLowerCase");const mn=_a;var xt=`
9
- \v\f\r                 \u2028\u2029\uFEFF`,Ta="​",$a=typeof String.prototype.trim=="function",ka=j(!$a||xt.trim()||!Ta.trim()?function(e){var n=new RegExp("^["+xt+"]["+xt+"]*"),o=new RegExp("["+xt+"]["+xt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Xt=ka,pn=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),hn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(c,u={})=>{const p=!Qo(u),m=lt(Xt,Tt(".",c));return r.computed(()=>{const f=gn(m);return p?Ea(f,u):f}).value},a=c=>{const u=lt(Xt,Tt(".",c));return!!ge(K.locale,u,K.messages)},s=c=>{K.locale=c},l={locale:r.computed({get(){return K.locale},set(c){K.locale=c}}),setLocale:s,translate:o,hasTranlation:a};return r.provide(pn,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=Oa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},Oa=()=>{const t=r.inject(pn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},gn=(t=[])=>{let e=ge(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ge(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ge(t,e,n){return he([t,...e],n)}const Ea=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},yn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=lt(Xt,Tt(".",t.path)),o=gn(n),a=Tt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),bn="https://api.icehockey.hu/vbr",Sn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",wn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",_n="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Tn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",$n="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",kn=new Map().set("hu","hu-hu").set("en","hu-gb"),On=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Aa=1e3*60*5,En=1e3,Pa={"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"},va=r.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),Na=[va];function xa(t,e){return r.openBlock(),r.createElementBlock("svg",Pa,Na)}const An={render:xa},Da={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ma=r.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),La=[Ma];function Ca(t,e){return r.openBlock(),r.createElementBlock("svg",Da,La)}const Ba={render:Ca},Ia={"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=r.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),Va=[za];function Ra(t,e){return r.openBlock(),r.createElementBlock("svg",Ia,Va)}const Ga={render:Ra};function Dt(t){return t.split("-")[1]}function ye(t){return t==="y"?"height":"width"}function yt(t){return t.split("-")[0]}function Mt(t){return["top","bottom"].includes(yt(t))?"x":"y"}function Pn(t,e,n){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=Mt(e),c=ye(l),u=o[c]/2-a[c]/2,p=l==="x";let m;switch(yt(e)){case"top":m={x:s,y:o.y-a.height};break;case"bottom":m={x:s,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:i};break;case"left":m={x:o.x-a.width,y:i};break;default:m={x:o.x,y:o.y}}switch(Dt(e)){case"start":m[l]-=u*(n&&p?-1:1);break;case"end":m[l]+=u*(n&&p?-1:1)}return m}const ja=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:p,y:m}=Pn(u,o,c),d=o,f={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:T}=l[g],{x:k,y:E,data:v,reset:P}=await T({x:p,y:m,initialPlacement:o,placement:d,strategy:a,middlewareData:f,rects:u,platform:i,elements:{reference:t,floating:e}});p=k??p,m=E??m,f={...f,[y]:{...f[y],...v}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(d=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):P.rects),{x:p,y:m}=Pn(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function vn(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 Jt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Nn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:d=!1,padding:f=0}=e,h=vn(f),g=l[d?m==="floating"?"reference":"floating":m],y=Jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),T=m==="floating"?{...i.floating,x:o,y:a}:i.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(k))&&await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1},v=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:k,strategy:c}):T);return{top:(y.top-v.top+h.top)/E.y,bottom:(v.bottom-y.bottom+h.bottom)/E.y,left:(y.left-v.left+h.left)/E.x,right:(v.right-y.right+h.right)/E.x}}const Fa=Math.min,Ya=Math.max;function be(t,e,n){return Ya(t,Fa(e,n))}const xn=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:c,elements:u}=e;if(n==null)return{};const p=vn(o),m={x:a,y:s},d=Mt(i),f=ye(d),h=await c.getDimensions(n),g=d==="y",y=g?"top":"left",T=g?"bottom":"right",k=g?"clientHeight":"clientWidth",E=l.reference[f]+l.reference[d]-m[d]-l.floating[f],v=m[d]-l.reference[d],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n));let M=P?P[k]:0;M&&await(c.isElement==null?void 0:c.isElement(P))||(M=u.floating[k]||l.floating[f]);const I=E/2-v/2,R=p[y],L=M-h[f]-p[T],x=M/2-h[f]/2+I,V=be(R,x,L),H=Dt(i)!=null&&x!=V&&l.reference[f]/2-(x<R?p[y]:p[T])-h[f]/2<0;return{[d]:m[d]-(H?x<R?R-x:L-x:0),data:{[d]:V,centerOffset:x-V}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ua={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Ua[e])}function Ha(t,e,n){n===void 0&&(n=!1);const o=Dt(t),a=Mt(t),s=ye(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Qt(i)),{main:i,cross:Qt(i)}}const Wa={start:"end",end:"start"};function Se(t){return t.replace(/start|end/g,e=>Wa[e])}const Ka=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=t,y=yt(o),T=yt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(T||!h?[Qt(i)]:function(V){const H=Qt(V);return[Se(V),H,Se(H)]}(i));m||f==="none"||E.push(...function(V,H,A,$){const _=Dt(V);let O=function(w,N,D){const C=["left","right"],Y=["right","left"],F=["top","bottom"],W=["bottom","top"];switch(w){case"top":case"bottom":return D?N?Y:C:N?C:Y;case"left":case"right":return N?F:W;default:return[]}}(yt(V),A==="start",$);return _&&(O=O.map(w=>w+"-"+_),H&&(O=O.concat(O.map(Se)))),O}(i,h,f,k));const v=[i,...E],P=await Nn(e,g),M=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&M.push(P[y]),p){const{main:V,cross:H}=Ha(o,s,k);M.push(P[V],P[H])}if(I=[...I,{placement:o,overflows:M}],!M.every(V=>V<=0)){var R,L;const V=(((R=a.flip)==null?void 0:R.index)||0)+1,H=v[V];if(H)return{data:{index:V,overflows:I},reset:{placement:H}};let A=(L=I.filter($=>$.overflows[0]<=0).sort(($,_)=>$.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!A)switch(d){case"bestFit":{var x;const $=(x=I.map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:x[0];$&&(A=$);break}case"initialPlacement":A=i}if(o!==A)return{reset:{placement:A}}}return{}}}},Za=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,a=await async function(s,i){const{placement:l,platform:c,elements:u}=s,p=await(c.isRTL==null?void 0:c.isRTL(u.floating)),m=yt(l),d=Dt(l),f=Mt(l)==="x",h=["left","top"].includes(m)?-1:1,g=p&&f?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:T,crossAxis:k,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof E=="number"&&(k=d==="end"?-1*E:E),f?{x:k*g,y:T*h}:{x:T*h,y:k*g}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function qa(t){return t==="x"?"y":"x"}const Xa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:T,y:k}=y;return{x:T,y:k}}},...c}=t,u={x:n,y:o},p=await Nn(e,c),m=Mt(yt(a)),d=qa(m);let f=u[m],h=u[d];if(s){const y=m==="y"?"bottom":"right";f=be(f+p[m==="y"?"top":"left"],f,f-p[y])}if(i){const y=d==="y"?"bottom":"right";h=be(h+p[d==="y"?"top":"left"],h,h-p[y])}const g=l.fn({...e,[m]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){return J(t).getComputedStyle(t)}function Dn(t){return t instanceof J(t).Node}function ut(t){return Dn(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function q(t){return t instanceof J(t).Element}function Mn(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Lt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Ja(t){return["table","td","th"].includes(ut(t))}function we(t){const e=_e(),n=tt(t);return n.transform!=="none"||n.perspective!=="none"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function _e(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function te(t){return["html","body","#document"].includes(ut(t))}const Ln=Math.min,Ct=Math.max,ee=Math.round;function Cn(t){const e=tt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=ee(n)!==s||ee(o)!==i;return l&&(n=s,o=i),{width:n,height:o,fallback:l}}function Bn(t){return q(t)?t:t.contextElement}const In={x:1,y:1};function $t(t){const e=Bn(t);if(!et(e))return In;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=Cn(e);let i=(s?ee(n.width):n.width)/o,l=(s?ee(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const zn={x:0,y:0};function Vn(t,e,n){var o,a;if(e===void 0&&(e=!0),!_e())return zn;const s=t?J(t):window;return!n||e&&n!==s?zn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function bt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Bn(t);let i=In;e&&(o?q(o)&&(i=$t(o)):i=$t(t));const l=Vn(s,n,o);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,p=a.width/i.x,m=a.height/i.y;if(s){const d=J(s),f=o&&q(o)?J(o):o;let h=d.frameElement;for(;h&&o&&f!==d;){const g=$t(h),y=h.getBoundingClientRect(),T=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(T.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(T.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,m*=g.y,c+=y.x,u+=y.y,h=J(h).frameElement}}return Jt({width:p,height:m,x:c,y:u})}function dt(t){return((Dn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Rn(t){return bt(dt(t)).left+ne(t).scrollLeft}function kt(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mn(t)&&t.host||dt(t);return Mn(e)?e.host:e}function Gn(t){const e=kt(t);return te(e)?e.ownerDocument.body:et(e)&&Lt(e)?e:Gn(e)}function Bt(t,e){var n;e===void 0&&(e=[]);const o=Gn(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Lt(o)?o:[]):e.concat(o,Bt(o))}function jn(t,e,n){let o;if(e==="viewport")o=function(a,s){const i=J(a),l=dt(a),c=i.visualViewport;let u=l.clientWidth,p=l.clientHeight,m=0,d=0;if(c){u=c.width,p=c.height;const f=_e();(!f||f&&s==="fixed")&&(m=c.offsetLeft,d=c.offsetTop)}return{width:u,height:p,x:m,y:d}}(t,n);else if(e==="document")o=function(a){const s=dt(a),i=ne(a),l=a.ownerDocument.body,c=Ct(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),u=Ct(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+Rn(a);const m=-i.scrollTop;return tt(l).direction==="rtl"&&(p+=Ct(s.clientWidth,l.clientWidth)-c),{width:c,height:u,x:p,y:m}}(dt(t));else if(q(e))o=function(a,s){const i=bt(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,u=et(a)?$t(a):{x:1,y:1};return{width:a.clientWidth*u.x,height:a.clientHeight*u.y,x:c*u.x,y:l*u.y}}(e,n);else{const a=Vn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Jt(o)}function Fn(t,e){const n=kt(t);return!(n===e||!q(n)||te(n))&&(tt(n).position==="fixed"||Fn(n,e))}function Yn(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Un(t,e){const n=J(t);if(!et(t))return n;let o=Yn(t,e);for(;o&&Ja(o)&&tt(o).position==="static";)o=Yn(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!we(o))?n:o||function(a){let s=kt(a);for(;et(s)&&!te(s);){if(we(s))return s;s=kt(s)}return null}(t)||n}function Qa(t,e,n){const o=et(e),a=dt(e),s=n==="fixed",i=bt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((ut(e)!=="body"||Lt(a))&&(l=ne(e)),et(e)){const u=bt(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=Rn(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const ts={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=n==="clippingAncestors"?function(u,p){const m=p.get(u);if(m)return m;let d=Bt(u).filter(y=>q(y)&&ut(y)!=="body"),f=null;const h=tt(u).position==="fixed";let g=h?kt(u):u;for(;q(g)&&!te(g);){const y=tt(g),T=we(g);T||y.position!=="fixed"||(f=null),(h?!T&&!f:!T&&y.position==="static"&&f&&["absolute","fixed"].includes(f.position)||Lt(g)&&!T&&Fn(u,g))?d=d.filter(k=>k!==g):f=y,g=kt(g)}return p.set(u,d),d}(e,this._c):[].concat(n),i=[...s,o],l=i[0],c=i.reduce((u,p)=>{const m=jn(e,p,a);return u.top=Ct(m.top,u.top),u.right=Ln(m.right,u.right),u.bottom=Ln(m.bottom,u.bottom),u.left=Ct(m.left,u.left),u},jn(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:n,strategy:o}=t;const a=et(n),s=dt(n);if(n===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((ut(n)!=="body"||Lt(s))&&(i=ne(n)),et(n))){const u=bt(n);l=$t(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+c.x,y:e.y*l.y-i.scrollTop*l.y+c.y}},isElement:q,getDimensions:function(t){return Cn(t)},getOffsetParent:Un,getDocumentElement:dt,getScale:$t,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||Un,s=this.getDimensions;return{reference:Qa(e,await a(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function es(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,c=a||s?[...q(t)?Bt(t):t.contextElement?Bt(t.contextElement):[],...Bt(e)]:[];c.forEach(d=>{const f=!q(d)&&d.toString().includes("V");!a||l&&!f||d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});let u,p=null;i&&(p=new ResizeObserver(()=>{n()}),q(t)&&!l&&p.observe(t),q(t)||!t.contextElement||l||p.observe(t.contextElement),p.observe(e));let m=l?bt(t):null;return l&&function d(){const f=bt(t);!m||f.x===m.x&&f.y===m.y&&f.width===m.width&&f.height===m.height||n(),m=f,u=requestAnimationFrame(d)}(),n(),()=>{var d;c.forEach(f=>{a&&f.removeEventListener("scroll",n),s&&f.removeEventListener("resize",n)}),(d=p)==null||d.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const ns=(t,e,n)=>{const o=new Map,a={platform:ts,...n},s={...a.platform,_c:o};return ja(t,e,{...a,platform:s})},Hn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function rs({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),d=r.ref(n??"absolute"),f=r.ref(null),h=()=>{!s.value||!i.value||ns(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,d.value=y.strategy,u.value=y.middlewareData.arrow.x,p.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:T})=>{T&&Hn(y,T),h()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=es(s.value,i.value,h,{})}},{flush:"post"});const g=()=>{var y;(y=f.value)==null||y.call(f),f.value=null};return{x:l,y:c,arrowX:u,arrowY:p,placement:m,reference:s,floating:i,strategy:d,update:h}}const os=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?xn({element:e.value,padding:n}).fn(o):{}:e?xn({element:e,padding:n}).fn(o):{}}}},as=["data-placement"],Te={__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,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=rs({placement:e.placement,middleware:[Ka(),Xa({padding:5}),Za(e.offset),os({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),d=()=>{e.disabled||n.value||(n.value=!0)},f=y=>{n.value&&y&&(n.value=!1)},h=y=>{u.value=y},g={mouseenter:d,mouseleave:f,focus:d,blur:f};return Er(p,y=>{var T;(T=u.value)!=null&&T.contains(y.target)||f()}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:h,show:d,hide:f,events:g}),r.createElementVNode("div",{ref_key:"floating",ref:p,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:f},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,as)],64))}},ss=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],is={key:0},ls=["colspan"],cs={key:1},us=["colspan"],$e={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Fe(o,{delay:En}),{t:i}=ct(),l=rt("table"),c=r.computed(()=>n.columns),u=r.computed(()=>Object.keys(n.columns).length),p=(m,d)=>{m.sortOrders&&e("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(l))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(f,h)=>(r.openBlock(),r.createBlock(Te,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:y,hide:T})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(at),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)}]),onMouseenter:y,onMouseleave:T,onFocus:y,onBlur:T,onClick:k=>p(f,h),onKeydown:[r.withKeys(r.withModifiers(k=>p(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(k=>p(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(m.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(An),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(at)?(r.openBlock(),r.createBlock(r.unref(An),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(Ba),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)?(r.openBlock(),r.createBlock(r.unref(Ga),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,ss)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(g,y)=>(r.openBlock(),r.createElementBlock("td",{key:y,class:r.normalizeClass([[g.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(at),"is-zero":f[y]==0}])},[r.renderSlot(m.$slots,`cell-${y}`,{row:f,prop:y},()=>[r.createTextVNode(r.toDisplayString(f[y]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",is,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.loading")),1)])],8,ls)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",cs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.noData")),1)])],8,us)])])):r.createCommentVNode("",!0)],2))}},ds={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=r.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),ms=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ps=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),hs=[fs,ms,ps];function gs(t,e){return r.openBlock(),r.createElementBlock("svg",ds,hs)}const ys={render:gs},bs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranlation:o}=ct(),a=rt("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(ys),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Wn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return he(Tt(".",o),e)})},Kn=Symbol("ErrorProviderContext"),Zn=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Wn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(Kn,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},ke=()=>{const t=Ss();return{onError:t.onError,reset:t.reset}},Ss=()=>{const t=r.inject(Kn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},ws={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Zn();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},_s={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Ts={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},qn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},$s=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=la({hu:_s,en:Ts},t.messages),{translate:n}=hn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function ks(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const Os=qn($s,[["render",ks]]),Es=["src"],As=["src","title"],wt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=Rr(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Es)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,As))],64))}}),Ps={style:{"text-align":"center"}},Oe={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(n,o)=>(r.openBlock(),r.createElementBlock("div",Ps,r.toDisplayString(r.unref(e)("common.loading")),1))}};function vs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=ot}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const p=r.unref(t)-1,m=Array.from({length:s.value},(h,g)=>g+1),d=Math.floor(o/2);let f=Math.max(p-d,0);return f+o>=s.value&&(f=Math.max(s.value-o,0)),m.slice(f,f+o)}),l=p=>{const m=r.unref(t)+p;u(m)&&a(m)},c=p=>{u(p)&&a(p)},u=p=>p<=s.value&&p>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Ns={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=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Ds=[xs];function Ms(t,e){return r.openBlock(),r.createElementBlock("svg",Ns,Ds)}const Ls={render:Ms},Cs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Bs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Is=[Bs];function zs(t,e){return r.openBlock(),r.createElementBlock("svg",Cs,Is)}const Vs={render:zs},Rs=["disabled"],Gs=["disabled"],js={key:1,class:"is-disabled"},Fs=["disabled","onClick"],Ys={key:2,class:"is-disabled"},Us=[r.createElementVNode("span",null,"...",-1)],Hs=["disabled"],Ws=["disabled"],Ks={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=rt("paginator"),{page:a,pageCount:s,range:i,goTo:l,pageStep:c}=vs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:u=>e("change",u)});return(u,p)=>r.unref(s)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(o))},[r.createElementVNode("button",{type:"button",disabled:r.unref(a)===1,onClick:p[0]||(p[0]=m=>r.unref(c)(-1))},[r.renderSlot(u.$slots,"prev",{},()=>[r.createVNode(r.unref(Ls),{class:"icon paginator-left"})])],8,Rs),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(a)===1,onClick:p[1]||(p[1]=m=>r.unref(l)(1))},"1",8,Gs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",js,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),m=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:m,class:r.normalizeClass({"is-active":m===r.unref(a)}),disabled:m===r.unref(a),onClick:d=>r.unref(l)(m)},r.toDisplayString(m),11,Fs))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ys,Us)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[2]||(p[2]=m=>r.unref(l)(r.unref(s)))},r.toDisplayString(r.unref(s)),9,Hs)),r.createElementVNode("button",{type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[3]||(p[3]=r.withModifiers(m=>r.unref(c)(1),["prevent"]))},[r.renderSlot(u.$slots,"next",{},()=>[r.createVNode(r.unref(Vs),{class:"icon paginator-left"})])],8,Ws)],2)):r.createCommentVNode("",!0)}},Ee={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=rt("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",p="week",m="month",d="quarter",f="year",h="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={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 $=["th","st","nd","rd"],_=A%100;return"["+A+($[(_-20)%10]||$[_]||$[0])+"]"}},E=function(A,$,_){var O=String(A);return!O||O.length>=$?A:""+Array($+1-O.length).join(_)+A},v={s:E,z:function(A){var $=-A.utcOffset(),_=Math.abs($),O=Math.floor(_/60),w=_%60;return($<=0?"+":"-")+E(O,2,"0")+":"+E(w,2,"0")},m:function A($,_){if($.date()<_.date())return-A(_,$);var O=12*(_.year()-$.year())+(_.month()-$.month()),w=$.clone().add(O,m),N=_-w<0,D=$.clone().add(O+(N?-1:1),m);return+(-(O+(_-w)/(N?w-D:D-w))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:m,y:f,w:p,d:u,D:h,h:c,m:l,s:i,ms:s,Q:d}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},P="en",M={};M[P]=k;var I=function(A){return A instanceof V},R=function A($,_,O){var w;if(!$)return P;if(typeof $=="string"){var N=$.toLowerCase();M[N]&&(w=N),_&&(M[N]=_,w=N);var D=$.split("-");if(!w&&D.length>1)return A(D[0])}else{var C=$.name;M[C]=$,w=C}return!O&&w&&(P=w),w||!O&&P},L=function(A,$){if(I(A))return A.clone();var _=typeof $=="object"?$:{};return _.date=A,_.args=arguments,new V(_)},x=v;x.l=R,x.i=I,x.w=function(A,$){return L(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var V=function(){function A(_){this.$L=R(_.locale,null,!0),this.parse(_)}var $=A.prototype;return $.parse=function(_){this.$d=function(O){var w=O.date,N=O.utc;if(w===null)return new Date(NaN);if(x.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(y);if(D){var C=D[2]-1||0,Y=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)):new Date(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)}}return new Date(w)}(_),this.$x=_.x||{},this.init()},$.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},$.$utils=function(){return x},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(_,O){var w=L(_);return this.startOf(O)<=w&&w<=this.endOf(O)},$.isAfter=function(_,O){return L(_)<this.startOf(O)},$.isBefore=function(_,O){return this.endOf(O)<L(_)},$.$g=function(_,O,w){return x.u(_)?this[O]:this.set(w,_)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(_,O){var w=this,N=!!x.u(O)||O,D=x.p(_),C=function(Et,Z){var pt=x.w(w.$u?Date.UTC(w.$y,Z,Et):new Date(w.$y,Z,Et),w);return N?pt:pt.endOf(u)},Y=function(Et,Z){return x.w(w.toDate()[Et].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},F=this.$W,W=this.$M,mt=this.$D,it="set"+(this.$u?"UTC":"");switch(D){case f:return N?C(1,0):C(31,11);case m:return N?C(1,W):C(0,W+1);case p:var Vt=this.$locale().weekStart||0,Rt=(F<Vt?F+7:F)-Vt;return C(N?mt-Rt:mt+(6-Rt),W);case u:case h:return Y(it+"Hours",0);case c:return Y(it+"Minutes",1);case l:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},$.endOf=function(_){return this.startOf(_,!1)},$.$set=function(_,O){var w,N=x.p(_),D="set"+(this.$u?"UTC":""),C=(w={},w[u]=D+"Date",w[h]=D+"Date",w[m]=D+"Month",w[f]=D+"FullYear",w[c]=D+"Hours",w[l]=D+"Minutes",w[i]=D+"Seconds",w[s]=D+"Milliseconds",w)[N],Y=N===u?this.$D+(O-this.$W):O;if(N===m||N===f){var F=this.clone().set(h,1);F.$d[C](Y),F.init(),this.$d=F.set(h,Math.min(this.$D,F.daysInMonth())).$d}else C&&this.$d[C](Y);return this.init(),this},$.set=function(_,O){return this.clone().$set(_,O)},$.get=function(_){return this[x.p(_)]()},$.add=function(_,O){var w,N=this;_=Number(_);var D=x.p(O),C=function(W){var mt=L(N);return x.w(mt.date(mt.date()+Math.round(W*_)),N)};if(D===m)return this.set(m,this.$M+_);if(D===f)return this.set(f,this.$y+_);if(D===u)return C(1);if(D===p)return C(7);var Y=(w={},w[l]=o,w[c]=a,w[i]=n,w)[D]||1,F=this.$d.getTime()+_*Y;return x.w(F,this)},$.subtract=function(_,O){return this.add(-1*_,O)},$.format=function(_){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||g;var N=_||"YYYY-MM-DDTHH:mm:ssZ",D=x.z(this),C=this.$H,Y=this.$m,F=this.$M,W=w.weekdays,mt=w.months,it=function(Z,pt,Me,re){return Z&&(Z[pt]||Z(O,N))||Me[pt].slice(0,re)},Vt=function(Z){return x.s(C%12||12,Z,"0")},Rt=w.meridiem||function(Z,pt,Me){var re=Z<12?"AM":"PM";return Me?re.toLowerCase():re},Et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:x.s(F+1,2,"0"),MMM:it(w.monthsShort,F,mt,3),MMMM:it(mt,F),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:it(w.weekdaysMin,this.$W,W,2),ddd:it(w.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(C),HH:x.s(C,2,"0"),h:Vt(1),hh:Vt(2),a:Rt(C,Y,!0),A:Rt(C,Y,!1),m:String(Y),mm:x.s(Y,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:D};return N.replace(T,function(Z,pt){return pt||Et[Z]||D.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(_,O,w){var N,D=x.p(O),C=L(_),Y=(C.utcOffset()-this.utcOffset())*o,F=this-C,W=x.m(this,C);return W=(N={},N[f]=W/12,N[m]=W,N[d]=W/3,N[p]=(F-Y)/6048e5,N[u]=(F-Y)/864e5,N[c]=F/a,N[l]=F/o,N[i]=F/n,N)[D]||F,w?W:x.a(W)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return M[this.$L]},$.locale=function(_,O){if(!_)return this.$L;var w=this.clone(),N=R(_,O,!0);return N&&(w.$L=N),w},$.clone=function(){return x.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),H=V.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",h]].forEach(function(A){H[A[1]]=function($){return this.$g($,A[0],A[1])}}),L.extend=function(A,$){return A.$i||(A($,V,L),A.$i=!0),L},L.locale=R,L.isDayjs=I,L.unix=function(A){return L(1e3*A)},L.en=M[P],L.Ls=M,L.p={},L})})(Xn);var Jn=Xn.exports;const U=ft(Jn);var Qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},c.utc=function(g){var y=l(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=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 p.call(this)};var m=c.utcOffset;c.utcOffset=function(g,y){var T=this.$utils().u;if(T(g))return this.$u?0:T(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(P){P===void 0&&(P="");var M=P.match(o);if(!M)return null;var I=(""+M[0]).match(a)||["-",0,0],R=I[0],L=60*+I[1]+ +I[2];return L===0?0:R==="+"?L:-L}(g),g===null))return this;var k=Math.abs(g)<=16?60*g:g,E=this;if(y)return E.$offset=k,E.$u=g===0,E;if(g!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(k+v,n)).$offset=k,E.$x.$localOffset=v}else E=this.utc();return E};var d=c.format;c.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,y)},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 f=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=c.diff;c.diff=function(g,y,T){if(g&&this.$u===g.$u)return h.call(this,g,y,T);var k=this.local(),E=l(g).local();return h.call(k,E,y,T)}}})})(Qn);var Zs=Qn.exports;const qs=ft(Zs);var tr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(d,f,h){h===void 0&&(h={});var g=new Date(d),y=function(T,k){k===void 0&&(k={});var E=k.timeZoneName||"short",v=T+"|"+E,P=o[v];return P||(P=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[v]=P),P}(f,h);return y.formatToParts(g)},u=function(d,f){for(var h=c(d,f),g=[],y=0;y<h.length;y+=1){var T=h[y],k=T.type,E=T.value,v=n[k];v>=0&&(g[v]=parseInt(E,10))}var P=g[3],M=P===24?0:P,I=g[0]+"-"+g[1]+"-"+g[2]+" "+M+":"+g[4]+":"+g[5]+":000",R=+d;return(i.utc(I).valueOf()-(R-=R%1e3))/6e4},p=s.prototype;p.tz=function(d,f){d===void 0&&(d=l);var h=this.utcOffset(),g=this.toDate(),y=g.toLocaleString("en-US",{timeZone:d}),T=Math.round((g-new Date(y))/1e3/60),k=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-T,!0);if(f){var E=k.utcOffset();k=k.add(h-E,"minute")}return k.$x.$timezone=d,k},p.offsetName=function(d){var f=this.$x.$timezone||i.tz.guess(),h=c(this.valueOf(),f,{timeZoneName:d}).find(function(g){return g.type.toLowerCase()==="timezonename"});return h&&h.value};var m=p.startOf;p.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return m.call(this,d,f);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(h,d,f).tz(this.$x.$timezone,!0)},i.tz=function(d,f,h){var g=h&&f,y=h||f||l,T=u(+i(),y);if(typeof d!="string")return i(d).tz(y);var k=function(M,I,R){var L=M-60*I*1e3,x=u(L,R);if(I===x)return[L,I];var V=u(L-=60*(x-I)*1e3,R);return x===V?[L,x]:[M-60*Math.min(x,V)*1e3,Math.max(x,V)]}(i.utc(d,g).valueOf(),T,y),E=k[0],v=k[1],P=i(E).utcOffset(v);return P.$x.$timezone=y,P},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(tr);var Xs=tr.exports;const Js=ft(Xs);var er={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),p=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){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 u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="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 m}});return s.bind(this)(p)}}})})(er);var Qs=er.exports;const ti=ft(Qs);var nr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(nr);var ei=nr.exports;const ni=ft(ei);var rr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),p=a(i),m=(c=c||"()")[0]==="(",d=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(d?this.isBefore(p,l):!this.isAfter(p,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(d?this.isAfter(p,l):!this.isBefore(p,l))}}})})(rr);var ri=rr.exports;const oi=ft(ri);var or={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,p=function(m,d){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,h,g){var y=g&&g.toUpperCase();return h||d[g]||n[g]||d[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,k,E){return k||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,p)}}})})(or);var ai=or.exports;const si=ft(ai);var ar={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,p,m,d){return s.fromToBase(u,p,m,d)}a.en.relativeTime=i,s.fromToBase=function(u,p,m,d,f){for(var h,g,y,T=m.$locale().relativeTime||i,k=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=k.length,v=0;v<E;v+=1){var P=k[v];P.d&&(h=d?a(u).diff(m,P.d,!0):m.diff(u,P.d,!0));var M=(n.rounding||Math.round)(Math.abs(h));if(y=h>0,M<=P.r||!P.r){M<=1&&v>0&&(P=k[v-1]);var I=T[P.l];f&&(M=f(""+M)),g=typeof I=="string"?I.replace("%d",M):I(M,p,P.l,y);break}}if(p)return g;var R=y?T.future:T.past;return typeof R=="function"?R(g):R.replace("%s",g)},s.to=function(u,p){return l(u,p,this,!0)},s.from=function(u,p){return l(u,p,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(ar);var ii=ar.exports;const li=ft(ii);var ci={exports:{}};(function(t,e){(function(n,o){t.exports=o(Jn)})(st,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(ci),U.extend(qs),U.extend(Js),U.extend(ti),U.extend(li),U.extend(si),U.extend(ni),U.extend(oi);const sr=()=>U.tz.guess(),Ot=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),It=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(ui(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},ui=t=>kn.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},ir=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},lr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},cr=(t,e="day")=>U().isSameOrBefore(U(t),e),di=(t,e,n)=>U(t).isBetween(e,U(n)),fi=(t,e,n="month")=>U(t).isSame(e,n),mi=(t,e="hu")=>U(t).locale(e).toNow(!0),pi=["onClick"],hi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,{t:o}=ct(),a=rt("timezone-selector"),s=r.computed(()=>It(new Date,null,n.locale)),i=sr(),l=r.computed(()=>Array.from(On.values()).map(u=>({...u,isActive:It(new Date,n.currentZone,n.locale)===It(new Date,u.timezone,n.locale),zoneOffsetName:It(new Date,u.timezone,n.locale)}))),c=u=>e("change",u);return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(yn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(m=>c(r.unref(i)),["prevent"]))},r.toDisplayString(s.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,m=>(r.openBlock(),r.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":m.isActive}),onClick:r.withModifiers(d=>c(m.timezone),["prevent"])},r.toDisplayString(r.unref(o)(`common.${m.countryLabelKey}`))+" ("+r.toDisplayString(m.zoneOffsetName)+") ",11,pi))),128))],2))}},Pe=(t,e="",n={})=>{const o=r.ref(""),{t:a}=ct(),s=r.computed(()=>{if(r.unref(e))try{const c=ur(r.unref(t),r.unref(e));return ua(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>lt(i,s.value)),error:o}},ur=(t,e="")=>{const n=lt(Xt,Tt(",",e)),o=ht(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n};class ve extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const zt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},gi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},yi={class:"is-portrait-image"},bi={class:"is-team-name-long"},Si={class:"is-team-name-short"},wi={class:"is-team-name-long"},_i={class:"is-team-name-short"},Ti={class:"is-team-name-long"},$i={class:"is-team-name-short"},ki=["href"],Oi={class:"is-team-name-long"},Ei={class:"is-team-name-short"},Ai=["href"],Pi={key:0,class:"is-text-dark"},vi=["href","target"],Ni={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),{onError:s}=ke(),{columns:i,error:l}=Pe(o,a,r.computed(()=>({offsetName:n.offsetName})));l.value&&s(new ve(zt.message,{...zt.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(r.openBlock(),r.createBlock(Ee,null,{default:r.withCtx(({el:m})=>[r.createVNode($e,{columns:r.unref(i),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},r.createSlots({"cell-index":r.withCtx(({row:d})=>[r.createElementVNode("span",{class:r.normalizeClass(d.indexClass)},r.toDisplayString(d.index),3)]),"cell-playerPortrait":r.withCtx(({row:d})=>[r.createElementVNode("div",yi,[(r.openBlock(),r.createBlock(wt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref(wn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image",key:((f=d.team)==null?void 0:f.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(f=d.homeTeam)==null?void 0:f.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(f=d.awayTeam)==null?void 0:f.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",bi,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",Si,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",wi,r.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),r.createElementVNode("span",_i,r.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",Ti,r.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),r.createElementVNode("span",$i,r.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":r.withCtx(({row:d})=>{var f;return[r.createTextVNode(r.toDisplayString(((f=d.location)==null?void 0:f.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Pi,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,vi))]),loading:r.withCtx(()=>[r.createVNode(Oe)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:d})=>{var f,h,g;return[r.createElementVNode("a",{href:t.externalTeamResolver((f=d.team)==null?void 0:f.longName),target:"_blank"},[r.createElementVNode("span",Oi,r.toDisplayString((h=d.team)==null?void 0:h.longName),1),r.createElementVNode("span",Ei,r.toDisplayString((g=d.team)==null?void 0:g.shortName),1)],8,ki)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:d})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(d.id),target:"_blank"},r.toDisplayString(d.name),9,Ai)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},dr={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:""}},xi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Di={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Mi={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Li={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ci={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Bi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Ii={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},zi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Vi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Ri={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},fr=async(t,e,n)=>{const o=`${bn}${r.unref(t)}?${Gi(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ji(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Gi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ji=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},Fi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>cr(u,"day");return $r(n,()=>{if(!a)return;const u=Yo(pa(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Yi=({options:t={},transform:e=a=>a,onError:n=ot,onSuccess:o=ot})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:p,isLoading:m,execute:d}=Re(()=>fr(a,s,r.unref(i)).then(f=>e(f)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:p,isLoading:m,execute:d}};/*! *****************************************************************************
8
+ var MjszVbrElementsCore=function(S,r){"use strict";const rt=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,Le={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=rt("base-input"),a=r.computed({get:()=>n.modelValue,set:s=>e("update:modelValue",s)});return(s,i)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),class:r.normalizeClass([r.unref(o),"is-select"])},[r.renderSlot(s.$slots,"default")],2)),[[r.vModelSelect,a.value]])}};function Ce(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function nt(t){return typeof t=="function"?t():r.unref(t)}const Gt=typeof window<"u",ot=()=>{},br=Sr();function Sr(){var t;return Gt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function oe(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function ae(t,e=!1){function n(m,{flush:d="sync",deep:f=!1,timeout:h,throwOnTimeout:g}={}){let y=null;const k=[new Promise(E=>{y=r.watch(t,v=>{m(v)!==e&&(y==null||y(),E(v))},{flush:d,deep:f,immediate:!0})})];return h!=null&&k.push(oe(h,g).then(()=>nt(t)).finally(()=>y==null?void 0:y())),Promise.race(k)}function o(m,d){if(!r.isRef(m))return n(v=>v===m,d);const{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:y}=d??{};let T=null;const E=[new Promise(v=>{T=r.watch([t,m],([P,M])=>{e!==(P===M)&&(T==null||T(),v(P))},{flush:f,deep:h,immediate:!0})})];return g!=null&&E.push(oe(g,y).then(()=>nt(t)).finally(()=>(T==null||T(),nt(t)))),Promise.race(E)}function a(m){return n(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,d){return n(f=>{const h=Array.from(f);return h.includes(m)||h.includes(nt(m))},d)}function u(m){return p(1,m)}function p(m=1,d){let f=-1;return n(()=>(f+=1,f>=m),d)}return Array.isArray(nt(t))?{toMatch:n,toContains:c,changed:u,changedTimes:p,get not(){return ae(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:p,get not(){return ae(t,!e)}}}function wr(t){return ae(t)}function _r(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},nt(e))}return o&&(a.value=!0,Gt&&c()),Ce(l),{isPending:r.readonly(a),start:c,stop:l}}function Tr(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n)}function $r(t,e,n){return r.watch(t,(o,a,s)=>{o&&e(o,a,s)},n)}function At(t){var e;const n=nt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Be=Gt?window:void 0,kr=Gt?window.document:void 0;function jt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Be):[e,n,o,a]=t,!e)return ot;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,m,d,f)=>(p.addEventListener(m,d,f),()=>p.removeEventListener(m,d,f)),c=r.watch(()=>[At(e),nt(a)],([p,m])=>{i(),p&&s.push(...n.flatMap(d=>o.map(f=>l(p,d,f,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Ce(u),u}let Ie=!1;function Or(t,e,n={}){const{window:o=Be,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;br&&!Ie&&(Ie=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",ot)));let l=!0;const c=d=>a.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(h=>h===d.target||d.composedPath().includes(h));{const h=At(f);return h&&(d.target===h||d.composedPath().includes(h))}}),p=[jt(o,"click",d=>{const f=At(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:s}),jt(o,"pointerdown",d=>{const f=At(t);f&&(l=!d.composedPath().includes(f)&&!c(d))},{passive:!0}),i&&jt(o,"blur",d=>{var f;const h=At(t);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&e(d)})].filter(Boolean);return()=>p.forEach(d=>d())}var Er=Object.defineProperty,Ar=Object.defineProperties,Pr=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,Re=(t,e,n)=>e in t?Er(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xr=(t,e)=>{for(var n in e||(e={}))vr.call(e,n)&&Re(t,n,e[n]);if(ze)for(var n of ze(e))Nr.call(e,n)&&Re(t,n,e[n]);return t},Dr=(t,e)=>Ar(t,Pr(e));function Ve(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=ot,onSuccess:i=ot,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},p=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),d=r.ref(!1),f=r.shallowRef(void 0);async function h(T=0,...k){l&&(p.value=e),f.value=void 0,m.value=!1,d.value=!0,T>0&&await oe(T);const E=typeof t=="function"?t(...k):t;try{const v=await E;p.value=v,m.value=!0,i(v)}catch(v){if(f.value=v,s(v),u)throw v}finally{d.value=!1}return p.value}o&&h(a);const g={state:p,isReady:m,isLoading:d,error:f,execute:h};function y(){return new Promise((T,k)=>{wr(d).toBe(!1).then(()=>T(g)).catch(k)})}return Dr(xr({},g),{then(T,k){return y().then(T,k)}})}function Mr({document:t=kr}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return jt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Lr=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,je=(t,e,n)=>e in t?Lr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ir=(t,e)=>{for(var n in e||(e={}))Cr.call(e,n)&&je(t,n,e[n]);if(Ge)for(var n of Ge(e))Br.call(e,n)&&je(t,n,e[n]);return t};async function zr(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),o.onload=()=>e(o),o.onerror=n})}function Rr(t,e={}){const n=Ve(()=>zr(nt(t)),void 0,Ir({resetOnExecute:!0},e));return r.watch(()=>nt(t),()=>n.execute(e.delay),{deep:!0}),n}function Fe(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=_r(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(n){return arguments.length===0||G(n)?e:t.apply(this,arguments)}}function z(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return G(n)?e:j(function(a){return t(n,a)});default:return G(n)&&G(o)?e:G(n)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(n,a)}):t(n,o)}}}function Ft(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,p){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,p,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function se(t,e,n){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?n.apply(this,o):Ft(s,se(t,o,n))}}var Pt=z(function(e,n){return e===1?j(n):Ft(e,se(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return G(n)?e:z(function(s,i){return t(n,s,i)});case 2:return G(n)&&G(o)?e:G(n)?z(function(s,i){return t(s,o,i)}):G(o)?z(function(s,i){return t(n,s,i)}):j(function(s){return t(n,o,s)});default:return G(n)&&G(o)&&G(a)?e:G(n)&&G(o)?z(function(s,i){return t(s,i,a)}):G(n)&&G(a)?z(function(s,i){return t(s,o,i)}):G(o)&&G(a)?z(function(s,i){return t(n,s,i)}):G(n)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(n,s,a)}):G(a)?j(function(s){return t(n,o,s)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Vr(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Yt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Vr(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ye(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const _t={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Ue(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function He(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function Gr(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Q(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function jr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ie=typeof Object.is=="function"?Object.is:jr;var We=Object.prototype.toString,Ke=function(){return We.call(arguments)==="[object Arguments]"?function(e){return We.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),Fr=!{toString:null}.propertyIsEnumerable("toString"),Ze=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],qe=function(){return arguments.propertyIsEnumerable("length")}(),Yr=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},ht=j(typeof Object.keys=="function"&&!qe?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=qe&&Ke(e);for(n in e)Q(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Fr)for(o=Ze.length-1;o>=0;)n=Ze[o],Q(n,e)&&!Yr(a,n)&&(a[a.length]=n),o-=1;return a}),le=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Xe(t,e,n,o){var a=Ue(t),s=Ue(e);function i(l,c){return ce(l,c,n.slice(),o.slice())}return!He(function(l,c){return!He(i,c,l)},s,a)}function ce(t,e,n,o){if(ie(t,e))return!0;var a=le(t);if(a!==le(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"&&Gr(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 s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:Xe(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Xe(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=ht(t);if(i.length!==ht(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(Q(u,e)&&ce(e[u],t[u],l,c)))return!1;s-=1}return!0}var Ut=z(function(e,n){return ce(e,n,[],[])});function Ur(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Ut(t[n],e))return n;n+=1}return-1}function Je(t,e){return Ur(e,t,0)>=0}function Ht(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function ue(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 Nt=function(e){return(e<10?"0":"")+e},Hr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Nt(e.getUTCMonth()+1)+"-"+Nt(e.getUTCDate())+"T"+Nt(e.getUTCHours())+":"+Nt(e.getUTCMinutes())+":"+Nt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wr(t){return function(){return!t.apply(this,arguments)}}function Qe(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Kr(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Zr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function qr(t){return function(e){return new Zr(t,e)}}var tn=z(Yt(["fantasy-land/filter","filter"],qr,function(t,e){return Wt(e)?Qe(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},ht(e)):Kr(t,e)})),Xr=z(function(e,n){return tn(Wr(e),n)});function en(t,e){var n=function(i){var l=e.concat([t]);return Je(i,l)?"<Circular>":en(i,l)},o=function(s,i){return Ht(function(l){return ue(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(n,t).join(", ")+"))";case"[object Array]":return"["+Ht(n,t).concat(o(t,Xr(function(s){return/^\d+$/.test(s)},ht(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):ue(Hr(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":ue(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,ht(t)).join(", ")+"}"}}var de=j(function(e){return en(e,[])}),Jr=z(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=de(e),l=o(i,de(n));return l!==void 0&&l===i?e:n}),Qr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),to=function(e){return function(n){return new Qr(e,n)}},eo=z(Yt(["fantasy-land/map","map"],to,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Pt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Qe(function(o,a){return o[a]=e(n[a]),o},{},ht(n));default:return Ht(e,n)}}));const lt=eo,Kt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var nn=z(function(e,n){var o=e<0?n.length+e:e;return Zt(n)?n.charAt(o):n[o]}),no=z(function(e,n){if(n!=null)return Kt(e)?nn(e,n):n[e]});const gt=no;var ro=z(function(e,n){return lt(gt(e),n)}),oo=j(function(e){return vt(e)?!0:!e||typeof e!="object"||Zt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),rn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ao(t,e,n){return function(a,s,i){if(oo(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[rn]!=null)return n(a,s,i[rn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function so(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var io=z(function(e,n){return Ft(e.length,function(){return e.apply(n,arguments)})});function lo(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function co(t,e,n,o){return t["@@transducer/result"](n[o](io(t["@@transducer/step"],t),e))}var on=ao(so,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,n){return this.f(e,n)},t}();function an(t){return new uo(t)}var fo=X(function(t,e,n){return on(typeof t=="function"?an(t):t,e,n)});const sn=fo;var mo=j(function(e){return function(){return e}});const ln=mo;var po=j(function(e){return Pt(sn(Jr,0,ro("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})});const ho=po;var go=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});const fe=go;function yo(t,e,n){if(Kt(t)&&vt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var bo=j(function(e){return e==null}),So=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!bo(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:Kt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return yo(a,n,o)}),wo=X(function(e,n,o){return So([e],n,o)});function _o(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function To(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 me(t,e,n){if(n||(n=new ko),$o(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?me(t[l],!0,n):t[l]);return s};switch(le(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return To(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 $o(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var ko=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){let n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const n=this.hash(e),o=this.map[n];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function Oo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function pe(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Eo=X(pe("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Ao=j(pe("tail",Eo(1,1/0)));const Po=Ao;function qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ft(arguments[0].length,sn(Oo,arguments[0],Po(arguments)))}var vo=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const No=vo;function cn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return qt.apply(this,No(arguments))}var xo=j(function(e){return Pt(e.length,e)});const Do=xo;var Mo=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(Q(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,me(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Lo(t,e,n){return function(o){return new Mo(t,e,n,o)}}var Co=se(4,[],Yt([],Lo,function(e,n,o,a){var s=an(function(i,l){var c=o(l),u=e(Q(c,i)?i[c]:me(n,!1),l);return u&&u["@@transducer/reduced"]?Ye(i):(i[c]=u,i)});return on(s,{},a)})),Bo=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});const Io=Bo;function zo(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 Ro=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():vt(e)?[]:Zt(e)?"":Wt(e)?{}:Ke(e)?function(){return arguments}():zo(e)?e.constructor.from(""):void 0}),Vo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=Ye(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Go(t){return function(e){return new Vo(t,e)}}var jo=z(Yt([],Go,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1}));const Fo=jo;var Yo=z(pe("groupBy",Co(function(t,e){return t.push(e),t},[])));const Uo=Yo;var Ho=X(function(e,n,o){return Pt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const Wo=Ho;var Ko=z(Je);const Zo=Ko;var qo=z(function(e,n){return Pt(e+1,function(){var o=arguments[e];if(o!=null&&_o(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(de(o)+' does not have a method named "'+n+'"')})});const un=qo;var Xo=j(function(e){return e!=null&&Ut(e,Ro(e))});const Jo=Xo;var Qo=z(function(e,n){return function(o){return function(a){return lt(function(s){return n(s,a)},o(e(a)))}}}),ta=z(function(e,n){return e.map(function(o){for(var a=n,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Kt(i)?nn(i,a):a[i],s+=1}return a})}),ea=z(function(e,n){return ta([e],n)[0]});const he=ea;var na=j(function(e){return Qo(gt(e),wo(e))});const ra=na;var oa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)Q(s,n)&&(a[s]=Q(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),aa=X(function t(e,n,o){return oa(function(a,s,i){return Wt(s)&&Wt(i)?t(e,s,i):e(a,s,i)},n,o)}),sa=z(function(e,n){return aa(function(o,a,s){return s},e,n)});const ia=sa;var la=z(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o});const ca=la;var dn=function(t){return{value:t,map:function(e){return dn(e(t))}}},ua=X(function(e,n,o){return e(function(a){return dn(n(a))})(o).value});const da=ua;var fa=X(function(e,n,o){return e(gt(n,o))});const ma=fa;var pa=X(function(e,n,o){return o.replace(e,n)});const ha=pa;var ga=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)});const ya=ga;var ba=z(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const fn=ba;var Sa=un(1,"split");const Tt=Sa;var wa=un(0,"toLowerCase");const mn=wa;var xt=`
9
+ \v\f\r                 \u2028\u2029\uFEFF`,_a="​",Ta=typeof String.prototype.trim=="function",$a=j(!Ta||xt.trim()||!_a.trim()?function(e){var n=new RegExp("^["+xt+"]["+xt+"]*"),o=new RegExp("["+xt+"]["+xt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Xt=$a,pn=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),hn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(c,u={})=>{const p=!Jo(u),m=lt(Xt,Tt(".",c));return r.computed(()=>{const f=gn(m);return p?Oa(f,u):f}).value},a=c=>{const u=lt(Xt,Tt(".",c));return!!ge(K.locale,u,K.messages)},s=c=>{K.locale=c},l={locale:r.computed({get(){return K.locale},set(c){K.locale=c}}),setLocale:s,translate:o,hasTranlation:a};return r.provide(pn,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=ka();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},ka=()=>{const t=r.inject(pn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},gn=(t=[])=>{let e=ge(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ge(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ge(t,e,n){return he([t,...e],n)}const Oa=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},yn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=lt(Xt,Tt(".",t.path)),o=gn(n),a=Tt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),bn="https://api.icehockey.hu/vbr",Sn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",wn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",_n="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Tn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",$n="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",kn=new Map().set("hu","hu-hu").set("en","hu-gb"),On=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Ea=1e3*60*5,En=1e3,Aa={"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"},Pa=r.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),va=[Pa];function Na(t,e){return r.openBlock(),r.createElementBlock("svg",Aa,va)}const An={render:Na},xa={"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"},Da=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),Ma=[Da];function La(t,e){return r.openBlock(),r.createElementBlock("svg",xa,Ma)}const Ca={render:La},Ba={"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"},Ia=r.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),za=[Ia];function Ra(t,e){return r.openBlock(),r.createElementBlock("svg",Ba,za)}const Va={render:Ra};function Dt(t){return t.split("-")[1]}function ye(t){return t==="y"?"height":"width"}function yt(t){return t.split("-")[0]}function Mt(t){return["top","bottom"].includes(yt(t))?"x":"y"}function Pn(t,e,n){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=Mt(e),c=ye(l),u=o[c]/2-a[c]/2,p=l==="x";let m;switch(yt(e)){case"top":m={x:s,y:o.y-a.height};break;case"bottom":m={x:s,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:i};break;case"left":m={x:o.x-a.width,y:i};break;default:m={x:o.x,y:o.y}}switch(Dt(e)){case"start":m[l]-=u*(n&&p?-1:1);break;case"end":m[l]+=u*(n&&p?-1:1)}return m}const Ga=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:p,y:m}=Pn(u,o,c),d=o,f={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:T}=l[g],{x:k,y:E,data:v,reset:P}=await T({x:p,y:m,initialPlacement:o,placement:d,strategy:a,middlewareData:f,rects:u,platform:i,elements:{reference:t,floating:e}});p=k??p,m=E??m,f={...f,[y]:{...f[y],...v}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(d=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):P.rects),{x:p,y:m}=Pn(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function vn(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 Jt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Nn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:d=!1,padding:f=0}=e,h=vn(f),g=l[d?m==="floating"?"reference":"floating":m],y=Jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),T=m==="floating"?{...i.floating,x:o,y:a}:i.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(k))&&await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1},v=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:k,strategy:c}):T);return{top:(y.top-v.top+h.top)/E.y,bottom:(v.bottom-y.bottom+h.bottom)/E.y,left:(y.left-v.left+h.left)/E.x,right:(v.right-y.right+h.right)/E.x}}const ja=Math.min,Fa=Math.max;function be(t,e,n){return Fa(t,ja(e,n))}const xn=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:c,elements:u}=e;if(n==null)return{};const p=vn(o),m={x:a,y:s},d=Mt(i),f=ye(d),h=await c.getDimensions(n),g=d==="y",y=g?"top":"left",T=g?"bottom":"right",k=g?"clientHeight":"clientWidth",E=l.reference[f]+l.reference[d]-m[d]-l.floating[f],v=m[d]-l.reference[d],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n));let M=P?P[k]:0;M&&await(c.isElement==null?void 0:c.isElement(P))||(M=u.floating[k]||l.floating[f]);const I=E/2-v/2,V=p[y],L=M-h[f]-p[T],x=M/2-h[f]/2+I,R=be(V,x,L),H=Dt(i)!=null&&x!=R&&l.reference[f]/2-(x<V?p[y]:p[T])-h[f]/2<0;return{[d]:m[d]-(H?x<V?V-x:L-x:0),data:{[d]:R,centerOffset:x-R}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Ya={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Ya[e])}function Ua(t,e,n){n===void 0&&(n=!1);const o=Dt(t),a=Mt(t),s=ye(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Qt(i)),{main:i,cross:Qt(i)}}const Ha={start:"end",end:"start"};function Se(t){return t.replace(/start|end/g,e=>Ha[e])}const Wa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=t,y=yt(o),T=yt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(T||!h?[Qt(i)]:function(R){const H=Qt(R);return[Se(R),H,Se(H)]}(i));m||f==="none"||E.push(...function(R,H,A,$){const _=Dt(R);let O=function(w,N,D){const C=["left","right"],Y=["right","left"],F=["top","bottom"],W=["bottom","top"];switch(w){case"top":case"bottom":return D?N?Y:C:N?C:Y;case"left":case"right":return N?F:W;default:return[]}}(yt(R),A==="start",$);return _&&(O=O.map(w=>w+"-"+_),H&&(O=O.concat(O.map(Se)))),O}(i,h,f,k));const v=[i,...E],P=await Nn(e,g),M=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&M.push(P[y]),p){const{main:R,cross:H}=Ua(o,s,k);M.push(P[R],P[H])}if(I=[...I,{placement:o,overflows:M}],!M.every(R=>R<=0)){var V,L;const R=(((V=a.flip)==null?void 0:V.index)||0)+1,H=v[R];if(H)return{data:{index:R,overflows:I},reset:{placement:H}};let A=(L=I.filter($=>$.overflows[0]<=0).sort(($,_)=>$.overflows[1]-_.overflows[1])[0])==null?void 0:L.placement;if(!A)switch(d){case"bestFit":{var x;const $=(x=I.map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:x[0];$&&(A=$);break}case"initialPlacement":A=i}if(o!==A)return{reset:{placement:A}}}return{}}}},Ka=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:o}=e,a=await async function(s,i){const{placement:l,platform:c,elements:u}=s,p=await(c.isRTL==null?void 0:c.isRTL(u.floating)),m=yt(l),d=Dt(l),f=Mt(l)==="x",h=["left","top"].includes(m)?-1:1,g=p&&f?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:T,crossAxis:k,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof E=="number"&&(k=d==="end"?-1*E:E),f?{x:k*g,y:T*h}:{x:T*h,y:k*g}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function Za(t){return t==="x"?"y":"x"}const qa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:T,y:k}=y;return{x:T,y:k}}},...c}=t,u={x:n,y:o},p=await Nn(e,c),m=Mt(yt(a)),d=Za(m);let f=u[m],h=u[d];if(s){const y=m==="y"?"bottom":"right";f=be(f+p[m==="y"?"top":"left"],f,f-p[y])}if(i){const y=d==="y"?"bottom":"right";h=be(h+p[d==="y"?"top":"left"],h,h-p[y])}const g=l.fn({...e,[m]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}};function J(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tt(t){return J(t).getComputedStyle(t)}function Dn(t){return t instanceof J(t).Node}function ut(t){return Dn(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function q(t){return t instanceof J(t).Element}function Mn(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Lt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Xa(t){return["table","td","th"].includes(ut(t))}function we(t){const e=_e(),n=tt(t);return n.transform!=="none"||n.perspective!=="none"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function _e(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function te(t){return["html","body","#document"].includes(ut(t))}const Ln=Math.min,Ct=Math.max,ee=Math.round;function Cn(t){const e=tt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=ee(n)!==s||ee(o)!==i;return l&&(n=s,o=i),{width:n,height:o,fallback:l}}function Bn(t){return q(t)?t:t.contextElement}const In={x:1,y:1};function $t(t){const e=Bn(t);if(!et(e))return In;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=Cn(e);let i=(s?ee(n.width):n.width)/o,l=(s?ee(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const zn={x:0,y:0};function Rn(t,e,n){var o,a;if(e===void 0&&(e=!0),!_e())return zn;const s=t?J(t):window;return!n||e&&n!==s?zn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function bt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Bn(t);let i=In;e&&(o?q(o)&&(i=$t(o)):i=$t(t));const l=Rn(s,n,o);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,p=a.width/i.x,m=a.height/i.y;if(s){const d=J(s),f=o&&q(o)?J(o):o;let h=d.frameElement;for(;h&&o&&f!==d;){const g=$t(h),y=h.getBoundingClientRect(),T=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(T.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(T.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,m*=g.y,c+=y.x,u+=y.y,h=J(h).frameElement}}return Jt({width:p,height:m,x:c,y:u})}function dt(t){return((Dn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vn(t){return bt(dt(t)).left+ne(t).scrollLeft}function kt(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mn(t)&&t.host||dt(t);return Mn(e)?e.host:e}function Gn(t){const e=kt(t);return te(e)?e.ownerDocument.body:et(e)&&Lt(e)?e:Gn(e)}function Bt(t,e){var n;e===void 0&&(e=[]);const o=Gn(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Lt(o)?o:[]):e.concat(o,Bt(o))}function jn(t,e,n){let o;if(e==="viewport")o=function(a,s){const i=J(a),l=dt(a),c=i.visualViewport;let u=l.clientWidth,p=l.clientHeight,m=0,d=0;if(c){u=c.width,p=c.height;const f=_e();(!f||f&&s==="fixed")&&(m=c.offsetLeft,d=c.offsetTop)}return{width:u,height:p,x:m,y:d}}(t,n);else if(e==="document")o=function(a){const s=dt(a),i=ne(a),l=a.ownerDocument.body,c=Ct(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),u=Ct(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+Vn(a);const m=-i.scrollTop;return tt(l).direction==="rtl"&&(p+=Ct(s.clientWidth,l.clientWidth)-c),{width:c,height:u,x:p,y:m}}(dt(t));else if(q(e))o=function(a,s){const i=bt(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,u=et(a)?$t(a):{x:1,y:1};return{width:a.clientWidth*u.x,height:a.clientHeight*u.y,x:c*u.x,y:l*u.y}}(e,n);else{const a=Rn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Jt(o)}function Fn(t,e){const n=kt(t);return!(n===e||!q(n)||te(n))&&(tt(n).position==="fixed"||Fn(n,e))}function Yn(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Un(t,e){const n=J(t);if(!et(t))return n;let o=Yn(t,e);for(;o&&Xa(o)&&tt(o).position==="static";)o=Yn(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!we(o))?n:o||function(a){let s=kt(a);for(;et(s)&&!te(s);){if(we(s))return s;s=kt(s)}return null}(t)||n}function Ja(t,e,n){const o=et(e),a=dt(e),s=n==="fixed",i=bt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((ut(e)!=="body"||Lt(a))&&(l=ne(e)),et(e)){const u=bt(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=Vn(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const Qa={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=n==="clippingAncestors"?function(u,p){const m=p.get(u);if(m)return m;let d=Bt(u).filter(y=>q(y)&&ut(y)!=="body"),f=null;const h=tt(u).position==="fixed";let g=h?kt(u):u;for(;q(g)&&!te(g);){const y=tt(g),T=we(g);T||y.position!=="fixed"||(f=null),(h?!T&&!f:!T&&y.position==="static"&&f&&["absolute","fixed"].includes(f.position)||Lt(g)&&!T&&Fn(u,g))?d=d.filter(k=>k!==g):f=y,g=kt(g)}return p.set(u,d),d}(e,this._c):[].concat(n),i=[...s,o],l=i[0],c=i.reduce((u,p)=>{const m=jn(e,p,a);return u.top=Ct(m.top,u.top),u.right=Ln(m.right,u.right),u.bottom=Ln(m.bottom,u.bottom),u.left=Ct(m.left,u.left),u},jn(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:n,strategy:o}=t;const a=et(n),s=dt(n);if(n===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((ut(n)!=="body"||Lt(s))&&(i=ne(n)),et(n))){const u=bt(n);l=$t(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+c.x,y:e.y*l.y-i.scrollTop*l.y+c.y}},isElement:q,getDimensions:function(t){return Cn(t)},getOffsetParent:Un,getDocumentElement:dt,getScale:$t,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||Un,s=this.getDimensions;return{reference:Ja(e,await a(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function ts(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=!0,animationFrame:l=!1}=o,c=a||s?[...q(t)?Bt(t):t.contextElement?Bt(t.contextElement):[],...Bt(e)]:[];c.forEach(d=>{const f=!q(d)&&d.toString().includes("V");!a||l&&!f||d.addEventListener("scroll",n,{passive:!0}),s&&d.addEventListener("resize",n)});let u,p=null;i&&(p=new ResizeObserver(()=>{n()}),q(t)&&!l&&p.observe(t),q(t)||!t.contextElement||l||p.observe(t.contextElement),p.observe(e));let m=l?bt(t):null;return l&&function d(){const f=bt(t);!m||f.x===m.x&&f.y===m.y&&f.width===m.width&&f.height===m.height||n(),m=f,u=requestAnimationFrame(d)}(),n(),()=>{var d;c.forEach(f=>{a&&f.removeEventListener("scroll",n),s&&f.removeEventListener("resize",n)}),(d=p)==null||d.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const es=(t,e,n)=>{const o=new Map,a={platform:Qa,...n},s={...a.platform,_c:o};return Ga(t,e,{...a,platform:s})},Hn=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function ns({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),p=r.ref(null),m=r.ref(null),d=r.ref(n??"absolute"),f=r.ref(null),h=()=>{!s.value||!i.value||es(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,d.value=y.strategy,u.value=y.middlewareData.arrow.x,p.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:T})=>{T&&Hn(y,T),h()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=ts(s.value,i.value,h,{})}},{flush:"post"});const g=()=>{var y;(y=f.value)==null||y.call(f),f.value=null};return{x:l,y:c,arrowX:u,arrowY:p,placement:m,reference:s,floating:i,strategy:d,update:h}}const rs=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?xn({element:e.value,padding:n}).fn(o):{}:e?xn({element:e,padding:n}).fn(o):{}}}},os=["data-placement"],Te={__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,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=ns({placement:e.placement,middleware:[Wa(),qa({padding:5}),Ka(e.offset),rs({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),d=()=>{e.disabled||n.value||(n.value=!0)},f=y=>{n.value&&y&&(n.value=!1)},h=y=>{u.value=y},g={mouseenter:d,mouseleave:f,focus:d,blur:f};return Or(p,y=>{var T;(T=u.value)!=null&&T.contains(y.target)||f()}),(y,T)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:h,show:d,hide:f,events:g}),r.createElementVNode("div",{ref_key:"floating",ref:p,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:f},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,os)],64))}},as=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ss={key:0},is=["colspan"],ls={key:1},cs=["colspan"],$e={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=Fe(o,{delay:En}),{t:i}=ct(),l=rt("table"),c=r.computed(()=>n.columns),u=r.computed(()=>Object.keys(n.columns).length),p=(m,d)=>{m.sortOrders&&e("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(l))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(f,h)=>(r.openBlock(),r.createBlock(Te,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:y,hide:T})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(at),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)}]),onMouseenter:y,onMouseleave:T,onFocus:y,onBlur:T,onClick:k=>p(f,h),onKeydown:[r.withKeys(r.withModifiers(k=>p(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(k=>p(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(m.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(An),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(at)?(r.openBlock(),r.createBlock(r.unref(An),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(Ca),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(B)?(r.openBlock(),r.createBlock(r.unref(Va),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,as)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(g,y)=>(r.openBlock(),r.createElementBlock("td",{key:y,class:r.normalizeClass([[g.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(at),"is-zero":f[y]==0}])},[r.renderSlot(m.$slots,`cell-${y}`,{row:f,prop:y},()=>[r.createTextVNode(r.toDisplayString(f[y]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",ss,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.loading")),1)])],8,is)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",ls,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:u.value},[r.renderSlot(m.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(i)("common.noData")),1)])],8,cs)])])):r.createCommentVNode("",!0)],2))}},us={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ds=r.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),fs=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ms=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ps=[ds,fs,ms];function hs(t,e){return r.openBlock(),r.createElementBlock("svg",us,ps)}const gs={render:hs},ys={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranlation:o}=ct(),a=rt("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(gs),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Wn(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return he(Tt(".",o),e)})},Kn=Symbol("ErrorProviderContext"),Zn=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Wn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(Kn,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},ke=()=>{const t=bs();return{onError:t.onError,reset:t.reset}},bs=()=>{const t=r.inject(Kn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ss={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Zn();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ws={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},_s={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},qn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Ts=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=ia({hu:ws,en:_s},t.messages),{translate:n}=hn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function $s(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const ks=qn(Ts,[["render",$s]]),Os=["src"],Es=["src","title"],wt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=Rr(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Os)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title},null,10,Es))],64))}}),As={style:{"text-align":"center"}},Oe={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(n,o)=>(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Ps({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=ot}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const p=r.unref(t)-1,m=Array.from({length:s.value},(h,g)=>g+1),d=Math.floor(o/2);let f=Math.max(p-d,0);return f+o>=s.value&&(f=Math.max(s.value-o,0)),m.slice(f,f+o)}),l=p=>{const m=r.unref(t)+p;u(m)&&a(m)},c=p=>{u(p)&&a(p)},u=p=>p<=s.value&&p>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const 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"},Ns=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),xs=[Ns];function Ds(t,e){return r.openBlock(),r.createElementBlock("svg",vs,xs)}const Ms={render:Ds},Ls={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Cs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Bs=[Cs];function Is(t,e){return r.openBlock(),r.createElementBlock("svg",Ls,Bs)}const zs={render:Is},Rs=["disabled"],Vs=["disabled"],Gs={key:1,class:"is-disabled"},js=["disabled","onClick"],Fs={key:2,class:"is-disabled"},Ys=[r.createElementVNode("span",null,"...",-1)],Us=["disabled"],Hs=["disabled"],Ws={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=rt("paginator"),{page:a,pageCount:s,range:i,goTo:l,pageStep:c}=Ps({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:u=>e("change",u)});return(u,p)=>r.unref(s)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(o))},[r.createElementVNode("button",{type:"button",disabled:r.unref(a)===1,onClick:p[0]||(p[0]=m=>r.unref(c)(-1))},[r.renderSlot(u.$slots,"prev",{},()=>[r.createVNode(r.unref(Ms),{class:"icon paginator-left"})])],8,Rs),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(a)===1,onClick:p[1]||(p[1]=m=>r.unref(l)(1))},"1",8,Vs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Gs,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(i),m=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:m,class:r.normalizeClass({"is-active":m===r.unref(a)}),disabled:m===r.unref(a),onClick:d=>r.unref(l)(m)},r.toDisplayString(m),11,js))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Fs,Ys)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[2]||(p[2]=m=>r.unref(l)(r.unref(s)))},r.toDisplayString(r.unref(s)),9,Us)),r.createElementVNode("button",{type:"button",disabled:r.unref(a)===r.unref(s),onClick:p[3]||(p[3]=r.withModifiers(m=>r.unref(c)(1),["prevent"]))},[r.renderSlot(u.$slots,"next",{},()=>[r.createVNode(r.unref(zs),{class:"icon paginator-left"})])],8,Hs)],2)):r.createCommentVNode("",!0)}},Ee={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=rt("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",p="week",m="month",d="quarter",f="year",h="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={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 $=["th","st","nd","rd"],_=A%100;return"["+A+($[(_-20)%10]||$[_]||$[0])+"]"}},E=function(A,$,_){var O=String(A);return!O||O.length>=$?A:""+Array($+1-O.length).join(_)+A},v={s:E,z:function(A){var $=-A.utcOffset(),_=Math.abs($),O=Math.floor(_/60),w=_%60;return($<=0?"+":"-")+E(O,2,"0")+":"+E(w,2,"0")},m:function A($,_){if($.date()<_.date())return-A(_,$);var O=12*(_.year()-$.year())+(_.month()-$.month()),w=$.clone().add(O,m),N=_-w<0,D=$.clone().add(O+(N?-1:1),m);return+(-(O+(_-w)/(N?w-D:D-w))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:m,y:f,w:p,d:u,D:h,h:c,m:l,s:i,ms:s,Q:d}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},P="en",M={};M[P]=k;var I=function(A){return A instanceof R},V=function A($,_,O){var w;if(!$)return P;if(typeof $=="string"){var N=$.toLowerCase();M[N]&&(w=N),_&&(M[N]=_,w=N);var D=$.split("-");if(!w&&D.length>1)return A(D[0])}else{var C=$.name;M[C]=$,w=C}return!O&&w&&(P=w),w||!O&&P},L=function(A,$){if(I(A))return A.clone();var _=typeof $=="object"?$:{};return _.date=A,_.args=arguments,new R(_)},x=v;x.l=V,x.i=I,x.w=function(A,$){return L(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var R=function(){function A(_){this.$L=V(_.locale,null,!0),this.parse(_)}var $=A.prototype;return $.parse=function(_){this.$d=function(O){var w=O.date,N=O.utc;if(w===null)return new Date(NaN);if(x.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var D=w.match(y);if(D){var C=D[2]-1||0,Y=(D[7]||"0").substring(0,3);return N?new Date(Date.UTC(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)):new Date(D[1],C,D[3]||1,D[4]||0,D[5]||0,D[6]||0,Y)}}return new Date(w)}(_),this.$x=_.x||{},this.init()},$.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},$.$utils=function(){return x},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(_,O){var w=L(_);return this.startOf(O)<=w&&w<=this.endOf(O)},$.isAfter=function(_,O){return L(_)<this.startOf(O)},$.isBefore=function(_,O){return this.endOf(O)<L(_)},$.$g=function(_,O,w){return x.u(_)?this[O]:this.set(w,_)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(_,O){var w=this,N=!!x.u(O)||O,D=x.p(_),C=function(Et,Z){var pt=x.w(w.$u?Date.UTC(w.$y,Z,Et):new Date(w.$y,Z,Et),w);return N?pt:pt.endOf(u)},Y=function(Et,Z){return x.w(w.toDate()[Et].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},F=this.$W,W=this.$M,mt=this.$D,it="set"+(this.$u?"UTC":"");switch(D){case f:return N?C(1,0):C(31,11);case m:return N?C(1,W):C(0,W+1);case p:var Rt=this.$locale().weekStart||0,Vt=(F<Rt?F+7:F)-Rt;return C(N?mt-Vt:mt+(6-Vt),W);case u:case h:return Y(it+"Hours",0);case c:return Y(it+"Minutes",1);case l:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},$.endOf=function(_){return this.startOf(_,!1)},$.$set=function(_,O){var w,N=x.p(_),D="set"+(this.$u?"UTC":""),C=(w={},w[u]=D+"Date",w[h]=D+"Date",w[m]=D+"Month",w[f]=D+"FullYear",w[c]=D+"Hours",w[l]=D+"Minutes",w[i]=D+"Seconds",w[s]=D+"Milliseconds",w)[N],Y=N===u?this.$D+(O-this.$W):O;if(N===m||N===f){var F=this.clone().set(h,1);F.$d[C](Y),F.init(),this.$d=F.set(h,Math.min(this.$D,F.daysInMonth())).$d}else C&&this.$d[C](Y);return this.init(),this},$.set=function(_,O){return this.clone().$set(_,O)},$.get=function(_){return this[x.p(_)]()},$.add=function(_,O){var w,N=this;_=Number(_);var D=x.p(O),C=function(W){var mt=L(N);return x.w(mt.date(mt.date()+Math.round(W*_)),N)};if(D===m)return this.set(m,this.$M+_);if(D===f)return this.set(f,this.$y+_);if(D===u)return C(1);if(D===p)return C(7);var Y=(w={},w[l]=o,w[c]=a,w[i]=n,w)[D]||1,F=this.$d.getTime()+_*Y;return x.w(F,this)},$.subtract=function(_,O){return this.add(-1*_,O)},$.format=function(_){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||g;var N=_||"YYYY-MM-DDTHH:mm:ssZ",D=x.z(this),C=this.$H,Y=this.$m,F=this.$M,W=w.weekdays,mt=w.months,it=function(Z,pt,Me,re){return Z&&(Z[pt]||Z(O,N))||Me[pt].slice(0,re)},Rt=function(Z){return x.s(C%12||12,Z,"0")},Vt=w.meridiem||function(Z,pt,Me){var re=Z<12?"AM":"PM";return Me?re.toLowerCase():re},Et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:x.s(F+1,2,"0"),MMM:it(w.monthsShort,F,mt,3),MMMM:it(mt,F),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:it(w.weekdaysMin,this.$W,W,2),ddd:it(w.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(C),HH:x.s(C,2,"0"),h:Rt(1),hh:Rt(2),a:Vt(C,Y,!0),A:Vt(C,Y,!1),m:String(Y),mm:x.s(Y,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:D};return N.replace(T,function(Z,pt){return pt||Et[Z]||D.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(_,O,w){var N,D=x.p(O),C=L(_),Y=(C.utcOffset()-this.utcOffset())*o,F=this-C,W=x.m(this,C);return W=(N={},N[f]=W/12,N[m]=W,N[d]=W/3,N[p]=(F-Y)/6048e5,N[u]=(F-Y)/864e5,N[c]=F/a,N[l]=F/o,N[i]=F/n,N)[D]||F,w?W:x.a(W)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return M[this.$L]},$.locale=function(_,O){if(!_)return this.$L;var w=this.clone(),N=V(_,O,!0);return N&&(w.$L=N),w},$.clone=function(){return x.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),H=R.prototype;return L.prototype=H,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",h]].forEach(function(A){H[A[1]]=function($){return this.$g($,A[0],A[1])}}),L.extend=function(A,$){return A.$i||(A($,R,L),A.$i=!0),L},L.locale=V,L.isDayjs=I,L.unix=function(A){return L(1e3*A)},L.en=M[P],L.Ls=M,L.p={},L})})(Xn);var Jn=Xn.exports;const U=ft(Jn);var Qn={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(g){var y={date:g,utc:!0,args:arguments};return new i(y)},c.utc=function(g){var y=l(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=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 p.call(this)};var m=c.utcOffset;c.utcOffset=function(g,y){var T=this.$utils().u;if(T(g))return this.$u?0:T(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(P){P===void 0&&(P="");var M=P.match(o);if(!M)return null;var I=(""+M[0]).match(a)||["-",0,0],V=I[0],L=60*+I[1]+ +I[2];return L===0?0:V==="+"?L:-L}(g),g===null))return this;var k=Math.abs(g)<=16?60*g:g,E=this;if(y)return E.$offset=k,E.$u=g===0,E;if(g!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(k+v,n)).$offset=k,E.$x.$localOffset=v}else E=this.utc();return E};var d=c.format;c.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,y)},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 f=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=c.diff;c.diff=function(g,y,T){if(g&&this.$u===g.$u)return h.call(this,g,y,T);var k=this.local(),E=l(g).local();return h.call(k,E,y,T)}}})})(Qn);var Ks=Qn.exports;const Zs=ft(Ks);var tr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(d,f,h){h===void 0&&(h={});var g=new Date(d),y=function(T,k){k===void 0&&(k={});var E=k.timeZoneName||"short",v=T+"|"+E,P=o[v];return P||(P=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:T,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[v]=P),P}(f,h);return y.formatToParts(g)},u=function(d,f){for(var h=c(d,f),g=[],y=0;y<h.length;y+=1){var T=h[y],k=T.type,E=T.value,v=n[k];v>=0&&(g[v]=parseInt(E,10))}var P=g[3],M=P===24?0:P,I=g[0]+"-"+g[1]+"-"+g[2]+" "+M+":"+g[4]+":"+g[5]+":000",V=+d;return(i.utc(I).valueOf()-(V-=V%1e3))/6e4},p=s.prototype;p.tz=function(d,f){d===void 0&&(d=l);var h=this.utcOffset(),g=this.toDate(),y=g.toLocaleString("en-US",{timeZone:d}),T=Math.round((g-new Date(y))/1e3/60),k=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-T,!0);if(f){var E=k.utcOffset();k=k.add(h-E,"minute")}return k.$x.$timezone=d,k},p.offsetName=function(d){var f=this.$x.$timezone||i.tz.guess(),h=c(this.valueOf(),f,{timeZoneName:d}).find(function(g){return g.type.toLowerCase()==="timezonename"});return h&&h.value};var m=p.startOf;p.startOf=function(d,f){if(!this.$x||!this.$x.$timezone)return m.call(this,d,f);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(h,d,f).tz(this.$x.$timezone,!0)},i.tz=function(d,f,h){var g=h&&f,y=h||f||l,T=u(+i(),y);if(typeof d!="string")return i(d).tz(y);var k=function(M,I,V){var L=M-60*I*1e3,x=u(L,V);if(I===x)return[L,I];var R=u(L-=60*(x-I)*1e3,V);return x===R?[L,x]:[M-60*Math.min(x,R)*1e3,Math.max(x,R)]}(i.utc(d,g).valueOf(),T,y),E=k[0],v=k[1],P=i(E).utcOffset(v);return P.$x.$timezone=y,P},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(tr);var qs=tr.exports;const Xs=ft(qs);var er={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),p=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){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 u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="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 m}});return s.bind(this)(p)}}})})(er);var Js=er.exports;const Qs=ft(Js);var nr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(nr);var ti=nr.exports;const ei=ft(ti);var rr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),p=a(i),m=(c=c||"()")[0]==="(",d=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(d?this.isBefore(p,l):!this.isAfter(p,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(d?this.isAfter(p,l):!this.isBefore(p,l))}}})})(rr);var ni=rr.exports;const ri=ft(ni);var or={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,p=function(m,d){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(f,h,g){var y=g&&g.toUpperCase();return h||d[g]||n[g]||d[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,k,E){return k||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,p)}}})})(or);var oi=or.exports;const ai=ft(oi);var ar={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(st,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,p,m,d){return s.fromToBase(u,p,m,d)}a.en.relativeTime=i,s.fromToBase=function(u,p,m,d,f){for(var h,g,y,T=m.$locale().relativeTime||i,k=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=k.length,v=0;v<E;v+=1){var P=k[v];P.d&&(h=d?a(u).diff(m,P.d,!0):m.diff(u,P.d,!0));var M=(n.rounding||Math.round)(Math.abs(h));if(y=h>0,M<=P.r||!P.r){M<=1&&v>0&&(P=k[v-1]);var I=T[P.l];f&&(M=f(""+M)),g=typeof I=="string"?I.replace("%d",M):I(M,p,P.l,y);break}}if(p)return g;var V=y?T.future:T.past;return typeof V=="function"?V(g):V.replace("%s",g)},s.to=function(u,p){return l(u,p,this,!0)},s.from=function(u,p){return l(u,p,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(ar);var si=ar.exports;const ii=ft(si);var li={exports:{}};(function(t,e){(function(n,o){t.exports=o(Jn)})(st,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(li),U.extend(Zs),U.extend(Xs),U.extend(Qs),U.extend(ii),U.extend(ai),U.extend(ei),U.extend(ri);const sr=()=>U.tz.guess(),Ot=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),It=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(ci(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},ci=t=>kn.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},ir=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},lr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},cr=(t,e="day")=>U().isSameOrBefore(U(t),e),ui=(t,e,n)=>U(t).isBetween(e,U(n)),di=(t,e,n="month")=>U(t).isSame(e,n),fi=(t,e="hu")=>U(t).locale(e).toNow(!0),mi=["onClick"],pi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,{t:o}=ct(),a=rt("timezone-selector"),s=r.computed(()=>It(new Date,null,n.locale)),i=sr(),l=r.computed(()=>Array.from(On.values()).map(u=>({...u,isActive:It(new Date,n.currentZone,n.locale)===It(new Date,u.timezone,n.locale),zoneOffsetName:It(new Date,u.timezone,n.locale)}))),c=u=>e("change",u);return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(yn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(m=>c(r.unref(i)),["prevent"]))},r.toDisplayString(s.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,m=>(r.openBlock(),r.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":m.isActive}),onClick:r.withModifiers(d=>c(m.timezone),["prevent"])},r.toDisplayString(r.unref(o)(`common.${m.countryLabelKey}`))+" ("+r.toDisplayString(m.zoneOffsetName)+") ",11,mi))),128))],2))}},Pe=(t,e="",n={})=>{const o=r.ref(""),{t:a}=ct(),s=r.computed(()=>{if(r.unref(e))try{const c=ur(r.unref(t),r.unref(e));return ca(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>lt(i,s.value)),error:o}},ur=(t,e="")=>{const n=lt(Xt,Tt(",",e)),o=ht(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n};class ve extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const zt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},hi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},gi={class:"is-portrait-image"},yi={class:"is-team-name-long"},bi={class:"is-team-name-short"},Si={class:"is-team-name-long"},wi={class:"is-team-name-short"},_i={class:"is-team-name-long"},Ti={class:"is-team-name-short"},$i=["href"],ki={class:"is-team-name-long"},Oi={class:"is-team-name-short"},Ei=["href"],Ai={key:0,class:"is-text-dark"},Pi=["href","target"],vi={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),{onError:s}=ke(),{columns:i,error:l}=Pe(o,a,r.computed(()=>({offsetName:n.offsetName})));l.value&&s(new ve(zt.message,{...zt.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(r.openBlock(),r.createBlock(Ee,null,{default:r.withCtx(({el:m})=>[r.createVNode($e,{columns:r.unref(i),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},r.createSlots({"cell-index":r.withCtx(({row:d})=>[r.createElementVNode("span",{class:r.normalizeClass(d.indexClass)},r.toDisplayString(d.index),3)]),"cell-playerPortrait":r.withCtx(({row:d})=>[r.createElementVNode("div",gi,[(r.openBlock(),r.createBlock(wt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref(wn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image",key:((f=d.team)==null?void 0:f.id)??d.id,src:(h=d.team)==null?void 0:h.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(f=d.homeTeam)==null?void 0:f.id,src:(h=d.homeTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:(f=d.awayTeam)==null?void 0:f.id,src:(h=d.awayTeam)==null?void 0:h.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",yi,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",bi,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",Si,r.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),r.createElementVNode("span",wi,r.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",_i,r.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),r.createElementVNode("span",Ti,r.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":r.withCtx(({row:d})=>{var f;return[r.createTextVNode(r.toDisplayString(((f=d.location)==null?void 0:f.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Ai,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,Pi))]),loading:r.withCtx(()=>[r.createVNode(Oe)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[r.createElementVNode("span",ki,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",Oi,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)],8,$i)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:d})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},r.toDisplayString(d.name),9,Ei)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},dr={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:""}},Ni={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:B}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:B},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},xi={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:B}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Di={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Mi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Li={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Ci={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Bi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ii={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},zi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Ri={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:B}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:B}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:B}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:B}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},fr=async(t,e,n)=>{const o=`${bn}${r.unref(t)}?${Vi(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Gi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Vi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Gi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},ji=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>cr(u,"day");return Tr(n,()=>{if(!a)return;const u=Fo(ma(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Fi=({options:t={},transform:e=a=>a,onError:n=ot,onSuccess:o=ot})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:p,isLoading:m,execute:d}=Ve(()=>fr(a,s,r.unref(i)).then(f=>e(f)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:p,isLoading:m,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,4 +19,4 @@ var MjszVbrElementsCore=function(S,r){"use strict";const rt=t=>({}.VITE_CSS_CLAS
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */function mr(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var pr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(pr||(pr={}));var Ui={type:"xstate.init"};function Ne(t){return t===void 0?[]:[].concat(t)}function hr(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 xe(t){return function(e){return t===e}}function Hi(t){return typeof t=="string"?{type:t}:t}function gr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:xe(t)}}function yr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Wi(t,e){e===void 0&&(e={});var n=mr(yr(Ne(t.states[t.initial].entry).map(function(i){return hr(i,e.actions)}),t.context,Ui),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:xe(t.initial)},transition:function(i,l){var c,u,p=typeof i=="string"?{value:i,context:t.context}:i,m=p.value,d=p.context,f=Hi(l),h=t.states[m];if(h.on){var g=Ne(h.on[f.type]);try{for(var y=function(w){var N=typeof Symbol=="function"&&Symbol.iterator,D=N&&w[N],C=0;if(D)return D.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&C>=w.length&&(w=void 0),{value:w&&w[C++],done:!w}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),T=y.next();!T.done;T=y.next()){var k=T.value;if(k===void 0)return gr(m,d);var E=typeof k=="string"?{target:k}:k,v=E.target,P=E.actions,M=P===void 0?[]:P,I=E.cond,R=I===void 0?function(){return!0}:I,L=v===void 0,x=v??m,V=t.states[x];if(R(d,f)){var H=mr(yr((L?Ne(M):[].concat(h.exit,M,V.entry).filter(function(w){return w})).map(function(w){return hr(w,s._options.actions)}),d,f),3),A=H[0],$=H[1],_=H[2],O=v??m;return{value:O,context:$,actions:A,changed:v!==m||A.length>0||_,matches:xe(O)}}}}catch(w){c={error:w}}finally{try{T&&!T.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return gr(m,d)}};return s}const Ki=Wi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:at}},[B]:{on:{DIRECTION1:at,DIRECTION2:b}}}}),Zi=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Ki.transition(t,n).value};function qi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Zi(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Xi(t=!1,e=ot,n=ot){const o=Lr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Ji=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?qt(he(l),Ut(e)):qt(gt(l),mn,qo(mn(e)))),s=Mo(l=>l.name?fa(oa("name"),ga(",",""),l):l),i=tn(qt(s,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 n=Ko(Ut(B),ln(fe),ln(zo));return this.result=fn(e.orders.map(o=>cn(n(o.direction),gt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Ot(o.gameDate,"L dddd",e,n),gameDateTime:Ot(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=Ae(n[o]):n),n)),this},groupByDays(){return this.result=Ho(e=>Ot(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Qi=(t,...e)=>lt(cn(...e))(t),tl=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},el=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},nl=(t="",e="hu")=>n=>({...n,gameDateDate:Ot(n.gameDate,"L dddd",t,e),gameDateTime:Ot(n.gameDate,"HH:mm",t,e)}),rl=t=>e=>({...e,gameResult:ml(e)}),ol=t=>({...t,opponent:fl(t)}),al=t=>({...t,resultType:pl(t)}),sl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},il=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ae(e[n]):e),e),ll=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=lr(e[n]):e),e),cl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=ir(e[n])),e),ul=fn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),fe(gt("id")),fe(gt("gameId"))]),dl=ba((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function fl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function ml(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function pl(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const hl=(t,e={})=>{const n=De("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||Sn,e))},gl=(t,e={})=>{const n=De("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||Tn,e))},yl=(t,e={})=>{const n=De("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||_n,e))},bl=(t,e="1x1")=>`${$n}/flag:${t}-${e}.svg`,De=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Sl={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"},wl=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),_l=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Tl=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),$l=[wl,_l,Tl];function kl(t,e){return r.openBlock(),r.createElementBlock("svg",Sl,$l)}const Ol={render:kl},El={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"},Al=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Pl=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),vl=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Nl=[Al,Pl,vl];function xl(t,e){return r.openBlock(),r.createElementBlock("svg",El,Nl)}const Dl={render:xl},Ml={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"},Ll=r.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),Cl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Bl=[Ll,Cl];function Il(t,e){return r.openBlock(),r.createElementBlock("svg",Ml,Bl)}const zl={render:Il},Vl={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"},Rl=r.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),Gl=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),jl=[Rl,Gl];function Fl(t,e){return r.openBlock(),r.createElementBlock("svg",Vl,jl)}const Yl={render:Fl},Ul={class:"is-team-name-long"},Hl={class:"is-team-name-short"},Wl={class:"is-team-name-long"},Kl={class:"is-team-name-short"},Zl={key:0,class:"is-text-dark"},ql=["href","target"],Xl={key:0,class:"label"},Jl={key:1,class:"label"},Ql={key:2,class:"label"},tc={key:1},ec=["onClick","onFocus","onBlur"],nc={class:"is-dropdown-menu"},rc=["href","target"],oc={key:0},ac=["href"],sc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=ke(),{columns:a,error:s}=Pe(dr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));kr(s,()=>o(new ve(zt.message,{...zt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ee,null,{default:r.withCtx(({el:u})=>[r.createVNode($e,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",Ul,r.toDisplayString(p.homeTeam.longName),1),r.createElementVNode("span",Hl,r.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",Wl,r.toDisplayString(p.awayTeam.longName),1),r.createElementVNode("span",Kl,r.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:p.homeTeam.id,src:p.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:p.awayTeam.id,src:p.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Zl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,ql))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",Xl,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",Jl,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",Ql,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:p})=>[p.broadcast?(r.openBlock(),r.createBlock(r.unref(Ol),{key:0})):(r.openBlock(),r.createElementBlock("span",tc))]),"cell-location":r.withCtx(({row:p})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=p.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:p})=>[r.createVNode(Te,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:d,hide:f})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(d,["stop"]),onFocus:d,onBlur:f},[r.createVNode(r.unref(Dl))],40,ec)]),content:r.withCtx(()=>[r.createElementVNode("ul",nc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(zl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,rc)]),p.video?(r.openBlock(),r.createElementBlock("li",oc,[r.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Yl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,ac)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Oe)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},ic={class:"g-row g-gap-normal is-mb-5"},lc=["value"],cc={key:0},uc=["onClick"],dc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,{t:o}=ct(),a=r.computed({get(){return n.championshipId},set(i){e("onChangeSeason",i)}});function s(i){e("onChangeSection",i)}return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",ic,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(rt)("label"))},r.toDisplayString(r.unref(o)("selection.season")),3),r.createVNode(Le,{id:"season",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,lc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(i.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",cc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,onClick:u=>s(c),class:r.normalizeClass([r.unref(rt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},r.toDisplayString(c.sectionName),11,uc))),128))]))],64))}},fc={};function mc(t,e){return r.openBlock(),r.createElementBlock("div",null," Test-8 ")}const pc=qn(fc,[["render",mc]]),hc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},br={externalTeamLink:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},gc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerLink:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1},...br},yc=({modules:t=[],apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a},t.length===0)throw new Error("At least one module must be set");t.forEach(s=>{if(s.register)return s.register();s==null||s()})};return S.AVAILABLE_TIMEZONES_BY_COUNTRY=On,S.BaseSelect=Le,S.COLUMNS_FIELD_PLAYERS=Mi,S.COLUMNS_FIELD_PLAYERS_PENALTY=Li,S.COLUMNS_GOALIES=Ci,S.COLUMNS_SCHEDULE=dr,S.COLUMNS_SCORING_EFFICIENCY=Ri,S.COLUMNS_STANDINGS_P_2=Di,S.COLUMNS_STANDINGS_P_3=xi,S.COLUMNS_TEAMS_FAIRPLAY=Ii,S.COLUMNS_TEAMS_PENALTY_KILLING=zi,S.COLUMNS_TEAMS_POWERPLAY=Vi,S.COLUMNS_TEAM_ATTENDANCE=Bi,S.DEFAULT_EXTERNAL_GAME_URL=Sn,S.DEFAULT_EXTERNAL_PLAYER_URL=_n,S.DEFAULT_EXTERNAL_TEAM_URL=Tn,S.DEFAULT_PORTRAIT_IMAGE_URL=wn,S.DataTable=$e,S.ErrorNotice=bs,S.ErrorProvider=ws,S.FLAG_BASE_URL=$n,S.FloatingPanel=Te,S.I18NProvider=Os,S.Image=wt,S.InvalidSeasonName=gi,S.LAZY_LOADING_STATE_DELAY=En,S.LOCALE_FOR_LANG=kn,S.LoadingIndicator=Oe,S.Paginator=Ks,S.REFRESH_DELAY=Aa,S.ResponsiveTable=Ee,S.SORT_STATE_ASCEND=B,S.SORT_STATE_DESCEND=b,S.SORT_STATE_ORIGINAL=at,S.ScheduleTable=sc,S.SeasonSelector=dc,S.StatisticsTable=Ni,S.Test=pc,S.TimezoneSelector=hi,S.UndefinedColumn=zt,S.VBR_API_BASE_URL=bn,S.WidgetError=ve,S.appendTo=Hn,S.baseProps=hc,S.convert=Ji,S.convertMinToMinSec=lr,S.convertMinToSec=Ae,S.convertSecToMin=ir,S.convertTimes=il,S.convertTimesMinToMinSec=ll,S.convertTimesSecToMin=cl,S.createConfig=yc,S.createI18n=hn,S.externalGameLinkResolver=hl,S.externalPlayerLinkResolver=yl,S.externalTeamLinkResolver=gl,S.fetchVBRData=fr,S.flagResolver=bl,S.format=Ot,S.gameDateTime=nl,S.gameResult=rl,S.getLocalTimezone=sr,S.i18n=yn,S.isBetween=di,S.isSame=fi,S.isSameOrBefore=cr,S.localeSort=dl,S.offsetName=It,S.playerName=tl,S.playerStatsProps=gc,S.rawConvert=Qi,S.sortGames=ul,S.teamName=el,S.teamOpponent=ol,S.teamResultType=al,S.teamStatsProps=br,S.templateReplacer=St,S.toKebabCase=Wn,S.upperCase=sl,S.useColumns=Pe,S.useError=ke,S.useErrorProvider=Zn,S.useI18n=ct,S.useLazyLoadingState=Fe,S.useMainClass=rt,S.usePage=Fi,S.useServices=Yi,S.useSort=qi,S.useVisibilityChange=Xi,S.validateColumnsName=ur,S.yearToNow=mi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);
22
+ ***************************************************************************** */function mr(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var pr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(pr||(pr={}));var Yi={type:"xstate.init"};function Ne(t){return t===void 0?[]:[].concat(t)}function hr(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 xe(t){return function(e){return t===e}}function Ui(t){return typeof t=="string"?{type:t}:t}function gr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:xe(t)}}function yr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Hi(t,e){e===void 0&&(e={});var n=mr(yr(Ne(t.states[t.initial].entry).map(function(i){return hr(i,e.actions)}),t.context,Yi),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:xe(t.initial)},transition:function(i,l){var c,u,p=typeof i=="string"?{value:i,context:t.context}:i,m=p.value,d=p.context,f=Ui(l),h=t.states[m];if(h.on){var g=Ne(h.on[f.type]);try{for(var y=function(w){var N=typeof Symbol=="function"&&Symbol.iterator,D=N&&w[N],C=0;if(D)return D.call(w);if(w&&typeof w.length=="number")return{next:function(){return w&&C>=w.length&&(w=void 0),{value:w&&w[C++],done:!w}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),T=y.next();!T.done;T=y.next()){var k=T.value;if(k===void 0)return gr(m,d);var E=typeof k=="string"?{target:k}:k,v=E.target,P=E.actions,M=P===void 0?[]:P,I=E.cond,V=I===void 0?function(){return!0}:I,L=v===void 0,x=v??m,R=t.states[x];if(V(d,f)){var H=mr(yr((L?Ne(M):[].concat(h.exit,M,R.entry).filter(function(w){return w})).map(function(w){return hr(w,s._options.actions)}),d,f),3),A=H[0],$=H[1],_=H[2],O=v??m;return{value:O,context:$,actions:A,changed:v!==m||A.length>0||_,matches:xe(O)}}}}catch(w){c={error:w}}finally{try{T&&!T.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return gr(m,d)}};return s}const Wi=Hi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:at}},[B]:{on:{DIRECTION1:at,DIRECTION2:b}}}}),Ki=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Wi.transition(t,n).value};function Zi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ki(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function qi(t=!1,e=ot,n=ot){const o=Mr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Xi=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?qt(he(l),Ut(e)):qt(gt(l),mn,Zo(mn(e)))),s=Do(l=>l.name?da(ra("name"),ha(",",""),l):l),i=tn(qt(s,ho([...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 n=Wo(Ut(B),ln(fe),ln(Io));return this.result=fn(e.orders.map(o=>cn(n(o.direction),gt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Ot(o.gameDate,"L dddd",e,n),gameDateTime:Ot(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=Ae(n[o]):n),n)),this},groupByDays(){return this.result=Uo(e=>Ot(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Ji=(t,...e)=>lt(cn(...e))(t),Qi=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},tl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},el=(t="",e="hu")=>n=>({...n,gameDateDate:Ot(n.gameDate,"L dddd",t,e),gameDateTime:Ot(n.gameDate,"HH:mm",t,e)}),nl=t=>e=>({...e,gameResult:fl(e)}),rl=t=>({...t,opponent:dl(t)}),ol=t=>({...t,resultType:ml(t)}),al=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},sl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ae(e[n]):e),e),il=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=lr(e[n]):e),e),ll=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=ir(e[n])),e),cl=fn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),fe(gt("id")),fe(gt("gameId"))]),ul=ya((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function dl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function fl(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function ml(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const pl=(t,e={})=>{const n=De("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||Sn,e))},hl=(t,e={})=>{const n=De("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||Tn,e))},gl=(t,e={})=>{const n=De("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(St(n||_n,e))},yl=(t,e="1x1")=>`${$n}/flag:${t}-${e}.svg`,De=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},bl={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"},Sl=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),wl=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),_l=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Tl=[Sl,wl,_l];function $l(t,e){return r.openBlock(),r.createElementBlock("svg",bl,Tl)}const kl={render:$l},Ol={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"},El=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Al=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Pl=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),vl=[El,Al,Pl];function Nl(t,e){return r.openBlock(),r.createElementBlock("svg",Ol,vl)}const xl={render:Nl},Dl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ml=r.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),Ll=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Cl=[Ml,Ll];function Bl(t,e){return r.openBlock(),r.createElementBlock("svg",Dl,Cl)}const Il={render:Bl},zl={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"},Rl=r.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),Vl=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Gl=[Rl,Vl];function jl(t,e){return r.openBlock(),r.createElementBlock("svg",zl,Gl)}const Fl={render:jl},Yl={class:"is-team-name-long"},Ul={class:"is-team-name-short"},Hl={class:"is-team-name-long"},Wl={class:"is-team-name-short"},Kl={key:0,class:"is-text-dark"},Zl=["href","target"],ql={key:0,class:"label"},Xl={key:1,class:"label"},Jl={key:2,class:"label"},Ql={key:1},tc=["onClick","onFocus","onBlur"],ec={class:"is-dropdown-menu"},nc=["href","target"],rc={key:0},oc=["href"],ac={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=ke(),{columns:a,error:s}=Pe(dr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));$r(s,()=>o(new ve(zt.message,{...zt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ee,null,{default:r.withCtx(({el:u})=>[r.createVNode($e,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",Yl,r.toDisplayString(p.homeTeam.longName),1),r.createElementVNode("span",Ul,r.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",Hl,r.toDisplayString(p.awayTeam.longName),1),r.createElementVNode("span",Wl,r.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:p.homeTeam.id,src:p.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(wt,{class:"is-logo-image is-right",key:p.awayTeam.id,src:p.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Kl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,Zl))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",ql,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",Xl,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",Jl,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:p})=>[p.broadcast?(r.openBlock(),r.createBlock(r.unref(kl),{key:0})):(r.openBlock(),r.createElementBlock("span",Ql))]),"cell-location":r.withCtx(({row:p})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=p.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:p})=>[r.createVNode(Te,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:d,hide:f})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(d,["stop"]),onFocus:d,onBlur:f},[r.createVNode(r.unref(xl))],40,tc)]),content:r.withCtx(()=>[r.createElementVNode("ul",ec,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Il),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,nc)]),p.video?(r.openBlock(),r.createElementBlock("li",rc,[r.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Fl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,oc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Oe)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},sc={class:"g-row g-gap-normal is-mb-5"},ic=["value"],lc={key:0},cc=["onClick"],uc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,{t:o}=ct(),a=r.computed({get(){return n.championshipId},set(i){e("onChangeSeason",i)}});function s(i){e("onChangeSection",i)}return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",sc,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(rt)("label"))},r.toDisplayString(r.unref(o)("selection.season")),3),r.createVNode(Le,{id:"season",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,ic))),128))]),_:1},8,["modelValue"])]),r.renderSlot(i.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",lc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,onClick:u=>s(c),class:r.normalizeClass([r.unref(rt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},r.toDisplayString(c.sectionName),11,cc))),128))]))],64))}},dc={};function fc(t,e){return r.openBlock(),r.createElementBlock("div",null," Test-8 ")}const mc=qn(dc,[["render",fc]]),pc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},hc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},gc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},yc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},bc=({modules:t=[],apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:n,teamResolver:o,playerResolver:a},t.length===0)throw new Error("At least one module must be set");t.forEach(s=>{if(s.register)return s.register();s==null||s()})};return S.AVAILABLE_TIMEZONES_BY_COUNTRY=On,S.BaseSelect=Le,S.COLUMNS_FIELD_PLAYERS=Di,S.COLUMNS_FIELD_PLAYERS_PENALTY=Mi,S.COLUMNS_GOALIES=Li,S.COLUMNS_SCHEDULE=dr,S.COLUMNS_SCORING_EFFICIENCY=Ri,S.COLUMNS_STANDINGS_P_2=xi,S.COLUMNS_STANDINGS_P_3=Ni,S.COLUMNS_TEAMS_FAIRPLAY=Bi,S.COLUMNS_TEAMS_PENALTY_KILLING=Ii,S.COLUMNS_TEAMS_POWERPLAY=zi,S.COLUMNS_TEAM_ATTENDANCE=Ci,S.DEFAULT_EXTERNAL_GAME_URL=Sn,S.DEFAULT_EXTERNAL_PLAYER_URL=_n,S.DEFAULT_EXTERNAL_TEAM_URL=Tn,S.DEFAULT_PORTRAIT_IMAGE_URL=wn,S.DataTable=$e,S.ErrorNotice=ys,S.ErrorProvider=Ss,S.FLAG_BASE_URL=$n,S.FloatingPanel=Te,S.I18NProvider=ks,S.Image=wt,S.InvalidSeasonName=hi,S.LAZY_LOADING_STATE_DELAY=En,S.LOCALE_FOR_LANG=kn,S.LoadingIndicator=Oe,S.Paginator=Ws,S.REFRESH_DELAY=Ea,S.ResponsiveTable=Ee,S.SORT_STATE_ASCEND=B,S.SORT_STATE_DESCEND=b,S.SORT_STATE_ORIGINAL=at,S.ScheduleTable=ac,S.SeasonSelector=uc,S.StatisticsTable=vi,S.Test=mc,S.TimezoneSelector=pi,S.UndefinedColumn=zt,S.VBR_API_BASE_URL=bn,S.WidgetError=ve,S.appendTo=Hn,S.baseProps=pc,S.convert=Xi,S.convertMinToMinSec=lr,S.convertMinToSec=Ae,S.convertSecToMin=ir,S.convertTimes=sl,S.convertTimesMinToMinSec=il,S.convertTimesSecToMin=ll,S.createConfig=bc,S.createI18n=hn,S.externalGameLinkResolver=pl,S.externalPlayerLinkResolver=gl,S.externalTeamLinkResolver=hl,S.fetchVBRData=fr,S.flagResolver=yl,S.format=Ot,S.gameDateTime=el,S.gameProps=yc,S.gameResult=nl,S.getLocalTimezone=sr,S.i18n=yn,S.isBetween=ui,S.isSame=di,S.isSameOrBefore=cr,S.localeSort=ul,S.offsetName=It,S.playerName=Qi,S.playerStatsProps=gc,S.rawConvert=Ji,S.sortGames=cl,S.teamName=tl,S.teamOpponent=rl,S.teamResultType=ol,S.teamStatsProps=hc,S.templateReplacer=St,S.toKebabCase=Wn,S.upperCase=al,S.useColumns=Pe,S.useError=ke,S.useErrorProvider=Zn,S.useI18n=ct,S.useLazyLoadingState=Fe,S.useMainClass=rt,S.usePage=ji,S.useServices=Fi,S.useSort=Zi,S.useVisibilityChange=qi,S.validateColumnsName=ur,S.yearToNow=fi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);