@mjsz-vbr-elements/core 2.1.6 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/columns.js +2 -2
- package/dist/components.js +3 -3
- package/dist/composables.js +114 -76
- package/dist/constants.js +2 -2
- package/dist/convert-18c8bb80.js +2 -2
- package/dist/datetime-2fb02df2.js +2 -2
- package/dist/index.iife.js +5 -5
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +78 -76
- package/dist/{useSort-cf4549f9.js → useSort-f320269d.js} +3 -2
- package/dist/utils.js +40 -37
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.1.
|
|
4
|
-
* (c)
|
|
3
|
+
* version: v2.1.8 - 01/01/2024, 19:08:12
|
|
4
|
+
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
var MjszVbrElementsCore=function(S,n){"use strict";const nt=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 r=t,o=nt("base-input"),a=n.computed({get:()=>r.modelValue,set:s=>e("update:modelValue",s)});return(s,i)=>n.withDirectives((n.openBlock(),n.createElementBlock("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),class:n.normalizeClass([n.unref(o),"is-select"])},[n.renderSlot(s.$slots,"default")],2)),[[n.vModelSelect,a.value]])}};function Ce(t){return n.getCurrentScope()?(n.onScopeDispose(t),!0):!1}function rt(t){return typeof t=="function"?t():n.unref(t)}const Gt=typeof window<"u",ot=()=>{},yn=bn();function bn(){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,r="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(r):o,t)})}function ae(t,e=!1){function r(m,{flush:d="sync",deep:f=!1,timeout:h,throwOnTimeout:g}={}){let y=null;const k=[new Promise(E=>{y=n.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(()=>rt(t)).finally(()=>y==null?void 0:y())),Promise.race(k)}function o(m,d){if(!n.isRef(m))return r(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=n.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(()=>rt(t)).finally(()=>(T==null||T(),rt(t)))),Promise.race(E)}function a(m){return r(d=>!!d,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return r(Number.isNaN,m)}function c(m,d){return r(f=>{const h=Array.from(f);return h.includes(m)||h.includes(rt(m))},d)}function u(m){return p(1,m)}function p(m=1,d){let f=-1;return r(()=>(f+=1,f>=m),d)}return Array.isArray(rt(t))?{toMatch:r,toContains:c,changed:u,changedTimes:p,get not(){return ae(t,!e)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:p,get not(){return ae(t,!e)}}}function Sn(t){return ae(t)}function wn(t,e,r={}){const{immediate:o=!0}=r,a=n.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},rt(e))}return o&&(a.value=!0,Gt&&c()),Ce(l),{isPending:n.readonly(a),start:c,stop:l}}function _n(t,e,r){const o=n.watch(t,(...a)=>(n.nextTick(()=>o()),e(...a)),r)}function Tn(t,e,r){return n.watch(t,(o,a,s)=>{o&&e(o,a,s)},r)}function At(t){var e;const r=rt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Be=Gt?window:void 0,$n=Gt?window.document:void 0;function jt(...t){let e,r,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,a]=t,e=Be):[e,r,o,a]=t,!e)return ot;Array.isArray(r)||(r=[r]),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=n.watch(()=>[At(e),rt(a)],([p,m])=>{i(),p&&s.push(...r.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 kn(t,e,r={}){const{window:o=Be,ignore:a=[],capture:s=!0,detectIframe:i=!1}=r;if(!o)return;yn&&!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 On=Object.defineProperty,En=Object.defineProperties,An=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Re=(t,e,r)=>e in t?On(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nn=(t,e)=>{for(var r in e||(e={}))Pn.call(e,r)&&Re(t,r,e[r]);if(ze)for(var r of ze(e))vn.call(e,r)&&Re(t,r,e[r]);return t},xn=(t,e)=>En(t,An(e));function Ve(t,e,r){const{immediate:o=!0,delay:a=0,onError:s=ot,onSuccess:i=ot,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=r??{},p=c?n.shallowRef(e):n.ref(e),m=n.ref(!1),d=n.ref(!1),f=n.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)=>{Sn(d).toBe(!1).then(()=>T(g)).catch(k)})}return xn(Nn({},g),{then(T,k){return y().then(T,k)}})}function Dn({document:t=$n}={}){if(!t)return n.ref("visible");const e=n.ref(t.visibilityState);return jt(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Mn=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,je=(t,e,r)=>e in t?Mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bn=(t,e)=>{for(var r in e||(e={}))Ln.call(e,r)&&je(t,r,e[r]);if(Ge)for(var r of Ge(e))Cn.call(e,r)&&je(t,r,e[r]);return t};async function In(t){return new Promise((e,r)=>{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=r})}function zn(t,e={}){const r=Ve(()=>In(rt(t)),void 0,Bn({resetOnExecute:!0},e));return n.watch(()=>rt(t),()=>r.execute(e.delay),{deep:!0}),r}function Fe(t=[],e={}){const{delay:r=0}=e,o=n.ref(!1),a=n.computed(()=>{const l=n.unref(t);return Array.isArray(l)?l.map(c=>n.unref(c)).some(Boolean):l}),{start:s,stop:i}=wn(()=>{o.value=!0},r);return n.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function G(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(r){return arguments.length===0||G(r)?e:t.apply(this,arguments)}}function z(t){return function e(r,o){switch(arguments.length){case 0:return e;case 1:return G(r)?e:j(function(a){return t(r,a)});default:return G(r)&&G(o)?e:G(r)?j(function(a){return t(a,o)}):G(o)?j(function(a){return t(r,a)}):t(r,o)}}}function Ft(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,o){return e.apply(this,arguments)};case 3:return function(r,o,a){return e.apply(this,arguments)};case 4:return function(r,o,a,s){return e.apply(this,arguments)};case 5:return function(r,o,a,s,i){return e.apply(this,arguments)};case 6:return function(r,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(r,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(r,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(r,o,a,s,i,l,c,u,p){return e.apply(this,arguments)};case 10:return function(r,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,r){return function(){for(var o=[],a=0,s=t,i=0;i<e.length||a<arguments.length;){var l;i<e.length&&(!G(e[i])||a>=arguments.length)?l=e[i]:(l=arguments[a],a+=1),o[i]=l,G(l)||(s-=1),i+=1}return s<=0?r.apply(this,o):Ft(s,se(t,o,r))}}var Pt=z(function(e,r){return e===1?j(r):Ft(e,se(e,[],r))});function X(t){return function e(r,o,a){switch(arguments.length){case 0:return e;case 1:return G(r)?e:z(function(s,i){return t(r,s,i)});case 2:return G(r)&&G(o)?e:G(r)?z(function(s,i){return t(s,o,i)}):G(o)?z(function(s,i){return t(r,s,i)}):j(function(s){return t(r,o,s)});default:return G(r)&&G(o)&&G(a)?e:G(r)&&G(o)?z(function(s,i){return t(s,i,a)}):G(r)&&G(a)?z(function(s,i){return t(s,o,i)}):G(o)&&G(a)?z(function(s,i){return t(r,s,i)}):G(r)?j(function(s){return t(s,o,a)}):G(o)?j(function(s){return t(r,s,a)}):G(a)?j(function(s){return t(r,o,s)}):t(r,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Rn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Yt(t,e,r){return function(){if(arguments.length===0)return r();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(Rn(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return r.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=[],r;!(r=t.next()).done;)e.push(r.value);return e}function He(t,e,r){for(var o=0,a=r.length;o<a;){if(t(e,r[o]))return!0;o+=1}return!1}function Vn(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 Gn(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ie=typeof Object.is=="function"?Object.is:Gn;var 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)}}(),jn=!{toString:null}.propertyIsEnumerable("toString"),Ze=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],qe=function(){return arguments.propertyIsEnumerable("length")}(),Fn=function(e,r){for(var o=0;o<e.length;){if(e[o]===r)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 r,o,a=[],s=qe&&Ke(e);for(r in e)Q(r,e)&&(!s||r!=="length")&&(a[a.length]=r);if(jn)for(o=Ze.length-1;o>=0;)r=Ze[o],Q(r,e)&&!Fn(a,r)&&(a[a.length]=r),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,r,o){var a=Ue(t),s=Ue(e);function i(l,c){return ce(l,c,r.slice(),o.slice())}return!He(function(l,c){return!He(i,c,l)},s,a)}function ce(t,e,r,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"&&Vn(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=r.length-1;s>=0;){if(r[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:Xe(t.entries(),e.entries(),r.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Xe(t.values(),e.values(),r.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=ht(t);if(i.length!==ht(e).length)return!1;var l=r.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,r){return ce(e,r,[],[])});function Yn(t,e,r){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;r<t.length;){if(a=t[r],a===0&&1/a===o)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(a=t[r],typeof a=="number"&&a!==a)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Ut(t[r],e))return r;r+=1}return-1}function Je(t,e){return Yn(e,t,0)>=0}function Ht(t,e){for(var r=0,o=e.length,a=Array(o);r<o;)a[r]=t(e[r]),r+=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},Un=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 Hn(t){return function(){return!t.apply(this,arguments)}}function Qe(t,e,r){for(var o=0,a=r.length;o<a;)e=t(e,r[o]),o+=1;return e}function Wn(t,e){for(var r=0,o=e.length,a=[];r<o;)t(e[r])&&(a[a.length]=e[r]),r+=1;return a}function Wt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Kn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Zn(t){return function(e){return new Kn(t,e)}}var tr=z(Yt(["fantasy-land/filter","filter"],Zn,function(t,e){return Wt(e)?Qe(function(r,o){return t(e[o])&&(r[o]=e[o]),r},{},ht(e)):Wn(t,e)})),qn=z(function(e,r){return tr(Hn(e),r)});function er(t,e){var r=function(i){var l=e.concat([t]);return Je(i,l)?"<Circular>":er(i,l)},o=function(s,i){return Ht(function(l){return ue(l)+": "+r(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(r,t).join(", ")+"))";case"[object Array]":return"["+Ht(r,t).concat(o(t,qn(function(s){return/^\d+$/.test(s)},ht(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ue(Un(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":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 er(e,[])}),Xn=z(function(e,r){if(e===r)return r;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,r);if(a!==void 0)return a;var s=o(typeof e,typeof r);if(s!==void 0)return s===typeof e?e:r;var i=de(e),l=o(i,de(r));return l!==void 0&&l===i?e:r}),Jn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=_t.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Qn=function(e){return function(r){return new Jn(e,r)}},to=z(Yt(["fantasy-land/map","map"],Qn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Pt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Qe(function(o,a){return o[a]=e(r[a]),o},{},ht(r));default:return Ht(e,r)}}));const lt=to,Kt=Number.isInteger||function(e){return e<<0===e};function Zt(t){return Object.prototype.toString.call(t)==="[object String]"}var rr=z(function(e,r){var o=e<0?r.length+e:e;return Zt(r)?r.charAt(o):r[o]}),eo=z(function(e,r){if(r!=null)return Kt(e)?rr(e,r):r[e]});const gt=eo;var ro=z(function(e,r){return lt(gt(e),r)}),no=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}),nr=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function oo(t,e,r){return function(a,s,i){if(no(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[nr]!=null)return r(a,s,i[nr]());if(typeof i.next=="function")return r(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ao(t,e,r){for(var o=0,a=r.length;o<a;){if(e=t["@@transducer/step"](e,r[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var so=z(function(e,r){return Ft(e.length,function(){return e.apply(r,arguments)})});function io(t,e,r){for(var o=r.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=r.next()}return t["@@transducer/result"](e)}function lo(t,e,r,o){return t["@@transducer/result"](r[o](so(t["@@transducer/step"],t),e))}var or=oo(ao,lo,io),co=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function ar(t){return new co(t)}var uo=X(function(t,e,r){return or(typeof t=="function"?ar(t):t,e,r)});const sr=uo;var fo=j(function(e){return function(){return e}});const ir=fo;var mo=j(function(e){return Pt(sr(Xn,0,ro("length",e)),function(){for(var r=0,o=e.length;r<o;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const po=mo;var ho=X(function(e,r,o){var a=e(r),s=e(o);return a<s?-1:a>s?1:0});const fe=ho;function go(t,e,r){if(Kt(t)&&vt(r)){var o=[].concat(r);return o[t]=e,o}var a={};for(var s in r)a[s]=r[s];return a[t]=e,a}var yo=j(function(e){return e==null}),bo=X(function t(e,r,o){if(e.length===0)return r;var a=e[0];if(e.length>1){var s=!yo(o)&&Q(a,o)&&typeof o[a]=="object"?o[a]:Kt(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,s)}return go(a,r,o)}),So=X(function(e,r,o){return bo([e],r,o)});function wo(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,r){if(r||(r=new $o),To(t))return t;var o=function(s){var i=r.get(t);if(i)return i;r.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=e?me(t[l],!0,r):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 To(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var $o=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const o=this.hash(e);let a=this.map[o];a||(this.map[o]=a=[]),a.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var o in e)r.push(Object.prototype.toString.call(e[o]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const a in this.map){const s=this.map[a];for(let i=0;i<s.length;i+=1){const l=s[i];if(l[0]===e)return l[1]}}return}const r=this.hash(e),o=this.map[r];if(o)for(let a=0;a<o.length;a+=1){const s=o[a];if(s[0]===e)return s[1]}},t}();function ko(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function pe(t,e){return function(){var r=arguments.length;if(r===0)return e();var o=arguments[r-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var Oo=X(pe("slice",function(e,r,o){return Array.prototype.slice.call(o,e,r)})),Eo=j(pe("tail",Oo(1,1/0)));const Ao=Eo;function qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ft(arguments[0].length,sr(ko,arguments[0],Ao(arguments)))}var Po=j(function(e){return Zt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const vo=Po;function lr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return qt.apply(this,vo(arguments))}var No=j(function(e){return Pt(e.length,e)});const xo=No;var Do=function(){function t(e,r,o,a){this.valueFn=e,this.valueAcc=r,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=_t.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Q(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,me(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),e},t}();function Mo(t,e,r){return function(o){return new Do(t,e,r,o)}}var Lo=se(4,[],Yt([],Mo,function(e,r,o,a){var s=ar(function(i,l){var c=o(l),u=e(Q(c,i)?i[c]:me(r,!1),l);return u&&u["@@transducer/reduced"]?Ye(i):(i[c]=u,i)});return or(s,{},a)})),Co=X(function(e,r,o){var a=e(r),s=e(o);return a>s?-1:a<s?1:0});const Bo=Co;function Io(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 zo=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}():Io(e)?e.constructor.from(""):void 0}),Ro=function(){function t(e,r){this.xf=r,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,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=Ye(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Vo(t){return function(e){return new Ro(t,e)}}var Go=z(Yt([],Vo,function(e,r){for(var o=0,a=r.length;o<a;){if(e(r[o]))return o;o+=1}return-1}));const jo=Go;var Fo=z(pe("groupBy",Lo(function(t,e){return t.push(e),t},[])));const Yo=Fo;var Uo=X(function(e,r,o){return Pt(Math.max(e.length,r.length,o.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):o.apply(this,arguments)})});const Ho=Uo;var Wo=z(Je);const Ko=Wo;var Zo=z(function(e,r){return Pt(e+1,function(){var o=arguments[e];if(o!=null&&wo(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(de(o)+' does not have a method named "'+r+'"')})});const cr=Zo;var qo=j(function(e){return e!=null&&Ut(e,zo(e))});const Xo=qo;var Jo=z(function(e,r){return function(o){return function(a){return lt(function(s){return r(s,a)},o(e(a)))}}}),Qo=z(function(e,r){return e.map(function(o){for(var a=r,s=0,i;s<o.length;){if(a==null)return;i=o[s],a=Kt(i)?rr(i,a):a[i],s+=1}return a})}),ta=z(function(e,r){return Qo([e],r)[0]});const he=ta;var ea=j(function(e){return Jo(gt(e),So(e))});const ra=ea;var na=X(function(e,r,o){var a={},s;r=r||{},o=o||{};for(s in r)Q(s,r)&&(a[s]=Q(s,o)?e(s,r[s],o[s]):r[s]);for(s in o)Q(s,o)&&!Q(s,a)&&(a[s]=o[s]);return a}),oa=X(function t(e,r,o){return na(function(a,s,i){return Wt(s)&&Wt(i)?t(e,s,i):e(a,s,i)},r,o)}),aa=z(function(e,r){return oa(function(o,a,s){return s},e,r)});const sa=aa;var ia=z(function(e,r){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in r)a.hasOwnProperty(l)||(o[l]=r[l]);return o});const la=ia;var ur=function(t){return{value:t,map:function(e){return ur(e(t))}}},ca=X(function(e,r,o){return e(function(a){return ur(r(a))})(o).value});const ua=ca;var da=X(function(e,r,o){return e(gt(r,o))});const fa=da;var ma=X(function(e,r,o){return o.replace(e,r)});const pa=ma;var ha=z(function(e,r){return Array.prototype.slice.call(r,0).sort(e)});const ga=ha;var ya=z(function(e,r){return Array.prototype.slice.call(r,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})});const dr=ya;var ba=cr(1,"split");const Tt=ba;var Sa=cr(0,"toLowerCase");const fr=Sa;var xt=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,wa="",_a=typeof String.prototype.trim=="function",Ta=j(!_a||xt.trim()||!wa.trim()?function(e){var r=new RegExp("^["+xt+"]["+xt+"]*"),o=new RegExp("["+xt+"]["+xt+"]*$");return e.replace(r,"").replace(o,"")}:function(e){return e.trim()});const Xt=Ta,mr=Symbol("I18nContext"),K=n.reactive({messages:{},locale:"",fallbackLocale:""}),pr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const o=(c,u={})=>{const p=!Xo(u),m=lt(Xt,Tt(".",c));return n.computed(()=>{const f=hr(m);return p?ka(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:n.computed({get(){return K.locale},set(c){K.locale=c}}),setLocale:s,translate:o,hasTranlation:a};return n.provide(mr,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=$a();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},$a=()=>{const t=n.inject(mr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},hr=(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,r){return he([t,...e],r)}const ka=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,o){return e[o]})},gr=n.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=lt(Xt,Tt(".",t.path)),o=hr(r),a=Tt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>n.h(t.tag,s)}}),yr="https://api.icehockey.hu/vbr",br="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Sr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",wr="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",_r="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Tr="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",$r=new Map().set("hu","hu-hu").set("en","hu-gb"),kr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Oa=1e3*60*5,Or=1e3,Ea={"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"},Aa=n.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),Pa=[Aa];function va(t,e){return n.openBlock(),n.createElementBlock("svg",Ea,Pa)}const Er={render:va},Na={"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"},xa=n.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),Da=[xa];function Ma(t,e){return n.openBlock(),n.createElementBlock("svg",Na,Da)}const La={render:Ma},Ca={"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"},Ba=n.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),Ia=[Ba];function za(t,e){return n.openBlock(),n.createElementBlock("svg",Ca,Ia)}const Ra={render:za};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 Ar(t,e,r){let{reference:o,floating:a}=t;const s=o.x+o.width/2-a.width/2,i=o.y+o.height/2-a.height/2,l=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*(r&&p?-1:1);break;case"end":m[l]+=u*(r&&p?-1:1)}return m}const Va=async(t,e,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=r,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}=Ar(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}=Ar(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function Pr(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function vr(t,e){var r;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=Pr(f),g=l[d?m==="floating"?"reference":"floating":m],y=Jt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?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 Ga=Math.min,ja=Math.max;function be(t,e,r){return ja(t,Ga(e,r))}const Nr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:o=0}=t||{},{x:a,y:s,placement:i,rects:l,platform:c,elements:u}=e;if(r==null)return{};const p=Pr(o),m={x:a,y:s},d=Mt(i),f=ye(d),h=await c.getDimensions(r),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(r));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 Fa={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Fa[e])}function Ya(t,e,r){r===void 0&&(r=!1);const o=Dt(t),a=Mt(t),s=ye(a);let i=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Qt(i)),{main:i,cross:Qt(i)}}const Ua={start:"end",end:"start"};function Se(t){return t.replace(/start|end/g,e=>Ua[e])}const Ha=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements: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 vr(e,g),M=[];let I=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&M.push(P[y]),p){const{main:R,cross:H}=Ya(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{}}}},Wa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:o}=e,a=await async function(s,i){const{placement:l,platform: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:r+a.x,y:o+a.y,data:a}}}};function Ka(t){return t==="x"?"y":"x"}const Za=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:T,y:k}=y;return{x:T,y:k}}},...c}=t,u={x:r,y:o},p=await vr(e,c),m=Mt(yt(a)),d=Ka(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-r,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 xr(t){return t instanceof J(t).Node}function ut(t){return xr(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function q(t){return t instanceof J(t).Element}function Dr(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Lt(t){const{overflow:e,overflowX:r,overflowY:o,display:a}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(a)}function qa(t){return["table","td","th"].includes(ut(t))}function we(t){const e=_e(),r=tt(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function _e(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function te(t){return["html","body","#document"].includes(ut(t))}const Mr=Math.min,Ct=Math.max,ee=Math.round;function Lr(t){const e=tt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=et(t),s=a?t.offsetWidth:r,i=a?t.offsetHeight:o,l=ee(r)!==s||ee(o)!==i;return l&&(r=s,o=i),{width:r,height:o,fallback:l}}function Cr(t){return q(t)?t:t.contextElement}const Br={x:1,y:1};function $t(t){const e=Cr(t);if(!et(e))return Br;const r=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=Lr(e);let i=(s?ee(r.width):r.width)/o,l=(s?ee(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const Ir={x:0,y:0};function zr(t,e,r){var o,a;if(e===void 0&&(e=!0),!_e())return Ir;const s=t?J(t):window;return!r||e&&r!==s?Ir:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function bt(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),s=Cr(t);let i=Br;e&&(o?q(o)&&(i=$t(o)):i=$t(t));const l=zr(s,r,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((xr(t)?t.ownerDocument:t.document)||window.document).documentElement}function re(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Rr(t){return bt(dt(t)).left+re(t).scrollLeft}function kt(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dr(t)&&t.host||dt(t);return Dr(e)?e.host:e}function Vr(t){const e=kt(t);return te(e)?e.ownerDocument.body:et(e)&&Lt(e)?e:Vr(e)}function Bt(t,e){var r;e===void 0&&(e=[]);const o=Vr(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Lt(o)?o:[]):e.concat(o,Bt(o))}function Gr(t,e,r){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,r);else if(e==="document")o=function(a){const s=dt(a),i=re(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+Rr(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,r);else{const a=zr(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Jt(o)}function jr(t,e){const r=kt(t);return!(r===e||!q(r)||te(r))&&(tt(r).position==="fixed"||jr(r,e))}function Fr(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Yr(t,e){const r=J(t);if(!et(t))return r;let o=Fr(t,e);for(;o&&qa(o)&&tt(o).position==="static";)o=Fr(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!we(o))?r:o||function(a){let s=kt(a);for(;et(s)&&!te(s);){if(we(s))return s;s=kt(s)}return null}(t)||r}function Xa(t,e,r){const o=et(e),a=dt(e),s=r==="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=re(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=Rr(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const Ja={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t;const s=r==="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&&jr(u,g))?d=d.filter(k=>k!==g):f=y,g=kt(g)}return p.set(u,d),d}(e,this._c):[].concat(r),i=[...s,o],l=i[0],c=i.reduce((u,p)=>{const m=Gr(e,p,a);return u.top=Ct(m.top,u.top),u.right=Mr(m.right,u.right),u.bottom=Mr(m.bottom,u.bottom),u.left=Ct(m.left,u.left),u},Gr(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const a=et(r),s=dt(r);if(r===s)return e;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((ut(r)!=="body"||Lt(s))&&(i=re(r)),et(r))){const u=bt(r);l=$t(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-i.scrollLeft*l.x+c.x,y:e.y*l.y-i.scrollTop*l.y+c.y}},isElement:q,getDimensions:function(t){return Lr(t)},getOffsetParent:Yr,getDocumentElement:dt,getScale:$t,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const a=this.getOffsetParent||Yr,s=this.getDimensions;return{reference:Xa(e,await a(r),o),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>tt(t).direction==="rtl"};function Qa(t,e,r,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",r,{passive:!0}),s&&d.addEventListener("resize",r)});let u,p=null;i&&(p=new ResizeObserver(()=>{r()}),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||r(),m=f,u=requestAnimationFrame(d)}(),r(),()=>{var d;c.forEach(f=>{a&&f.removeEventListener("scroll",r),s&&f.removeEventListener("resize",r)}),(d=p)==null||d.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const ts=(t,e,r)=>{const o=new Map,a={platform:Ja,...r},s={...a.platform,_c:o};return Va(t,e,{...a,platform:s})},Ur=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function es({middleware:t,placement:e=null,strategy:r,append:o,enabled:a}){const s=n.ref(null),i=n.ref(null),l=n.ref(null),c=n.ref(null),u=n.ref(null),p=n.ref(null),m=n.ref(null),d=n.ref(r??"absolute"),f=n.ref(null),h=()=>{!s.value||!i.value||ts(s.value,i.value,{middleware:t,placement:e,strategy:r}).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})};n.watch(()=>({reference:n.unref(s),floating:n.unref(i),append:n.unref(o)}),({floating:y,append:T})=>{T&&Ur(y,T),h()},{flush:"post"}),n.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=Qa(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:r}=t;return{name:"arrow",options:t,fn(o){return n.isRef(e)?e.value!=null?Nr({element:e.value,padding:r}).fn(o):{}:e?Nr({element:e,padding:r}).fn(o):{}}}},ns=["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,r=n.ref(!1),o=n.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=es({placement:e.placement,middleware:[Ha(),Za({padding:5}),Wa(e.offset),rs({element:o,padding:5})],append:n.computed(()=>e.appendTo),enabled:r}),d=()=>{e.disabled||r.value||(r.value=!0)},f=y=>{r.value&&y&&(r.value=!1)},h=y=>{u.value=y},g={mouseenter:d,mouseleave:f,focus:d,blur:f};return kn(p,y=>{var T;(T=u.value)!=null&&T.contains(y.target)||f()}),(y,T)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(y.$slots,"default",{setRef:h,show:d,hide:f,events:g}),n.createElementVNode("div",{ref_key:"floating",ref:p,"data-placement":n.unref(c),style:n.normalizeStyle({position:n.unref(m),top:n.unref(s)?`${n.unref(s)}px`:"",left:n.unref(a)?`${n.unref(a)}px`:""})},[n.createVNode(n.Transition,{name:"transition-fade",mode:"out-in"},{default:n.withCtx(()=>[r.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["floating-content",[`is-${e.theme}`]])},[n.renderSlot(y.$slots,"content",{close:f},()=>[n.createTextVNode(n.toDisplayString(t.content),1)]),n.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:n.normalizeStyle({position:n.unref(m),top:n.unref(l)?`${n.unref(l)}px`:"",left:n.unref(i)?`${n.unref(i)}px`:""})},null,4)],2)):n.createCommentVNode("",!0)]),_:3})],12,ns)],64))}},os=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],as={key:0},ss=["colspan"],is={key:1},ls=["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 r=t,{isLoading:o,appendTo:a}=n.toRefs(r),s=Fe(o,{delay:Or}),{t:i}=ct(),l=nt("table"),c=n.computed(()=>r.columns),u=n.computed(()=>Object.keys(r.columns).length),p=(m,d)=>{m.sortOrders&&e("sort",{target:d,orders:m.sortOrders})};return(m,d)=>(n.openBlock(),n.createElementBlock("table",{class:n.normalizeClass(n.unref(l))},[n.createElementVNode("thead",null,[n.createElementVNode("tr",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(f,h)=>(n.openBlock(),n.createBlock(Te,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":n.unref(a)},{default:n.withCtx(({setRef:g,show:y,hide:T})=>[n.createElementVNode("th",{ref_for:!0,ref:g,class:n.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)}]),onMouseenter:y,onMouseleave:T,onFocus:y,onBlur:T,onClick:k=>p(f,h),onKeydown:[n.withKeys(n.withModifiers(k=>p(f,h),["prevent"]),["space"]),n.withKeys(n.withModifiers(k=>p(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[n.renderSlot(m.$slots,`header-${h}`,{column:f},()=>[n.createTextVNode(n.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(n.openBlock(),n.createBlock(n.unref(Er),{key:0,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(at)?(n.openBlock(),n.createBlock(n.unref(Er),{key:1,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(b)?(n.openBlock(),n.createBlock(n.unref(La),{key:2,class:"is-icon-sort"})):n.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===n.unref(B)?(n.openBlock(),n.createBlock(n.unref(Ra),{key:3,class:"is-icon-sort"})):n.createCommentVNode("",!0)],42,os)]),_:2},1032,["content","disabled","append-to"]))),128))])]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rows,(f,h)=>(n.openBlock(),n.createElementBlock("tr",{key:h,class:n.normalizeClass(f.rowClasses)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,(g,y)=>(n.openBlock(),n.createElementBlock("td",{key:y,class:n.normalizeClass([[g.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==n.unref(at),"is-zero":f[y]==0}])},[n.renderSlot(m.$slots,`cell-${y}`,{row:f,prop:y},()=>[n.createTextVNode(n.toDisplayString(f[y]),1)])],2))),128))],2))),128))]),n.unref(s)&&t.rows.length===0?(n.openBlock(),n.createElementBlock("tfoot",as,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(m.$slots,"loading",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.loading")),1)])],8,ss)])])):n.createCommentVNode("",!0),t.rows.length===0&&!n.unref(o)&&!n.unref(s)?(n.openBlock(),n.createElementBlock("tfoot",is,[n.createElementVNode("tr",null,[n.createElementVNode("td",{colspan:u.value},[n.renderSlot(m.$slots,"empty",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(i)("common.noData")),1)])],8,ls)])])):n.createCommentVNode("",!0)],2))}},cs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},us=n.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),ds=n.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),fs=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ms=[us,ds,fs];function ps(t,e){return n.openBlock(),n.createElementBlock("svg",cs,ms)}const hs={render:ps},gs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:o}=ct(),a=nt("error-notice"),s=n.computed(()=>{var i;return o(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a))},[n.createVNode(n.unref(hs),{class:"icon",width:"20",height:"20"}),n.createElementVNode("span",null,n.toDisplayString(s.value),1)],2))}};function Hr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const St=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(r,o){return he(Tt(".",o),e)})},Wr=Symbol("ErrorProviderContext"),Kr=()=>{const t=n.ref(""),e=n.ref({}),r=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Hr(s.message),cause:s.cause}},a={onError:r,reset:()=>{t.value="",e.value={}}};return n.provide(Wr,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},n.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:n.computed(()=>t.value.length>0),message:t,error:e,onError:r}},ke=()=>{const t=ys();return{onError:t.onError,reset:t.reset}},ys=()=>{const t=n.inject(Wr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},bs={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:o}=Kr();return(a,s)=>n.renderSlot(a.$slots,"default",{message:n.unref(e),error:n.unref(o),hasError:n.unref(r)})}},Ss={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"}}},ws={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"}}},_s=(t,e)=>{const r=t.__vccOpts||t;for(const[o,a]of e)r[o]=a;return r},Ts=n.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=sa({hu:Ss,en:ws},t.messages),{translate:r}=pr({locale:n.computed(()=>t.locale),messages:e});return{translate:r}}});function $s(t,e,r,o,a,s){return n.renderSlot(t.$slots,"default",{t:t.translate})}const ks=_s(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:r}=n.toRefs(e),o=n.ref({src:e.src}),{error:a,isReady:s}=zn(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(a)&&n.unref(r)?(n.openBlock(),n.createElementBlock("img",{key:0,src:n.unref(r),class:n.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Os)):n.createCommentVNode("",!0),n.unref(a)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:1,src:o.value.src,class:n.normalizeClass([i.$attrs.class,{"is-loaded":n.unref(s)}]),title:e.title},null,10,Es))],64))}}),As={style:{"text-align":"center"}},Oe={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(r,o)=>(n.openBlock(),n.createElementBlock("div",As,n.toDisplayString(n.unref(e)("common.loading")),1))}};function Ps({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:o=5,update:a=ot}){const s=n.computed(()=>Math.ceil(n.unref(r)/e)),i=n.computed(()=>{const p=n.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=n.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=n.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),xs=[Ns];function Ds(t,e){return n.openBlock(),n.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=n.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Bs=[Cs];function Is(t,e){return n.openBlock(),n.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=[n.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 r=t,o=nt("paginator"),{page:a,pageCount:s,range:i,goTo:l,pageStep:c}=Ps({currentPage:n.computed(()=>r.page),totalItems:n.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:u=>e("change",u)});return(u,p)=>n.unref(s)>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(o))},[n.createElementVNode("button",{type:"button",disabled:n.unref(a)===1,onClick:p[0]||(p[0]=m=>n.unref(c)(-1))},[n.renderSlot(u.$slots,"prev",{},()=>[n.createVNode(n.unref(Ms),{class:"icon paginator-left"})])],8,Rs),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",disabled:n.unref(a)===1,onClick:p[1]||(p[1]=m=>n.unref(l)(1))},"1",8,Vs)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Gs,"...")),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),m=>(n.openBlock(),n.createElementBlock("button",{type:"button",key:m,class:n.normalizeClass({"is-active":m===n.unref(a)}),disabled:m===n.unref(a),onClick:d=>n.unref(l)(m)},n.toDisplayString(m),11,js))),128)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Fs,Ys)),t.isCompact?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",{key:3,type:"button",disabled:n.unref(a)===n.unref(s),onClick:p[2]||(p[2]=m=>n.unref(l)(n.unref(s)))},n.toDisplayString(n.unref(s)),9,Us)),n.createElementVNode("button",{type:"button",disabled:n.unref(a)===n.unref(s),onClick:p[3]||(p[3]=n.withModifiers(m=>n.unref(c)(1),["prevent"]))},[n.renderSlot(u.$slots,"next",{},()=>[n.createVNode(n.unref(zs),{class:"icon paginator-left"})])],8,Hs)],2)):n.createCommentVNode("",!0)}},Ee={__name:"ResponsiveTable",setup(t){const e=n.ref(null),r=nt("table-responsive");return(o,a)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"el",ref:e,class:n.normalizeClass(n.unref(r))},[n.renderSlot(o.$slots,"default",{el:e.value})],2))}};var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",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]=r,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,ne){return Z&&(Z[pt]||Z(O,N))||Me[pt].slice(0,ne)},Rt=function(Z){return x.s(C%12||12,Z,"0")},Vt=w.meridiem||function(Z,pt,Me){var ne=Z<12?"AM":"PM";return Me?ne.toLowerCase():ne},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/r,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})})(Zr);var qr=Zr.exports;const U=ft(qr);var Xr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var 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(),r):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,r)).$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)}}})})(Xr);var Ks=Xr.exports;const Zs=ft(Ks);var Jr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,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=r[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}}})})(Jr);var qs=Jr.exports;const Xs=ft(qs);var Qr={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,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)}}})})(Qr);var Js=Qr.exports;const Qs=ft(Js);var tn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(tn);var ti=tn.exports;const ei=ft(ti);var en={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,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))}}})})(en);var ri=en.exports;const ni=ft(ri);var rn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=r,i.format=function(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]||r[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)}}})})(rn);var oi=rn.exports;const ai=ft(oi);var nn={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(st,function(){return function(r,o,a){r=r||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(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=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],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=(r.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)}}})})(nn);var si=nn.exports;const ii=ft(si);var li={exports:{}};(function(t,e){(function(r,o){t.exports=o(qr)})(st,function(r){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(r),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,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(ni);const on=()=>U.tz.guess(),Ot=(t="",e="",r="",o="hu")=>(r=r||U.tz.guess(),U(t).isValid()?U(t).tz(r).locale(o).format(e):""),It=(t="",e="",r="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(ci(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},ci=t=>$r.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},an=t=>{const e=~~(t/60),r=~~t%60;return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},sn=t=>{const e=Math.trunc(t),r=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),r.toString().padStart(2,"0")].join(":")},ln=(t,e="day")=>U().isSameOrBefore(U(t),e),ui=(t,e,r)=>U(t).isBetween(e,U(r)),di=(t,e,r="month")=>U(t).isSame(e,r),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 r=t,{t:o}=ct(),a=nt("timezone-selector"),s=n.computed(()=>It(new Date,null,r.locale)),i=on(),l=n.computed(()=>Array.from(kr.values()).map(u=>({...u,isActive:It(new Date,r.currentZone,r.locale)===It(new Date,u.timezone,r.locale),zoneOffsetName:It(new Date,u.timezone,r.locale)}))),c=u=>e("change",u);return(u,p)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(a))},[n.createVNode(n.unref(gr),{path:"common.selectTimezone",tag:"span"},{timezone:n.withCtx(()=>[n.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=n.withModifiers(m=>c(n.unref(i)),["prevent"]))},n.toDisplayString(s.value),1)]),_:1}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,m=>(n.openBlock(),n.createElementBlock("a",{key:m.countryLabelKey,href:"#",class:n.normalizeClass({"is-active":m.isActive}),onClick:n.withModifiers(d=>c(m.timezone),["prevent"])},n.toDisplayString(n.unref(o)(`common.${m.countryLabelKey}`))+" ("+n.toDisplayString(m.zoneOffsetName)+") ",11,mi))),128))],2))}},Pe=(t,e="",r={})=>{const o=n.ref(""),{t:a}=ct(),s=n.computed(()=>{if(n.unref(e))try{const c=cn(n.unref(t),n.unref(e));return la(c,n.unref(t))}catch(c){o.value=c}return n.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",n.unref(r))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:n.computed(()=>lt(i,s.value)),error:o}},cn=(t,e="")=>{const r=lt(Xt,Tt(",",e)),o=ht(t);if(r[0]==="")return resolve([]);const a=r.findIndex(s=>!o.includes(s));if(a>-1)throw r[a];return r};class ve extends Error{constructor(e,r={}){const{key:o,cause:a}=r;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 r=t,{columns:o,hideColumns:a}=n.toRefs(r),{onError:s}=ke(),{columns:i,error:l}=Pe(o,a,n.computed(()=>({offsetName:r.offsetName})));l.value&&s(new ve(zt.message,{...zt.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(n.openBlock(),n.createBlock(Ee,null,{default:n.withCtx(({el:m})=>[n.createVNode($e,{columns:n.unref(i),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":t.appendTo||m,onSort:c},n.createSlots({"cell-index":n.withCtx(({row:d})=>[n.createElementVNode("span",{class:n.normalizeClass(d.indexClass)},n.toDisplayString(d.index),3)]),"cell-playerPortrait":n.withCtx(({row:d})=>[n.createElementVNode("div",gi,[(n.openBlock(),n.createBlock(wt,{key:d.player.playerId,src:d.player.picture,"default-src":n.unref(Sr)},null,8,["src","default-src"]))])]),"cell-teamLogo":n.withCtx(({row:d})=>{var f,h;return[(n.openBlock(),n.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":n.withCtx(({row:d})=>{var f,h;return[(n.openBlock(),n.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":n.withCtx(({row:d})=>{var f,h;return[(n.openBlock(),n.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":n.withCtx(({row:d})=>{var f,h;return[n.createElementVNode("span",yi,n.toDisplayString((f=d.team)==null?void 0:f.longName),1),n.createElementVNode("span",bi,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":n.withCtx(({row:d})=>{var f,h;return[n.createElementVNode("span",Si,n.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),n.createElementVNode("span",wi,n.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":n.withCtx(({row:d})=>{var f,h;return[n.createElementVNode("span",_i,n.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),n.createElementVNode("span",Ti,n.toDisplayString((h=d.awayTeam)==null?void 0:h.shortName),1)]}),"cell-location":n.withCtx(({row:d})=>{var f;return[n.createTextVNode(n.toDisplayString(((f=d.location)==null?void 0:f.locationName)??""),1)]}),"cell-gameResult":n.withCtx(({row:d})=>[d.gameStatus===0?(n.openBlock(),n.createElementBlock("span",Ai,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},n.toDisplayString(d.homeTeamScore)+":"+n.toDisplayString(d.awayTeamScore),11,Pi))]),loading:n.withCtx(()=>[n.createVNode(Oe)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:n.withCtx(({row:d})=>{var f,h;return[n.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[n.createElementVNode("span",ki,n.toDisplayString((f=d.team)==null?void 0:f.longName),1),n.createElementVNode("span",Oi,n.toDisplayString((h=d.team)==null?void 0:h.shortName),1)],8,$i)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:n.withCtx(({row:d})=>[n.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},n.toDisplayString(d.name),9,Ei)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},un={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}]}},dn=async(t,e,r)=>{const o=`${yr}${n.unref(t)}?${Vi(r)}`;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:r=[],limit:o,auto:a=!1}=t,s=n.ref(n.unref(e)),i=u=>ln(u,"day");return _n(r,()=>{if(!a)return;const u=jo(fa(i,"gameDate"))(n.unref(r));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:r=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(()=>dn(a,s,n.unref(i)).then(f=>e(f)),[],{immediate:c,resetOnExecute:l,onError:r,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,Be={__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 Ie(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function nt(t){return typeof t=="function"?t():r.unref(t)}const jt=typeof window<"u",ot=()=>{},Sr=wr();function wr(){var t;return jt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function 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 _=null;const E=[new Promise(v=>{_=r.watch([t,m],([A,M])=>{e!==(A===M)&&(_==null||_(),v(A))},{flush:f,deep:h,immediate:!0})})];return g!=null&&E.push(oe(g,y).then(()=>nt(t)).finally(()=>(_==null||_(),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 Tr(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,jt&&c()),Ie(l),{isPending:r.readonly(a),start:c,stop:l}}function ze(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 $t(t){var e;const n=nt(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Re=jt?window:void 0,kr=jt?window.document:void 0;function Ft(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Re):[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(()=>[$t(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 Ie(u),u}let Ve=!1;function Or(t,e,n={}){const{window:o=Re,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return;Sr&&!Ve&&(Ve=!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=$t(f);return h&&(d.target===h||d.composedPath().includes(h))}}),p=[Ft(o,"click",d=>{const f=$t(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}),Ft(o,"pointerdown",d=>{const f=$t(t);f&&(l=!d.composedPath().includes(f)&&!c(d))},{passive:!0}),i&&Ft(o,"blur",d=>{var f;const h=$t(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,Pr=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,je=(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)&&je(t,n,e[n]);if(Ge)for(var n of Ge(e))Nr.call(e,n)&&je(t,n,e[n]);return t},Dr=(t,e)=>Pr(t,Ar(e));function Fe(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(_=0,...k){l&&(p.value=e),f.value=void 0,m.value=!1,d.value=!0,_>0&&await oe(_);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((_,k)=>{Tr(d).toBe(!1).then(()=>_(g)).catch(k)})}return Dr(xr({},g),{then(_,k){return y().then(_,k)}})}function Mr({document:t=kr}={}){if(!t)return r.ref("visible");const e=r.ref(t.visibilityState);return Ft(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var Lr=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Ue=(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)&&Ue(t,n,e[n]);if(Ye)for(var n of Ye(e))Br.call(e,n)&&Ue(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=Fe(()=>zr(nt(t)),void 0,Ir({resetOnExecute:!0},e));return r.watch(()=>nt(t),()=>n.execute(e.delay),{deep:!0}),n}function He(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 Yt(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):Yt(s,se(t,o,n))}}var At=z(function(e,n){return e===1?j(n):Yt(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 Nt(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 ie(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function We(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function Ke(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 le=typeof Object.is=="function"?Object.is:jr;var qe=Object.prototype.toString,Ze=function(){return qe.call(arguments)==="[object Arguments]"?function(e){return qe.call(e)==="[object Arguments]"}:function(e){return Q("callee",e)}}(),Fr=!{toString:null}.propertyIsEnumerable("toString"),Xe=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Je=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},gt=j(typeof Object.keys=="function"&&!Je?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=Je&&Ze(e);for(n in e)Q(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Fr)for(o=Xe.length-1;o>=0;)n=Xe[o],Q(n,e)&&!Yr(a,n)&&(a[a.length]=n),o-=1;return a}),ce=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Qe(t,e,n,o){var a=We(t),s=We(e);function i(l,c){return ue(l,c,n.slice(),o.slice())}return!Ke(function(l,c){return!Ke(i,c,l)},s,a)}function ue(t,e,n,o){if(le(t,e))return!0;var a=ce(t);if(a!==ce(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&&le(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!le(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:Qe(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:Qe(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=gt(t);if(i.length!==gt(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)&&ue(e[u],t[u],l,c)))return!1;s-=1}return!0}var Ut=z(function(e,n){return ue(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 tn(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 de(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var xt=function(e){return(e<10?"0":"")+e},Hr=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xt(e.getUTCMonth()+1)+"-"+xt(e.getUTCDate())+"T"+xt(e.getUTCHours())+":"+xt(e.getUTCMinutes())+":"+xt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wr(t){return function(){return!t.apply(this,arguments)}}function en(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 qr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Zr(t){return function(e){return new qr(t,e)}}var nn=z(Nt(["fantasy-land/filter","filter"],Zr,function(t,e){return Wt(e)?en(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},gt(e)):Kr(t,e)})),Xr=z(function(e,n){return nn(Wr(e),n)});function rn(t,e){var n=function(i){var l=e.concat([t]);return tn(i,l)?"<Circular>":rn(i,l)},o=function(s,i){return Ht(function(l){return de(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)},gt(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):de(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())+")":de(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,gt(t)).join(", ")+"}"}}var fe=j(function(e){return rn(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=fe(e),l=o(i,fe(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"]=ht.init,t.prototype["@@transducer/result"]=ht.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(Nt(["fantasy-land/map","map"],to,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return At(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return en(function(o,a){return o[a]=e(n[a]),o},{},gt(n));default:return Ht(e,n)}}));const lt=eo,Kt=Number.isInteger||function(e){return e<<0===e};function qt(t){return Object.prototype.toString.call(t)==="[object String]"}var on=z(function(e,n){var o=e<0?n.length+e:e;return qt(n)?n.charAt(o):n[o]}),no=z(function(e,n){if(n!=null)return Kt(e)?on(e,n):n[e]});const yt=no;var ro=z(function(e,n){return lt(yt(e),n)}),oo=j(function(e){return vt(e)?!0:!e||typeof e!="object"||qt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),an=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[an]!=null)return n(a,s,i[an]());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 Yt(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 sn=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 ln(t){return new uo(t)}var fo=X(function(t,e,n){return sn(typeof t=="function"?ln(t):t,e,n)});const cn=fo;var mo=j(function(e){return function(){return e}});const un=mo;var po=j(function(e){return At(cn(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 me=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 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 pe(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?pe(t[l],!0,n):t[l]);return s};switch(ce(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 $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 he(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(he("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Po=j(he("tail",Eo(1,1/0)));const Ao=Po;function Zt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Yt(arguments[0].length,cn(Oo,arguments[0],Ao(arguments)))}var vo=j(function(e){return qt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const No=vo;function dn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Zt.apply(this,No(arguments))}var xo=j(function(e){return At(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"]=ht.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,pe(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,[],Nt([],Lo,function(e,n,o,a){var s=ln(function(i,l){var c=o(l),u=e(Q(c,i)?i[c]:pe(n,!1),l);return u&&u["@@transducer/reduced"]?ie(i):(i[c]=u,i)});return sn(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)?[]:qt(e)?"":Wt(e)?{}:Ze(e)?function(){return arguments}():zo(e)?e.constructor.from(""):void 0}),Vo=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=ie(this.xf["@@transducer/step"](e,n))),e},t}();function Go(t){return function(e){return new Vo(t,e)}}var jo=z(Nt(["find"],Go,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}}));const Fo=jo;var Yo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=ie(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Uo(t){return function(e){return new Yo(t,e)}}var Ho=z(Nt([],Uo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1}));const Wo=Ho;var Ko=z(he("groupBy",Co(function(t,e){return t.push(e),t},[])));const qo=Ko;var Zo=X(function(e,n,o){return At(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})});const Xo=Zo;var Jo=z(tn);const Qo=Jo;var ta=z(function(e,n){return At(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(fe(o)+' does not have a method named "'+n+'"')})});const fn=ta;var ea=j(function(e){return e!=null&&Ut(e,Ro(e))});const na=ea;var ra=z(function(e,n){return function(o){return function(a){return lt(function(s){return n(s,a)},o(e(a)))}}}),oa=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)?on(i,a):a[i],s+=1}return a})}),aa=z(function(e,n){return oa([e],n)[0]});const ge=aa;var sa=j(function(e){return ra(yt(e),wo(e))});const ia=sa;var la=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}),ca=X(function t(e,n,o){return la(function(a,s,i){return Wt(s)&&Wt(i)?t(e,s,i):e(a,s,i)},n,o)}),ua=z(function(e,n){return ca(function(o,a,s){return s},e,n)});const da=ua;var fa=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 ma=fa;var mn=function(t){return{value:t,map:function(e){return mn(e(t))}}},pa=X(function(e,n,o){return e(function(a){return mn(n(a))})(o).value});const ha=pa;var ga=X(function(e,n,o){return e(yt(n,o))});const pn=ga;var ya=X(function(e,n,o){return o.replace(e,n)});const ba=ya;var Sa=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)});const wa=Sa;var Ta=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 hn=Ta;var _a=fn(1,"split");const kt=_a;var $a=fn(0,"toLowerCase");const gn=$a;var Dt=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,ka="",Oa=typeof String.prototype.trim=="function",Ea=j(!Oa||Dt.trim()||!ka.trim()?function(e){var n=new RegExp("^["+Dt+"]["+Dt+"]*"),o=new RegExp("["+Dt+"]["+Dt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Xt=Ea,yn=Symbol("I18nContext"),K=r.reactive({messages:{},locale:"",fallbackLocale:""}),bn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=n;const o=(c,u={})=>{const p=!na(u),m=lt(Xt,kt(".",c));return r.computed(()=>{const f=Sn(m);return p?Aa(f,u):f}).value},a=c=>{const u=lt(Xt,kt(".",c));return!!ye(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(yn,l),{translate:o}},ct=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=Pa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},Pa=()=>{const t=r.inject(yn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Sn=(t=[])=>{let e=ye(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ye(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ye(t,e,n){return ge([t,...e],n)}const Aa=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},wn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=lt(Xt,kt(".",t.path)),o=Sn(n),a=kt(/{|}/,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)}}),Tn="https://api.icehockey.hu/vbr",_n="https://www.jegkorongszovetseg.hu/event/game/{gameId}",$n="https://jegkorongszovetseg.hu/assets/images/player_blank.png",kn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",On="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",En="https://api.icehockey.hu/static/api/flag",at="original",b="descend",B="ascend",Pn=new Map().set("hu","hu-hu").set("en","hu-gb"),An=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),va=1e3*60*5,vn=1e3,Na={"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"},xa=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),Da=[xa];function Ma(t,e){return r.openBlock(),r.createElementBlock("svg",Na,Da)}const Nn={render:Ma},La={"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"},Ca=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),Ba=[Ca];function Ia(t,e){return r.openBlock(),r.createElementBlock("svg",La,Ba)}const za={render:Ia},Ra={"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"},Va=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),Ga=[Va];function ja(t,e){return r.openBlock(),r.createElementBlock("svg",Ra,Ga)}const Fa={render:ja};function Mt(t){return t.split("-")[1]}function be(t){return t==="y"?"height":"width"}function bt(t){return t.split("-")[0]}function Lt(t){return["top","bottom"].includes(bt(t))?"x":"y"}function xn(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=Lt(e),c=be(l),u=o[c]/2-a[c]/2,p=l==="x";let m;switch(bt(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(Mt(e)){case"start":m[l]-=u*(n&&p?-1:1);break;case"end":m[l]+=u*(n&&p?-1:1)}return m}const Ya=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}=xn(u,o,c),d=o,f={},h=0;for(let g=0;g<l.length;g++){const{name:y,fn:_}=l[g],{x:k,y:E,data:v,reset:A}=await _({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}},A&&h<=50&&(h++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(u=A.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):A.rects),{x:p,y:m}=xn(u,d,c)),g=-1)}return{x:p,y:m,placement:d,strategy:a,middlewareData:f}};function Dn(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 Mn(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=Dn(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})),_=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:_,offsetParent:k,strategy:c}):_);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 Ua=Math.min,Ha=Math.max;function Se(t,e,n){return Ha(t,Ua(e,n))}const Ln=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=Dn(o),m={x:a,y:s},d=Lt(i),f=be(d),h=await c.getDimensions(n),g=d==="y",y=g?"top":"left",_=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],A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(n));let M=A?A[k]:0;M&&await(c.isElement==null?void 0:c.isElement(A))||(M=u.floating[k]||l.floating[f]);const I=E/2-v/2,V=p[y],L=M-h[f]-p[_],x=M/2-h[f]/2+I,R=Se(V,x,L),H=Mt(i)!=null&&x!=R&&l.reference[f]/2-(x<V?p[y]:p[_])-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 Wa={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Wa[e])}function Ka(t,e,n){n===void 0&&(n=!1);const o=Mt(t),a=Lt(t),s=be(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 qa={start:"end",end:"start"};function we(t){return t.replace(/start|end/g,e=>qa[e])}const Za=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=bt(o),_=bt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(_||!h?[Qt(i)]:function(R){const H=Qt(R);return[we(R),H,we(H)]}(i));m||f==="none"||E.push(...function(R,H,P,$){const T=Mt(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[]}}(bt(R),P==="start",$);return T&&(O=O.map(w=>w+"-"+T),H&&(O=O.concat(O.map(we)))),O}(i,h,f,k));const v=[i,...E],A=await Mn(e,g),M=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&M.push(A[y]),p){const{main:R,cross:H}=Ka(o,s,k);M.push(A[R],A[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 P=(L=I.filter($=>$.overflows[0]<=0).sort(($,T)=>$.overflows[1]-T.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(d){case"bestFit":{var x;const $=(x=I.map(T=>[T.placement,T.overflows.filter(O=>O>0).reduce((O,w)=>O+w,0)]).sort((T,O)=>T[1]-O[1])[0])==null?void 0:x[0];$&&(P=$);break}case"initialPlacement":P=i}if(o!==P)return{reset:{placement:P}}}return{}}}},Xa=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=bt(l),d=Mt(l),f=Lt(l)==="x",h=["left","top"].includes(m)?-1:1,g=p&&f?-1:1,y=typeof i=="function"?i(s):i;let{mainAxis:_,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:_*h}:{x:_*h,y:k*g}}(e,t);return{x:n+a.x,y:o+a.y,data:a}}}};function Ja(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:_,y:k}=y;return{x:_,y:k}}},...c}=t,u={x:n,y:o},p=await Mn(e,c),m=Lt(bt(a)),d=Ja(m);let f=u[m],h=u[d];if(s){const y=m==="y"?"bottom":"right";f=Se(f+p[m==="y"?"top":"left"],f,f-p[y])}if(i){const y=d==="y"?"bottom":"right";h=Se(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 Cn(t){return t instanceof J(t).Node}function ut(t){return Cn(t)?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof J(t).HTMLElement}function Z(t){return t instanceof J(t).Element}function Bn(t){return typeof ShadowRoot>"u"?!1:t instanceof J(t).ShadowRoot||t instanceof ShadowRoot}function Ct(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 ts(t){return["table","td","th"].includes(ut(t))}function Te(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 In=Math.min,Bt=Math.max,ee=Math.round;function zn(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 Rn(t){return Z(t)?t:t.contextElement}const Vn={x:1,y:1};function Ot(t){const e=Rn(t);if(!et(e))return Vn;const n=e.getBoundingClientRect(),{width:o,height:a,fallback:s}=zn(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 Gn={x:0,y:0};function jn(t,e,n){var o,a;if(e===void 0&&(e=!0),!_e())return Gn;const s=t?J(t):window;return!n||e&&n!==s?Gn:{x:((o=s.visualViewport)==null?void 0:o.offsetLeft)||0,y:((a=s.visualViewport)==null?void 0:a.offsetTop)||0}}function St(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Rn(t);let i=Vn;e&&(o?Z(o)&&(i=Ot(o)):i=Ot(t));const l=jn(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&&Z(o)?J(o):o;let h=d.frameElement;for(;h&&o&&f!==d;){const g=Ot(h),y=h.getBoundingClientRect(),_=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(_.paddingLeft))*g.x,y.y+=(h.clientTop+parseFloat(_.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((Cn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fn(t){return St(dt(t)).left+ne(t).scrollLeft}function Et(t){if(ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Bn(t)&&t.host||dt(t);return Bn(e)?e.host:e}function Yn(t){const e=Et(t);return te(e)?e.ownerDocument.body:et(e)&&Ct(e)?e:Yn(e)}function It(t,e){var n;e===void 0&&(e=[]);const o=Yn(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),s=J(o);return a?e.concat(s,s.visualViewport||[],Ct(o)?o:[]):e.concat(o,It(o))}function Un(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=Bt(s.scrollWidth,s.clientWidth,l.scrollWidth,l.clientWidth),u=Bt(s.scrollHeight,s.clientHeight,l.scrollHeight,l.clientHeight);let p=-i.scrollLeft+Fn(a);const m=-i.scrollTop;return tt(l).direction==="rtl"&&(p+=Bt(s.clientWidth,l.clientWidth)-c),{width:c,height:u,x:p,y:m}}(dt(t));else if(Z(e))o=function(a,s){const i=St(a,!0,s==="fixed"),l=i.top+a.clientTop,c=i.left+a.clientLeft,u=et(a)?Ot(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=jn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return Jt(o)}function Hn(t,e){const n=Et(t);return!(n===e||!Z(n)||te(n))&&(tt(n).position==="fixed"||Hn(n,e))}function Wn(t,e){return et(t)&&tt(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Kn(t,e){const n=J(t);if(!et(t))return n;let o=Wn(t,e);for(;o&&ts(o)&&tt(o).position==="static";)o=Wn(o,e);return o&&(ut(o)==="html"||ut(o)==="body"&&tt(o).position==="static"&&!Te(o))?n:o||function(a){let s=Et(a);for(;et(s)&&!te(s);){if(Te(s))return s;s=Et(s)}return null}(t)||n}function es(t,e,n){const o=et(e),a=dt(e),s=n==="fixed",i=St(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!s)if((ut(e)!=="body"||Ct(a))&&(l=ne(e)),et(e)){const u=St(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else a&&(c.x=Fn(a));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}const ns={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=It(u).filter(y=>Z(y)&&ut(y)!=="body"),f=null;const h=tt(u).position==="fixed";let g=h?Et(u):u;for(;Z(g)&&!te(g);){const y=tt(g),_=Te(g);_||y.position!=="fixed"||(f=null),(h?!_&&!f:!_&&y.position==="static"&&f&&["absolute","fixed"].includes(f.position)||Ct(g)&&!_&&Hn(u,g))?d=d.filter(k=>k!==g):f=y,g=Et(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=Un(e,p,a);return u.top=Bt(m.top,u.top),u.right=In(m.right,u.right),u.bottom=In(m.bottom,u.bottom),u.left=Bt(m.left,u.left),u},Un(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"||Ct(s))&&(i=ne(n)),et(n))){const u=St(n);l=Ot(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:Z,getDimensions:function(t){return zn(t)},getOffsetParent:Kn,getDocumentElement:dt,getScale:Ot,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const a=this.getOffsetParent||Kn,s=this.getDimensions;return{reference:es(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 rs(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?[...Z(t)?It(t):t.contextElement?It(t.contextElement):[],...It(e)]:[];c.forEach(d=>{const f=!Z(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()}),Z(t)&&!l&&p.observe(t),Z(t)||!t.contextElement||l||p.observe(t.contextElement),p.observe(e));let m=l?St(t):null;return l&&function d(){const f=St(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 os=(t,e,n)=>{const o=new Map,a={platform:ns,...n},s={...a.platform,_c:o};return Ya(t,e,{...a,platform:s})},qn=(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 as({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||os(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:_})=>{_&&qn(y,_),h()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return g();f.value=rs(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 ss=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Ln({element:e.value,padding:n}).fn(o):{}:e?Ln({element:e,padding:n}).fn(o):{}}}},is=["data-placement"],$e={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:p,strategy:m}=as({placement:e.placement,middleware:[Za(),Qa({padding:5}),Xa(e.offset),ss({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 _;(_=u.value)!=null&&_.contains(y.target)||f()}),(y,_)=>(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,is)],64))}},ls=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],cs={key:0},us=["colspan"],ds={key:1},fs=["colspan"],ke={__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=He(o,{delay:vn}),{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($e,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:y,hide:_})=>[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:_,onFocus:y,onBlur:_,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(Nn),{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(Nn),{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(za),{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(Fa),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,ls)]),_: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",cs,[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,us)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",ds,[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,fs)])])):r.createCommentVNode("",!0)],2))}},ms={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ps=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),hs=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),gs=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ys=[ps,hs,gs];function bs(t,e){return r.openBlock(),r.createElementBlock("svg",ms,ys)}const Ss={render:bs},ws={__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(Ss),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Zn(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 wt=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return ge(kt(".",o),e)})},Xn=Symbol("ErrorProviderContext"),Jn=()=>{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||Zn(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(Xn,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}},Oe=()=>{const t=Ts();return{onError:t.onError,reset:t.reset}},Ts=()=>{const t=r.inject(Xn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},_s={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Jn();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"}}},ks={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"}}},Os=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Es=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=da({hu:$s,en:ks},t.messages),{translate:n}=bn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Ps(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const As=Os(Es,[["render",Ps]]),vs=["src"],Ns=["src","title"],Tt=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,vs)):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,Ns))],64))}}),xs={style:{"text-align":"center"}},Ee={__name:"LoadingIndicator",setup(t){const{t:e}=ct();return(n,o)=>(r.openBlock(),r.createElementBlock("div",xs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Ds({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 Ms={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ls=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Cs=[Ls];function Bs(t,e){return r.openBlock(),r.createElementBlock("svg",Ms,Cs)}const Is={render:Bs},zs={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"},Rs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Vs=[Rs];function Gs(t,e){return r.openBlock(),r.createElementBlock("svg",zs,Vs)}const js={render:Gs},Fs=["disabled"],Ys=["disabled"],Us={key:1,class:"is-disabled"},Hs=["disabled","onClick"],Ws={key:2,class:"is-disabled"},Ks=[r.createElementVNode("span",null,"...",-1)],qs=["disabled"],Zs=["disabled"],Xs={__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}=Ds({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(Is),{class:"icon paginator-left"})])],8,Fs),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,Ys)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Us,"...")),(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,Hs))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Ws,Ks)),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,qs)),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(js),{class:"icon paginator-left"})])],8,Zs)],2)):r.createCommentVNode("",!0)}},Pe={__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 Qn={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+)?$/,_=/\[([^\]]+)]|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(P){var $=["th","st","nd","rd"],T=P%100;return"["+P+($[(T-20)%10]||$[T]||$[0])+"]"}},E=function(P,$,T){var O=String(P);return!O||O.length>=$?P:""+Array($+1-O.length).join(T)+P},v={s:E,z:function(P){var $=-P.utcOffset(),T=Math.abs($),O=Math.floor(T/60),w=T%60;return($<=0?"+":"-")+E(O,2,"0")+":"+E(w,2,"0")},m:function P($,T){if($.date()<T.date())return-P(T,$);var O=12*(T.year()-$.year())+(T.month()-$.month()),w=$.clone().add(O,m),N=T-w<0,D=$.clone().add(O+(N?-1:1),m);return+(-(O+(T-w)/(N?w-D:D-w))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:f,w:p,d:u,D:h,h:c,m:l,s:i,ms:s,Q:d}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},A="en",M={};M[A]=k;var I=function(P){return P instanceof R},V=function P($,T,O){var w;if(!$)return A;if(typeof $=="string"){var N=$.toLowerCase();M[N]&&(w=N),T&&(M[N]=T,w=N);var D=$.split("-");if(!w&&D.length>1)return P(D[0])}else{var C=$.name;M[C]=$,w=C}return!O&&w&&(A=w),w||!O&&A},L=function(P,$){if(I(P))return P.clone();var T=typeof $=="object"?$:{};return T.date=P,T.args=arguments,new R(T)},x=v;x.l=V,x.i=I,x.w=function(P,$){return L(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var R=function(){function P(T){this.$L=V(T.locale,null,!0),this.parse(T)}var $=P.prototype;return $.parse=function(T){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)}(T),this.$x=T.x||{},this.init()},$.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},$.$utils=function(){return x},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(T,O){var w=L(T);return this.startOf(O)<=w&&w<=this.endOf(O)},$.isAfter=function(T,O){return L(T)<this.startOf(O)},$.isBefore=function(T,O){return this.endOf(O)<L(T)},$.$g=function(T,O,w){return x.u(T)?this[O]:this.set(w,T)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(T,O){var w=this,N=!!x.u(O)||O,D=x.p(T),C=function(Pt,q){var pt=x.w(w.$u?Date.UTC(w.$y,q,Pt):new Date(w.$y,q,Pt),w);return N?pt:pt.endOf(u)},Y=function(Pt,q){return x.w(w.toDate()[Pt].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(q)),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,Gt=(F<Vt?F+7:F)-Vt;return C(N?mt-Gt:mt+(6-Gt),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(T){return this.startOf(T,!1)},$.$set=function(T,O){var w,N=x.p(T),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(T,O){return this.clone().$set(T,O)},$.get=function(T){return this[x.p(T)]()},$.add=function(T,O){var w,N=this;T=Number(T);var D=x.p(O),C=function(W){var mt=L(N);return x.w(mt.date(mt.date()+Math.round(W*T)),N)};if(D===m)return this.set(m,this.$M+T);if(D===f)return this.set(f,this.$y+T);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()+T*Y;return x.w(F,this)},$.subtract=function(T,O){return this.add(-1*T,O)},$.format=function(T){var O=this,w=this.$locale();if(!this.isValid())return w.invalidDate||g;var N=T||"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(q,pt,Ce,re){return q&&(q[pt]||q(O,N))||Ce[pt].slice(0,re)},Vt=function(q){return x.s(C%12||12,q,"0")},Gt=w.meridiem||function(q,pt,Ce){var re=q<12?"AM":"PM";return Ce?re.toLowerCase():re},Pt={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:Gt(C,Y,!0),A:Gt(C,Y,!1),m:String(Y),mm:x.s(Y,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:D};return N.replace(_,function(q,pt){return pt||Pt[q]||D.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(T,O,w){var N,D=x.p(O),C=L(T),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(T,O){if(!T)return this.$L;var w=this.clone(),N=V(T,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()},P}(),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(P){H[P[1]]=function($){return this.$g($,P[0],P[1])}}),L.extend=function(P,$){return P.$i||(P($,R,L),P.$i=!0),L},L.locale=V,L.isDayjs=I,L.unix=function(P){return L(1e3*P)},L.en=M[A],L.Ls=M,L.p={},L})})(Qn);var tr=Qn.exports;const U=ft(tr);var er={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 _=this.$utils().u;if(_(g))return this.$u?0:_(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(A){A===void 0&&(A="");var M=A.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,_){if(g&&this.$u===g.$u)return h.call(this,g,y,_);var k=this.local(),E=l(g).local();return h.call(k,E,y,_)}}})})(er);var Js=er.exports;const Qs=ft(Js);var nr={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(_,k){k===void 0&&(k={});var E=k.timeZoneName||"short",v=_+"|"+E,A=o[v];return A||(A=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[v]=A),A}(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 _=h[y],k=_.type,E=_.value,v=n[k];v>=0&&(g[v]=parseInt(E,10))}var A=g[3],M=A===24?0:A,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}),_=Math.round((g-new Date(y))/1e3/60),k=i(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-_,!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,_=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(),_,y),E=k[0],v=k[1],A=i(E).utcOffset(v);return A.$x.$timezone=y,A},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){l=d}}})})(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){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)}}})})(rr);var ni=rr.exports;const ri=ft(ni);var or={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)}}})})(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){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))}}})})(ar);var si=ar.exports;const ii=ft(si);var sr={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(_,k,E){return k||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,p)}}})})(sr);var li=sr.exports;const ci=ft(li);var ir={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,_=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 A=k[v];A.d&&(h=d?a(u).diff(m,A.d,!0):m.diff(u,A.d,!0));var M=(n.rounding||Math.round)(Math.abs(h));if(y=h>0,M<=A.r||!A.r){M<=1&&v>0&&(A=k[v-1]);var I=_[A.l];f&&(M=f(""+M)),g=typeof I=="string"?I.replace("%d",M):I(M,p,A.l,y);break}}if(p)return g;var V=y?_.future:_.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)}}})})(ir);var ui=ir.exports;const di=ft(ui);var fi={exports:{}};(function(t,e){(function(n,o){t.exports=o(tr)})(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})})(fi),U.extend(Qs),U.extend(ei),U.extend(ri),U.extend(di),U.extend(ci),U.extend(ai),U.extend(ii);const lr=()=>U.tz.guess(),_t=(t="",e="",n="",o="hu")=>(n=n||U.tz.guess(),U(t).isValid()?U(t).tz(n).locale(o).format(e):""),zt=(t="",e="",n="hu")=>{if(!U(t).isValid())return"";e=e||U.tz.guess();const a=new Intl.DateTimeFormat(mi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},mi=t=>Pn.get(t),Ae=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},cr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},ur=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(":")},ve=(t,e="day")=>U().isSameOrBefore(U(t),e),pi=(t,e,n)=>U(t).isBetween(e,U(n)),hi=(t,e,n="month")=>U(t).isSame(e,n),gi=(t,e="hu")=>U(t).locale(e).toNow(!0),yi=["onClick"],bi={__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(()=>zt(new Date,null,n.locale)),i=lr(),l=r.computed(()=>Array.from(An.values()).map(u=>({...u,isActive:zt(new Date,n.currentZone,n.locale)===zt(new Date,u.timezone,n.locale),zoneOffsetName:zt(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(wn),{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,yi))),128))],2))}},Ne=(t,e="",n={})=>{const o=r.ref(""),{t:a}=ct(),s=r.computed(()=>{if(r.unref(e))try{const c=dr(r.unref(t),r.unref(e));return ma(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}},dr=(t,e="")=>{const n=lt(Xt,kt(",",e)),o=gt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n};class xe extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Rt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Si={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},wi={class:"is-portrait-image"},Ti={class:"is-team-name-long"},_i={class:"is-team-name-short"},$i={class:"is-team-name-long"},ki={class:"is-team-name-short"},Oi={class:"is-team-name-long"},Ei={class:"is-team-name-short"},Pi=["href"],Ai={class:"is-team-name-long"},vi={class:"is-team-name-short"},Ni=["href"],xi={key:0,class:"is-text-dark"},Di=["href","target"],Mi={__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}=Oe(),{columns:i,error:l}=Ne(o,a,r.computed(()=>({offsetName:n.offsetName})));l.value&&s(new xe(Rt.message,{...Rt.options,cause:{column:l.value}}));const c=u=>e("sort",u);return(u,p)=>(r.openBlock(),r.createBlock(Pe,null,{default:r.withCtx(({el:m})=>[r.createVNode(ke,{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",wi,[(r.openBlock(),r.createBlock(Tt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref($n)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var f,h;return[(r.openBlock(),r.createBlock(Tt,{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(Tt,{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(Tt,{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",Ti,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",_i,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",$i,r.toDisplayString((f=d.homeTeam)==null?void 0:f.longName),1),r.createElementVNode("span",ki,r.toDisplayString((h=d.homeTeam)==null?void 0:h.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var f,h;return[r.createElementVNode("span",Oi,r.toDisplayString((f=d.awayTeam)==null?void 0:f.longName),1),r.createElementVNode("span",Ei,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",xi,"-:-")):(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,Di))]),loading:r.withCtx(()=>[r.createVNode(Ee)]),_: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",Ai,r.toDisplayString((f=d.team)==null?void 0:f.longName),1),r.createElementVNode("span",vi,r.toDisplayString((h=d.team)==null?void 0:h.shortName),1)],8,Pi)]}),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,Ni)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},fr={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:""}},Li={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction: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}]}},Ci={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}]}},Bi={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}]}},Ii={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}]}},zi={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:B}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:B}]},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}]}},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}]},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}]}},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}]},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}]}},Gi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},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}]}},ji={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},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}]}},Fi={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:B}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},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}]}},mr=async(t,e,n)=>{const o=`${Tn}${r.unref(t)}?${Yi(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Ui(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Yi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Ui=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?"dd8adf5fdb738b3741fa579b5ede5ce69b681f62":"")},Hi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>ve(u,"day");return ze(n,()=>{if(!a)return;const u=Wo(pn(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Wi=({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}=Fe(()=>mr(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,n){"use strict";const nt=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 fn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o,a,s=r.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}return i}var mn;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(mn||(mn={}));var Yi={type:"xstate.init"};function Ne(t){return t===void 0?[]:[].concat(t)}function pn(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 hn(t,e){return{value:t,context:e,actions:[],changed:!1,matches:xe(t)}}function gn(t,e,r){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,r):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,r):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Hi(t,e){e===void 0&&(e={});var r=fn(gn(Ne(t.states[t.initial].entry).map(function(i){return pn(i,e.actions)}),t.context,Yi),2),o=r[0],a=r[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 hn(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=fn(gn((L?Ne(M):[].concat(h.exit,M,R.entry).filter(function(w){return w})).map(function(w){return pn(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 hn(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 r=e===B?"DIRECTION2":"DIRECTION1";return Wi.transition(t,r).value};function Zi(t={}){const{sortTarget:e=null,orders:r=[]}=t,o=n.reactive({sortTarget:e,orders:r});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ki(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function qi(t=!1,e=ot,r=ot){const o=Dn();n.watch(o,a=>{if(n.unref(t)){if(a==="visible")return e();r()}})}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,r=[],o=!1){if(e){const a=r.map(l=>o?qt(he(l),Ut(e)):qt(gt(l),fr,Ko(fr(e)))),s=xo(l=>l.name?ua(ra("name"),pa(",",""),l):l),i=tr(qt(s,po([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===at)return this;const r=Ho(Ut(B),ir(fe),ir(Bo));return this.result=dr(e.orders.map(o=>lr(r(o.direction),gt)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((r,o,a)=>{const s=r[r.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,r.push(o),r},[]),this},addContinuousIndex(){return this.result=this.result.map((e,r)=>({...e,index:r+1})),this},pagination(e,r){if(!r)return this;e=Number(e),r=Number(r);const o=(e-1)*r,a=o+r;return this.result=this.result.slice(o,a),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",r="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Ot(o.gameDate,"L dddd",e,r),gameDateTime:Ot(o.gameDate,"HH:mm",e,r)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(r=>new Date(r.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(r=>(e.map(o=>r[o]?r[`${o}Sec`]=Ae(r[o]):r),r)),this},groupByDays(){return this.result=Yo(e=>Ot(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Ji=(t,...e)=>lt(lr(...e))(t),Qi=t=>{var e,r,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((r=t.player)==null?void 0:r.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},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")=>r=>({...r,gameDateDate:Ot(r.gameDate,"L dddd",t,e),gameDateTime:Ot(r.gameDate,"HH:mm",t,e)}),rl=t=>e=>({...e,gameResult:fl(e)}),nl=t=>({...t,opponent:dl(t)}),ol=t=>({...t,resultType:ml(t)}),al=(t=[])=>e=>{var r;return{...e,[t]:(r=e[t])==null?void 0:r.toUpperCase()}},sl=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Sec`]=Ae(e[r]):e),e),il=(t=[])=>e=>(t.map(r=>e[r]?e[`${r}Min`]=sn(e[r]):e),e),ll=(t=[])=>e=>(t.map(r=>e[`${r}Min`]=an(e[r])),e),cl=dr([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),fe(gt("id")),fe(gt("gameId"))]),ul=ga((t=>(e,r)=>e[t].localeCompare(r[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 r=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(r=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[r,o].join(":")}function ml(t){const e=t.gameResult.split(":"),r=e[0]>e[1],o=e[0]<e[1];return r&&t.isOvertime?"OTW":r&&t.isShootout?"SOW":r?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const pl=(t,e={})=>{const r=De("gameResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||br,e))},hl=(t,e={})=>{const r=De("teamResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||_r,e))},gl=(t,e={})=>{const r=De("playerResolver")||t;return typeof r=="function"?r(e):encodeURI(St(r||wr,e))},yl=(t,e="1x1")=>`${Tr}/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=n.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),wl=n.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),_l=n.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Tl=[Sl,wl,_l];function $l(t,e){return n.openBlock(),n.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=n.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Al=n.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Pl=n.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),vl=[El,Al,Pl];function Nl(t,e){return n.openBlock(),n.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=n.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),Ll=n.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Cl=[Ml,Ll];function Bl(t,e){return n.openBlock(),n.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=n.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),Vl=n.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 n.openBlock(),n.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"},rc=["href","target"],nc={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,r=n.ref(null),{onError:o}=ke(),{columns:a,error:s}=Pe(un,n.computed(()=>e.hideColumns),n.computed(()=>({offsetName:e.offsetName})));Tn(s,()=>o(new ve(zt.message,{...zt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(Ee,null,{default:n.withCtx(({el:u})=>[n.createVNode($e,{columns:n.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":r.value||u},{"cell-homeTeamName":n.withCtx(({row:p})=>[n.createElementVNode("span",Yl,n.toDisplayString(p.homeTeam.longName),1),n.createElementVNode("span",Ul,n.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":n.withCtx(({row:p})=>[n.createElementVNode("span",Hl,n.toDisplayString(p.awayTeam.longName),1),n.createElementVNode("span",Wl,n.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":n.withCtx(({row:p})=>[(n.openBlock(),n.createBlock(wt,{class:"is-logo-image is-right",key:p.homeTeam.id,src:p.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":n.withCtx(({row:p})=>[(n.openBlock(),n.createBlock(wt,{class:"is-logo-image is-right",key:p.awayTeam.id,src:p.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":n.withCtx(({row:p})=>[p.gameStatus===0?(n.openBlock(),n.createElementBlock("span",Kl,"-:-")):(n.openBlock(),n.createElementBlock("a",{key:1,href:t.externalGameResolver(p.gameId),target:t.externalGameResolverTarget,class:n.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},n.toDisplayString(p.homeTeamScore)+":"+n.toDisplayString(p.awayTeamScore),11,Zl))]),"cell-gameResultType":n.withCtx(({row:p})=>[p.isOvertime?(n.openBlock(),n.createElementBlock("span",ql,n.toDisplayString(n.unref(i)("common.overtimeShort")),1)):n.createCommentVNode("",!0),p.isShootout?(n.openBlock(),n.createElementBlock("span",Xl,n.toDisplayString(n.unref(i)("common.shootoutShort")),1)):n.createCommentVNode("",!0),p.seriesStandings?(n.openBlock(),n.createElementBlock("span",Jl,n.toDisplayString(p.seriesStandings),1)):n.createCommentVNode("",!0)]),"cell-broadcast":n.withCtx(({row:p})=>[p.broadcast?(n.openBlock(),n.createBlock(n.unref(kl),{key:0})):(n.openBlock(),n.createElementBlock("span",Ql))]),"cell-location":n.withCtx(({row:p})=>{var m;return[n.createTextVNode(n.toDisplayString(((m=p.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":n.withCtx(({row:p})=>[n.createVNode(Te,{offset:2,placement:"left",theme:"content","append-to":u},{default:n.withCtx(({setRef:m,show:d,hide:f})=>[n.createElementVNode("button",{ref:m,onClick:n.withModifiers(d,["stop"]),onFocus:d,onBlur:f},[n.createVNode(n.unref(xl))],40,tc)]),content:n.withCtx(()=>[n.createElementVNode("ul",ec,[n.createElementVNode("li",null,[n.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[n.createVNode(n.unref(Il),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.report")),1)],8,rc)]),p.video?(n.openBlock(),n.createElementBlock("li",nc,[n.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[n.createVNode(n.unref(Fl),{width:"14"}),n.createTextVNode(" "+n.toDisplayString(n.unref(i)("common.video")),1)],8,oc)])):n.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:n.withCtx(()=>[n.createVNode(Oe)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),n.createElementVNode("div",{ref_key:"tooltipContainer",ref:r},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 r=t,{t:o}=ct(),a=n.computed({get(){return r.championshipId},set(i){e("onChangeSeason",i)}});function s(i){e("onChangeSection",i)}return(i,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",sc,[n.createElementVNode("div",null,[n.createElementVNode("label",{for:"season",class:n.normalizeClass(n.unref(nt)("label"))},n.toDisplayString(n.unref(o)("selection.season")),3),n.createVNode(Le,{id:"season",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.seasons,c=>(n.openBlock(),n.createElementBlock("option",{key:c.championshipId,value:c.championshipId},n.toDisplayString(c.seasonName),9,ic))),128))]),_:1},8,["modelValue"])]),n.renderSlot(i.$slots,"default")]),t.isSectionSelectionDisabled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",lc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.sections,c=>(n.openBlock(),n.createElementBlock("button",{key:c.phaseId,onClick:u=>s(c),class:n.normalizeClass([n.unref(nt)("tab-button"),{"is-active":c.sectionId===t.sectionId}])},n.toDisplayString(c.sectionName),11,cc))),128))]))],64))}},dc={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:""}},fc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},mc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},pc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},hc=({modules:t=[],apiKey:e,gameResolver:r,teamResolver:o,playerResolver:a})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:e,gameResolver:r,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=kr,S.BaseSelect=Le,S.COLUMNS_FIELD_PLAYERS=Di,S.COLUMNS_FIELD_PLAYERS_PENALTY=Mi,S.COLUMNS_GOALIES=Li,S.COLUMNS_SCHEDULE=un,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=br,S.DEFAULT_EXTERNAL_PLAYER_URL=wr,S.DEFAULT_EXTERNAL_TEAM_URL=_r,S.DEFAULT_PORTRAIT_IMAGE_URL=Sr,S.DataTable=$e,S.ErrorNotice=gs,S.ErrorProvider=bs,S.FLAG_BASE_URL=Tr,S.FloatingPanel=Te,S.I18NProvider=ks,S.Image=wt,S.InvalidSeasonName=hi,S.LAZY_LOADING_STATE_DELAY=Or,S.LOCALE_FOR_LANG=$r,S.LoadingIndicator=Oe,S.Paginator=Ws,S.REFRESH_DELAY=Oa,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.TimezoneSelector=pi,S.UndefinedColumn=zt,S.VBR_API_BASE_URL=yr,S.WidgetError=ve,S.appendTo=Ur,S.baseProps=dc,S.convert=Xi,S.convertMinToMinSec=sn,S.convertMinToSec=Ae,S.convertSecToMin=an,S.convertTimes=sl,S.convertTimesMinToMinSec=il,S.convertTimesSecToMin=ll,S.createConfig=hc,S.createI18n=pr,S.externalGameLinkResolver=pl,S.externalPlayerLinkResolver=gl,S.externalTeamLinkResolver=hl,S.fetchVBRData=dn,S.flagResolver=yl,S.format=Ot,S.gameDateTime=el,S.gameProps=pc,S.gameResult=rl,S.getLocalTimezone=on,S.i18n=gr,S.isBetween=ui,S.isSame=di,S.isSameOrBefore=ln,S.localeSort=ul,S.offsetName=It,S.playerName=Qi,S.playerStatsProps=mc,S.rawConvert=Ji,S.sortGames=cl,S.teamName=tl,S.teamOpponent=nl,S.teamResultType=ol,S.teamStatsProps=fc,S.templateReplacer=St,S.toKebabCase=Hr,S.upperCase=al,S.useColumns=Pe,S.useError=ke,S.useErrorProvider=Kr,S.useI18n=ct,S.useLazyLoadingState=Fe,S.useMainClass=nt,S.usePage=ji,S.useServices=Fi,S.useSort=Zi,S.useVisibilityChange=qi,S.validateColumnsName=cn,S.yearToNow=fi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);
|
|
22
|
+
***************************************************************************** */function pr(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 hr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(hr||(hr={}));var Ki={type:"xstate.init"};function De(t){return t===void 0?[]:[].concat(t)}function gr(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 Me(t){return function(e){return t===e}}function qi(t){return typeof t=="string"?{type:t}:t}function yr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Me(t)}}function br(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 Zi(t,e){e===void 0&&(e={});var n=pr(br(De(t.states[t.initial].entry).map(function(i){return gr(i,e.actions)}),t.context,Ki),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Me(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=qi(l),h=t.states[m];if(h.on){var g=De(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),_=y.next();!_.done;_=y.next()){var k=_.value;if(k===void 0)return yr(m,d);var E=typeof k=="string"?{target:k}:k,v=E.target,A=E.actions,M=A===void 0?[]:A,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=pr(br((L?De(M):[].concat(h.exit,M,R.entry).filter(function(w){return w})).map(function(w){return gr(w,s._options.actions)}),d,f),3),P=H[0],$=H[1],T=H[2],O=v??m;return{value:O,context:$,actions:P,changed:v!==m||P.length>0||T,matches:Me(O)}}}}catch(w){c={error:w}}finally{try{_&&!_.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return yr(m,d)}};return s}const Xi=Zi({id:"sort",initial:at,states:{[at]:{on:{DIRECTION1:b,DIRECTION2:B}},[b]:{on:{DIRECTION1:B,DIRECTION2:at}},[B]:{on:{DIRECTION1:at,DIRECTION2:b}}}}),Ji=(t,e)=>{const n=e===B?"DIRECTION2":"DIRECTION1";return Xi.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:Ji(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function tl(t=!1,e=ot,n=ot){const o=Mr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const el=(t={})=>{const{items:e=[],element:n,offset:o=0}=t,a=i=>ve(i,"day");ze(e,async()=>{const i=Fo(pn(a,"gameDate"))(r.unref(e));if(!i)return;const l=_t(i.gameDate,"YYYY-MM-DD");await r.nextTick();const c=$t(n).querySelector(`div[data-gamedate="${l}"]`);c&&window.scrollTo(0,c.offsetTop-r.unref(o))})},nl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.filteredRowsLength,totalItems:this.isFiltered?this.filteredRowsLength:t.length}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?Zt(ge(l),Ut(e)):Zt(yt(l),gn,Qo(gn(e)))),s=Do(l=>l.name?ha(ia("name"),ba(",",""),l):l),i=nn(Zt(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=Xo(Ut(B),un(me),un(Io));return this.result=hn(e.orders.map(o=>dn(n(o.direction),yt)(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:_t(o.gameDate,"L dddd",e,n),gameDateTime:_t(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=qo(e=>_t(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),rl=(t,...e)=>lt(dn(...e))(t),ol=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}`}}},al=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},sl=(t="",e="hu")=>n=>({...n,gameDateDate:_t(n.gameDate,"L dddd",t,e),gameDateTime:_t(n.gameDate,"HH:mm",t,e)}),il=t=>e=>({...e,gameResult:yl(e)}),ll=t=>({...t,opponent:gl(t)}),cl=t=>({...t,resultType:bl(t)}),ul=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},dl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ae(e[n]):e),e),fl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=ur(e[n]):e),e),ml=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=cr(e[n])),e),pl=hn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),me(yt("id")),me(yt("gameId"))]),hl=wa((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function gl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function yl(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 bl(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 Sl=(t,e={})=>{const n=Le("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||_n,e))},wl=(t,e={})=>{const n=Le("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||On,e))},Tl=(t,e={})=>{const n=Le("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||kn,e))},_l=(t,e="1x1")=>`${En}/flag:${t}-${e}.svg`,Le=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},$l=()=>{window.scrollTo(0,0)},kl={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"},Ol=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),El=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),Pl=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),Al=[Ol,El,Pl];function vl(t,e){return r.openBlock(),r.createElementBlock("svg",kl,Al)}const Nl={render:vl},xl={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"},Dl=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),Ml=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Ll=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Cl=[Dl,Ml,Ll];function Bl(t,e){return r.openBlock(),r.createElementBlock("svg",xl,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:"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),Vl=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Gl=[Rl,Vl];function jl(t,e){return r.openBlock(),r.createElementBlock("svg",zl,Gl)}const Fl={render:jl},Yl={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"},Ul=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),Hl=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Wl=[Ul,Hl];function Kl(t,e){return r.openBlock(),r.createElementBlock("svg",Yl,Wl)}const ql={render:Kl},Zl={class:"is-team-name-long"},Xl={class:"is-team-name-short"},Jl={class:"is-team-name-long"},Ql={class:"is-team-name-short"},tc={key:0,class:"is-text-dark"},ec=["href","target"],nc={key:0,class:"label"},rc={key:1,class:"label"},oc={key:2,class:"label"},ac={key:1},sc=["onClick","onFocus","onBlur"],ic={class:"is-dropdown-menu"},lc=["href","target"],cc={key:0},uc=["href"],dc={__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}=Oe(),{columns:a,error:s}=Ne(fr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));$r(s,()=>o(new xe(Rt.message,{...Rt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=ct();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Pe,null,{default:r.withCtx(({el:u})=>[r.createVNode(ke,{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",Zl,r.toDisplayString(p.homeTeam.longName),1),r.createElementVNode("span",Xl,r.toDisplayString(p.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:p})=>[r.createElementVNode("span",Jl,r.toDisplayString(p.awayTeam.longName),1),r.createElementVNode("span",Ql,r.toDisplayString(p.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:p})=>[(r.openBlock(),r.createBlock(Tt,{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(Tt,{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",tc,"-:-")):(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,ec))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",nc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",rc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",oc,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:p})=>[p.broadcast?(r.openBlock(),r.createBlock(r.unref(Nl),{key:0})):(r.openBlock(),r.createElementBlock("span",ac))]),"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($e,{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(Il))],40,sc)]),content:r.withCtx(()=>[r.createElementVNode("ul",ic,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(p.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Fl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,lc)]),p.video?(r.openBlock(),r.createElementBlock("li",cc,[r.createElementVNode("a",{href:p.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(ql),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,uc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Ee)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},fc={class:"g-row g-gap-normal is-mb-5"},mc=["value"],pc={key:0},hc=["onClick"],gc={__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",fc,[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(Be,{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,mc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(i.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",pc,[(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,hc))),128))]))],64))}},yc={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:""}},bc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},Sc={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},wc={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Tc=({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=An,S.BaseSelect=Be,S.COLUMNS_FIELD_PLAYERS=Bi,S.COLUMNS_FIELD_PLAYERS_PENALTY=Ii,S.COLUMNS_GOALIES=zi,S.COLUMNS_SCHEDULE=fr,S.COLUMNS_SCORING_EFFICIENCY=Fi,S.COLUMNS_STANDINGS_P_2=Ci,S.COLUMNS_STANDINGS_P_3=Li,S.COLUMNS_TEAMS_FAIRPLAY=Vi,S.COLUMNS_TEAMS_PENALTY_KILLING=Gi,S.COLUMNS_TEAMS_POWERPLAY=ji,S.COLUMNS_TEAM_ATTENDANCE=Ri,S.DEFAULT_EXTERNAL_GAME_URL=_n,S.DEFAULT_EXTERNAL_PLAYER_URL=kn,S.DEFAULT_EXTERNAL_TEAM_URL=On,S.DEFAULT_PORTRAIT_IMAGE_URL=$n,S.DataTable=ke,S.ErrorNotice=ws,S.ErrorProvider=_s,S.FLAG_BASE_URL=En,S.FloatingPanel=$e,S.I18NProvider=As,S.Image=Tt,S.InvalidSeasonName=Si,S.LAZY_LOADING_STATE_DELAY=vn,S.LOCALE_FOR_LANG=Pn,S.LoadingIndicator=Ee,S.Paginator=Xs,S.REFRESH_DELAY=va,S.ResponsiveTable=Pe,S.SORT_STATE_ASCEND=B,S.SORT_STATE_DESCEND=b,S.SORT_STATE_ORIGINAL=at,S.ScheduleTable=dc,S.SeasonSelector=gc,S.StatisticsTable=Mi,S.TimezoneSelector=bi,S.UndefinedColumn=Rt,S.VBR_API_BASE_URL=Tn,S.WidgetError=xe,S.appendTo=qn,S.baseProps=yc,S.convert=nl,S.convertMinToMinSec=ur,S.convertMinToSec=Ae,S.convertSecToMin=cr,S.convertTimes=dl,S.convertTimesMinToMinSec=fl,S.convertTimesSecToMin=ml,S.createConfig=Tc,S.createI18n=bn,S.externalGameLinkResolver=Sl,S.externalPlayerLinkResolver=Tl,S.externalTeamLinkResolver=wl,S.fetchVBRData=mr,S.flagResolver=_l,S.format=_t,S.gameDateTime=sl,S.gameProps=wc,S.gameResult=il,S.getLocalTimezone=lr,S.i18n=wn,S.isBetween=pi,S.isSame=hi,S.isSameOrBefore=ve,S.localeSort=hl,S.offsetName=zt,S.playerName=ol,S.playerStatsProps=Sc,S.rawConvert=rl,S.scrollToTop=$l,S.sortGames=pl,S.teamName=al,S.teamOpponent=ll,S.teamResultType=cl,S.teamStatsProps=bc,S.templateReplacer=wt,S.toKebabCase=Zn,S.upperCase=ul,S.useColumns=Ne,S.useError=Oe,S.useErrorProvider=Jn,S.useI18n=ct,S.useLazyLoadingState=He,S.useMainClass=rt,S.usePage=Hi,S.useScrollToGameDate=el,S.useServices=Wi,S.useSort=Qi,S.useVisibilityChange=tl,S.validateColumnsName=dr,S.yearToNow=gi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S}({},Vue);
|