@mjsz-vbr-elements/core 2.1.0-beta.6 → 2.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.1.0-beta.
|
|
3
|
+
* version: v2.1.0-beta.7 - 17/09/2023, 20:50:16
|
|
4
4
|
* (c) 2023
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
8
|
var MjszVbrElementsCore=function(S,o){"use strict";const ft=t=>({}.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,dn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=ft("base-input"),i=o.computed({get:()=>r.modelValue,set:a=>e("update:modelValue",a)});return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l),class:o.normalizeClass([o.unref(n),"is-select"])},[o.renderSlot(a.$slots,"default")],2)),[[o.vModelSelect,i.value]])}};function Ae(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function tt(t){return typeof t=="function"?t():o.unref(t)}const Ct=typeof window<"u",at=()=>{},pn=mn();function mn(){var t;return Ct&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Qt(t,e=!1,r="Timeout"){return new Promise((n,i)=>{setTimeout(e?()=>i(r):n,t)})}function te(t,e=!1){function r(f,{flush:p="sync",deep:d=!1,timeout:g,throwOnTimeout:m}={}){let y=null;const T=[new Promise($=>{y=o.watch(t,D=>{f(D)!==e&&(y==null||y(),$(D))},{flush:p,deep:d,immediate:!0})})];return g!=null&&T.push(Qt(g,m).then(()=>tt(t)).finally(()=>y==null?void 0:y())),Promise.race(T)}function n(f,p){if(!o.isRef(f))return r(D=>D===f,p);const{flush:d="sync",deep:g=!1,timeout:m,throwOnTimeout:y}=p??{};let A=null;const $=[new Promise(D=>{A=o.watch([t,f],([x,I])=>{e!==(x===I)&&(A==null||A(),D(x))},{flush:d,deep:g,immediate:!0})})];return m!=null&&$.push(Qt(m,y).then(()=>tt(t)).finally(()=>(A==null||A(),tt(t)))),Promise.race($)}function i(f){return r(p=>!!p,f)}function a(f){return n(null,f)}function s(f){return n(void 0,f)}function l(f){return r(Number.isNaN,f)}function u(f,p){return r(d=>{const g=Array.from(d);return g.includes(f)||g.includes(tt(f))},p)}function c(f){return h(1,f)}function h(f=1,p){let d=-1;return r(()=>(d+=1,d>=f),p)}return Array.isArray(tt(t))?{toMatch:r,toContains:u,changed:c,changedTimes:h,get not(){return te(t,!e)}}:{toMatch:r,toBe:n,toBeTruthy:i,toBeNull:a,toBeNaN:l,toBeUndefined:s,changed:c,changedTimes:h,get not(){return te(t,!e)}}}function hn(t){return te(t)}function gn(t,e,r={}){const{immediate:n=!0}=r,i=o.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){i.value=!1,s()}function u(...c){s(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,t(...c)},tt(e))}return n&&(i.value=!0,Ct&&u()),Ae(l),{isPending:o.readonly(i),start:u,stop:l}}function yn(t,e,r){const n=o.watch(t,(...i)=>(o.nextTick(()=>n()),e(...i)),r)}function At(t){var e;const r=tt(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Te=Ct?window:void 0,bn=Ct?window.document:void 0;function It(...t){let e,r,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,n,i]=t,e=Te):[e,r,n,i]=t,!e)return at;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(h=>h()),a.length=0},l=(h,f,p,d)=>(h.addEventListener(f,p,d),()=>h.removeEventListener(f,p,d)),u=o.watch(()=>[At(e),tt(i)],([h,f])=>{s(),h&&a.push(...r.flatMap(p=>n.map(d=>l(h,p,d,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Ae(c),c}let Pe=!1;function wn(t,e,r={}){const{window:n=Te,ignore:i=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return;pn&&!Pe&&(Pe=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",at)));let l=!0;const u=p=>i.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(g=>g===p.target||p.composedPath().includes(g));{const g=At(d);return g&&(p.target===g||p.composedPath().includes(g))}}),h=[It(n,"click",p=>{const d=At(t);if(!(!d||d===p.target||p.composedPath().includes(d))){if(p.detail===0&&(l=!u(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:a}),It(n,"pointerdown",p=>{const d=At(t);d&&(l=!p.composedPath().includes(d)&&!u(p))},{passive:!0}),s&&It(n,"blur",p=>{var d;const g=At(t);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(g!=null&&g.contains(n.document.activeElement))&&e(p)})].filter(Boolean);return()=>h.forEach(p=>p())}var vn=Object.defineProperty,Sn=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,$e=(t,e,r)=>e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pn=(t,e)=>{for(var r in e||(e={}))An.call(e,r)&&$e(t,r,e[r]);if(Oe)for(var r of Oe(e))Tn.call(e,r)&&$e(t,r,e[r]);return t},On=(t,e)=>Sn(t,_n(e));function Ee(t,e,r){const{immediate:n=!0,delay:i=0,onError:a=at,onSuccess:s=at,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=r??{},h=u?o.shallowRef(e):o.ref(e),f=o.ref(!1),p=o.ref(!1),d=o.shallowRef(void 0);async function g(A=0,...T){l&&(h.value=e),d.value=void 0,f.value=!1,p.value=!0,A>0&&await Qt(A);const $=typeof t=="function"?t(...T):t;try{const D=await $;h.value=D,f.value=!0,s(D)}catch(D){if(d.value=D,a(D),c)throw D}finally{p.value=!1}return h.value}n&&g(i);const m={state:h,isReady:f,isLoading:p,error:d,execute:g};function y(){return new Promise((A,T)=>{hn(p).toBe(!1).then(()=>A(m)).catch(T)})}return On(Pn({},m),{then(A,T){return y().then(A,T)}})}function $n({document:t=bn}={}){if(!t)return o.ref("visible");const e=o.ref(t.visibilityState);return It(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var En=Object.defineProperty,ke=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Le=(t,e,r)=>e in t?En(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Dn=(t,e)=>{for(var r in e||(e={}))kn.call(e,r)&&Le(t,r,e[r]);if(ke)for(var r of ke(e))Ln.call(e,r)&&Le(t,r,e[r]);return t};async function xn(t){return new Promise((e,r)=>{const n=new Image,{src:i,srcset:a,sizes:s,class:l,loading:u,crossorigin:c}=t;n.src=i,a&&(n.srcset=a),s&&(n.sizes=s),l&&(n.className=l),u&&(n.loading=u),c&&(n.crossOrigin=c),n.onload=()=>e(n),n.onerror=r})}function Mn(t,e={}){const r=Ee(()=>xn(tt(t)),void 0,Dn({resetOnExecute:!0},e));return o.watch(()=>tt(t),()=>r.execute(e.delay),{deep:!0}),r}function De(t=[],e={}){const{delay:r=0}=e,n=o.ref(!1),i=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(u=>o.unref(u)).some(Boolean):l}),{start:a,stop:s}=gn(()=>{n.value=!0},r);return o.watch(i,l=>{if(l)return a();s(),n.value=!1},{immediate:!0,deep:!0}),n}function z(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Y(t){return function e(r){return arguments.length===0||z(r)?e:t.apply(this,arguments)}}function R(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return z(r)?e:Y(function(i){return t(r,i)});default:return z(r)&&z(n)?e:z(r)?Y(function(i){return t(i,n)}):z(n)?Y(function(i){return t(r,i)}):t(r,n)}}}function Bt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,i){return e.apply(this,arguments)};case 4:return function(r,n,i,a){return e.apply(this,arguments)};case 5:return function(r,n,i,a,s){return e.apply(this,arguments)};case 6:return function(r,n,i,a,s,l){return e.apply(this,arguments)};case 7:return function(r,n,i,a,s,l,u){return e.apply(this,arguments)};case 8:return function(r,n,i,a,s,l,u,c){return e.apply(this,arguments)};case 9:return function(r,n,i,a,s,l,u,c,h){return e.apply(this,arguments)};case 10:return function(r,n,i,a,s,l,u,c,h,f){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ee(t,e,r){return function(){for(var n=[],i=0,a=t,s=0;s<e.length||i<arguments.length;){var l;s<e.length&&(!z(e[s])||i>=arguments.length)?l=e[s]:(l=arguments[i],i+=1),n[s]=l,z(l)||(a-=1),s+=1}return a<=0?r.apply(this,n):Bt(a,ee(t,n,r))}}var zt=R(function(e,r){return e===1?Y(r):Bt(e,ee(e,[],r))});function rt(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return z(r)?e:R(function(a,s){return t(r,a,s)});case 2:return z(r)&&z(n)?e:z(r)?R(function(a,s){return t(a,n,s)}):z(n)?R(function(a,s){return t(r,a,s)}):Y(function(a){return t(r,n,a)});default:return z(r)&&z(n)&&z(i)?e:z(r)&&z(n)?R(function(a,s){return t(a,s,i)}):z(r)&&z(i)?R(function(a,s){return t(a,n,s)}):z(n)&&z(i)?R(function(a,s){return t(r,a,s)}):z(r)?Y(function(a){return t(a,n,i)}):z(n)?Y(function(a){return t(r,a,i)}):z(i)?Y(function(a){return t(r,n,a)}):t(r,n,i)}}}const Rt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Nn(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Gt(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Rt(n)){for(var i=0;i<t.length;){if(typeof n[t[i]]=="function")return n[t[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(Nn(n)){var a=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return a(n)}}return r.apply(this,arguments)}}function xe(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Me(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Ne(t,e,r){for(var n=0,i=r.length;n<i;){if(t(e,r[n]))return!0;n+=1}return!1}function Cn(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function In(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const re=typeof Object.is=="function"?Object.is:In;var Ce=Object.prototype.toString,Ie=function(){return Ce.call(arguments)==="[object Arguments]"?function(e){return Ce.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),Bn=!{toString:null}.propertyIsEnumerable("toString"),Be=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ze=function(){return arguments.propertyIsEnumerable("length")}(),zn=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},dt=Y(typeof Object.keys=="function"&&!ze?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,i=[],a=ze&&Ie(e);for(r in e)et(r,e)&&(!a||r!=="length")&&(i[i.length]=r);if(Bn)for(n=Be.length-1;n>=0;)r=Be[n],et(r,e)&&!zn(i,r)&&(i[i.length]=r),n-=1;return i}),ne=Y(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Re(t,e,r,n){var i=Me(t),a=Me(e);function s(l,u){return oe(l,u,r.slice(),n.slice())}return!Ne(function(l,u){return!Ne(s,u,l)},a,i)}function oe(t,e,r,n){if(re(t,e))return!0;var i=ne(t);if(i!==ne(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Cn(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&re(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!re(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(i){case"Map":return t.size!==e.size?!1:Re(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:Re(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=dt(t);if(s.length!==dt(e).length)return!1;var l=r.concat([t]),u=n.concat([e]);for(a=s.length-1;a>=0;){var c=s[a];if(!(et(c,e)&&oe(e[c],t[c],l,u)))return!1;a-=1}return!0}var Vt=R(function(e,r){return oe(e,r,[],[])});function Rn(t,e,r){var n,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(i=t[r],i===0&&1/i===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(i=t[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(Vt(t[r],e))return r;r+=1}return-1}function Ge(t,e){return Rn(e,t,0)>=0}function jt(t,e){for(var r=0,n=e.length,i=Array(n);r<n;)i[r]=t(e[r]),r+=1;return i}function ae(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Tt=function(e){return(e<10?"0":"")+e},Gn=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Tt(e.getUTCMonth()+1)+"-"+Tt(e.getUTCDate())+"T"+Tt(e.getUTCHours())+":"+Tt(e.getUTCMinutes())+":"+Tt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Vn(t){return function(){return!t.apply(this,arguments)}}function Ve(t,e,r){for(var n=0,i=r.length;n<i;)e=t(e,r[n]),n+=1;return e}function jn(t,e){for(var r=0,n=e.length,i=[];r<n;)t(e[r])&&(i[i.length]=e[r]),r+=1;return i}function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}var Fn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function Yn(t){return function(e){return new Fn(t,e)}}var je=R(Gt(["fantasy-land/filter","filter"],Yn,function(t,e){return Ft(e)?Ve(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},dt(e)):jn(t,e)})),Hn=R(function(e,r){return je(Vn(e),r)});function Fe(t,e){var r=function(s){var l=e.concat([t]);return Ge(s,l)?"<Circular>":Fe(s,l)},n=function(a,s){return jt(function(l){return ae(l)+": "+r(a[l])},s.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+jt(r,t).join(", ")+"))";case"[object Array]":return"["+jt(r,t).concat(n(t,Hn(function(a){return/^\d+$/.test(a)},dt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):ae(Gn(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":ae(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var i=t.toString();if(i!=="[object Object]")return i}return"{"+n(t,dt(t)).join(", ")+"}"}}var ie=Y(function(e){return Fe(e,[])}),Un=R(function(e,r){if(e===r)return r;function n(u,c){if(u>c!=c>u)return c>u?c:u}var i=n(e,r);if(i!==void 0)return i;var a=n(typeof e,typeof r);if(a!==void 0)return a===typeof e?e:r;var s=ie(e),l=n(s,ie(r));return l!==void 0&&l===s?e:r}),Wn=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),Kn=function(e){return function(r){return new Wn(e,r)}},qn=R(Gt(["fantasy-land/map","map"],Kn,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return zt(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Ve(function(n,i){return n[i]=e(r[i]),n},{},dt(r));default:return jt(e,r)}}));const pt=qn,Ye=Number.isInteger||function(e){return e<<0===e};function Yt(t){return Object.prototype.toString.call(t)==="[object String]"}var He=R(function(e,r){var n=e<0?r.length+e:e;return Yt(r)?r.charAt(n):r[n]}),Zn=R(function(e,r){if(r!=null)return Ye(e)?He(e,r):r[e]});const bt=Zn;var Xn=R(function(e,r){return pt(bt(e),r)}),Jn=Y(function(e){return Rt(e)?!0:!e||typeof e!="object"||Yt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Ue=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Qn(t,e,r){return function(i,a,s){if(Jn(s))return t(i,a,s);if(s==null)return a;if(typeof s["fantasy-land/reduce"]=="function")return e(i,a,s,"fantasy-land/reduce");if(s[Ue]!=null)return r(i,a,s[Ue]());if(typeof s.next=="function")return r(i,a,s);if(typeof s.reduce=="function")return e(i,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function to(t,e,r){for(var n=0,i=r.length;n<i;){if(e=t["@@transducer/step"](e,r[n]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}var eo=R(function(e,r){return Bt(e.length,function(){return e.apply(r,arguments)})});function ro(t,e,r){for(var n=r.next();!n.done;){if(e=t["@@transducer/step"](e,n.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function no(t,e,r,n){return t["@@transducer/result"](r[n](eo(t["@@transducer/step"],t),e))}var We=Qn(to,no,ro),oo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function Ke(t){return new oo(t)}var ao=rt(function(t,e,r){return We(typeof t=="function"?Ke(t):t,e,r)});const qe=ao;var io=Y(function(e){return function(){return e}});const Ze=io;var so=Y(function(e){return zt(qe(Un,0,Xn("length",e)),function(){for(var r=0,n=e.length;r<n;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});const lo=so;var co=rt(function(e,r,n){var i=e(r),a=e(n);return i<a?-1:i>a?1:0});const Xe=co;function uo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function fo(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function se(t,e,r){if(r||(r=new mo),po(t))return t;var n=function(a){var s=r.get(t);if(s)return s;r.set(t,a);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(a[l]=e?se(t[l],!0,r):t[l]);return a};switch(ne(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n([]);case"Date":return new Date(t.valueOf());case"RegExp":return fo(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function po(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var mo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){const n=this.hash(e);let i=this.map[n];i||(this.map[n]=i=[]),i.push([e,r]),this.length+=1},t.prototype.hash=function(e){let r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(const i in this.map){const a=this.map[i];for(let s=0;s<a.length;s+=1){const l=a[s];if(l[0]===e)return l[1]}}return}const r=this.hash(e),n=this.map[r];if(n)for(let i=0;i<n.length;i+=1){const a=n[i];if(a[0]===e)return a[1]}},t}();function ho(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function le(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return Rt(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var go=rt(le("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),yo=Y(le("tail",go(1,1/0)));const bo=yo;function Je(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Bt(arguments[0].length,qe(ho,arguments[0],bo(arguments)))}var wo=Y(function(e){return Yt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const vo=wo;function Qe(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Je.apply(this,vo(arguments))}var So=function(){function t(e,r,n,i){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(et(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,se(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t}();function _o(t,e,r){return function(n){return new So(t,e,r,n)}}var Ao=ee(4,[],Gt([],_o,function(e,r,n,i){var a=Ke(function(s,l){var u=n(l),c=e(et(u,s)?s[u]:se(r,!1),l);return c&&c["@@transducer/reduced"]?xe(s):(s[u]=c,s)});return We(a,{},i)})),To=rt(function(e,r,n){var i=e(r),a=e(n);return i>a?-1:i<a?1:0});const Po=To;function Oo(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var $o=Y(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Rt(e)?[]:Yt(e)?"":Ft(e)?{}:Ie(e)?function(){return arguments}():Oo(e)?e.constructor.from(""):void 0}),Eo=function(){function t(e,r){this.xf=r,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.idx+=1,this.f(r)&&(this.found=!0,e=xe(this.xf["@@transducer/step"](e,this.idx))),e},t}();function ko(t){return function(e){return new Eo(t,e)}}var Lo=R(Gt([],ko,function(e,r){for(var n=0,i=r.length;n<i;){if(e(r[n]))return n;n+=1}return-1}));const Do=Lo;var xo=R(le("groupBy",Ao(function(t,e){return t.push(e),t},[])));const Mo=xo;var No=rt(function(e,r,n){return zt(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});const Co=No;var Io=R(Ge);const Bo=Io;var zo=R(function(e,r){return zt(e+1,function(){var n=arguments[e];if(n!=null&&uo(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ie(n)+' does not have a method named "'+r+'"')})});const tr=zo;var Ro=Y(function(e){return e!=null&&Vt(e,$o(e))});const Go=Ro;var Vo=R(function(e,r){return e.map(function(n){for(var i=r,a=0,s;a<n.length;){if(i==null)return;s=n[a],i=Ye(s)?He(s,i):i[s],a+=1}return i})}),jo=R(function(e,r){return Vo([e],r)[0]});const Fo=jo;var Yo=rt(function(e,r,n){var i={},a;r=r||{},n=n||{};for(a in r)et(a,r)&&(i[a]=et(a,n)?e(a,r[a],n[a]):r[a]);for(a in n)et(a,n)&&!et(a,i)&&(i[a]=n[a]);return i}),Ho=rt(function t(e,r,n){return Yo(function(i,a,s){return Ft(a)&&Ft(s)?t(e,a,s):e(i,a,s)},r,n)}),Uo=R(function(e,r){return Ho(function(n,i,a){return a},e,r)});const Wo=Uo;var Ko=R(function(e,r){for(var n={},i={},a=0,s=e.length;a<s;)i[e[a]]=1,a+=1;for(var l in r)i.hasOwnProperty(l)||(n[l]=r[l]);return n});const qo=Ko;var Zo=rt(function(e,r,n){return Vt(e,bt(r,n))});const Xo=Zo;var Jo=rt(function(e,r,n){return e(bt(r,n))});const Qo=Jo;var ta=R(function(e,r){return Array.prototype.slice.call(r,0).sort(function(n,i){for(var a=0,s=0;a===0&&s<e.length;)a=e[s](n,i),s+=1;return a})});const er=ta;var ea=tr(1,"split");const Pt=ea;var ra=tr(0,"toLowerCase");const na=ra;var Ot=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,oa="",aa=typeof String.prototype.trim=="function",ia=Y(!aa||Ot.trim()||!oa.trim()?function(e){var r=new RegExp("^["+Ot+"]["+Ot+"]*"),n=new RegExp("["+Ot+"]["+Ot+"]*$");return e.replace(r,"").replace(n,"")}:function(e){return e.trim()});const Ht=ia,rr=Symbol("I18nContext"),K=o.reactive({messages:{},locale:"",fallbackLocale:""}),nr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const n=(u,c={})=>{const h=!Go(c),f=pt(Ht,Pt(".",u));return o.computed(()=>{const d=or(f);return h?la(d,c):d}).value},i=u=>{const c=pt(Ht,Pt(".",u));return!!ce(K.locale,c,K.messages)},a=u=>{K.locale=u},l={locale:o.computed({get(){return K.locale},set(u){K.locale=u}}),setLocale:a,translate:n,hasTranlation:i};return o.provide(rr,l),{translate:n}},wt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=sa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},sa=()=>{const t=o.inject(rr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},or=(t=[])=>{let e=ce(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ce(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ce(t,e,r){return Fo([t,...e],r)}const la=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},ar=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=pt(Ht,Pt(".",t.path)),n=or(r),i=Pt(/{|}/,n),a=Object.keys(e).map(s=>{const l=i.indexOf(s);return l>-1&&(i[l]=e[s]()[0]),i});return()=>o.h(t.tag,a)}}),ir="http://localhost:3333/vbr",sr="https://www.jegkorongszovetseg.hu/event/game/",lr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",cr="https://www.ersteliga.hu/stats/players#/player/",ur="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",nt="original",b="descend",C="ascend",fr=new Map().set("hu","hu-hu").set("en","hu-gb"),dr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ca="/v1/playersGoaliePeriod",ua="/v1/playersGoalieUnderPeriod",fa=1e3*60*5,pr=1e3,da={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},pa=o.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),ma=[pa];function ha(t,e){return o.openBlock(),o.createElementBlock("svg",da,ma)}const mr={render:ha},ga={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ya=o.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ba=[ya];function wa(t,e){return o.openBlock(),o.createElementBlock("svg",ga,ba)}const hr={render:wa};function $t(t){return t.split("-")[1]}function ue(t){return t==="y"?"height":"width"}function mt(t){return t.split("-")[0]}function Et(t){return["top","bottom"].includes(mt(t))?"x":"y"}function gr(t,e,r){let{reference:n,floating:i}=t;const a=n.x+n.width/2-i.width/2,s=n.y+n.height/2-i.height/2,l=Et(e),u=ue(l),c=n[u]/2-i[u]/2,h=l==="x";let f;switch(mt(e)){case"top":f={x:a,y:n.y-i.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:s};break;case"left":f={x:n.x-i.width,y:s};break;default:f={x:n.x,y:n.y}}switch($t(e)){case"start":f[l]-=c*(r&&h?-1:1);break;case"end":f[l]+=c*(r&&h?-1:1)}return f}const va=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=gr(c,n,u),p=n,d={},g=0;for(let m=0;m<l.length;m++){const{name:y,fn:A}=l[m],{x:T,y:$,data:D,reset:x}=await A({x:h,y:f,initialPlacement:n,placement:p,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:t,floating:e}});h=T??h,f=$??f,d={...d,[y]:{...d[y],...D}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:h,y:f}=gr(c,p,u)),m=-1)}return{x:h,y:f,placement:p,strategy:i,middlewareData:d}};function yr(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ut(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function br(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=e,g=yr(d),m=l[p?f==="floating"?"reference":"floating":f],y=Ut(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:h,strategy:u})),A=f==="floating"?{...s.floating,x:n,y:i}:s.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),$=await(a.isElement==null?void 0:a.isElement(T))&&await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1},D=Ut(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:T,strategy:u}):A);return{top:(y.top-D.top+g.top)/$.y,bottom:(D.bottom-y.bottom+g.bottom)/$.y,left:(y.left-D.left+g.left)/$.x,right:(D.right-y.right+g.right)/$.x}}const Sa=Math.min,_a=Math.max;function fe(t,e,r){return _a(t,Sa(e,r))}const wr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:i,y:a,placement:s,rects:l,platform:u,elements:c}=e;if(r==null)return{};const h=yr(n),f={x:i,y:a},p=Et(s),d=ue(p),g=await u.getDimensions(r),m=p==="y",y=m?"top":"left",A=m?"bottom":"right",T=m?"clientHeight":"clientWidth",$=l.reference[d]+l.reference[p]-f[p]-l.floating[d],D=f[p]-l.reference[p],x=await(u.getOffsetParent==null?void 0:u.getOffsetParent(r));let I=x?x[T]:0;I&&await(u.isElement==null?void 0:u.isElement(x))||(I=c.floating[T]||l.floating[d]);const G=$/2-D/2,F=h[y],M=I-g[d]-h[A],k=I/2-g[d]/2+G,B=fe(F,k,M),H=$t(s)!=null&&k!=B&&l.reference[d]/2-(k<F?h[y]:h[A])-g[d]/2<0;return{[p]:f[p]-(H?k<F?F-k:M-k:0),data:{[p]:B,centerOffset:k-B}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Aa={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,e=>Aa[e])}function Ta(t,e,r){r===void 0&&(r=!1);const n=$t(t),i=Et(t),a=ue(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Wt(s)),{main:s,cross:Wt(s)}}const Pa={start:"end",end:"start"};function de(t){return t.replace(/start|end/g,e=>Pa[e])}const Oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...m}=t,y=mt(n),A=mt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),$=f||(A||!g?[Wt(s)]:function(B){const H=Wt(B);return[de(B),H,de(H)]}(s));f||d==="none"||$.push(...function(B,H,O,_){const v=$t(B);let P=function(w,E,L){const N=["left","right"],j=["right","left"],V=["top","bottom"],U=["bottom","top"];switch(w){case"top":case"bottom":return L?E?j:N:E?N:j;case"left":case"right":return E?V:U;default:return[]}}(mt(B),O==="start",_);return v&&(P=P.map(w=>w+"-"+v),H&&(P=P.concat(P.map(de)))),P}(s,g,d,T));const D=[s,...$],x=await br(e,m),I=[];let G=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&I.push(x[y]),h){const{main:B,cross:H}=Ta(n,a,T);I.push(x[B],x[H])}if(G=[...G,{placement:n,overflows:I}],!I.every(B=>B<=0)){var F,M;const B=(((F=i.flip)==null?void 0:F.index)||0)+1,H=D[B];if(H)return{data:{index:B,overflows:G},reset:{placement:H}};let O=(M=G.filter(_=>_.overflows[0]<=0).sort((_,v)=>_.overflows[1]-v.overflows[1])[0])==null?void 0:M.placement;if(!O)switch(p){case"bestFit":{var k;const _=(k=G.map(v=>[v.placement,v.overflows.filter(P=>P>0).reduce((P,w)=>P+w,0)]).sort((v,P)=>v[1]-P[1])[0])==null?void 0:k[0];_&&(O=_);break}case"initialPlacement":O=s}if(n!==O)return{reset:{placement:O}}}return{}}}},$a=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await async function(a,s){const{placement:l,platform:u,elements:c}=a,h=await(u.isRTL==null?void 0:u.isRTL(c.floating)),f=mt(l),p=$t(l),d=Et(l)==="x",g=["left","top"].includes(f)?-1:1,m=h&&d?-1:1,y=typeof s=="function"?s(a):s;let{mainAxis:A,crossAxis:T,alignmentAxis:$}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof $=="number"&&(T=p==="end"?-1*$:$),d?{x:T*m,y:A*g}:{x:A*g,y:T*m}}(e,t);return{x:r+i.x,y:n+i.y,data:i}}}};function Ea(t){return t==="x"?"y":"x"}const ka=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:A,y:T}=y;return{x:A,y:T}}},...u}=t,c={x:r,y:n},h=await br(e,u),f=Et(mt(i)),p=Ea(f);let d=c[f],g=c[p];if(a){const y=f==="y"?"bottom":"right";d=fe(d+h[f==="y"?"top":"left"],d,d-h[y])}if(s){const y=p==="y"?"bottom":"right";g=fe(g+h[p==="y"?"top":"left"],g,g-h[y])}const m=l.fn({...e,[f]:d,[p]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function vr(t){return t instanceof X(t).Node}function it(t){return vr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function Z(t){return t instanceof X(t).Element}function Sr(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function kt(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function La(t){return["table","td","th"].includes(it(t))}function pe(t){const e=me(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function me(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(it(t))}const _r=Math.min,Lt=Math.max,qt=Math.round;function Ar(t){const e=J(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Q(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=qt(r)!==a||qt(n)!==s;return l&&(r=a,n=s),{width:r,height:n,fallback:l}}function Tr(t){return Z(t)?t:t.contextElement}const Pr={x:1,y:1};function vt(t){const e=Tr(t);if(!Q(e))return Pr;const r=e.getBoundingClientRect(),{width:n,height:i,fallback:a}=Ar(e);let s=(a?qt(r.width):r.width)/n,l=(a?qt(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Or={x:0,y:0};function $r(t,e,r){var n,i;if(e===void 0&&(e=!0),!me())return Or;const a=t?X(t):window;return!r||e&&r!==a?Or:{x:((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function ht(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=Tr(t);let s=Pr;e&&(n?Z(n)&&(s=vt(n)):s=vt(t));const l=$r(a,r,n);let u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){const p=X(a),d=n&&Z(n)?X(n):n;let g=p.frameElement;for(;g&&n&&d!==p;){const m=vt(g),y=g.getBoundingClientRect(),A=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(A.paddingLeft))*m.x,y.y+=(g.clientTop+parseFloat(A.paddingTop))*m.y,u*=m.x,c*=m.y,h*=m.x,f*=m.y,u+=y.x,c+=y.y,g=X(g).frameElement}}return Ut({width:h,height:f,x:u,y:c})}function st(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){return ht(st(t)).left+Zt(t).scrollLeft}function St(t){if(it(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sr(t)&&t.host||st(t);return Sr(e)?e.host:e}function kr(t){const e=St(t);return Kt(e)?e.ownerDocument.body:Q(e)&&kt(e)?e:kr(e)}function Dt(t,e){var r;e===void 0&&(e=[]);const n=kr(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),a=X(n);return i?e.concat(a,a.visualViewport||[],kt(n)?n:[]):e.concat(n,Dt(n))}function Lr(t,e,r){let n;if(e==="viewport")n=function(i,a){const s=X(i),l=st(i),u=s.visualViewport;let c=l.clientWidth,h=l.clientHeight,f=0,p=0;if(u){c=u.width,h=u.height;const d=me();(!d||d&&a==="fixed")&&(f=u.offsetLeft,p=u.offsetTop)}return{width:c,height:h,x:f,y:p}}(t,r);else if(e==="document")n=function(i){const a=st(i),s=Zt(i),l=i.ownerDocument.body,u=Lt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=Lt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let h=-s.scrollLeft+Er(i);const f=-s.scrollTop;return J(l).direction==="rtl"&&(h+=Lt(a.clientWidth,l.clientWidth)-u),{width:u,height:c,x:h,y:f}}(st(t));else if(Z(e))n=function(i,a){const s=ht(i,!0,a==="fixed"),l=s.top+i.clientTop,u=s.left+i.clientLeft,c=Q(i)?vt(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:u*c.x,y:l*c.y}}(e,r);else{const i=$r(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Ut(n)}function Dr(t,e){const r=St(t);return!(r===e||!Z(r)||Kt(r))&&(J(r).position==="fixed"||Dr(r,e))}function xr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Mr(t,e){const r=X(t);if(!Q(t))return r;let n=xr(t,e);for(;n&&La(n)&&J(n).position==="static";)n=xr(n,e);return n&&(it(n)==="html"||it(n)==="body"&&J(n).position==="static"&&!pe(n))?r:n||function(i){let a=St(i);for(;Q(a)&&!Kt(a);){if(pe(a))return a;a=St(a)}return null}(t)||r}function Da(t,e,r){const n=Q(e),i=st(e),a=r==="fixed",s=ht(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(n||!n&&!a)if((it(e)!=="body"||kt(i))&&(l=Zt(e)),Q(e)){const c=ht(e,!0,a,e);u.x=c.x+e.clientLeft,u.y=c.y+e.clientTop}else i&&(u.x=Er(i));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}const xa={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=r==="clippingAncestors"?function(c,h){const f=h.get(c);if(f)return f;let p=Dt(c).filter(y=>Z(y)&&it(y)!=="body"),d=null;const g=J(c).position==="fixed";let m=g?St(c):c;for(;Z(m)&&!Kt(m);){const y=J(m),A=pe(m);A||y.position!=="fixed"||(d=null),(g?!A&&!d:!A&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||kt(m)&&!A&&Dr(c,m))?p=p.filter(T=>T!==m):d=y,m=St(m)}return h.set(c,p),p}(e,this._c):[].concat(r),s=[...a,n],l=s[0],u=s.reduce((c,h)=>{const f=Lr(e,h,i);return c.top=Lt(f.top,c.top),c.right=_r(f.right,c.right),c.bottom=_r(f.bottom,c.bottom),c.left=Lt(f.left,c.left),c},Lr(e,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=Q(r),a=st(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((i||!i&&n!=="fixed")&&((it(r)!=="body"||kt(a))&&(s=Zt(r)),Q(r))){const c=ht(r);l=vt(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+u.x,y:e.y*l.y-s.scrollTop*l.y+u.y}},isElement:Z,getDimensions:function(t){return Ar(t)},getOffsetParent:Mr,getDocumentElement:st,getScale:vt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||Mr,a=this.getDimensions;return{reference:Da(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Ma(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=!0,animationFrame:l=!1}=n,u=i||a?[...Z(t)?Dt(t):t.contextElement?Dt(t.contextElement):[],...Dt(e)]:[];u.forEach(p=>{const d=!Z(p)&&p.toString().includes("V");!i||l&&!d||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let c,h=null;s&&(h=new ResizeObserver(()=>{r()}),Z(t)&&!l&&h.observe(t),Z(t)||!t.contextElement||l||h.observe(t.contextElement),h.observe(e));let f=l?ht(t):null;return l&&function p(){const d=ht(t);!f||d.x===f.x&&d.y===f.y&&d.width===f.width&&d.height===f.height||r(),f=d,c=requestAnimationFrame(p)}(),r(),()=>{var p;u.forEach(d=>{i&&d.removeEventListener("scroll",r),a&&d.removeEventListener("resize",r)}),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(c)}}const Na=(t,e,r)=>{const n=new Map,i={platform:xa,...r},a={...i.platform,_c:n};return va(t,e,{...i,platform:a})},Nr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function Ca({middleware:t,placement:e=null,strategy:r,append:n,enabled:i}){const a=o.ref(null),s=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(null),h=o.ref(null),f=o.ref(null),p=o.ref(r??"absolute"),d=o.ref(null),g=()=>{!a.value||!s.value||Na(a.value,s.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,u.value=y.y,p.value=y.strategy,c.value=y.middlewareData.arrow.x,h.value=y.middlewareData.arrow.y,f.value=y.placement})};o.watch(()=>({reference:o.unref(a),floating:o.unref(s),append:o.unref(n)}),({floating:y,append:A})=>{A&&Nr(y,A),g()},{flush:"post"}),o.watch(i,y=>{if(!(!a.value||!s.value)){if(!y)return m();d.value=Ma(a.value,s.value,g,{})}},{flush:"post"});const m=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:u,arrowX:c,arrowY:h,placement:f,reference:a,floating:s,strategy:p,update:g}}const Ia=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?wr({element:e.value,padding:r}).fn(n):{}:e?wr({element:e,padding:r}).fn(n):{}}}},Ba=["data-placement"],Cr={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=o.ref(!1),n=o.ref(null),{x:i,y:a,arrowX:s,arrowY:l,placement:u,reference:c,floating:h,strategy:f}=Ca({placement:e.placement,middleware:[Oa(),ka({padding:5}),$a(e.offset),Ia({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||(r.value=!0)},d=()=>{r.value=!1},g=m=>{c.value=m};return wn(h,m=>{var y;(y=c.value)!=null&&y.contains(m.target)||d()}),(m,y)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(m.$slots,"default",{setRef:g,show:p,hide:d}),o.createElementVNode("div",{ref_key:"floating",ref:h,"data-placement":o.unref(u),style:o.normalizeStyle({position:o.unref(f),top:o.unref(a)?`${o.unref(a)}px`:"",left:o.unref(i)?`${o.unref(i)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(m.$slots,"content",{close:d},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(f),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,Ba)],64))}},za=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ra={key:0},Ga=["colspan"],Va={key:1},ja=["colspan"],Ir={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:n,appendTo:i}=o.toRefs(r),a=De(n,{delay:pr}),{t:s}=wt(),l=ft("table"),u=o.computed(()=>r.columns),c=o.computed(()=>Object.keys(r.columns).length),h=(f,p)=>{f.sortOrders&&e("sort",{target:p,orders:f.sortOrders})};return(f,p)=>(o.openBlock(),o.createElementBlock("table",{class:o.normalizeClass(o.unref(l))},[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(d,g)=>(o.openBlock(),o.createBlock(Cr,{key:g,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":o.unref(i)},{default:o.withCtx(({setRef:m,show:y,hide:A})=>[o.createElementVNode("th",{ref_for:!0,ref:m,class:o.normalizeClass([[d.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt),"is-sortable":d.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),onMouseenter:y,onMouseleave:A,onFocus:y,onBlur:A,onClick:T=>h(d,g),onKeydown:[o.withKeys(o.withModifiers(T=>h(d,g),["prevent"]),["space"]),o.withKeys(o.withModifiers(T=>h(d,g),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[o.renderSlot(f.$slots,`header-${g}`,{column:d},()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),d.sortOrders&&g!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(mr),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(nt)?(o.openBlock(),o.createBlock(o.unref(mr),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b)?(o.openBlock(),o.createBlock(o.unref(hr),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(hr),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,za)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(d,g)=>(o.openBlock(),o.createElementBlock("tr",{key:g},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(m,y)=>(o.openBlock(),o.createElementBlock("td",{key:y,class:o.normalizeClass([[m.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt)}])},[o.renderSlot(f.$slots,`cell-${y}`,{row:d,prop:y},()=>[o.createTextVNode(o.toDisplayString(d[y]),1)])],2))),128))]))),128))]),o.unref(a)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Ra,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.loading")),1)])],8,Ga)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(a)?(o.openBlock(),o.createElementBlock("tfoot",Va,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.noData")),1)])],8,ja)])])):o.createCommentVNode("",!0)],2))}},Fa={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"},Ya=o.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),Ha=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Ua=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Wa=[Ya,Ha,Ua];function Ka(t,e){return o.openBlock(),o.createElementBlock("svg",Fa,Wa)}const qa={render:Ka},Za={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=wt(),i=ft("error-notice"),a=o.computed(()=>{var s;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):(s=e.error)==null?void 0:s.message});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(i))},[o.createVNode(o.unref(qa),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1)],2))}};function Br(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}function he(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const zr=Symbol("ErrorProviderContext"),Rr=()=>{const t=o.ref(""),e=o.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||Br(a.message),cause:a.cause}},i={onError:r,reset:()=>{t.value="",e.value={}}};return o.provide(zr,i),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},o.onErrorCaptured((a,s,l)=>{console.log("onErrorCaptured:",a,s,l)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Gr=()=>{const t=Xa();return{onError:t.onError,reset:t.reset}},Xa=()=>{const t=o.inject(zr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ja={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=Rr();return(i,a)=>o.renderSlot(i.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},Qa={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"M",tooltip:"Mérkőzésszám"},wins:{short:"GY",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"GYH",tooltip:"Győzelem Hosszabbításban"},otl:{short:"VH",tooltip:"Vereség Hosszabbításban"},losses:{short:"V",tooltip:"Vereség"},goalFor:{short:"SZG",tooltip:"Szerzett Gól"},goalAgainst:{short:"KG",tooltip:"Kapott Gól"},goalDiff:{short:"GK",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"L",tooltip:"Lövések"},sogPercent:{short:"L%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},ti={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"PTS",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Vr=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},ei=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Wo({hu:Qa,en:ti},t.messages),{translate:r}=nr({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function ri(t,e,r,n,i,a){return o.renderSlot(t.$slots,"default",{t:t.translate})}const ni=Vr(ei,[["render",ri]]),oi=["src"],ai=["src","title"],ge=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=o.toRefs(e),n=o.ref({src:e.src}),{error:i,isReady:a}=Mn(n,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(i)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",s.$attrs.class])},null,10,oi)):o.createCommentVNode("",!0),o.unref(i)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(a)}]),title:e.title},null,10,ai))],64))}}),ii={style:{"text-align":"center"}},jr={__name:"LoadingIndicator",setup(t){const{t:e}=wt();return(r,n)=>(o.openBlock(),o.createElementBlock("div",ii,o.toDisplayString(o.unref(e)("common.loading")),1))}};function si({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:n=5,update:i=at}){const a=o.computed(()=>Math.ceil(o.unref(r)/e)),s=o.computed(()=>{const h=o.unref(t)-1,f=Array.from({length:a.value},(g,m)=>m+1),p=Math.floor(n/2);let d=Math.max(h-p,0);return d+n>=a.value&&(d=Math.max(a.value-n,0)),f.slice(d,d+n)}),l=h=>{const f=o.unref(t)+h;c(f)&&i(f)},u=h=>{c(h)&&i(h)},c=h=>h<=a.value&&h>0;return{page:t,range:s,pageCount:a,goTo:u,pageStep:l}}const li={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"},ci=o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ui=[ci];function fi(t,e){return o.openBlock(),o.createElementBlock("svg",li,ui)}const di={render:fi},pi={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"},mi=o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),hi=[mi];function gi(t,e){return o.openBlock(),o.createElementBlock("svg",pi,hi)}const yi={render:gi},bi=["disabled"],wi=["disabled"],vi={key:1,class:"is-disabled"},Si=["disabled","onClick"],_i={key:2,class:"is-disabled"},Ai=[o.createElementVNode("span",null,"...",-1)],Ti=["disabled"],Pi=["disabled"],Oi={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,n=ft("paginator"),{page:i,pageCount:a,range:s,goTo:l,pageStep:u}=si({currentPage:o.computed(()=>r.page),totalItems:o.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:c=>e("change",c)});return(c,h)=>o.unref(a)>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(n))},[o.createElementVNode("button",{type:"button",disabled:o.unref(i)===1,onClick:h[0]||(h[0]=f=>o.unref(u)(-1))},[o.renderSlot(c.$slots,"prev",{},()=>[o.createVNode(o.unref(di),{class:"icon paginator-left"})])],8,bi),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(i)===1,onClick:h[1]||(h[1]=f=>o.unref(l)(1))},"1",8,wi)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vi,"...")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),f=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:f,class:o.normalizeClass({"is-active":f===o.unref(i)}),disabled:f===o.unref(i),onClick:p=>o.unref(l)(f)},o.toDisplayString(f),11,Si))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",_i,Ai)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(i)===o.unref(a),onClick:h[2]||(h[2]=f=>o.unref(l)(o.unref(a)))},o.toDisplayString(o.unref(a)),9,Ti)),o.createElementVNode("button",{type:"button",disabled:o.unref(i)===o.unref(a),onClick:h[3]||(h[3]=o.withModifiers(f=>o.unref(u)(1),["prevent"]))},[o.renderSlot(c.$slots,"next",{},()=>[o.createVNode(o.unref(yi),{class:"icon paginator-left"})])],8,Pi)],2)):o.createCommentVNode("",!0)}},Fr={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=ft("table-responsive");return(n,i)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:o.normalizeClass(o.unref(r))},[o.renderSlot(n.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",l="minute",u="hour",c="day",h="week",f="month",p="quarter",d="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var _=["th","st","nd","rd"],v=O%100;return"["+O+(_[(v-20)%10]||_[v]||_[0])+"]"}},$=function(O,_,v){var P=String(O);return!P||P.length>=_?O:""+Array(_+1-P.length).join(v)+O},D={s:$,z:function(O){var _=-O.utcOffset(),v=Math.abs(_),P=Math.floor(v/60),w=v%60;return(_<=0?"+":"-")+$(P,2,"0")+":"+$(w,2,"0")},m:function O(_,v){if(_.date()<v.date())return-O(v,_);var P=12*(v.year()-_.year())+(v.month()-_.month()),w=_.clone().add(P,f),E=v-w<0,L=_.clone().add(P+(E?-1:1),f);return+(-(P+(v-w)/(E?w-L:L-w))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:d,w:h,d:c,D:g,h:u,m:l,s,ms:a,Q:p}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},x="en",I={};I[x]=T;var G=function(O){return O instanceof B},F=function O(_,v,P){var w;if(!_)return x;if(typeof _=="string"){var E=_.toLowerCase();I[E]&&(w=E),v&&(I[E]=v,w=E);var L=_.split("-");if(!w&&L.length>1)return O(L[0])}else{var N=_.name;I[N]=_,w=N}return!P&&w&&(x=w),w||!P&&x},M=function(O,_){if(G(O))return O.clone();var v=typeof _=="object"?_:{};return v.date=O,v.args=arguments,new B(v)},k=D;k.l=F,k.i=G,k.w=function(O,_){return M(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var B=function(){function O(v){this.$L=F(v.locale,null,!0),this.parse(v)}var _=O.prototype;return _.parse=function(v){this.$d=function(P){var w=P.date,E=P.utc;if(w===null)return new Date(NaN);if(k.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(y);if(L){var N=L[2]-1||0,j=(L[7]||"0").substring(0,3);return E?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(w)}(v),this.$x=v.x||{},this.init()},_.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(v,P){var w=M(v);return this.startOf(P)<=w&&w<=this.endOf(P)},_.isAfter=function(v,P){return M(v)<this.startOf(P)},_.isBefore=function(v,P){return this.endOf(P)<M(v)},_.$g=function(v,P,w){return k.u(v)?this[P]:this.set(w,v)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(v,P){var w=this,E=!!k.u(P)||P,L=k.p(v),N=function(_t,q){var ut=k.w(w.$u?Date.UTC(w.$y,q,_t):new Date(w.$y,q,_t),w);return E?ut:ut.endOf(c)},j=function(_t,q){return k.w(w.toDate()[_t].apply(w.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(q)),w)},V=this.$W,U=this.$M,ct=this.$D,ot="set"+(this.$u?"UTC":"");switch(L){case d:return E?N(1,0):N(31,11);case f:return E?N(1,U):N(0,U+1);case h:var Mt=this.$locale().weekStart||0,Nt=(V<Mt?V+7:V)-Mt;return N(E?ct-Nt:ct+(6-Nt),U);case c:case g:return j(ot+"Hours",0);case u:return j(ot+"Minutes",1);case l:return j(ot+"Seconds",2);case s:return j(ot+"Milliseconds",3);default:return this.clone()}},_.endOf=function(v){return this.startOf(v,!1)},_.$set=function(v,P){var w,E=k.p(v),L="set"+(this.$u?"UTC":""),N=(w={},w[c]=L+"Date",w[g]=L+"Date",w[f]=L+"Month",w[d]=L+"FullYear",w[u]=L+"Hours",w[l]=L+"Minutes",w[s]=L+"Seconds",w[a]=L+"Milliseconds",w)[E],j=E===c?this.$D+(P-this.$W):P;if(E===f||E===d){var V=this.clone().set(g,1);V.$d[N](j),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},_.set=function(v,P){return this.clone().$set(v,P)},_.get=function(v){return this[k.p(v)]()},_.add=function(v,P){var w,E=this;v=Number(v);var L=k.p(P),N=function(U){var ct=M(E);return k.w(ct.date(ct.date()+Math.round(U*v)),E)};if(L===f)return this.set(f,this.$M+v);if(L===d)return this.set(d,this.$y+v);if(L===c)return N(1);if(L===h)return N(7);var j=(w={},w[l]=n,w[u]=i,w[s]=r,w)[L]||1,V=this.$d.getTime()+v*j;return k.w(V,this)},_.subtract=function(v,P){return this.add(-1*v,P)},_.format=function(v){var P=this,w=this.$locale();if(!this.isValid())return w.invalidDate||m;var E=v||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),N=this.$H,j=this.$m,V=this.$M,U=w.weekdays,ct=w.months,ot=function(q,ut,_e,Jt){return q&&(q[ut]||q(P,E))||_e[ut].slice(0,Jt)},Mt=function(q){return k.s(N%12||12,q,"0")},Nt=w.meridiem||function(q,ut,_e){var Jt=q<12?"AM":"PM";return _e?Jt.toLowerCase():Jt},_t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:k.s(V+1,2,"0"),MMM:ot(w.monthsShort,V,ct,3),MMMM:ot(ct,V),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:ot(w.weekdaysMin,this.$W,U,2),ddd:ot(w.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(N),HH:k.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Nt(N,j,!0),A:Nt(N,j,!1),m:String(j),mm:k.s(j,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:L};return E.replace(A,function(q,ut){return ut||_t[q]||L.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(v,P,w){var E,L=k.p(P),N=M(v),j=(N.utcOffset()-this.utcOffset())*n,V=this-N,U=k.m(this,N);return U=(E={},E[d]=U/12,E[f]=U,E[p]=U/3,E[h]=(V-j)/6048e5,E[c]=(V-j)/864e5,E[u]=V/i,E[l]=V/n,E[s]=V/r,E)[L]||V,w?U:k.a(U)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return I[this.$L]},_.locale=function(v,P){if(!v)return this.$L;var w=this.clone(),E=F(v,P,!0);return E&&(w.$L=E),w},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},O}(),H=B.prototype;return M.prototype=H,[["$ms",a],["$s",s],["$m",l],["$H",u],["$W",c],["$M",f],["$y",d],["$D",g]].forEach(function(O){H[O[1]]=function(_){return this.$g(_,O[0],O[1])}}),M.extend=function(O,_){return O.$i||(O(_,B,M),O.$i=!0),M},M.locale=F,M.isDayjs=G,M.unix=function(O){return M(1e3*O)},M.en=I[x],M.Ls=I,M.p={},M})})(Yr);var Hr=Yr.exports;const W=gt(Hr);var Ur={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,l){var u=s.prototype;l.utc=function(m){var y={date:m,utc:!0,args:arguments};return new s(y)},u.utc=function(m){var y=l(this.toDate(),{locale:this.$L,utc:!0});return m?y.add(this.utcOffset(),r):y},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),c.call(this,m)};var h=u.init;u.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else h.call(this)};var f=u.utcOffset;u.utcOffset=function(m,y){var A=this.$utils().u;if(A(m))return this.$u?0:A(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=function(x){x===void 0&&(x="");var I=x.match(n);if(!I)return null;var G=(""+I[0]).match(i)||["-",0,0],F=G[0],M=60*+G[1]+ +G[2];return M===0?0:F==="+"?M:-M}(m),m===null))return this;var T=Math.abs(m)<=16?60*m:m,$=this;if(y)return $.$offset=T,$.$u=m===0,$;if(m!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(T+D,r)).$offset=T,$.$x.$localOffset=D}else $=this.utc();return $};var p=u.format;u.format=function(m){var y=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},u.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(m){return m==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=u.diff;u.diff=function(m,y,A){if(m&&this.$u===m.$u)return g.call(this,m,y,A);var T=this.local(),$=l(m).local();return g.call(T,$,y,A)}}})})(Ur);var $i=Ur.exports;const Ei=gt($i);var Wr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,a,s){var l,u=function(p,d,g){g===void 0&&(g={});var m=new Date(p),y=function(A,T){T===void 0&&(T={});var $=T.timeZoneName||"short",D=A+"|"+$,x=n[D];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),n[D]=x),x}(d,g);return y.formatToParts(m)},c=function(p,d){for(var g=u(p,d),m=[],y=0;y<g.length;y+=1){var A=g[y],T=A.type,$=A.value,D=r[T];D>=0&&(m[D]=parseInt($,10))}var x=m[3],I=x===24?0:x,G=m[0]+"-"+m[1]+"-"+m[2]+" "+I+":"+m[4]+":"+m[5]+":000",F=+p;return(s.utc(G).valueOf()-(F-=F%1e3))/6e4},h=a.prototype;h.tz=function(p,d){p===void 0&&(p=l);var g=this.utcOffset(),m=this.toDate(),y=m.toLocaleString("en-US",{timeZone:p}),A=Math.round((m-new Date(y))/1e3/60),T=s(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(m.getTimezoneOffset()/15)-A,!0);if(d){var $=T.utcOffset();T=T.add(g-$,"minute")}return T.$x.$timezone=p,T},h.offsetName=function(p){var d=this.$x.$timezone||s.tz.guess(),g=u(this.valueOf(),d,{timeZoneName:p}).find(function(m){return m.type.toLowerCase()==="timezonename"});return g&&g.value};var f=h.startOf;h.startOf=function(p,d){if(!this.$x||!this.$x.$timezone)return f.call(this,p,d);var g=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return f.call(g,p,d).tz(this.$x.$timezone,!0)},s.tz=function(p,d,g){var m=g&&d,y=g||d||l,A=c(+s(),y);if(typeof p!="string")return s(p).tz(y);var T=function(I,G,F){var M=I-60*G*1e3,k=c(M,F);if(G===k)return[M,G];var B=c(M-=60*(k-G)*1e3,F);return k===B?[M,k]:[I-60*Math.min(k,B)*1e3,Math.max(k,B)]}(s.utc(p,m).valueOf(),A,y),$=T[0],D=T[1],x=s($).utcOffset(D);return x.$x.$timezone=y,x},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){l=p}}})})(Wr);var ki=Wr.exports;const Li=gt(ki);var Kr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var c=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="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 f}});return a.bind(this)(h)}}})})(Kr);var Di=Kr.exports;const xi=gt(Di);var qr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(i,a){return this.isSame(i,a)||this.isBefore(i,a)}}})})(qr);var Mi=qr.exports;const Ni=gt(Mi);var Zr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,i){n.prototype.isBetween=function(a,s,l,u){var c=i(a),h=i(s),f=(u=u||"()")[0]==="(",p=u[1]===")";return(f?this.isAfter(c,l):!this.isBefore(c,l))&&(p?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(c,l):!this.isAfter(c,l))&&(p?this.isAfter(h,l):!this.isBefore(h,l))}}})})(Zr);var Ci=Zr.exports;const Ii=gt(Ci);var Xr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,i,a){var s=i.prototype,l=s.format;a.en.formats=r,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,h=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,m){var y=m&&m.toUpperCase();return g||p[m]||r[m]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,T,$){return T||$.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,h)}}})})(Xr);var Bi=Xr.exports;const zi=gt(Bi);var Ri={exports:{}};(function(t,e){(function(r,n){t.exports=n(Hr)})(lt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),a={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(s,l,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(s,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(s,l,u,c){return s+" perc"+(c||l?"":"e")},h:function(s,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(s,l,u,c){return s+" "+(c||l?"óra":"órája")},d:function(s,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(s,l,u,c){return s+" "+(c||l?"nap":"napja")},M:function(s,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(s,l,u,c){return s+" "+(c||l?"hónap":"hónapja")},y:function(s,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(s,l,u,c){return s+" "+(c||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 i.default.locale(a,null,!0),a})})(Ri),W.extend(Ei),W.extend(Li),W.extend(xi),W.extend(zi),W.extend(Ni),W.extend(Ii);const Jr=()=>W.tz.guess(),Xt=(t="",e="",r="",n="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(n).format(e):""),xt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const i=new Intl.DateTimeFormat(Gi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return i&&i.value},Gi=t=>fr.get(t),ye=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Qr=t=>{const e=~~(t/60),r=~~t%60;return he(e,"0",2)+":"+he(r,"0",2)},tn=(t,e="day")=>W().isSameOrBefore(W(t),e),Vi=(t,e,r)=>W(t).isBetween(e,W(r)),ji=(t,e,r="month")=>W(t).isSame(e,r),Fi=["onClick"],Yi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=wt(),i=ft("timezone-selector"),a=o.computed(()=>xt(new Date,null,r.locale)),s=Jr(),l=o.computed(()=>Array.from(dr.values()).map(c=>({...c,isActive:xt(new Date,r.currentZone,r.locale)===xt(new Date,c.timezone,r.locale),zoneOffsetName:xt(new Date,c.timezone,r.locale)}))),u=c=>e("change",c);return(c,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(i))},[o.createVNode(o.unref(ar),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:h[0]||(h[0]=o.withModifiers(f=>u(o.unref(s)),["prevent"]))},o.toDisplayString(a.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,f=>(o.openBlock(),o.createElementBlock("a",{key:f.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":f.isActive}),onClick:o.withModifiers(p=>u(f.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${f.countryLabelKey}`))+" ("+o.toDisplayString(f.zoneOffsetName)+") ",11,Fi))),128))],2))}},en=(t,e="",r={})=>{const n=o.ref(""),{t:i}=wt();if(e)try{const l=rn(o.unref(t),e);t=qo(l,o.unref(t))}catch(l){n.value=l}const a=l=>({...l,...l.label&&{label:i(l.label??"",o.unref(r))},...l.tooltip&&{tooltip:i(l.tooltip??"")}});return{columns:o.computed(()=>pt(a,o.unref(t))),error:n}},rn=(t,e="")=>{const r=pt(Ht,Pt(",",e)),n=dt(t);if(r[0]==="")return resolve([]);const i=r.findIndex(a=>!n.includes(a));if(i>-1)throw r[i];return r};class nn extends Error{constructor(e,r={}){const{key:n,cause:i}=r;super(e),this.name="WidgetError",this.key=n,this.cause=i}}const be={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Hi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ui={class:"is-portrait-image"},Wi=["href"],Ki=["href"],qi={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:n}=Gr(),i=o.computed(()=>r.columns),{columns:a,error:s}=en(i,r.hideColumns);s.value&&n(new nn(be.message,{...be.options,cause:{column:s.value}}));const l=u=>e("sort",u);return(u,c)=>(o.openBlock(),o.createBlock(Fr,null,{default:o.withCtx(({el:h})=>[o.createVNode(Ir,{columns:o.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":h,onSort:l},o.createSlots({"cell-index":o.withCtx(({row:f})=>[o.createElementVNode("span",{class:o.normalizeClass(f.indexClass)},o.toDisplayString(f.index),3)]),"cell-playerPortrait":o.withCtx(({row:f})=>[o.createElementVNode("div",Ui,[(o.openBlock(),o.createBlock(ge,{key:f.id||f.playerId,src:f.playerPortrait,"default-src":o.unref(lr)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:f})=>[(o.openBlock(),o.createBlock(ge,{class:"is-logo-image",key:f.teamId||f.id,src:f.teamLogo},null,8,["src"]))]),loading:o.withCtx(()=>[o.createVNode(jr)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:o.withCtx(({row:f})=>[o.createElementVNode("a",{href:t.externalTeamResolver(f.teamName),target:"_blank"},o.toDisplayString(f.teamName),9,Wi)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:f})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(f.id),target:"_blank"},o.toDisplayString(f.name),9,Ki)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Zi={};function Xi(t,e){return o.openBlock(),o.createElementBlock("div",null," Test-8 ")}const Ji=Vr(Zi,[["render",Xi]]),on=async(t,e,r)=>{const n=`${ir}${o.unref(t)}?${Qi(r)}`;return new Promise((i,a)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ts(e)}}).then(s=>s.json()).then(s=>{if(s.error)return a(s);i(s.data)}).catch(s=>{a(s)})})},Qi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ts=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?{}.VITE_VBR_API_KEY:"")},es=(t={})=>{const{initial:e=1,items:r=[],limit:n,auto:i=!1}=t,a=o.ref(e),s=c=>tn(c,"day");return yn(r,()=>{if(!i)return;const c=Do(Qo(s,"gameDate"))(o.unref(r));a.value=c===-1?1:Math.floor(c/n)+1}),{page:a,change:c=>{a.value=c}}},rs=({options:t={},transform:e=n=>n,onError:r=at})=>{const{path:n,apiKey:i,params:a}=t,{state:s,error:l,isLoading:u,execute:c}=Ee(()=>on(n,i,o.unref(a)).then(h=>e(h)),[],{immediate:!1,resetOnExecute:!1,onError:r});return{state:s,error:l,isLoading:u,execute:c}};/*! *****************************************************************************
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,oa="",aa=typeof String.prototype.trim=="function",ia=Y(!aa||Ot.trim()||!oa.trim()?function(e){var r=new RegExp("^["+Ot+"]["+Ot+"]*"),n=new RegExp("["+Ot+"]["+Ot+"]*$");return e.replace(r,"").replace(n,"")}:function(e){return e.trim()});const Ht=ia,rr=Symbol("I18nContext"),K=o.reactive({messages:{},locale:"",fallbackLocale:""}),nr=({messages:t={},locale:e="",fallbackLocale:r=""})=>{K.messages=t,K.locale=e,K.fallbackLocale=r;const n=(u,c={})=>{const h=!Go(c),f=pt(Ht,Pt(".",u));return o.computed(()=>{const d=or(f);return h?la(d,c):d}).value},i=u=>{const c=pt(Ht,Pt(".",u));return!!ce(K.locale,c,K.messages)},a=u=>{K.locale=u},l={locale:o.computed({get(){return K.locale},set(u){K.locale=u}}),setLocale:a,translate:n,hasTranlation:i};return o.provide(rr,l),{translate:n}},wt=t=>{t&&(K.messages=t.messages,K.locale=t.locale,K.fallbackLocale=t.fallbackLocale);const e=sa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranlation:e.hasTranlation}},sa=()=>{const t=o.inject(rr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},or=(t=[])=>{let e=ce(K.locale,t,K.messages);return!e&&K.fallbackLocale&&(e=ce(K.fallbackLocale,t,K.messages)),e||t.join(".")};function ce(t,e,r){return Fo([t,...e],r)}const la=function(t,e){return t.replace(/\{(\w+)\}/g,function(r,n){return e[n]})},ar=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const r=pt(Ht,Pt(".",t.path)),n=or(r),i=Pt(/{|}/,n),a=Object.keys(e).map(s=>{const l=i.indexOf(s);return l>-1&&(i[l]=e[s]()[0]),i});return()=>o.h(t.tag,a)}}),ir="https://preprodapi.icehockey.hu/vbr",sr="https://www.jegkorongszovetseg.hu/event/game/",lr="https://jegkorongszovetseg.hu/assets/images/player_blank.png",cr="https://www.ersteliga.hu/stats/players#/player/",ur="https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=",nt="original",b="descend",C="ascend",fr=new Map().set("hu","hu-hu").set("en","hu-gb"),dr=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ca="/v1/playersGoaliePeriod",ua="/v1/playersGoalieUnderPeriod",fa=1e3*60*5,pr=1e3,da={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},pa=o.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),ma=[pa];function ha(t,e){return o.openBlock(),o.createElementBlock("svg",da,ma)}const mr={render:ha},ga={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ya=o.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ba=[ya];function wa(t,e){return o.openBlock(),o.createElementBlock("svg",ga,ba)}const hr={render:wa};function $t(t){return t.split("-")[1]}function ue(t){return t==="y"?"height":"width"}function mt(t){return t.split("-")[0]}function Et(t){return["top","bottom"].includes(mt(t))?"x":"y"}function gr(t,e,r){let{reference:n,floating:i}=t;const a=n.x+n.width/2-i.width/2,s=n.y+n.height/2-i.height/2,l=Et(e),u=ue(l),c=n[u]/2-i[u]/2,h=l==="x";let f;switch(mt(e)){case"top":f={x:a,y:n.y-i.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:s};break;case"left":f={x:n.x-i.width,y:s};break;default:f={x:n.x,y:n.y}}switch($t(e)){case"start":f[l]-=c*(r&&h?-1:1);break;case"end":f[l]+=c*(r&&h?-1:1)}return f}const va=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=gr(c,n,u),p=n,d={},g=0;for(let m=0;m<l.length;m++){const{name:y,fn:A}=l[m],{x:T,y:$,data:D,reset:x}=await A({x:h,y:f,initialPlacement:n,placement:p,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:t,floating:e}});h=T??h,f=$??f,d={...d,[y]:{...d[y],...D}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):x.rects),{x:h,y:f}=gr(c,p,u)),m=-1)}return{x:h,y:f,placement:p,strategy:i,middlewareData:d}};function yr(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ut(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function br(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:a,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=e,g=yr(d),m=l[p?f==="floating"?"reference":"floating":f],y=Ut(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:h,strategy:u})),A=f==="floating"?{...s.floating,x:n,y:i}:s.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),$=await(a.isElement==null?void 0:a.isElement(T))&&await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1},D=Ut(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:T,strategy:u}):A);return{top:(y.top-D.top+g.top)/$.y,bottom:(D.bottom-y.bottom+g.bottom)/$.y,left:(y.left-D.left+g.left)/$.x,right:(D.right-y.right+g.right)/$.x}}const Sa=Math.min,_a=Math.max;function fe(t,e,r){return _a(t,Sa(e,r))}const wr=t=>({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:i,y:a,placement:s,rects:l,platform:u,elements:c}=e;if(r==null)return{};const h=yr(n),f={x:i,y:a},p=Et(s),d=ue(p),g=await u.getDimensions(r),m=p==="y",y=m?"top":"left",A=m?"bottom":"right",T=m?"clientHeight":"clientWidth",$=l.reference[d]+l.reference[p]-f[p]-l.floating[d],D=f[p]-l.reference[p],x=await(u.getOffsetParent==null?void 0:u.getOffsetParent(r));let I=x?x[T]:0;I&&await(u.isElement==null?void 0:u.isElement(x))||(I=c.floating[T]||l.floating[d]);const G=$/2-D/2,F=h[y],M=I-g[d]-h[A],k=I/2-g[d]/2+G,B=fe(F,k,M),H=$t(s)!=null&&k!=B&&l.reference[d]/2-(k<F?h[y]:h[A])-g[d]/2<0;return{[p]:f[p]-(H?k<F?F-k:M-k:0),data:{[p]:B,centerOffset:k-B}}}});["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const Aa={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,e=>Aa[e])}function Ta(t,e,r){r===void 0&&(r=!1);const n=$t(t),i=Et(t),a=ue(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Wt(s)),{main:s,cross:Wt(s)}}const Pa={start:"end",end:"start"};function de(t){return t.replace(/start|end/g,e=>Pa[e])}const Oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...m}=t,y=mt(n),A=mt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),$=f||(A||!g?[Wt(s)]:function(B){const H=Wt(B);return[de(B),H,de(H)]}(s));f||d==="none"||$.push(...function(B,H,O,_){const v=$t(B);let P=function(w,E,L){const N=["left","right"],j=["right","left"],V=["top","bottom"],U=["bottom","top"];switch(w){case"top":case"bottom":return L?E?j:N:E?N:j;case"left":case"right":return E?V:U;default:return[]}}(mt(B),O==="start",_);return v&&(P=P.map(w=>w+"-"+v),H&&(P=P.concat(P.map(de)))),P}(s,g,d,T));const D=[s,...$],x=await br(e,m),I=[];let G=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&I.push(x[y]),h){const{main:B,cross:H}=Ta(n,a,T);I.push(x[B],x[H])}if(G=[...G,{placement:n,overflows:I}],!I.every(B=>B<=0)){var F,M;const B=(((F=i.flip)==null?void 0:F.index)||0)+1,H=D[B];if(H)return{data:{index:B,overflows:G},reset:{placement:H}};let O=(M=G.filter(_=>_.overflows[0]<=0).sort((_,v)=>_.overflows[1]-v.overflows[1])[0])==null?void 0:M.placement;if(!O)switch(p){case"bestFit":{var k;const _=(k=G.map(v=>[v.placement,v.overflows.filter(P=>P>0).reduce((P,w)=>P+w,0)]).sort((v,P)=>v[1]-P[1])[0])==null?void 0:k[0];_&&(O=_);break}case"initialPlacement":O=s}if(n!==O)return{reset:{placement:O}}}return{}}}},$a=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await async function(a,s){const{placement:l,platform:u,elements:c}=a,h=await(u.isRTL==null?void 0:u.isRTL(c.floating)),f=mt(l),p=$t(l),d=Et(l)==="x",g=["left","top"].includes(f)?-1:1,m=h&&d?-1:1,y=typeof s=="function"?s(a):s;let{mainAxis:A,crossAxis:T,alignmentAxis:$}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return p&&typeof $=="number"&&(T=p==="end"?-1*$:$),d?{x:T*m,y:A*g}:{x:A*g,y:T*m}}(e,t);return{x:r+i.x,y:n+i.y,data:i}}}};function Ea(t){return t==="x"?"y":"x"}const ka=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:A,y:T}=y;return{x:A,y:T}}},...u}=t,c={x:r,y:n},h=await br(e,u),f=Et(mt(i)),p=Ea(f);let d=c[f],g=c[p];if(a){const y=f==="y"?"bottom":"right";d=fe(d+h[f==="y"?"top":"left"],d,d-h[y])}if(s){const y=p==="y"?"bottom":"right";g=fe(g+h[p==="y"?"top":"left"],g,g-h[y])}const m=l.fn({...e,[f]:d,[p]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function X(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){return X(t).getComputedStyle(t)}function vr(t){return t instanceof X(t).Node}function it(t){return vr(t)?(t.nodeName||"").toLowerCase():""}function Q(t){return t instanceof X(t).HTMLElement}function Z(t){return t instanceof X(t).Element}function Sr(t){return typeof ShadowRoot>"u"?!1:t instanceof X(t).ShadowRoot||t instanceof ShadowRoot}function kt(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=J(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function La(t){return["table","td","th"].includes(it(t))}function pe(t){const e=me(),r=J(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function me(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Kt(t){return["html","body","#document"].includes(it(t))}const _r=Math.min,Lt=Math.max,qt=Math.round;function Ar(t){const e=J(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Q(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=qt(r)!==a||qt(n)!==s;return l&&(r=a,n=s),{width:r,height:n,fallback:l}}function Tr(t){return Z(t)?t:t.contextElement}const Pr={x:1,y:1};function vt(t){const e=Tr(t);if(!Q(e))return Pr;const r=e.getBoundingClientRect(),{width:n,height:i,fallback:a}=Ar(e);let s=(a?qt(r.width):r.width)/n,l=(a?qt(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Or={x:0,y:0};function $r(t,e,r){var n,i;if(e===void 0&&(e=!0),!me())return Or;const a=t?X(t):window;return!r||e&&r!==a?Or:{x:((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function ht(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),a=Tr(t);let s=Pr;e&&(n?Z(n)&&(s=vt(n)):s=vt(t));const l=$r(a,r,n);let u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){const p=X(a),d=n&&Z(n)?X(n):n;let g=p.frameElement;for(;g&&n&&d!==p;){const m=vt(g),y=g.getBoundingClientRect(),A=getComputedStyle(g);y.x+=(g.clientLeft+parseFloat(A.paddingLeft))*m.x,y.y+=(g.clientTop+parseFloat(A.paddingTop))*m.y,u*=m.x,c*=m.y,h*=m.x,f*=m.y,u+=y.x,c+=y.y,g=X(g).frameElement}}return Ut({width:h,height:f,x:u,y:c})}function st(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Er(t){return ht(st(t)).left+Zt(t).scrollLeft}function St(t){if(it(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sr(t)&&t.host||st(t);return Sr(e)?e.host:e}function kr(t){const e=St(t);return Kt(e)?e.ownerDocument.body:Q(e)&&kt(e)?e:kr(e)}function Dt(t,e){var r;e===void 0&&(e=[]);const n=kr(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),a=X(n);return i?e.concat(a,a.visualViewport||[],kt(n)?n:[]):e.concat(n,Dt(n))}function Lr(t,e,r){let n;if(e==="viewport")n=function(i,a){const s=X(i),l=st(i),u=s.visualViewport;let c=l.clientWidth,h=l.clientHeight,f=0,p=0;if(u){c=u.width,h=u.height;const d=me();(!d||d&&a==="fixed")&&(f=u.offsetLeft,p=u.offsetTop)}return{width:c,height:h,x:f,y:p}}(t,r);else if(e==="document")n=function(i){const a=st(i),s=Zt(i),l=i.ownerDocument.body,u=Lt(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=Lt(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let h=-s.scrollLeft+Er(i);const f=-s.scrollTop;return J(l).direction==="rtl"&&(h+=Lt(a.clientWidth,l.clientWidth)-u),{width:u,height:c,x:h,y:f}}(st(t));else if(Z(e))n=function(i,a){const s=ht(i,!0,a==="fixed"),l=s.top+i.clientTop,u=s.left+i.clientLeft,c=Q(i)?vt(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:u*c.x,y:l*c.y}}(e,r);else{const i=$r(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Ut(n)}function Dr(t,e){const r=St(t);return!(r===e||!Z(r)||Kt(r))&&(J(r).position==="fixed"||Dr(r,e))}function xr(t,e){return Q(t)&&J(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Mr(t,e){const r=X(t);if(!Q(t))return r;let n=xr(t,e);for(;n&&La(n)&&J(n).position==="static";)n=xr(n,e);return n&&(it(n)==="html"||it(n)==="body"&&J(n).position==="static"&&!pe(n))?r:n||function(i){let a=St(i);for(;Q(a)&&!Kt(a);){if(pe(a))return a;a=St(a)}return null}(t)||r}function Da(t,e,r){const n=Q(e),i=st(e),a=r==="fixed",s=ht(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const u={x:0,y:0};if(n||!n&&!a)if((it(e)!=="body"||kt(i))&&(l=Zt(e)),Q(e)){const c=ht(e,!0,a,e);u.x=c.x+e.clientLeft,u.y=c.y+e.clientTop}else i&&(u.x=Er(i));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}const xa={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=r==="clippingAncestors"?function(c,h){const f=h.get(c);if(f)return f;let p=Dt(c).filter(y=>Z(y)&&it(y)!=="body"),d=null;const g=J(c).position==="fixed";let m=g?St(c):c;for(;Z(m)&&!Kt(m);){const y=J(m),A=pe(m);A||y.position!=="fixed"||(d=null),(g?!A&&!d:!A&&y.position==="static"&&d&&["absolute","fixed"].includes(d.position)||kt(m)&&!A&&Dr(c,m))?p=p.filter(T=>T!==m):d=y,m=St(m)}return h.set(c,p),p}(e,this._c):[].concat(r),s=[...a,n],l=s[0],u=s.reduce((c,h)=>{const f=Lr(e,h,i);return c.top=Lt(f.top,c.top),c.right=_r(f.right,c.right),c.bottom=_r(f.bottom,c.bottom),c.left=Lt(f.left,c.left),c},Lr(e,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=Q(r),a=st(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l={x:1,y:1};const u={x:0,y:0};if((i||!i&&n!=="fixed")&&((it(r)!=="body"||kt(a))&&(s=Zt(r)),Q(r))){const c=ht(r);l=vt(r),u.x=c.x+r.clientLeft,u.y=c.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+u.x,y:e.y*l.y-s.scrollTop*l.y+u.y}},isElement:Z,getDimensions:function(t){return Ar(t)},getOffsetParent:Mr,getDocumentElement:st,getScale:vt,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||Mr,a=this.getDimensions;return{reference:Da(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>J(t).direction==="rtl"};function Ma(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=!0,animationFrame:l=!1}=n,u=i||a?[...Z(t)?Dt(t):t.contextElement?Dt(t.contextElement):[],...Dt(e)]:[];u.forEach(p=>{const d=!Z(p)&&p.toString().includes("V");!i||l&&!d||p.addEventListener("scroll",r,{passive:!0}),a&&p.addEventListener("resize",r)});let c,h=null;s&&(h=new ResizeObserver(()=>{r()}),Z(t)&&!l&&h.observe(t),Z(t)||!t.contextElement||l||h.observe(t.contextElement),h.observe(e));let f=l?ht(t):null;return l&&function p(){const d=ht(t);!f||d.x===f.x&&d.y===f.y&&d.width===f.width&&d.height===f.height||r(),f=d,c=requestAnimationFrame(p)}(),r(),()=>{var p;u.forEach(d=>{i&&d.removeEventListener("scroll",r),a&&d.removeEventListener("resize",r)}),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(c)}}const Na=(t,e,r)=>{const n=new Map,i={platform:xa,...r},a={...i.platform,_c:n};return va(t,e,{...i,platform:a})},Nr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const r=document.querySelector(e);r==null||r.append(t)};function Ca({middleware:t,placement:e=null,strategy:r,append:n,enabled:i}){const a=o.ref(null),s=o.ref(null),l=o.ref(null),u=o.ref(null),c=o.ref(null),h=o.ref(null),f=o.ref(null),p=o.ref(r??"absolute"),d=o.ref(null),g=()=>{!a.value||!s.value||Na(a.value,s.value,{middleware:t,placement:e,strategy:r}).then(y=>{l.value=y.x,u.value=y.y,p.value=y.strategy,c.value=y.middlewareData.arrow.x,h.value=y.middlewareData.arrow.y,f.value=y.placement})};o.watch(()=>({reference:o.unref(a),floating:o.unref(s),append:o.unref(n)}),({floating:y,append:A})=>{A&&Nr(y,A),g()},{flush:"post"}),o.watch(i,y=>{if(!(!a.value||!s.value)){if(!y)return m();d.value=Ma(a.value,s.value,g,{})}},{flush:"post"});const m=()=>{var y;(y=d.value)==null||y.call(d),d.value=null};return{x:l,y:u,arrowX:c,arrowY:h,placement:f,reference:a,floating:s,strategy:p,update:g}}const Ia=t=>{const{element:e,padding:r}=t;return{name:"arrow",options:t,fn(n){return o.isRef(e)?e.value!=null?wr({element:e.value,padding:r}).fn(n):{}:e?wr({element:e,padding:r}).fn(n):{}}}},Ba=["data-placement"],Cr={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,r=o.ref(!1),n=o.ref(null),{x:i,y:a,arrowX:s,arrowY:l,placement:u,reference:c,floating:h,strategy:f}=Ca({placement:e.placement,middleware:[Oa(),ka({padding:5}),$a(e.offset),Ia({element:n,padding:5})],append:o.computed(()=>e.appendTo),enabled:r}),p=()=>{e.disabled||(r.value=!0)},d=()=>{r.value=!1},g=m=>{c.value=m};return wn(h,m=>{var y;(y=c.value)!=null&&y.contains(m.target)||d()}),(m,y)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(m.$slots,"default",{setRef:g,show:p,hide:d}),o.createElementVNode("div",{ref_key:"floating",ref:h,"data-placement":o.unref(u),style:o.normalizeStyle({position:o.unref(f),top:o.unref(a)?`${o.unref(a)}px`:"",left:o.unref(i)?`${o.unref(i)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[r.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(m.$slots,"content",{close:d},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:n,class:"is-arrow",style:o.normalizeStyle({position:o.unref(f),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(s)?`${o.unref(s)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,Ba)],64))}},za=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ra={key:0},Ga=["colspan"],Va={key:1},ja=["colspan"],Ir={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const r=t,{isLoading:n,appendTo:i}=o.toRefs(r),a=De(n,{delay:pr}),{t:s}=wt(),l=ft("table"),u=o.computed(()=>r.columns),c=o.computed(()=>Object.keys(r.columns).length),h=(f,p)=>{f.sortOrders&&e("sort",{target:p,orders:f.sortOrders})};return(f,p)=>(o.openBlock(),o.createElementBlock("table",{class:o.normalizeClass(o.unref(l))},[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(d,g)=>(o.openBlock(),o.createBlock(Cr,{key:g,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":o.unref(i)},{default:o.withCtx(({setRef:m,show:y,hide:A})=>[o.createElementVNode("th",{ref_for:!0,ref:m,class:o.normalizeClass([[d.class],{"is-active":g===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt),"is-sortable":d.sortOrders,"is-desc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b),"is-asc":g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)}]),onMouseenter:y,onMouseleave:A,onFocus:y,onBlur:A,onClick:T=>h(d,g),onKeydown:[o.withKeys(o.withModifiers(T=>h(d,g),["prevent"]),["space"]),o.withKeys(o.withModifiers(T=>h(d,g),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[o.renderSlot(f.$slots,`header-${g}`,{column:d},()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),d.sortOrders&&g!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(mr),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(nt)?(o.openBlock(),o.createBlock(o.unref(mr),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b)?(o.openBlock(),o.createBlock(o.unref(hr),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),g===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(C)?(o.openBlock(),o.createBlock(o.unref(hr),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,za)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.rows,(d,g)=>(o.openBlock(),o.createElementBlock("tr",{key:g},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(m,y)=>(o.openBlock(),o.createElementBlock("td",{key:y,class:o.normalizeClass([[m.class],{"is-active":y===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(nt)}])},[o.renderSlot(f.$slots,`cell-${y}`,{row:d,prop:y},()=>[o.createTextVNode(o.toDisplayString(d[y]),1)])],2))),128))]))),128))]),o.unref(a)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",Ra,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.loading")),1)])],8,Ga)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(n)&&!o.unref(a)?(o.openBlock(),o.createElementBlock("tfoot",Va,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:c.value},[o.renderSlot(f.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("common.noData")),1)])],8,ja)])])):o.createCommentVNode("",!0)],2))}},Fa={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"},Ya=o.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),Ha=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Ua=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Wa=[Ya,Ha,Ua];function Ka(t,e){return o.openBlock(),o.createElementBlock("svg",Fa,Wa)}const qa={render:Ka},Za={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:r,hasTranlation:n}=wt(),i=ft("error-notice"),a=o.computed(()=>{var s;return n(`errors.${e.error.key}`)?r(`errors.${e.error.key}`,e.error.cause):(s=e.error)==null?void 0:s.message});return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(i))},[o.createVNode(o.unref(qa),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(a.value),1)],2))}};function Br(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}function he(t,e,r){return(new Array(r+1).join(e)+t).slice(-r)}const zr=Symbol("ErrorProviderContext"),Rr=()=>{const t=o.ref(""),e=o.ref({}),r=a=>{console.log({error:a}),t.value=a.message||a.error.message,e.value={message:a.message,key:a.key||Br(a.message),cause:a.cause}},i={onError:r,reset:()=>{t.value="",e.value={}}};return o.provide(zr,i),window.onerror=a=>{console.log("WINDOW_ONERROR:",a)},o.onErrorCaptured((a,s,l)=>{console.log("onErrorCaptured:",a,s,l)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:r}},Gr=()=>{const t=Xa();return{onError:t.onError,reset:t.reset}},Xa=()=>{const t=o.inject(zr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ja={__name:"ErrorProvider",setup(t){const{message:e,hasError:r,error:n}=Rr();return(i,a)=>o.renderSlot(i.$slots,"default",{message:o.unref(e),error:o.unref(n),hasError:o.unref(r)})}},Qa={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"M",tooltip:"Mérkőzésszám"},wins:{short:"GY",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"GYH",tooltip:"Győzelem Hosszabbításban"},otl:{short:"VH",tooltip:"Vereség Hosszabbításban"},losses:{short:"V",tooltip:"Vereség"},goalFor:{short:"SZG",tooltip:"Szerzett Gól"},goalAgainst:{short:"KG",tooltip:"Kapott Gól"},goalDiff:{short:"GK",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"L",tooltip:"Lövések"},sogPercent:{short:"L%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"M",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"LM",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"KL",tooltip:"Kapott Lövés"},svs:{short:"VL",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},ti={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"PTS",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"SOG",tooltip:"Shots on Goal"},sogPercent:{short:"SOG%",tooltip:"Shots on Goal Percent"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Vr=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},ei=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Wo({hu:Qa,en:ti},t.messages),{translate:r}=nr({locale:o.computed(()=>t.locale),messages:e});return{translate:r}}});function ri(t,e,r,n,i,a){return o.renderSlot(t.$slots,"default",{t:t.translate})}const ni=Vr(ei,[["render",ri]]),oi=["src"],ai=["src","title"],ge=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:r}=o.toRefs(e),n=o.ref({src:e.src}),{error:i,isReady:a}=Mn(n,{resetOnExecute:!1,shallow:!1});return(s,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(i)&&o.unref(r)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),class:o.normalizeClass(["is-loaded",s.$attrs.class])},null,10,oi)):o.createCommentVNode("",!0),o.unref(i)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:n.value.src,class:o.normalizeClass([s.$attrs.class,{"is-loaded":o.unref(a)}]),title:e.title},null,10,ai))],64))}}),ii={style:{"text-align":"center"}},jr={__name:"LoadingIndicator",setup(t){const{t:e}=wt();return(r,n)=>(o.openBlock(),o.createElementBlock("div",ii,o.toDisplayString(o.unref(e)("common.loading")),1))}};function si({currentPage:t,itemsPerPage:e=20,totalItems:r,rangeLength:n=5,update:i=at}){const a=o.computed(()=>Math.ceil(o.unref(r)/e)),s=o.computed(()=>{const h=o.unref(t)-1,f=Array.from({length:a.value},(g,m)=>m+1),p=Math.floor(n/2);let d=Math.max(h-p,0);return d+n>=a.value&&(d=Math.max(a.value-n,0)),f.slice(d,d+n)}),l=h=>{const f=o.unref(t)+h;c(f)&&i(f)},u=h=>{c(h)&&i(h)},c=h=>h<=a.value&&h>0;return{page:t,range:s,pageCount:a,goTo:u,pageStep:l}}const li={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"},ci=o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),ui=[ci];function fi(t,e){return o.openBlock(),o.createElementBlock("svg",li,ui)}const di={render:fi},pi={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"},mi=o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),hi=[mi];function gi(t,e){return o.openBlock(),o.createElementBlock("svg",pi,hi)}const yi={render:gi},bi=["disabled"],wi=["disabled"],vi={key:1,class:"is-disabled"},Si=["disabled","onClick"],_i={key:2,class:"is-disabled"},Ai=[o.createElementVNode("span",null,"...",-1)],Ti=["disabled"],Pi=["disabled"],Oi={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const r=t,n=ft("paginator"),{page:i,pageCount:a,range:s,goTo:l,pageStep:u}=si({currentPage:o.computed(()=>r.page),totalItems:o.computed(()=>r.totalItems),itemsPerPage:r.itemsPerPage,rangeLength:r.rangeLength,update:c=>e("change",c)});return(c,h)=>o.unref(a)>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(n))},[o.createElementVNode("button",{type:"button",disabled:o.unref(i)===1,onClick:h[0]||(h[0]=f=>o.unref(u)(-1))},[o.renderSlot(c.$slots,"prev",{},()=>[o.createVNode(o.unref(di),{class:"icon paginator-left"})])],8,bi),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(i)===1,onClick:h[1]||(h[1]=f=>o.unref(l)(1))},"1",8,wi)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vi,"...")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),f=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:f,class:o.normalizeClass({"is-active":f===o.unref(i)}),disabled:f===o.unref(i),onClick:p=>o.unref(l)(f)},o.toDisplayString(f),11,Si))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",_i,Ai)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(i)===o.unref(a),onClick:h[2]||(h[2]=f=>o.unref(l)(o.unref(a)))},o.toDisplayString(o.unref(a)),9,Ti)),o.createElementVNode("button",{type:"button",disabled:o.unref(i)===o.unref(a),onClick:h[3]||(h[3]=o.withModifiers(f=>o.unref(u)(1),["prevent"]))},[o.renderSlot(c.$slots,"next",{},()=>[o.createVNode(o.unref(yi),{class:"icon paginator-left"})])],8,Pi)],2)):o.createCommentVNode("",!0)}},Fr={__name:"ResponsiveTable",setup(t){const e=o.ref(null),r=ft("table-responsive");return(n,i)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:o.normalizeClass(o.unref(r))},[o.renderSlot(n.$slots,"default",{el:e.value})],2))}};var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",l="minute",u="hour",c="day",h="week",f="month",p="quarter",d="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var _=["th","st","nd","rd"],v=O%100;return"["+O+(_[(v-20)%10]||_[v]||_[0])+"]"}},$=function(O,_,v){var P=String(O);return!P||P.length>=_?O:""+Array(_+1-P.length).join(v)+O},D={s:$,z:function(O){var _=-O.utcOffset(),v=Math.abs(_),P=Math.floor(v/60),w=v%60;return(_<=0?"+":"-")+$(P,2,"0")+":"+$(w,2,"0")},m:function O(_,v){if(_.date()<v.date())return-O(v,_);var P=12*(v.year()-_.year())+(v.month()-_.month()),w=_.clone().add(P,f),E=v-w<0,L=_.clone().add(P+(E?-1:1),f);return+(-(P+(v-w)/(E?w-L:L-w))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:d,w:h,d:c,D:g,h:u,m:l,s,ms:a,Q:p}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},x="en",I={};I[x]=T;var G=function(O){return O instanceof B},F=function O(_,v,P){var w;if(!_)return x;if(typeof _=="string"){var E=_.toLowerCase();I[E]&&(w=E),v&&(I[E]=v,w=E);var L=_.split("-");if(!w&&L.length>1)return O(L[0])}else{var N=_.name;I[N]=_,w=N}return!P&&w&&(x=w),w||!P&&x},M=function(O,_){if(G(O))return O.clone();var v=typeof _=="object"?_:{};return v.date=O,v.args=arguments,new B(v)},k=D;k.l=F,k.i=G,k.w=function(O,_){return M(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var B=function(){function O(v){this.$L=F(v.locale,null,!0),this.parse(v)}var _=O.prototype;return _.parse=function(v){this.$d=function(P){var w=P.date,E=P.utc;if(w===null)return new Date(NaN);if(k.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(y);if(L){var N=L[2]-1||0,j=(L[7]||"0").substring(0,3);return E?new Date(Date.UTC(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],N,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(w)}(v),this.$x=v.x||{},this.init()},_.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(v,P){var w=M(v);return this.startOf(P)<=w&&w<=this.endOf(P)},_.isAfter=function(v,P){return M(v)<this.startOf(P)},_.isBefore=function(v,P){return this.endOf(P)<M(v)},_.$g=function(v,P,w){return k.u(v)?this[P]:this.set(w,v)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(v,P){var w=this,E=!!k.u(P)||P,L=k.p(v),N=function(_t,q){var ut=k.w(w.$u?Date.UTC(w.$y,q,_t):new Date(w.$y,q,_t),w);return E?ut:ut.endOf(c)},j=function(_t,q){return k.w(w.toDate()[_t].apply(w.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(q)),w)},V=this.$W,U=this.$M,ct=this.$D,ot="set"+(this.$u?"UTC":"");switch(L){case d:return E?N(1,0):N(31,11);case f:return E?N(1,U):N(0,U+1);case h:var Mt=this.$locale().weekStart||0,Nt=(V<Mt?V+7:V)-Mt;return N(E?ct-Nt:ct+(6-Nt),U);case c:case g:return j(ot+"Hours",0);case u:return j(ot+"Minutes",1);case l:return j(ot+"Seconds",2);case s:return j(ot+"Milliseconds",3);default:return this.clone()}},_.endOf=function(v){return this.startOf(v,!1)},_.$set=function(v,P){var w,E=k.p(v),L="set"+(this.$u?"UTC":""),N=(w={},w[c]=L+"Date",w[g]=L+"Date",w[f]=L+"Month",w[d]=L+"FullYear",w[u]=L+"Hours",w[l]=L+"Minutes",w[s]=L+"Seconds",w[a]=L+"Milliseconds",w)[E],j=E===c?this.$D+(P-this.$W):P;if(E===f||E===d){var V=this.clone().set(g,1);V.$d[N](j),V.init(),this.$d=V.set(g,Math.min(this.$D,V.daysInMonth())).$d}else N&&this.$d[N](j);return this.init(),this},_.set=function(v,P){return this.clone().$set(v,P)},_.get=function(v){return this[k.p(v)]()},_.add=function(v,P){var w,E=this;v=Number(v);var L=k.p(P),N=function(U){var ct=M(E);return k.w(ct.date(ct.date()+Math.round(U*v)),E)};if(L===f)return this.set(f,this.$M+v);if(L===d)return this.set(d,this.$y+v);if(L===c)return N(1);if(L===h)return N(7);var j=(w={},w[l]=n,w[u]=i,w[s]=r,w)[L]||1,V=this.$d.getTime()+v*j;return k.w(V,this)},_.subtract=function(v,P){return this.add(-1*v,P)},_.format=function(v){var P=this,w=this.$locale();if(!this.isValid())return w.invalidDate||m;var E=v||"YYYY-MM-DDTHH:mm:ssZ",L=k.z(this),N=this.$H,j=this.$m,V=this.$M,U=w.weekdays,ct=w.months,ot=function(q,ut,_e,Jt){return q&&(q[ut]||q(P,E))||_e[ut].slice(0,Jt)},Mt=function(q){return k.s(N%12||12,q,"0")},Nt=w.meridiem||function(q,ut,_e){var Jt=q<12?"AM":"PM";return _e?Jt.toLowerCase():Jt},_t={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:k.s(V+1,2,"0"),MMM:ot(w.monthsShort,V,ct,3),MMMM:ot(ct,V),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:ot(w.weekdaysMin,this.$W,U,2),ddd:ot(w.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(N),HH:k.s(N,2,"0"),h:Mt(1),hh:Mt(2),a:Nt(N,j,!0),A:Nt(N,j,!1),m:String(j),mm:k.s(j,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:L};return E.replace(A,function(q,ut){return ut||_t[q]||L.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(v,P,w){var E,L=k.p(P),N=M(v),j=(N.utcOffset()-this.utcOffset())*n,V=this-N,U=k.m(this,N);return U=(E={},E[d]=U/12,E[f]=U,E[p]=U/3,E[h]=(V-j)/6048e5,E[c]=(V-j)/864e5,E[u]=V/i,E[l]=V/n,E[s]=V/r,E)[L]||V,w?U:k.a(U)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return I[this.$L]},_.locale=function(v,P){if(!v)return this.$L;var w=this.clone(),E=F(v,P,!0);return E&&(w.$L=E),w},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},O}(),H=B.prototype;return M.prototype=H,[["$ms",a],["$s",s],["$m",l],["$H",u],["$W",c],["$M",f],["$y",d],["$D",g]].forEach(function(O){H[O[1]]=function(_){return this.$g(_,O[0],O[1])}}),M.extend=function(O,_){return O.$i||(O(_,B,M),O.$i=!0),M},M.locale=F,M.isDayjs=G,M.unix=function(O){return M(1e3*O)},M.en=I[x],M.Ls=I,M.p={},M})})(Yr);var Hr=Yr.exports;const W=gt(Hr);var Ur={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,l){var u=s.prototype;l.utc=function(m){var y={date:m,utc:!0,args:arguments};return new s(y)},u.utc=function(m){var y=l(this.toDate(),{locale:this.$L,utc:!0});return m?y.add(this.utcOffset(),r):y},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),c.call(this,m)};var h=u.init;u.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else h.call(this)};var f=u.utcOffset;u.utcOffset=function(m,y){var A=this.$utils().u;if(A(m))return this.$u?0:A(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=function(x){x===void 0&&(x="");var I=x.match(n);if(!I)return null;var G=(""+I[0]).match(i)||["-",0,0],F=G[0],M=60*+G[1]+ +G[2];return M===0?0:F==="+"?M:-M}(m),m===null))return this;var T=Math.abs(m)<=16?60*m:m,$=this;if(y)return $.$offset=T,$.$u=m===0,$;if(m!==0){var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(T+D,r)).$offset=T,$.$x.$localOffset=D}else $=this.utc();return $};var p=u.format;u.format=function(m){var y=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},u.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(m){return m==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var g=u.diff;u.diff=function(m,y,A){if(m&&this.$u===m.$u)return g.call(this,m,y,A);var T=this.local(),$=l(m).local();return g.call(T,$,y,A)}}})})(Ur);var $i=Ur.exports;const Ei=gt($i);var Wr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,a,s){var l,u=function(p,d,g){g===void 0&&(g={});var m=new Date(p),y=function(A,T){T===void 0&&(T={});var $=T.timeZoneName||"short",D=A+"|"+$,x=n[D];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),n[D]=x),x}(d,g);return y.formatToParts(m)},c=function(p,d){for(var g=u(p,d),m=[],y=0;y<g.length;y+=1){var A=g[y],T=A.type,$=A.value,D=r[T];D>=0&&(m[D]=parseInt($,10))}var x=m[3],I=x===24?0:x,G=m[0]+"-"+m[1]+"-"+m[2]+" "+I+":"+m[4]+":"+m[5]+":000",F=+p;return(s.utc(G).valueOf()-(F-=F%1e3))/6e4},h=a.prototype;h.tz=function(p,d){p===void 0&&(p=l);var g=this.utcOffset(),m=this.toDate(),y=m.toLocaleString("en-US",{timeZone:p}),A=Math.round((m-new Date(y))/1e3/60),T=s(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(m.getTimezoneOffset()/15)-A,!0);if(d){var $=T.utcOffset();T=T.add(g-$,"minute")}return T.$x.$timezone=p,T},h.offsetName=function(p){var d=this.$x.$timezone||s.tz.guess(),g=u(this.valueOf(),d,{timeZoneName:p}).find(function(m){return m.type.toLowerCase()==="timezonename"});return g&&g.value};var f=h.startOf;h.startOf=function(p,d){if(!this.$x||!this.$x.$timezone)return f.call(this,p,d);var g=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return f.call(g,p,d).tz(this.$x.$timezone,!0)},s.tz=function(p,d,g){var m=g&&d,y=g||d||l,A=c(+s(),y);if(typeof p!="string")return s(p).tz(y);var T=function(I,G,F){var M=I-60*G*1e3,k=c(M,F);if(G===k)return[M,G];var B=c(M-=60*(k-G)*1e3,F);return k===B?[M,k]:[I-60*Math.min(k,B)*1e3,Math.max(k,B)]}(s.utc(p,m).valueOf(),A,y),$=T[0],D=T[1],x=s($).utcOffset(D);return x.$x.$timezone=y,x},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){l=p}}})})(Wr);var ki=Wr.exports;const Li=gt(ki);var Kr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var c=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),f==="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 f}});return a.bind(this)(h)}}})})(Kr);var Di=Kr.exports;const xi=gt(Di);var qr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n){n.prototype.isSameOrBefore=function(i,a){return this.isSame(i,a)||this.isBefore(i,a)}}})})(qr);var Mi=qr.exports;const Ni=gt(Mi);var Zr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){return function(r,n,i){n.prototype.isBetween=function(a,s,l,u){var c=i(a),h=i(s),f=(u=u||"()")[0]==="(",p=u[1]===")";return(f?this.isAfter(c,l):!this.isBefore(c,l))&&(p?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(c,l):!this.isAfter(c,l))&&(p?this.isAfter(h,l):!this.isBefore(h,l))}}})})(Zr);var Ci=Zr.exports;const Ii=gt(Ci);var Xr={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(lt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,i,a){var s=i.prototype,l=s.format;a.en.formats=r,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,h=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(d,g,m){var y=m&&m.toUpperCase();return g||p[m]||r[m]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,T,$){return T||$.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,h)}}})})(Xr);var Bi=Xr.exports;const zi=gt(Bi);var Ri={exports:{}};(function(t,e){(function(r,n){t.exports=n(Hr)})(lt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),a={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(s){return s+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(s,l,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(s,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(s,l,u,c){return s+" perc"+(c||l?"":"e")},h:function(s,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(s,l,u,c){return s+" "+(c||l?"óra":"órája")},d:function(s,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(s,l,u,c){return s+" "+(c||l?"nap":"napja")},M:function(s,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(s,l,u,c){return s+" "+(c||l?"hónap":"hónapja")},y:function(s,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(s,l,u,c){return s+" "+(c||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 i.default.locale(a,null,!0),a})})(Ri),W.extend(Ei),W.extend(Li),W.extend(xi),W.extend(zi),W.extend(Ni),W.extend(Ii);const Jr=()=>W.tz.guess(),Xt=(t="",e="",r="",n="hu")=>(r=r||W.tz.guess(),W(t).isValid()?W(t).tz(r).locale(n).format(e):""),xt=(t="",e="",r="hu")=>{if(!W(t).isValid())return"";e=e||W.tz.guess();const i=new Intl.DateTimeFormat(Gi(r),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(a=>a.type==="timeZoneName");return i&&i.value},Gi=t=>fr.get(t),ye=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Qr=t=>{const e=~~(t/60),r=~~t%60;return he(e,"0",2)+":"+he(r,"0",2)},tn=(t,e="day")=>W().isSameOrBefore(W(t),e),Vi=(t,e,r)=>W(t).isBetween(e,W(r)),ji=(t,e,r="month")=>W(t).isSame(e,r),Fi=["onClick"],Yi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const r=t,{t:n}=wt(),i=ft("timezone-selector"),a=o.computed(()=>xt(new Date,null,r.locale)),s=Jr(),l=o.computed(()=>Array.from(dr.values()).map(c=>({...c,isActive:xt(new Date,r.currentZone,r.locale)===xt(new Date,c.timezone,r.locale),zoneOffsetName:xt(new Date,c.timezone,r.locale)}))),u=c=>e("change",c);return(c,h)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(i))},[o.createVNode(o.unref(ar),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:h[0]||(h[0]=o.withModifiers(f=>u(o.unref(s)),["prevent"]))},o.toDisplayString(a.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,f=>(o.openBlock(),o.createElementBlock("a",{key:f.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":f.isActive}),onClick:o.withModifiers(p=>u(f.timezone),["prevent"])},o.toDisplayString(o.unref(n)(`common.${f.countryLabelKey}`))+" ("+o.toDisplayString(f.zoneOffsetName)+") ",11,Fi))),128))],2))}},en=(t,e="",r={})=>{const n=o.ref(""),{t:i}=wt();if(e)try{const l=rn(o.unref(t),e);t=qo(l,o.unref(t))}catch(l){n.value=l}const a=l=>({...l,...l.label&&{label:i(l.label??"",o.unref(r))},...l.tooltip&&{tooltip:i(l.tooltip??"")}});return{columns:o.computed(()=>pt(a,o.unref(t))),error:n}},rn=(t,e="")=>{const r=pt(Ht,Pt(",",e)),n=dt(t);if(r[0]==="")return resolve([]);const i=r.findIndex(a=>!n.includes(a));if(i>-1)throw r[i];return r};class nn extends Error{constructor(e,r={}){const{key:n,cause:i}=r;super(e),this.name="WidgetError",this.key=n,this.cause=i}}const be={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},Hi={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},Ui={class:"is-portrait-image"},Wi=["href"],Ki=["href"],qi={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1}},emits:["sort"],setup(t,{emit:e}){const r=t,{onError:n}=Gr(),i=o.computed(()=>r.columns),{columns:a,error:s}=en(i,r.hideColumns);s.value&&n(new nn(be.message,{...be.options,cause:{column:s.value}}));const l=u=>e("sort",u);return(u,c)=>(o.openBlock(),o.createBlock(Fr,null,{default:o.withCtx(({el:h})=>[o.createVNode(Ir,{columns:o.unref(a),sort:r.sort,rows:r.rows,"is-loading":t.isLoading,"append-to":h,onSort:l},o.createSlots({"cell-index":o.withCtx(({row:f})=>[o.createElementVNode("span",{class:o.normalizeClass(f.indexClass)},o.toDisplayString(f.index),3)]),"cell-playerPortrait":o.withCtx(({row:f})=>[o.createElementVNode("div",Ui,[(o.openBlock(),o.createBlock(ge,{key:f.id||f.playerId,src:f.playerPortrait,"default-src":o.unref(lr)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:f})=>[(o.openBlock(),o.createBlock(ge,{class:"is-logo-image",key:f.teamId||f.id,src:f.teamLogo},null,8,["src"]))]),loading:o.withCtx(()=>[o.createVNode(jr)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:o.withCtx(({row:f})=>[o.createElementVNode("a",{href:t.externalTeamResolver(f.teamName),target:"_blank"},o.toDisplayString(f.teamName),9,Wi)]),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:f})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(f.id),target:"_blank"},o.toDisplayString(f.name),9,Ki)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Zi={};function Xi(t,e){return o.openBlock(),o.createElementBlock("div",null," Test-8 ")}const Ji=Vr(Zi,[["render",Xi]]),on=async(t,e,r)=>{const n=`${ir}${o.unref(t)}?${Qi(r)}`;return new Promise((i,a)=>{fetch(n,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ts(e)}}).then(s=>s.json()).then(s=>{if(s.error)return a(s);i(s.data)}).catch(s=>{a(s)})})},Qi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ts=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:{}.NODE_ENV!=="production"?{}.VITE_VBR_API_KEY:"")},es=(t={})=>{const{initial:e=1,items:r=[],limit:n,auto:i=!1}=t,a=o.ref(e),s=c=>tn(c,"day");return yn(r,()=>{if(!i)return;const c=Do(Qo(s,"gameDate"))(o.unref(r));a.value=c===-1?1:Math.floor(c/n)+1}),{page:a,change:c=>{a.value=c}}},rs=({options:t={},transform:e=n=>n,onError:r=at})=>{const{path:n,apiKey:i,params:a}=t,{state:s,error:l,isLoading:u,execute:c}=Ee(()=>on(n,i,o.unref(a)).then(h=>e(h)),[],{immediate:!1,resetOnExecute:!1,onError:r});return{state:s,error:l,isLoading:u,execute:c}};/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
11
11
|
|
|
12
12
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.1.0-beta.
|
|
3
|
+
* version: v2.1.0-beta.7 - 17/09/2023, 20:50:16
|
|
4
4
|
* (c) 2023
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -1289,7 +1289,7 @@ const ya = function(t, e) {
|
|
|
1289
1289
|
});
|
|
1290
1290
|
return () => gn(t.tag, o);
|
|
1291
1291
|
}
|
|
1292
|
-
}), ba = "
|
|
1292
|
+
}), ba = "https://preprodapi.icehockey.hu/vbr", wa = "https://www.jegkorongszovetseg.hu/event/game/", Pa = "https://jegkorongszovetseg.hu/assets/images/player_blank.png", Oa = "https://www.ersteliga.hu/stats/players#/player/", Aa = "https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=", yt = "original", y = "descend", C = "ascend", $a = (/* @__PURE__ */ new Map()).set("hu", "hu-hu").set("en", "hu-gb"), xa = (/* @__PURE__ */ new Map()).set("Europe/Budapest", { countryLabelKey: "hungary", timezone: "Europe/Budapest" }).set("Europe/Bucharest", { countryLabelKey: "romania", timezone: "Europe/Bucharest" }), ji = "/v1/playersGoaliePeriod", Bi = "/v1/playersGoalieUnderPeriod", Fi = 1e3 * 60 * 5, _a = 1e3, Sa = {
|
|
1293
1293
|
"aria-hidden": "true",
|
|
1294
1294
|
focusable: "false",
|
|
1295
1295
|
"data-prefix": "fas",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Data visualization for MJSZ VBR",
|
|
4
4
|
"author": "Ákos Stegner <akos.stegner@gmail.com>",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.1.0-beta.
|
|
6
|
+
"version": "2.1.0-beta.7",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dayjs": "^1.11.7",
|
|
32
32
|
"ramda": "^0.29.0",
|
|
33
33
|
"vue": "^3.3.4",
|
|
34
|
-
"@mjsz-vbr-elements/shared": "^2.1.0-beta.
|
|
34
|
+
"@mjsz-vbr-elements/shared": "^2.1.0-beta.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@vitejs/plugin-vue": "^4.2.3",
|