@mjsz-vbr-elements/core 2.9.1 → 2.10.0
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/AdditionalStandingsText-3jExdQ4O.js +2376 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +27 -35
- package/dist/constants.js +1 -1
- package/dist/{convert-C_k4-oaF.js → convert-HYpfGr9y.js} +2 -2
- package/dist/datetime-P3jKxpvY.js +1297 -0
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +90 -91
- package/dist/useAdditionalText-DHQEg82L.js +748 -0
- package/dist/utils.js +4 -4
- package/package.json +9 -9
- package/dist/AdditionalStandingsText-BiRMcxjC.js +0 -3256
- package/dist/datetime-BzdN4htO.js +0 -1272
- package/dist/useAdditionalText-BCKSsRDN.js +0 -730
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.10.0 - 13/01/2025, 21:45:11
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
var MjszVbrElementsCore=function(T,o){"use strict";function Co(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function Ke(t){return typeof t=="function"?t():o.unref(t)}const Lo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Io=t=>t!=null,fe=()=>{};function me(t){var e;const n=Ke(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Bo=Lo?window:void 0;function zo(){const t=o.ref(!1);return o.getCurrentInstance()&&o.onMounted(()=>{t.value=!0}),t}function Ro(t){const e=zo();return o.computed(()=>(e.value,!!t()))}function Vo(t,e,n={}){const{root:r,rootMargin:a="0px",threshold:s=.1,window:i=Bo,immediate:l=!0}=n,c=Ro(()=>i&&"IntersectionObserver"in i),u=o.computed(()=>{const d=Ke(t);return(Array.isArray(d)?d:[d]).map(me).filter(Io)});let f=fe;const m=o.ref(l),p=c.value?o.watch(()=>[u.value,me(r),m.value],([d,h])=>{if(f(),!m.value||!d.length)return;const y=new IntersectionObserver(e,{root:me(h),rootMargin:a,threshold:s});d.forEach(S=>S&&y.observe(S)),f=()=>{y.disconnect(),f=fe}},{immediate:l,flush:"post"}):fe,g=()=>{f(),p(),m.value=!1};return Co(g),{isSupported:c,isActive:m,pause(){f(),m.value=!1},resume(){m.value=!0},stop:g}}const Go=o.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const r=o.ref(null),{stop:a}=Vo(r,([{isIntersecting:s}])=>{s&&n("intersect")},t.options);return o.onUnmounted(a),()=>{if(e.default)return o.h(t.as||"div",{ref:r},e.default())}}}),ct=t=>"mjsz-vbr-"+t,Ze={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,a=ct("base-input"),s=o.computed({get:()=>n.modelValue,set:i=>r("update:modelValue",i)});return(i,l)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:o.normalizeClass([o.unref(a),"is-select"])},[o.renderSlot(i.$slots,"default")],2)),[[o.vModelSelect,s.value]])}};function Xe(t){return o.getCurrentScope()?(o.onScopeDispose(t),!0):!1}function st(t){return typeof t=="function"?t():o.unref(t)}const Wt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jo=Object.prototype.toString,Fo=t=>jo.call(t)==="[object Object]",tt=()=>{},Yo=Ho();function Ho(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Uo(t,e){function n(...r){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(s)})}return n}const Je=t=>t();function Wo(t=Je){const e=o.ref(!0);function n(){e.value=!1}function r(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:o.readonly(e),pause:n,resume:r,eventFilter:a}}function pe(t,e=!1,n="Timeout"){return new Promise((r,a)=>{setTimeout(e?()=>a(n):r,t)})}function qo(t,e,n={}){const{eventFilter:r=Je,...a}=n;return o.watch(t,Uo(r,e),a)}function Ko(t,e,n={}){const{eventFilter:r,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=Wo(r);return{stop:qo(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function he(t,e=!1){function n(m,{flush:p="sync",deep:g=!1,timeout:d,throwOnTimeout:h}={}){let y=null;const k=[new Promise(P=>{y=o.watch(t,N=>{m(N)!==e&&(y==null||y(),P(N))},{flush:p,deep:g,immediate:!0})})];return d!=null&&k.push(pe(d,h).then(()=>st(t)).finally(()=>y==null?void 0:y())),Promise.race(k)}function r(m,p){if(!o.isRef(m))return n(N=>N===m,p);const{flush:g="sync",deep:d=!1,timeout:h,throwOnTimeout:y}=p??{};let S=null;const P=[new Promise(N=>{S=o.watch([t,m],([x,M])=>{e!==(x===M)&&(S==null||S(),N(x))},{flush:g,deep:d,immediate:!0})})];return h!=null&&P.push(pe(h,y).then(()=>st(t)).finally(()=>(S==null||S(),st(t)))),Promise.race(P)}function a(m){return n(p=>!!p,m)}function s(m){return r(null,m)}function i(m){return r(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,p){return n(g=>{const d=Array.from(g);return d.includes(m)||d.includes(st(m))},p)}function u(m){return f(1,m)}function f(m=1,p){let g=-1;return n(()=>(g+=1,g>=m),p)}return Array.isArray(st(t))?{toMatch:n,toContains:c,changed:u,changedTimes:f,get not(){return he(t,!e)}}:{toMatch:n,toBe:r,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return he(t,!e)}}}function Zo(t){return he(t)}function Xo(t,e,n={}){const{immediate:r=!0}=n,a=o.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},st(e))}return r&&(a.value=!0,Wt&&c()),Xe(l),{isPending:o.readonly(a),start:c,stop:l}}function Qe(t,e,n){const r=o.watch(t,(...a)=>(o.nextTick(()=>r()),e(...a)),n);return r}function Jo(t,e,n){const r=o.watch(t,(a,s,i)=>{a&&(n!=null&&n.once&&o.nextTick(()=>r()),e(a,s,i))},{...n,once:!1});return r}function Et(t){var e;const n=st(t);return(e=n==null?void 0:n.$el)!=null?e:n}const tn=Wt?window:void 0,Qo=Wt?window.document:void 0;function qt(...t){let e,n,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,a]=t,e=tn):[e,n,r,a]=t,!e)return tt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,m,p,g)=>(f.addEventListener(m,p,g),()=>f.removeEventListener(m,p,g)),c=o.watch(()=>[Et(e),st(a)],([f,m])=>{if(i(),!f)return;const p=Fo(m)?{...m}:m;s.push(...n.flatMap(g=>r.map(d=>l(f,g,d,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Xe(u),u}let en=!1;function tr(t,e,n={}){const{window:r=tn,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!r)return tt;Yo&&!en&&(en=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",tt)),r.document.documentElement.addEventListener("click",tt));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(d=>d===p.target||p.composedPath().includes(d));{const d=Et(g);return d&&(p.target===d||p.composedPath().includes(d))}}),f=[qt(r,"click",p=>{const g=Et(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),qt(r,"pointerdown",p=>{const g=Et(t);l=!c(p)&&!!(g&&!p.composedPath().includes(g))},{passive:!0}),i&&qt(r,"blur",p=>{setTimeout(()=>{var g;const d=Et(t);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(d!=null&&d.contains(r.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function nn(t,e,n){const{immediate:r=!0,delay:a=0,onError:s=tt,onSuccess:i=tt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},f=c?o.shallowRef(e):o.ref(e),m=o.ref(!1),p=o.ref(!1),g=o.shallowRef(void 0);async function d(S=0,...k){l&&(f.value=e),g.value=void 0,m.value=!1,p.value=!0,S>0&&await pe(S);const P=typeof t=="function"?t(...k):t;try{const N=await P;f.value=N,m.value=!0,i(N)}catch(N){if(g.value=N,s(N),u)throw N}finally{p.value=!1}return f.value}r&&d(a);const h={state:f,isReady:m,isLoading:p,error:g,execute:d};function y(){return new Promise((S,k)=>{Zo(p).toBe(!1).then(()=>S(h)).catch(k)})}return{...h,then(S,k){return y().then(S,k)}}}function er(t={}){const{document:e=Qo}=t;if(!e)return o.ref("visible");const n=o.ref(e.visibilityState);return qt(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}async function nr(t){return new Promise((e,n)=>{const r=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:f}=t;r.src=a,s&&(r.srcset=s),i&&(r.sizes=i),l&&(r.className=l),c&&(r.loading=c),u&&(r.crossOrigin=u),f&&(r.referrerPolicy=f),r.onload=()=>e(r),r.onerror=n})}function or(t,e={}){const n=nn(()=>nr(st(t)),void 0,{resetOnExecute:!0,...e});return o.watch(()=>st(t),()=>n.execute(e.delay),{deep:!0}),n}function on(t=[],e={}){const{delay:n=0}=e,r=o.ref(!1),a=o.computed(()=>{const l=o.unref(t);return Array.isArray(l)?l.map(c=>o.unref(c)).some(Boolean):l}),{start:s,stop:i}=Xo(()=>{r.value=!0},n);return o.watch(a,l=>{if(l)return s();i(),r.value=!1},{immediate:!0,deep:!0}),r}function V(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function R(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return V(n)?e:j(function(a){return t(n,a)});default:return V(n)&&V(r)?e:V(n)?j(function(a){return t(a,r)}):V(r)?j(function(a){return t(n,a)}):t(n,r)}}}function Kt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,r){return e.apply(this,arguments)};case 3:return function(n,r,a){return e.apply(this,arguments)};case 4:return function(n,r,a,s){return e.apply(this,arguments)};case 5:return function(n,r,a,s,i){return e.apply(this,arguments)};case 6:return function(n,r,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,r,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,r,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,r,a,s,i,l,c,u,f){return e.apply(this,arguments)};case 10:return function(n,r,a,s,i,l,c,u,f,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ge(t,e,n){return function(){for(var r=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!V(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),r[i]=c,V(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,r):Kt(Math.max(0,s),ge(t,r,n))}}var Ct=R(function(e,n){return e===1?j(n):Kt(e,ge(e,[],n))});function X(t){return function e(n,r,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:R(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(r)?e:V(n)?R(function(s,i){return t(s,r,i)}):V(r)?R(function(s,i){return t(n,s,i)}):j(function(s){return t(n,r,s)});default:return V(n)&&V(r)&&V(a)?e:V(n)&&V(r)?R(function(s,i){return t(s,i,a)}):V(n)&&V(a)?R(function(s,i){return t(s,r,i)}):V(r)&&V(a)?R(function(s,i){return t(n,s,i)}):V(n)?j(function(s){return t(s,r,a)}):V(r)?j(function(s){return t(n,s,a)}):V(a)?j(function(s){return t(n,r,s)}):t(n,r,a)}}}const Lt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function rr(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function It(t,e,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!Lt(r)){for(var a=0;a<t.length;){if(typeof r[t[a]]=="function")return r[t[a]].apply(r,Array.prototype.slice.call(arguments,0,-1));a+=1}if(rr(r)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}return n.apply(this,arguments)}}function ye(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 rn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function an(t,e,n){for(var r=0,a=n.length;r<a;){if(t(e,n[r]))return!0;r+=1}return!1}function ar(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 sr(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const be=typeof Object.is=="function"?Object.is:sr;var sn=Object.prototype.toString,ln=function(){return sn.call(arguments)==="[object Arguments]"?function(e){return sn.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),ir=!{toString:null}.propertyIsEnumerable("toString"),cn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],un=function(){return arguments.propertyIsEnumerable("length")}(),lr=function(e,n){for(var r=0;r<e.length;){if(e[r]===n)return!0;r+=1}return!1},bt=j(typeof Object.keys=="function"&&!un?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,r,a=[],s=un&&ln(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(ir)for(r=cn.length-1;r>=0;)n=cn[r],et(n,e)&&!lr(a,n)&&(a[a.length]=n),r-=1;return a}),Te=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function dn(t,e,n,r){var a=rn(t),s=rn(e);function i(l,c){return Se(l,c,n.slice(),r.slice())}return!an(function(l,c){return!an(i,c,l)},s,a)}function Se(t,e,n,r){if(be(t,e))return!0;var a=Te(t);if(a!==Te(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&ar(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&be(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!be(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return r[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:dn(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:dn(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=bt(t);if(i.length!==bt(e).length)return!1;var l=n.concat([t]),c=r.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&Se(e[u],t[u],l,c)))return!1;s-=1}return!0}var Zt=R(function(e,n){return Se(e,n,[],[])});function cr(t,e,n){var r,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;n<t.length;){if(a=t[n],a===0&&1/a===r)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Zt(t[n],e))return n;n+=1}return-1}function fn(t,e){return cr(e,t,0)>=0}function Xt(t,e){for(var n=0,r=e.length,a=Array(r);n<r;)a[n]=t(e[n]),n+=1;return a}function we(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 Bt=function(e){return(e<10?"0":"")+e},ur=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Bt(e.getUTCMonth()+1)+"-"+Bt(e.getUTCDate())+"T"+Bt(e.getUTCHours())+":"+Bt(e.getUTCMinutes())+":"+Bt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function dr(t){return function(){return!t.apply(this,arguments)}}function mn(t,e,n){for(var r=0,a=n.length;r<a;)e=t(e,n[r]),r+=1;return e}function fr(t,e){for(var n=0,r=e.length,a=[];n<r;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Jt(t){return Object.prototype.toString.call(t)==="[object Object]"}var mr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function pr(t){return function(e){return new mr(t,e)}}var Oe=R(It(["fantasy-land/filter","filter"],pr,function(t,e){return Jt(e)?mn(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},bt(e)):fr(t,e)})),hr=R(function(e,n){return Oe(dr(e),n)});function pn(t,e){var n=function(i){var l=e.concat([t]);return fn(i,l)?"<Circular>":pn(i,l)},r=function(s,i){return Xt(function(l){return we(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Xt(n,t).join(", ")+"))";case"[object Array]":return"["+Xt(n,t).concat(r(t,hr(function(s){return/^\d+$/.test(s)},bt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):we(ur(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":we(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+r(t,bt(t)).join(", ")+"}"}}var Ae=j(function(e){return pn(e,[])}),gr=R(function(e,n){if(e===n)return n;function r(c,u){if(c>u!=u>c)return u>c?u:c}var a=r(e,n);if(a!==void 0)return a;var s=r(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=Ae(e),l=r(i,Ae(n));return l!==void 0&&l===i?e:n}),yr=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),br=function(e){return function(n){return new yr(e,n)}},mt=R(It(["fantasy-land/map","map"],br,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Ct(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return mn(function(r,a){return r[a]=e(n[a]),r},{},bt(n));default:return Xt(e,n)}}));const Qt=Number.isInteger||function(e){return e<<0===e};function te(t){return Object.prototype.toString.call(t)==="[object String]"}function hn(t,e){var n=t<0?e.length+t:t;return te(e)?e.charAt(n):e[n]}var ut=R(function(e,n){if(n!=null)return Qt(e)?hn(e,n):n[e]}),Tr=R(function(e,n){return mt(ut(e),n)}),Sr=j(function(e){return Lt(e)?!0:!e||typeof e!="object"||te(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),gn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function wr(t,e,n){return function(a,s,i){if(Sr(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[gn]!=null)return n(a,s,i[gn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Or(t,e,n){for(var r=0,a=n.length;r<a;){if(e=t["@@transducer/step"](e,n[r]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}var Ar=R(function(e,n){return Kt(e.length,function(){return e.apply(n,arguments)})});function _r(t,e,n){for(var r=n.next();!r.done;){if(e=t["@@transducer/step"](e,r.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function kr(t,e,n,r){return t["@@transducer/result"](n[r](Ar(t["@@transducer/step"],t),e))}var yn=wr(Or,kr,_r),Pr=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function bn(t){return new Pr(t)}var Tn=X(function(t,e,n){return yn(typeof t=="function"?bn(t):t,e,n)}),Sn=j(function(e){return function(){return e}}),Er=j(function(e){return Ct(Tn(gr,0,Tr("length",e)),function(){for(var n=0,r=e.length;n<r;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),_e=X(function(e,n,r){var a=e(n),s=e(r);return a<s?-1:a>s?1:0}),Nr=j(function(e){return Ct(e.length,e)});function xr(t,e,n){if(Qt(t)&&Lt(n)){var r=[].concat(n);return r[t]=e,r}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var vr=j(function(e){return e==null}),$r=X(function t(e,n,r){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!vr(r)&&et(a,r)&&typeof r[a]=="object"?r[a]:Qt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return xr(a,n,r)}),Dr=X(function(e,n,r){return $r([e],n,r)});function Mr(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Cr(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 wn(t,e,n){if(n||(n=new Ir),Lr(t))return t;var r=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=t[l]);return s};switch(Te(t)){case"Object":return r(Object.create(Object.getPrototypeOf(t)));case"Array":return r(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Cr(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 Lr(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Ir=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){var r=this.hash(e),a=this.map[r];a||(this.map[r]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){var n=[];for(var r in e)n.push(Object.prototype.toString.call(e[r]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(var n in this.map)for(var i=this.map[n],r=0;r<i.length;r+=1){var a=i[r];if(a[0]===e)return a[1]}return}var s=this.hash(e),i=this.map[s];if(i)for(var r=0;r<i.length;r+=1){var a=i[r];if(a[0]===e)return a[1]}},t}();function Br(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ke(t,e){return function(){var n=arguments.length;if(n===0)return e();var r=arguments[n-1];return Lt(r)||typeof r[t]!="function"?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var zr=X(ke("slice",function(e,n,r){return Array.prototype.slice.call(r,e,n)})),Rr=j(ke("tail",zr(1,1/0)));function ee(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Kt(arguments[0].length,Tn(Br,arguments[0],Rr(arguments)))}var Vr=j(function(e){return te(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function On(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ee.apply(this,Vr(arguments))}var Gr=function(){function t(e,n,r,a){this.valueFn=e,this.valueAcc=n,this.keyFn=r,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,wn(this.valueAcc)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),e},t}();function jr(t,e,n){return function(r){return new Gr(t,e,n,r)}}var Fr=ge(4,[],It([],jr,function(e,n,r,a){var s=bn(function(i,l){var c=r(l),u=e(et(c,i)?i[c]:wn(n),l);return u&&u["@@transducer/reduced"]?ye(i):(i[c]=u,i)});return yn(s,{},a)})),Yr=X(function(e,n,r){var a=e(n),s=e(r);return a>s?-1:a<s?1:0});function Hr(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 Ur=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Lt(e)?[]:te(e)?"":Jt(e)?{}:ln(e)?function(){return arguments}():Hr(e)?e.constructor.from(""):void 0}),Wr=function(){function t(e,n){this.xf=n,this.f=e,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,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=ye(this.xf["@@transducer/step"](e,n))),e},t}();function qr(t){return function(e){return new Wr(t,e)}}var Kr=R(It(["find"],qr,function(e,n){for(var r=0,a=n.length;r<a;){if(e(n[r]))return n[r];r+=1}})),Zr=function(){function t(e,n){this.xf=n,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,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=ye(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Xr(t){return function(e){return new Zr(t,e)}}var Jr=R(It([],Xr,function(e,n){for(var r=0,a=n.length;r<a;){if(e(n[r]))return r;r+=1}return-1})),Qr=R(ke("groupBy",Fr(function(t,e){return t.push(e),t},[]))),ta=X(function(e,n,r){return Ct(Math.max(e.length,n.length,r.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),ea=R(fn),An=R(function(e,n){return Ct(e+1,function(){var r=arguments[e];if(r!=null&&Mr(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ae(r)+' does not have a method named "'+n+'"')})}),_n=j(function(e){return e!=null&&Zt(e,Ur(e))}),na=R(function(e,n){return function(r){return function(a){return mt(function(s){return n(s,a)},r(e(a)))}}});function oa(t,e){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;var a=t[r];Qt(a)?n=hn(a,n):n=n[a]}return n}var ra=j(function(e){return na(ut(e),Dr(e))}),aa=X(function(e,n,r){var a={},s;n=n||{},r=r||{};for(s in n)et(s,n)&&(a[s]=et(s,r)?e(s,n[s],r[s]):n[s]);for(s in r)et(s,r)&&!et(s,a)&&(a[s]=r[s]);return a}),sa=X(function t(e,n,r){return aa(function(a,s,i){return Jt(s)&&Jt(i)?t(e,s,i):e(a,s,i)},n,r)}),ia=R(function(e,n){return sa(function(r,a,s){return s},e,n)}),la=R(function(e,n){for(var r={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(r[l]=n[l]);return r}),kn=function(t){return{value:t,map:function(e){return kn(e(t))}}},ca=X(function(e,n,r){return e(function(a){return kn(n(a))})(r).value}),Pe=R(oa),Pn=X(function(e,n,r){return e(ut(n,r))}),ua=X(function(e,n,r){return r.replace(e,n)}),da=R(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),En=R(function(e,n){return Array.prototype.slice.call(n,0).sort(function(r,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](r,a),i+=1;return s})}),Nt=An(1,"split"),Nn=An(0,"toLowerCase"),zt=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,fa="",ma=typeof String.prototype.trim=="function",ne=j(!ma||zt.trim()||!fa.trim()?function(e){var n=new RegExp("^["+zt+"]["+zt+"]*"),r=new RegExp("["+zt+"]["+zt+"]*$");return e.replace(n,"").replace(r,"")}:function(e){return e.trim()});const xn=Symbol("I18nContext"),W=o.reactive({messages:{},locale:"",fallbackLocale:""}),vn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const r=(c,u={})=>{const f=!_n(u),m=mt(ne,Nt(".",c));return o.computed(()=>{const g=$n(m);return f?ha(g,u):g}).value},a=c=>{const u=mt(ne,Nt(".",c));return!!Ee(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:o.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:r,hasTranslation:a};return o.provide(xn,l),{translate:r}},it=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=pa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},pa=()=>{const t=o.inject(xn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},$n=(t=[])=>{let e=Ee(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Ee(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Ee(t,e,n){return Pe([t,...e],n)}const ha=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,r){return e[r]})},Dn=o.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=mt(ne,Nt(".",t.path)),r=$n(n),a=Nt(/{|}/,r),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>o.h(t.tag,s)}}),Mn="https://api.icehockey.hu/vbr",Cn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Ln="https://jegkorongszovetseg.hu/assets/images/player_blank.png",In="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Bn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",zn="https://api.icehockey.hu/static/api/flag",dt="original",b="descend",L="ascend",Rn=new Map().set("hu","hu-hu").set("en","hu-gb"),Vn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ga=1e3*60*5,Gn=1e3,ya={"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"},ba=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),Ta=[ba];function Sa(t,e){return o.openBlock(),o.createElementBlock("svg",ya,[...Ta])}const jn={render:Sa},wa={"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"},Oa=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),Aa=[Oa];function _a(t,e){return o.openBlock(),o.createElementBlock("svg",wa,[...Aa])}const ka={render:_a},Pa={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},Ea=o.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),Na=[Ea];function xa(t,e){return o.openBlock(),o.createElementBlock("svg",Pa,[...Na])}const va={render:xa},xt=Math.min,Tt=Math.max,oe=Math.round,re=Math.floor,pt=t=>({x:t,y:t}),$a={left:"right",right:"left",bottom:"top",top:"bottom"},Da={start:"end",end:"start"};function Ne(t,e,n){return Tt(t,xt(e,n))}function Rt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function Vt(t){return t.split("-")[1]}function Fn(t){return t==="x"?"y":"x"}function xe(t){return t==="y"?"height":"width"}function ae(t){return["top","bottom"].includes(St(t))?"y":"x"}function ve(t){return Fn(ae(t))}function Ma(t,e,n){n===void 0&&(n=!1);const r=Vt(t),a=ve(t),s=xe(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=se(i)),[i,se(i)]}function Ca(t){const e=se(t);return[$e(t),e,$e(e)]}function $e(t){return t.replace(/start|end/g,e=>Da[e])}function La(t,e,n){const r=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:r:e?r:a;case"left":case"right":return e?s:i;default:return[]}}function Ia(t,e,n,r){const a=Vt(t);let s=La(St(t),n==="start",r);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map($e)))),s}function se(t){return t.replace(/left|right|bottom|top/g,e=>$a[e])}function Ba(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yn(t){return typeof t!="number"?Ba(t):{top:t,right:t,bottom:t,left:t}}function ie(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}function Hn(t,e,n){let{reference:r,floating:a}=t;const s=ae(e),i=ve(e),l=xe(i),c=St(e),u=s==="y",f=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,p=r[l]/2-a[l]/2;let g;switch(c){case"top":g={x:f,y:r.y-a.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-a.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Vt(e)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const za=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:m}=Hn(u,r,c),p=r,g={},d=0;for(let h=0;h<l.length;h++){const{name:y,fn:S}=l[h],{x:k,y:P,data:N,reset:x}=await S({x:f,y:m,initialPlacement:r,placement:p,strategy:a,middlewareData:g,rects:u,platform:i,elements:{reference:t,floating:e}});f=k??f,m=P??m,g={...g,[y]:{...g[y],...N}},x&&d<=50&&(d++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(u=x.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):x.rects),{x:f,y:m}=Hn(u,p,c)),h=-1)}return{x:f,y:m,placement:p,strategy:a,middlewareData:g}};async function Un(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Rt(e,t),d=Yn(g),y=l[p?m==="floating"?"reference":"floating":m],S=ie(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),k=m==="floating"?{...i.floating,x:r,y:a}:i.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),N=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},x=ie(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:P,strategy:c}):k);return{top:(S.top-x.top+d.top)/N.y,bottom:(x.bottom-S.bottom+d.bottom)/N.y,left:(S.left-x.left+d.left)/N.x,right:(x.right-S.right+d.right)/N.x}}const Ra=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:f=0}=Rt(t,e)||{};if(u==null)return{};const m=Yn(f),p={x:n,y:r},g=ve(a),d=xe(g),h=await i.getDimensions(u),y=g==="y",S=y?"top":"left",k=y?"bottom":"right",P=y?"clientHeight":"clientWidth",N=s.reference[d]+s.reference[g]-p[g]-s.floating[d],x=p[g]-s.reference[g],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let z=M?M[P]:0;(!z||!await(i.isElement==null?void 0:i.isElement(M)))&&(z=l.floating[P]||s.floating[d]);const G=N/2-x/2,Y=z/2-h[d]/2-1,I=xt(m[S],Y),D=xt(m[k],Y),H=I,at=z-h[d]-D,E=z/2-h[d]/2+G,_=Ne(H,E,at),w=!c.arrow&&Vt(a)!=null&&E!==_&&s.reference[d]/2-(E<H?I:D)-h[d]/2<0,O=w?E<H?E-H:E-at:0;return{[g]:p[g]+O,data:{[g]:_,centerOffset:E-_-O,...w&&{alignmentOffset:O}},reset:w}}}),Va=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:h=!0,...y}=Rt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),k=St(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=p||(k||!h?[se(l)]:Ca(l));!p&&d!=="none"&&N.push(...Ia(l,h,d,P));const x=[l,...N],M=await Un(e,y),z=[];let G=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&z.push(M[S]),m){const H=Ma(a,i,P);z.push(M[H[0]],M[H[1]])}if(G=[...G,{placement:a,overflows:z}],!z.every(H=>H<=0)){var Y,I;const H=(((Y=s.flip)==null?void 0:Y.index)||0)+1,at=x[H];if(at)return{data:{index:H,overflows:G},reset:{placement:at}};let E=(I=G.filter(_=>_.overflows[0]<=0).sort((_,w)=>_.overflows[1]-w.overflows[1])[0])==null?void 0:I.placement;if(!E)switch(g){case"bestFit":{var D;const _=(D=G.map(w=>[w.placement,w.overflows.filter(O=>O>0).reduce((O,A)=>O+A,0)]).sort((w,O)=>w[1]-O[1])[0])==null?void 0:D[0];_&&(E=_);break}case"initialPlacement":E=l;break}if(a!==E)return{reset:{placement:E}}}return{}}}};async function Ga(t,e){const{placement:n,platform:r,elements:a}=t,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=St(n),l=Vt(n),c=ae(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&c?-1:1,m=Rt(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:d}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof d=="number"&&(g=l==="end"?d*-1:d),c?{x:g*f,y:p*u}:{x:p*u,y:g*f}}const ja=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Ga(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Fa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:S,y:k}=y;return{x:S,y:k}}},...c}=Rt(t,e),u={x:n,y:r},f=await Un(e,c),m=ae(St(a)),p=Fn(m);let g=u[p],d=u[m];if(s){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",k=g+f[y],P=g-f[S];g=Ne(k,g,P)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",k=d+f[y],P=d-f[S];d=Ne(k,d,P)}const h=l.fn({...e,[p]:g,[m]:d});return{...h,data:{x:h.x-n,y:h.y-r}}}}};function vt(t){return Wn(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ft(t){var e;return(e=(Wn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Wn(t){return t instanceof Node||t instanceof Z(t).Node}function nt(t){return t instanceof Element||t instanceof Z(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function qn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function Gt(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function Ya(t){return["table","td","th"].includes(vt(t))}function le(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function De(t){const e=Me(),n=nt(t)?ot(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ha(t){let e=ht(t);for(;lt(e)&&!$t(e);){if(De(e))return e;if(le(e))return null;e=ht(e)}return null}function Me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(t){return["html","body","#document"].includes(vt(t))}function ot(t){return Z(t).getComputedStyle(t)}function ce(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ht(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||qn(t)&&t.host||ft(t);return qn(e)?e.host:e}function Kn(t){const e=ht(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Gt(e)?e:Kn(e)}function jt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Kn(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),i=Z(a);if(s){const l=Ce(i);return e.concat(i,i.visualViewport||[],Gt(a)?a:[],l&&n?jt(l):[])}return e.concat(a,jt(a,[],n))}function Ce(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Zn(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=lt(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:r,l=oe(n)!==s||oe(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function Le(t){return nt(t)?t:t.contextElement}function Dt(t){const e=Le(t);if(!lt(e))return pt(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:s}=Zn(e);let i=(s?oe(n.width):n.width)/r,l=(s?oe(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ua=pt(0);function Xn(t){const e=Z(t);return!Me()||!e.visualViewport?Ua:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wa(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function wt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Le(t);let i=pt(1);e&&(r?nt(r)&&(i=Dt(r)):i=Dt(t));const l=Wa(s,n,r)?Xn(s):pt(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,f=a.width/i.x,m=a.height/i.y;if(s){const p=Z(s),g=r&&nt(r)?Z(r):r;let d=p,h=Ce(d);for(;h&&r&&g!==d;){const y=Dt(h),S=h.getBoundingClientRect(),k=ot(h),P=S.left+(h.clientLeft+parseFloat(k.paddingLeft))*y.x,N=S.top+(h.clientTop+parseFloat(k.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,m*=y.y,c+=P,u+=N,d=Z(h),h=Ce(d)}}return ie({width:f,height:m,x:c,y:u})}function qa(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const s=a==="fixed",i=ft(r),l=e?le(e.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=pt(1);const f=pt(0),m=lt(r);if((m||!m&&!s)&&((vt(r)!=="body"||Gt(i))&&(c=ce(r)),lt(r))){const p=wt(r);u=Dt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x,y:n.y*u.y-c.scrollTop*u.y+f.y}}function Ka(t){return Array.from(t.getClientRects())}function Jn(t){return wt(ft(t)).left+ce(t).scrollLeft}function Za(t){const e=ft(t),n=ce(t),r=t.ownerDocument.body,a=Tt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Tt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jn(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(i+=Tt(e.clientWidth,r.clientWidth)-a),{width:a,height:s,x:i,y:l}}function Xa(t,e){const n=Z(t),r=ft(t),a=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=Me();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function Ja(t,e){const n=wt(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,s=lt(t)?Dt(t):pt(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=r*s.y;return{width:i,height:l,x:c,y:u}}function Qn(t,e,n){let r;if(e==="viewport")r=Xa(t,n);else if(e==="document")r=Za(ft(t));else if(nt(e))r=Ja(e,n);else{const a=Xn(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return ie(r)}function to(t,e){const n=ht(t);return n===e||!nt(n)||$t(n)?!1:ot(n).position==="fixed"||to(n,e)}function Qa(t,e){const n=e.get(t);if(n)return n;let r=jt(t,[],!1).filter(l=>nt(l)&&vt(l)!=="body"),a=null;const s=ot(t).position==="fixed";let i=s?ht(t):t;for(;nt(i)&&!$t(i);){const l=ot(i),c=De(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Gt(i)&&!c&&to(t,i))?r=r.filter(f=>f!==i):a=l,i=ht(i)}return e.set(t,r),r}function ts(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const i=[...n==="clippingAncestors"?le(e)?[]:Qa(e,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,f)=>{const m=Qn(e,f,a);return u.top=Tt(m.top,u.top),u.right=xt(m.right,u.right),u.bottom=xt(m.bottom,u.bottom),u.left=Tt(m.left,u.left),u},Qn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function es(t){const{width:e,height:n}=Zn(t);return{width:e,height:n}}function ns(t,e,n){const r=lt(e),a=ft(e),s=n==="fixed",i=wt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=pt(0);if(r||!r&&!s)if((vt(e)!=="body"||Gt(a))&&(l=ce(e)),r){const m=wt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=Jn(a));const u=i.left+l.scrollLeft-c.x,f=i.top+l.scrollTop-c.y;return{x:u,y:f,width:i.width,height:i.height}}function Ie(t){return ot(t).position==="static"}function eo(t,e){return!lt(t)||ot(t).position==="fixed"?null:e?e(t):t.offsetParent}function no(t,e){const n=Z(t);if(le(t))return n;if(!lt(t)){let a=ht(t);for(;a&&!$t(a);){if(nt(a)&&!Ie(a))return a;a=ht(a)}return n}let r=eo(t,e);for(;r&&Ya(r)&&Ie(r);)r=eo(r,e);return r&&$t(r)&&Ie(r)&&!De(r)?n:r||Ha(t)||n}const os=async function(t){const e=this.getOffsetParent||no,n=this.getDimensions,r=await n(t.floating);return{reference:ns(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rs(t){return ot(t).direction==="rtl"}const as={convertOffsetParentRelativeRectToViewportRelativeRect:qa,getDocumentElement:ft,getClippingRect:ts,getOffsetParent:no,getElementRects:os,getClientRects:Ka,getDimensions:es,getScale:Dt,isElement:nt,isRTL:rs};function ss(t,e){let n=null,r;const a=ft(t);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:f,width:m,height:p}=t.getBoundingClientRect();if(l||e(),!m||!p)return;const g=re(f),d=re(a.clientWidth-(u+m)),h=re(a.clientHeight-(f+p)),y=re(u),k={rootMargin:-g+"px "+-d+"px "+-h+"px "+-y+"px",threshold:Tt(0,xt(1,c))||1};let P=!0;function N(x){const M=x[0].intersectionRatio;if(M!==c){if(!P)return i();M?i(!1,M):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P=!1}try{n=new IntersectionObserver(N,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,k)}n.observe(t)}return i(!0),s}function is(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Le(t),f=a||s?[...u?jt(u):[],...jt(e)]:[];f.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=u&&l?ss(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(S=>{let[k]=S;k&&k.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(e)})),n()}),u&&!c&&g.observe(u),g.observe(e));let d,h=c?wt(t):null;c&&y();function y(){const S=wt(t);h&&(S.x!==h.x||S.y!==h.y||S.width!==h.width||S.height!==h.height)&&n(),h=S,d=requestAnimationFrame(y)}return n(),()=>{var S;f.forEach(k=>{a&&k.removeEventListener("scroll",n),s&&k.removeEventListener("resize",n)}),m==null||m(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(d)}}const ls=ja,cs=Fa,us=Va,oo=Ra,ds=(t,e,n)=>{const r=new Map,a={platform:as,...n},s={...a.platform,_c:r};return za(t,e,{...a,platform:s})},ro=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function fs(t,e=()=>({})){return t.slice().sort((n,r)=>{let a=e(n),s=e(r);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ms({middleware:t,placement:e=null,strategy:n,append:r,enabled:a}){const s=o.ref(null),i=o.ref(null),l=o.ref(null),c=o.ref(null),u=o.ref(null),f=o.ref(null),m=o.ref(null),p=o.ref(n??"absolute"),g=o.ref(null),d=()=>{!s.value||!i.value||ds(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,f.value=y.middlewareData.arrow.y,m.value=y.placement})};o.watch(()=>({reference:o.unref(s),floating:o.unref(i),append:o.unref(r)}),({floating:y,append:S})=>{S&&ro(y,S),d()},{flush:"post"}),o.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=is(s.value,i.value,d,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:c,arrowX:u,arrowY:f,placement:m,reference:s,floating:i,strategy:p,update:d}}const ps=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(r){return o.isRef(e)?e.value!=null?oo({element:e.value,padding:n}).fn(r):{}:e?oo({element:e,padding:n}).fn(r):{}}}},hs=["data-placement"],Be={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=o.ref(!1),r=o.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:f,strategy:m}=ms({placement:e.placement,middleware:[us(),cs({padding:5}),ls(e.offset),ps({element:r,padding:5})],append:o.computed(()=>e.appendTo),enabled:n}),p=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},d=y=>{u.value=y},h={mouseenter:p,mouseleave:g,focus:p,blur:g};return tr(f,y=>{var S;(S=u.value)!=null&&S.contains(y.target)||g()}),(y,S)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.renderSlot(y.$slots,"default",{setRef:d,show:p,hide:g,events:h}),o.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":o.unref(c),style:o.normalizeStyle({position:o.unref(m),top:o.unref(s)?`${o.unref(s)}px`:"",left:o.unref(a)?`${o.unref(a)}px`:""})},[o.createVNode(o.Transition,{name:"transition-fade",mode:"out-in"},{default:o.withCtx(()=>[n.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["floating-content",[`is-${e.theme}`]])},[o.renderSlot(y.$slots,"content",{close:g},()=>[o.createTextVNode(o.toDisplayString(t.content),1)]),o.createElementVNode("div",{ref_key:"arrowRef",ref:r,class:"is-arrow",style:o.normalizeStyle({position:o.unref(m),top:o.unref(l)?`${o.unref(l)}px`:"",left:o.unref(i)?`${o.unref(i)}px`:""})},null,4)],2)):o.createCommentVNode("",!0)]),_:3})],12,hs)],64))}},gs=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],ys={key:0},bs=["colspan"],Ts={key:1},Ss=["colspan"],ze={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:r,appendTo:a}=o.toRefs(n),s=on(r,{delay:Gn}),i=e,{t:l}=it(),c=ct("table"),u=o.computed(()=>n.columns),f=o.computed(()=>Object.keys(n.columns).length),m=(p,g)=>{p.sortOrders&&i("sort",{target:g,orders:p.sortOrders})};return(p,g)=>(o.openBlock(),o.createElementBlock("table",{class:o.normalizeClass(o.unref(c))},[o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(d,h)=>(o.openBlock(),o.createBlock(Be,{key:h,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":o.unref(a)},{default:o.withCtx(({setRef:y,show:S,hide:k})=>[o.createElementVNode("th",{ref_for:!0,ref:y,class:o.normalizeClass([[d.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(dt),"is-sortable":d.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(L)}]),onMouseenter:S,onMouseleave:k,onFocus:S,onBlur:k,onClick:P=>m(d,h),onKeydown:[o.withKeys(o.withModifiers(P=>m(d,h),["prevent"]),["space"]),o.withKeys(o.withModifiers(P=>m(d,h),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[o.renderSlot(p.$slots,`header-${h}`,{column:d},()=>[o.createTextVNode(o.toDisplayString(d.label),1)]),d.sortOrders&&h!==t.sort.sortTarget?(o.openBlock(),o.createBlock(o.unref(jn),{key:0,class:"is-icon-sort"})):o.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(dt)?(o.openBlock(),o.createBlock(o.unref(jn),{key:1,class:"is-icon-sort"})):o.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(b)?(o.openBlock(),o.createBlock(o.unref(ka),{key:2,class:"is-icon-sort"})):o.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===o.unref(L)?(o.openBlock(),o.createBlock(o.unref(va),{key:3,class:"is-icon-sort"})):o.createCommentVNode("",!0)],42,gs)]),_:2},1032,["content","disabled","append-to"]))),128))])]),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(d,h)=>(o.openBlock(),o.createElementBlock("tr",{key:h,class:o.normalizeClass(d.rowClasses)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,(y,S)=>(o.openBlock(),o.createElementBlock("td",{key:S,class:o.normalizeClass([[y.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==o.unref(dt),"is-zero":d[S]==0||d[S]=="00:00"}])},[o.renderSlot(p.$slots,`cell-${S}`,{row:d,prop:S},()=>[o.createTextVNode(o.toDisplayString(d[S]),1)])],2))),128))],2))),128))]),o.unref(s)&&t.rows.length===0?(o.openBlock(),o.createElementBlock("tfoot",ys,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:f.value},[o.renderSlot(p.$slots,"loading",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.loading")),1)])],8,bs)])])):o.createCommentVNode("",!0),t.rows.length===0&&!o.unref(r)&&!o.unref(s)?(o.openBlock(),o.createElementBlock("tfoot",Ts,[o.createElementVNode("tr",null,[o.createElementVNode("td",{colspan:f.value},[o.renderSlot(p.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(o.unref(l)("common.noData")),1)])],8,Ss)])])):o.createCommentVNode("",!0)],2))}},ws={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Os=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),As=o.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),_s=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),ks=[Os,As,_s];function Ps(t,e){return o.openBlock(),o.createElementBlock("svg",ws,[...ks])}const Es={render:Ps},Ns={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:r}=it(),a=ct("error-notice"),s=o.computed(()=>{var i;return r(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(a))},[o.createVNode(o.unref(Es),{class:"icon",width:"20",height:"20"}),o.createElementVNode("span",null,o.toDisplayString(s.value),1)],2))}};function ao(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const Ot=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,r){return Pe(Nt(".",r),e)})},so=Symbol("ErrorProviderContext"),io=()=>{const t=o.ref(""),e=o.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||ao(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return o.provide(so,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},o.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:o.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Re=()=>{const t=xs();return{onError:t.onError,reset:t.reset}},xs=()=>{const t=o.inject(so,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},vs={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:r}=io();return(a,s)=>o.renderSlot(a.$slots,"default",{message:o.unref(e),error:o.unref(r),hasError:o.unref(n)})}},$s={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Ds={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"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Ms=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Cs=o.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=ia({hu:$s,en:Ds},t.messages),{translate:n}=vn({locale:o.computed(()=>t.locale),messages:e});return{translate:n}}});function Ls(t,e,n,r,a,s){return o.renderSlot(t.$slots,"default",{t:t.translate})}const Is=Ms(Cs,[["render",Ls]]),Bs=["src"],zs=["src","title"],At=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=o.toRefs(e),r=o.ref({src:e.src}),{error:a,isReady:s}=or(r,{resetOnExecute:!1,shallow:!1});return(i,l)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(a)&&o.unref(n)?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(n),class:o.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Bs)):o.createCommentVNode("",!0),o.unref(a)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("img",{key:1,src:r.value.src,class:o.normalizeClass([i.$attrs.class,{"is-loaded":o.unref(s)}]),title:e.title,loading:"lazy"},null,10,zs))],64))}}),Rs={style:{"text-align":"center"}},Ve={__name:"LoadingIndicator",setup(t){const{t:e}=it();return(n,r)=>(o.openBlock(),o.createElementBlock("div",Rs,o.toDisplayString(o.unref(e)("common.loading")),1))}};function Vs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:r=5,update:a=tt}){const s=o.computed(()=>Math.ceil(o.unref(n)/e)),i=o.computed(()=>{const f=o.unref(t)-1,m=Array.from({length:s.value},(d,h)=>h+1),p=Math.floor(r/2);let g=Math.max(f-p,0);return g+r>=s.value&&(g=Math.max(s.value-r,0)),m.slice(g,g+r)}),l=f=>{const m=o.unref(t)+f;u(m)&&a(m)},c=f=>{u(f)&&a(f)},u=f=>f<=s.value&&f>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Gs={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"},js=o.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Fs=[js];function Ys(t,e){return o.openBlock(),o.createElementBlock("svg",Gs,[...Fs])}const Hs={render:Ys},Us={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ws=o.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),qs=[Ws];function Ks(t,e){return o.openBlock(),o.createElementBlock("svg",Us,[...qs])}const Zs={render:Ks},Xs=["disabled"],Js=["disabled"],Qs={key:1,class:"is-disabled"},ti=["disabled","onClick"],ei={key:2,class:"is-disabled"},ni=[o.createElementVNode("span",null,"...",-1)],oi=["disabled"],ri=["disabled"],ai={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,r=e,a=ct("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Vs({currentPage:o.computed(()=>n.page),totalItems:o.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:f=>r("change",f)});return(f,m)=>o.unref(i)>1?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(a))},[o.createElementVNode("button",{type:"button",disabled:o.unref(s)===1,onClick:m[0]||(m[0]=p=>o.unref(u)(-1))},[o.renderSlot(f.$slots,"prev",{},()=>[o.createVNode(o.unref(Hs),{class:"icon paginator-left"})])],8,Xs),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:0,type:"button",disabled:o.unref(s)===1,onClick:m[1]||(m[1]=p=>o.unref(c)(1))},"1",8,Js)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Qs,"...")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),p=>(o.openBlock(),o.createElementBlock("button",{type:"button",key:p,class:o.normalizeClass({"is-active":p===o.unref(s)}),disabled:p===o.unref(s),onClick:g=>o.unref(c)(p)},o.toDisplayString(p),11,ti))),128)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ei,ni)),t.isCompact?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",{key:3,type:"button",disabled:o.unref(s)===o.unref(i),onClick:m[2]||(m[2]=p=>o.unref(c)(o.unref(i)))},o.toDisplayString(o.unref(i)),9,oi)),o.createElementVNode("button",{type:"button",disabled:o.unref(s)===o.unref(i),onClick:m[3]||(m[3]=o.withModifiers(p=>o.unref(u)(1),["prevent"]))},[o.renderSlot(f.$slots,"next",{},()=>[o.createVNode(o.unref(Zs),{class:"icon paginator-left"})])],8,ri)],2)):o.createCommentVNode("",!0)}},Ge={__name:"ResponsiveTable",setup(t){const e=o.ref(null),n=ct("table-responsive");return(r,a)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"el",ref:e,class:o.normalizeClass(o.unref(n))},[o.renderSlot(r.$slots,"default",{el:e.value})],2))}};var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){var n=1e3,r=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",f="week",m="month",p="quarter",g="year",d="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var _=["th","st","nd","rd"],w=E%100;return"["+E+(_[(w-20)%10]||_[w]||_[0])+"]"}},P=function(E,_,w){var O=String(E);return!O||O.length>=_?E:""+Array(_+1-O.length).join(w)+E},N={s:P,z:function(E){var _=-E.utcOffset(),w=Math.abs(_),O=Math.floor(w/60),A=w%60;return(_<=0?"+":"-")+P(O,2,"0")+":"+P(A,2,"0")},m:function E(_,w){if(_.date()<w.date())return-E(w,_);var O=12*(w.year()-_.year())+(w.month()-_.month()),A=_.clone().add(O,m),$=w-A<0,v=_.clone().add(O+($?-1:1),m);return+(-(O+(w-A)/($?A-v:v-A))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:m,y:g,w:f,d:u,D:d,h:c,m:l,s:i,ms:s,Q:p}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},x="en",M={};M[x]=k;var z="$isDayjsObject",G=function(E){return E instanceof H||!(!E||!E[z])},Y=function E(_,w,O){var A;if(!_)return x;if(typeof _=="string"){var $=_.toLowerCase();M[$]&&(A=$),w&&(M[$]=w,A=$);var v=_.split("-");if(!A&&v.length>1)return E(v[0])}else{var B=_.name;M[B]=_,A=B}return!O&&A&&(x=A),A||!O&&x},I=function(E,_){if(G(E))return E.clone();var w=typeof _=="object"?_:{};return w.date=E,w.args=arguments,new H(w)},D=N;D.l=Y,D.i=G,D.w=function(E,_){return I(E,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var H=function(){function E(w){this.$L=Y(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[z]=!0}var _=E.prototype;return _.parse=function(w){this.$d=function(O){var A=O.date,$=O.utc;if(A===null)return new Date(NaN);if(D.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var v=A.match(y);if(v){var B=v[2]-1||0,F=(v[7]||"0").substring(0,3);return $?new Date(Date.UTC(v[1],B,v[3]||1,v[4]||0,v[5]||0,v[6]||0,F)):new Date(v[1],B,v[3]||1,v[4]||0,v[5]||0,v[6]||0,F)}}return new Date(A)}(w),this.init()},_.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},_.$utils=function(){return D},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(w,O){var A=I(w);return this.startOf(O)<=A&&A<=this.endOf(O)},_.isAfter=function(w,O){return I(w)<this.startOf(O)},_.isBefore=function(w,O){return this.endOf(O)<I(w)},_.$g=function(w,O,A){return D.u(w)?this[O]:this.set(A,w)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(w,O){var A=this,$=!!D.u(O)||O,v=D.p(w),B=function(Pt,K){var gt=D.w(A.$u?Date.UTC(A.$y,K,Pt):new Date(A.$y,K,Pt),A);return $?gt:gt.endOf(u)},F=function(Pt,K){return D.w(A.toDate()[Pt].apply(A.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(K)),A)},U=this.$W,q=this.$M,Q=this.$D,Mt="set"+(this.$u?"UTC":"");switch(v){case g:return $?B(1,0):B(31,11);case m:return $?B(1,q):B(0,q+1);case f:var kt=this.$locale().weekStart||0,Ht=(U<kt?U+7:U)-kt;return B($?Q-Ht:Q+(6-Ht),q);case u:case d:return F(Mt+"Hours",0);case c:return F(Mt+"Minutes",1);case l:return F(Mt+"Seconds",2);case i:return F(Mt+"Milliseconds",3);default:return this.clone()}},_.endOf=function(w){return this.startOf(w,!1)},_.$set=function(w,O){var A,$=D.p(w),v="set"+(this.$u?"UTC":""),B=(A={},A[u]=v+"Date",A[d]=v+"Date",A[m]=v+"Month",A[g]=v+"FullYear",A[c]=v+"Hours",A[l]=v+"Minutes",A[i]=v+"Seconds",A[s]=v+"Milliseconds",A)[$],F=$===u?this.$D+(O-this.$W):O;if($===m||$===g){var U=this.clone().set(d,1);U.$d[B](F),U.init(),this.$d=U.set(d,Math.min(this.$D,U.daysInMonth())).$d}else B&&this.$d[B](F);return this.init(),this},_.set=function(w,O){return this.clone().$set(w,O)},_.get=function(w){return this[D.p(w)]()},_.add=function(w,O){var A,$=this;w=Number(w);var v=D.p(O),B=function(q){var Q=I($);return D.w(Q.date(Q.date()+Math.round(q*w)),$)};if(v===m)return this.set(m,this.$M+w);if(v===g)return this.set(g,this.$y+w);if(v===u)return B(1);if(v===f)return B(7);var F=(A={},A[l]=r,A[c]=a,A[i]=n,A)[v]||1,U=this.$d.getTime()+w*F;return D.w(U,this)},_.subtract=function(w,O){return this.add(-1*w,O)},_.format=function(w){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||h;var $=w||"YYYY-MM-DDTHH:mm:ssZ",v=D.z(this),B=this.$H,F=this.$m,U=this.$M,q=A.weekdays,Q=A.months,Mt=A.meridiem,kt=function(K,gt,Ut,de){return K&&(K[gt]||K(O,$))||Ut[gt].slice(0,de)},Ht=function(K){return D.s(B%12||12,K,"0")},Pt=Mt||function(K,gt,Ut){var de=K<12?"AM":"PM";return Ut?de.toLowerCase():de};return $.replace(S,function(K,gt){return gt||function(Ut){switch(Ut){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return U+1;case"MM":return D.s(U+1,2,"0");case"MMM":return kt(A.monthsShort,U,Q,3);case"MMMM":return kt(Q,U);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return kt(A.weekdaysMin,O.$W,q,2);case"ddd":return kt(A.weekdaysShort,O.$W,q,3);case"dddd":return q[O.$W];case"H":return String(B);case"HH":return D.s(B,2,"0");case"h":return Ht(1);case"hh":return Ht(2);case"a":return Pt(B,F,!0);case"A":return Pt(B,F,!1);case"m":return String(F);case"mm":return D.s(F,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return v}return null}(K)||v.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(w,O,A){var $,v=this,B=D.p(O),F=I(w),U=(F.utcOffset()-this.utcOffset())*r,q=this-F,Q=function(){return D.m(v,F)};switch(B){case g:$=Q()/12;break;case m:$=Q();break;case p:$=Q()/3;break;case f:$=(q-U)/6048e5;break;case u:$=(q-U)/864e5;break;case c:$=q/a;break;case l:$=q/r;break;case i:$=q/n;break;default:$=q}return A?$:D.a($)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return M[this.$L]},_.locale=function(w,O){if(!w)return this.$L;var A=this.clone(),$=Y(w,O,!0);return $&&(A.$L=$),A},_.clone=function(){return D.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()},E}(),at=H.prototype;return I.prototype=at,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",g],["$D",d]].forEach(function(E){at[E[1]]=function(_){return this.$g(_,E[0],E[1])}}),I.extend=function(E,_){return E.$i||(E(_,H,I),E.$i=!0),I},I.locale=Y,I.isDayjs=G,I.unix=function(E){return I(1e3*E)},I.en=M[x],I.Ls=M,I.p={},I})})(lo);var co=lo.exports;const C=rt(co);var uo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},c.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var f=c.init;c.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var m=c.utcOffset;c.utcOffset=function(h,y){var S=this.$utils().u;if(S(h))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(x){x===void 0&&(x="");var M=x.match(r);if(!M)return null;var z=(""+M[0]).match(a)||["-",0,0],G=z[0],Y=60*+z[1]+ +z[2];return Y===0?0:G==="+"?Y:-Y}(h),h===null))return this;var k=Math.abs(h)<=16?60*h:h,P=this;if(y)return P.$offset=k,P.$u=h===0,P;if(h!==0){var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(k+N,n)).$offset=k,P.$x.$localOffset=N}else P=this.utc();return P};var p=c.format;c.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},c.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var d=c.diff;c.diff=function(h,y,S){if(h&&this.$u===h.$u)return d.call(this,h,y,S);var k=this.local(),P=l(h).local();return d.call(k,P,y,S)}}})})(uo);var si=uo.exports;const ii=rt(si);var fo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(a,s,i){var l,c=function(p,g,d){d===void 0&&(d={});var h=new Date(p),y=function(S,k){k===void 0&&(k={});var P=k.timeZoneName||"short",N=S+"|"+P,x=r[N];return x||(x=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),r[N]=x),x}(g,d);return y.formatToParts(h)},u=function(p,g){for(var d=c(p,g),h=[],y=0;y<d.length;y+=1){var S=d[y],k=S.type,P=S.value,N=n[k];N>=0&&(h[N]=parseInt(P,10))}var x=h[3],M=x===24?0:x,z=h[0]+"-"+h[1]+"-"+h[2]+" "+M+":"+h[4]+":"+h[5]+":000",G=+p;return(i.utc(z).valueOf()-(G-=G%1e3))/6e4},f=s.prototype;f.tz=function(p,g){p===void 0&&(p=l);var d,h=this.utcOffset(),y=this.toDate(),S=y.toLocaleString("en-US",{timeZone:p}),k=Math.round((y-new Date(S))/1e3/60),P=15*-Math.round(y.getTimezoneOffset()/15)-k;if(!Number(P))d=this.utcOffset(0,g);else if(d=i(S,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(P,!0),g){var N=d.utcOffset();d=d.add(h-N,"minute")}return d.$x.$timezone=p,d},f.offsetName=function(p){var g=this.$x.$timezone||i.tz.guess(),d=c(this.valueOf(),g,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return d&&d.value};var m=f.startOf;f.startOf=function(p,g){if(!this.$x||!this.$x.$timezone)return m.call(this,p,g);var d=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(d,p,g).tz(this.$x.$timezone,!0)},i.tz=function(p,g,d){var h=d&&g,y=d||g||l,S=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var k=function(M,z,G){var Y=M-60*z*1e3,I=u(Y,G);if(z===I)return[Y,z];var D=u(Y-=60*(I-z)*1e3,G);return I===D?[Y,I]:[M-60*Math.min(I,D)*1e3,Math.max(I,D)]}(i.utc(p,h).valueOf(),S,y),P=k[0],N=k[1],x=i(P).utcOffset(N);return x.$x.$timezone=y,x},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(fo);var li=fo.exports;const ci=rt(li);var mo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r){var a=r.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(f)}}})})(mo);var ui=mo.exports;const di=rt(ui);var po={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(po);var fi=po.exports;const mi=rt(fi);var ho={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r,a){r.prototype.isBetween=function(s,i,l,c){var u=a(s),f=a(i),m=(c=c||"()")[0]==="(",p=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(f,l):!this.isAfter(f,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(f,l):!this.isBefore(f,l))}}})})(ho);var pi=ho.exports;const hi=rt(pi);var go={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r,a){r.prototype.isToday=function(){var s="YYYY-MM-DD",i=a();return this.format(s)===i.format(s)}}})})(go);var gi=go.exports;const yi=rt(gi);var yo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r){r.prototype.weekday=function(a){var s=this.$locale().weekStart||0,i=this.$W,l=(i<s?i+7:i)-s;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}})})(yo);var bi=yo.exports;const Ti=rt(bi);var bo={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r,a){var s=function(i,l){if(!l||!l.length||l.length===1&&!l[0]||l.length===1&&Array.isArray(l[0])&&!l[0].length)return null;var c;l.length===1&&l[0].length>0&&(l=l[0]),c=(l=l.filter(function(f){return f}))[0];for(var u=1;u<l.length;u+=1)l[u].isValid()&&!l[u][i](c)||(c=l[u]);return c};a.max=function(){var i=[].slice.call(arguments,0);return s("isAfter",i)},a.min=function(){var i=[].slice.call(arguments,0);return s("isBefore",i)}}})})(bo);var Si=bo.exports;const wi=rt(Si);var To={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(m,p){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,d,h){var y=h&&h.toUpperCase();return d||p[h]||n[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,k,P){return k||P.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,f)}}})})(To);var Oi=To.exports;const Ai=rt(Oi);var So={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(J,function(){return function(n,r,a){n=n||{};var s=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,f,m,p){return s.fromToBase(u,f,m,p)}a.en.relativeTime=i,s.fromToBase=function(u,f,m,p,g){for(var d,h,y,S=m.$locale().relativeTime||i,k=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],P=k.length,N=0;N<P;N+=1){var x=k[N];x.d&&(d=p?a(u).diff(m,x.d,!0):m.diff(u,x.d,!0));var M=(n.rounding||Math.round)(Math.abs(d));if(y=d>0,M<=x.r||!x.r){M<=1&&N>0&&(x=k[N-1]);var z=S[x.l];g&&(M=g(""+M)),h=typeof z=="string"?z.replace("%d",M):z(M,f,x.l,y);break}}if(f)return h;var G=y?S.future:S.past;return typeof G=="function"?G(h):G.replace("%s",h)},s.to=function(u,f){return l(u,f,this,!0)},s.from=function(u,f){return l(u,f,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(So);var _i=So.exports;const ki=rt(_i);var Pi={exports:{}};(function(t,e){(function(n,r){t.exports=r(co)})(J,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=r(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(Pi),C.extend(ii),C.extend(ci),C.extend(di),C.extend(ki),C.extend(Ai),C.extend(mi),C.extend(hi),C.extend(yi),C.extend(Ti),C.extend(wi);const wo=()=>C.tz.guess(),_t=(t="",e="",n="",r="hu")=>(n=n||C.tz.guess(),C(t).isValid()?C(t).tz(n).locale(r).format(e):""),Ft=(t="",e="",n="hu")=>{if(!C(t).isValid())return"";e=e||C.tz.guess();const a=new Intl.DateTimeFormat(Ei(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Ei=t=>Rn.get(t),je=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Oo=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Ao=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Fe=(t,e="day")=>C().isSameOrBefore(C(t),e),_o=(t,e,n,r="[]")=>C(t).isBetween(e,C(n),"day",r),Ni=(t,e,n="month")=>C(t).isSame(e,n),xi=(t,e="hu")=>C(t).locale(e).toNow(!0),vi=(t,e,n="day")=>C(t).isBefore(e,n),$i=(t,e,n="day")=>C(t).isAfter(e,n),Di=t=>C(t).isToday(),Mi=t=>{const e=C().weekday(1),n=C().weekday(7);return _o(t,e,n)},Ci=t=>{const e=C(t).weekday(1),n=C(t).weekday(7);return{startDate:e,endDate:n}},Li=(t,e)=>C(t).subtract(e,"day"),Ii=(t,e)=>C(t).add(e,"day"),Bi=t=>C(t).startOf("month"),zi=t=>C(t).endOf("month"),Ri=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.min(t)),Vi=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.max(...t)),Gi=["onClick"],ji={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,r=e,{t:a}=it(),s=ct("timezone-selector"),i=o.computed(()=>Ft(new Date,null,n.locale)),l=wo(),c=o.computed(()=>Array.from(Vn.values()).map(f=>({...f,isActive:Ft(new Date,n.currentZone,n.locale)===Ft(new Date,f.timezone,n.locale),zoneOffsetName:Ft(new Date,f.timezone,n.locale)}))),u=f=>r("change",f);return(f,m)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(s))},[o.createVNode(o.unref(Dn),{path:"common.selectTimezone",tag:"span"},{timezone:o.withCtx(()=>[o.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=o.withModifiers(p=>u(o.unref(l)),["prevent"]))},o.toDisplayString(i.value),1)]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,p=>(o.openBlock(),o.createElementBlock("a",{key:p.countryLabelKey,href:"#",class:o.normalizeClass({"is-active":p.isActive}),onClick:o.withModifiers(g=>u(p.timezone),["prevent"])},o.toDisplayString(o.unref(a)(`common.${p.countryLabelKey}`))+" ("+o.toDisplayString(p.zoneOffsetName)+") ",11,Gi))),128))],2))}},Ye=(t,e="",n={})=>{const r=o.ref(""),{t:a}=it(),s=o.computed(()=>{if(o.unref(e))try{const c=ko(o.unref(t),o.unref(e));return la(c,o.unref(t))}catch(c){r.value=c}return o.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",o.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:o.computed(()=>mt(i,s.value)),error:r}},ko=(t,e="")=>{const n=mt(ne,Nt(",",e)),r=bt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!r.includes(s));if(a>-1)throw n[a];return n},Po=async(t,e,n)=>{const r=`${Mn}${o.unref(t)}${_n(n)?"":`?${Fi(n)}`}`;return new Promise((a,s)=>{fetch(r,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Yi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Fi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Yi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Hi=(t={})=>{const{initial:e=1,items:n=[],limit:r,auto:a=!1}=t,s=o.ref(o.unref(e)),i=u=>Fe(u,"day");return Qe(n,()=>{if(!a)return;const u=Jr(Pn(i,"gameDate"))(o.unref(n));s.value=u===-1?1:Math.floor(u/r)+1}),{page:s,change:u=>{s.value=u}}},Ui=({options:t={},transform:e=a=>a,onError:n=tt,onSuccess:r=tt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:f,isLoading:m,execute:p}=nn(()=>Po(a,s,o.unref(i)).then(g=>e(g)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:r});return{state:u,error:f,isLoading:m,execute:p}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsCore=function(T,r){"use strict";function qr(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function ln(t){return typeof t=="function"?t():r.unref(t)}const Kr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Zr=t=>t!=null,Ae=()=>{};function ke(t){var e;const n=ln(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Xr=Kr?window:void 0;function Jr(){const t=r.ref(!1);return r.getCurrentInstance()&&r.onMounted(()=>{t.value=!0}),t}function Qr(t){const e=Jr();return r.computed(()=>(e.value,!!t()))}function to(t,e,n={}){const{root:o,rootMargin:a="0px",threshold:s=.1,window:i=Xr,immediate:l=!0}=n,c=Qr(()=>i&&"IntersectionObserver"in i),u=r.computed(()=>{const m=ln(t);return(Array.isArray(m)?m:[m]).map(ke).filter(Zr)});let f=Ae;const p=r.ref(l),h=c.value?r.watch(()=>[u.value,ke(o),p.value],([m,d])=>{if(f(),!p.value||!m.length)return;const g=new IntersectionObserver(e,{root:ke(d),rootMargin:a,threshold:s});m.forEach(w=>w&&g.observe(w)),f=()=>{g.disconnect(),f=Ae}},{immediate:l,flush:"post"}):Ae,y=()=>{f(),h(),p.value=!1};return qr(y),{isSupported:c,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:y}}const eo=r.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const o=r.ref(null),{stop:a}=to(o,([{isIntersecting:s}])=>{s&&n("intersect")},t.options);return r.onUnmounted(a),()=>{if(e.default)return r.h(t.as||"div",{ref:o},e.default())}}}),ct=t=>"mjsz-vbr-"+t,cn={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=ct("base-input"),s=r.computed({get:()=>n.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function un(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const no=Object.prototype.toString,ro=t=>no.call(t)==="[object Object]",Q=()=>{},oo=ao();function ao(){var t,e;return Ht&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function so(t,e){function n(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return n}const dn=t=>t();function io(t=dn){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function _e(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function fn(t){return Array.isArray(t)?t:[t]}function lo(t,e,n={}){const{eventFilter:o=dn,...a}=n;return r.watch(t,so(o,e),a)}function co(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=io(o);return{stop:lo(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function Pe(t,e=!1){function n(p,{flush:h="sync",deep:y=!1,timeout:m,throwOnTimeout:d}={}){let g=null;const _=[new Promise(P=>{g=r.watch(t,E=>{p(E)!==e&&(g?g():r.nextTick(()=>g==null?void 0:g()),P(E))},{flush:h,deep:y,immediate:!0})})];return m!=null&&_.push(_e(m,d).then(()=>r.toValue(t)).finally(()=>g==null?void 0:g())),Promise.race(_)}function o(p,h){if(!r.isRef(p))return n(E=>E===p,h);const{flush:y="sync",deep:m=!1,timeout:d,throwOnTimeout:g}=h??{};let w=null;const P=[new Promise(E=>{w=r.watch([t,p],([N,v])=>{e!==(N===v)&&(w?w():r.nextTick(()=>w==null?void 0:w()),E(N))},{flush:y,deep:m,immediate:!0})})];return d!=null&&P.push(_e(d,g).then(()=>r.toValue(t)).finally(()=>(w==null||w(),r.toValue(t)))),Promise.race(P)}function a(p){return n(h=>!!h,p)}function s(p){return o(null,p)}function i(p){return o(void 0,p)}function l(p){return n(Number.isNaN,p)}function c(p,h){return n(y=>{const m=Array.from(y);return m.includes(p)||m.includes(r.toValue(p))},h)}function u(p){return f(1,p)}function f(p=1,h){let y=-1;return n(()=>(y+=1,y>=p),h)}return Array.isArray(r.toValue(t))?{toMatch:n,toContains:c,changed:u,changedTimes:f,get not(){return Pe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return Pe(t,!e)}}}function uo(t){return Pe(t)}function fo(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},r.toValue(e))}return o&&(a.value=!0,Ht&&c()),un(l),{isPending:r.readonly(a),start:c,stop:l}}function mn(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function mo(t,e,n){const o=r.watch(t,(a,s,i)=>{a&&(n!=null&&n.once&&r.nextTick(()=>o()),e(a,s,i))},{...n,once:!1});return o}const pn=Ht?window:void 0,po=Ht?window.document:void 0;function _t(t){var e;const n=r.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ut(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=pn):[e,n,o,a]=t,!e)return Q;n=fn(n),o=fn(o);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,p,h,y)=>(f.addEventListener(p,h,y),()=>f.removeEventListener(p,h,y)),c=r.watch(()=>[_t(e),r.toValue(a)],([f,p])=>{if(i(),!f)return;const h=ro(p)?{...p}:p;s.push(...n.flatMap(y=>o.map(m=>l(f,y,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return un(u),u}let hn=!1;function ho(t,e,n={}){const{window:o=pn,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return Q;oo&&!hn&&(hn=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let l=!0;const c=d=>r.toValue(a).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(w=>w===d.target||d.composedPath().includes(w));{const w=_t(g);return w&&(d.target===w||d.composedPath().includes(w))}});function u(d){const g=r.toValue(d);return g&&g.$.subTree.shapeFlag===16}function f(d,g){const w=r.toValue(d),_=w.$.subTree&&w.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(P=>P.el===g.target||g.composedPath().includes(P.el))}const p=d=>{const g=_t(t);if(d.target!=null&&!(!(g instanceof Element)&&u(t)&&f(t,d))&&!(!g||g===d.target||d.composedPath().includes(g))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}};let h=!1;const y=[Ut(o,"click",d=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(d))},{passive:!0,capture:s}),Ut(o,"pointerdown",d=>{const g=_t(t);l=!c(d)&&!!(g&&!d.composedPath().includes(g))},{passive:!0}),i&&Ut(o,"blur",d=>{setTimeout(()=>{var g;const w=_t(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(w!=null&&w.contains(o.document.activeElement))&&e(d)},0)},{passive:!0})].filter(Boolean);return()=>y.forEach(d=>d())}function gn(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=Q,onSuccess:i=Q,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},f=c?r.shallowRef(e):r.ref(e),p=r.ref(!1),h=r.ref(!1),y=r.shallowRef(void 0);async function m(w=0,..._){l&&(f.value=e),y.value=void 0,p.value=!1,h.value=!0,w>0&&await _e(w);const P=typeof t=="function"?t(..._):t;try{const E=await P;f.value=E,p.value=!0,i(E)}catch(E){if(y.value=E,s(E),u)throw E}finally{h.value=!1}return f.value}o&&m(a);const d={state:f,isReady:p,isLoading:h,error:y,execute:m};function g(){return new Promise((w,_)=>{uo(h).toBe(!1).then(()=>w(d)).catch(_)})}return{...d,then(w,_){return g().then(w,_)}}}function go(t={}){const{document:e=po}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Ut(e,"visibilitychange",()=>{n.value=e.visibilityState},{passive:!0}),n}async function yo(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:f,width:p,height:h,decoding:y,fetchPriority:m,ismap:d,usemap:g}=t;o.src=a,s!=null&&(o.srcset=s),i!=null&&(o.sizes=i),l!=null&&(o.className=l),c!=null&&(o.loading=c),u!=null&&(o.crossOrigin=u),f!=null&&(o.referrerPolicy=f),p!=null&&(o.width=p),h!=null&&(o.height=h),y!=null&&(o.decoding=y),m!=null&&(o.fetchPriority=m),d!=null&&(o.isMap=d),g!=null&&(o.useMap=g),o.onload=()=>e(o),o.onerror=n})}function bo(t,e={}){const n=gn(()=>yo(r.toValue(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>r.toValue(t),()=>n.execute(e.delay),{deep:!0}),n}function yn(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=fo(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function V(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function F(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function z(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:F(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?F(function(a){return t(a,o)}):V(o)?F(function(a){return t(n,a)}):t(n,o)}}}function Wt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,f){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,f,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function xe(t,e,n){return function(){for(var o=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!V(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),o[i]=c,V(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,o):Wt(Math.max(0,s),xe(t,o,n))}}var Dt=z(function(e,n){return e===1?F(n):Wt(e,xe(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:z(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(o)?e:V(n)?z(function(s,i){return t(s,o,i)}):V(o)?z(function(s,i){return t(n,s,i)}):F(function(s){return t(n,o,s)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?z(function(s,i){return t(s,i,a)}):V(n)&&V(a)?z(function(s,i){return t(s,o,i)}):V(o)&&V(a)?z(function(s,i){return t(n,s,i)}):V(n)?F(function(s){return t(s,o,a)}):V(o)?F(function(s){return t(n,s,a)}):V(a)?F(function(s){return t(n,o,s)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function To(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ct(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(To(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ee(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function bn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function Tn(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function wo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function tt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function So(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const Ne=typeof Object.is=="function"?Object.is:So;var wn=Object.prototype.toString,Sn=function(){return wn.call(arguments)==="[object Arguments]"?function(e){return wn.call(e)==="[object Arguments]"}:function(e){return tt("callee",e)}}(),Oo=!{toString:null}.propertyIsEnumerable("toString"),On=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],An=function(){return arguments.propertyIsEnumerable("length")}(),Ao=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},gt=F(typeof Object.keys=="function"&&!An?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=An&&Sn(e);for(n in e)tt(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Oo)for(o=On.length-1;o>=0;)n=On[o],tt(n,e)&&!Ao(a,n)&&(a[a.length]=n),o-=1;return a}),$e=F(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function kn(t,e,n,o){var a=bn(t),s=bn(e);function i(l,c){return Me(l,c,n.slice(),o.slice())}return!Tn(function(l,c){return!Tn(i,c,l)},s,a)}function Me(t,e,n,o){if(Ne(t,e))return!0;var a=$e(t);if(a!==$e(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&wo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&Ne(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Ne(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:kn(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:kn(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=gt(t);if(i.length!==gt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(tt(u,e)&&Me(e[u],t[u],l,c)))return!1;s-=1}return!0}var qt=z(function(e,n){return Me(e,n,[],[])});function ko(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(qt(t[n],e))return n;n+=1}return-1}function _n(t,e){return ko(e,t,0)>=0}function Kt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function De(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var Lt=function(e){return(e<10?"0":"")+e},_o=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Lt(e.getUTCMonth()+1)+"-"+Lt(e.getUTCDate())+"T"+Lt(e.getUTCHours())+":"+Lt(e.getUTCMinutes())+":"+Lt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Po(t){return function(){return!t.apply(this,arguments)}}function Pn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function xo(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Zt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Eo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function No(t){return function(e){return new Eo(t,e)}}var ve=z(Ct(["fantasy-land/filter","filter"],No,function(t,e){return Zt(e)?Pn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},gt(e)):xo(t,e)})),$o=z(function(e,n){return ve(Po(e),n)});function xn(t,e){var n=function(i){var l=e.concat([t]);return _n(i,l)?"<Circular>":xn(i,l)},o=function(s,i){return Kt(function(l){return De(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Kt(n,t).join(", ")+"))";case"[object Array]":return"["+Kt(n,t).concat(o(t,$o(function(s){return/^\d+$/.test(s)},gt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):De(_o(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":De(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,gt(t)).join(", ")+"}"}}var Ce=F(function(e){return xn(e,[])}),Mo=z(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=Ce(e),l=o(i,Ce(n));return l!==void 0&&l===i?e:n}),Do=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),vo=function(e){return function(n){return new Do(e,n)}},ft=z(Ct(["fantasy-land/map","map"],vo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Dt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Pn(function(o,a){return o[a]=e(n[a]),o},{},gt(n));default:return Kt(e,n)}}));const Xt=Number.isInteger||function(e){return e<<0===e};function Jt(t){return Object.prototype.toString.call(t)==="[object String]"}function En(t,e){var n=t<0?e.length+t:t;return Jt(e)?e.charAt(n):e[n]}var ut=z(function(e,n){if(n!=null)return Xt(e)?En(e,n):n[e]}),Co=z(function(e,n){return ft(ut(e),n)}),Lo=F(function(e){return vt(e)?!0:!e||typeof e!="object"||Jt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Nn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Io(t,e,n){return function(a,s,i){if(Lo(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[Nn]!=null)return n(a,s,i[Nn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Bo(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var Ro=z(function(e,n){return Wt(e.length,function(){return e.apply(n,arguments)})});function zo(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function Vo(t,e,n,o){return t["@@transducer/result"](n[o](Ro(t["@@transducer/step"],t),e))}var $n=Io(Bo,Vo,zo),Go=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function Mn(t){return new Go(t)}var Dn=X(function(t,e,n){return $n(typeof t=="function"?Mn(t):t,e,n)}),vn=F(function(e){return function(){return e}}),Fo=F(function(e){return Dt(Dn(Mo,0,Co("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),Le=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0}),jo=F(function(e){return Dt(e.length,e)});function Yo(t,e,n){if(Xt(t)&&vt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var Ho=F(function(e){return e==null}),Uo=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!Ho(o)&&tt(a,o)&&typeof o[a]=="object"?o[a]:Xt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return Yo(a,n,o)}),Wo=X(function(e,n,o){return Uo([e],n,o)});function qo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ko(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 Cn(t,e,n){if(n||(n=new Xo),Zo(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=t[l]);return s};switch($e(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Ko(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 Zo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Xo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){var o=this.hash(e),a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){var n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(var n in this.map)for(var i=this.map[n],o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}return}var s=this.hash(e),i=this.map[s];if(i)for(var o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}},t}();function Jo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Ie(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Qo=X(Ie("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),ta=F(Ie("tail",Qo(1,1/0)));function Qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Wt(arguments[0].length,Dn(Jo,arguments[0],ta(arguments)))}var ea=F(function(e){return Jt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function Ln(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Qt.apply(this,ea(arguments))}var na=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(tt(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,Cn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function ra(t,e,n){return function(o){return new na(t,e,n,o)}}var oa=xe(4,[],Ct([],ra,function(e,n,o,a){var s=Mn(function(i,l){var c=o(l),u=e(tt(c,i)?i[c]:Cn(n),l);return u&&u["@@transducer/reduced"]?Ee(i):(i[c]=u,i)});return $n(s,{},a)})),aa=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});function sa(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 ia=F(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():vt(e)?[]:Jt(e)?"":Zt(e)?{}:Sn(e)?function(){return arguments}():sa(e)?e.constructor.from(""):void 0}),la=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=Ee(this.xf["@@transducer/step"](e,n))),e},t}();function ca(t){return function(e){return new la(t,e)}}var ua=z(Ct(["find"],ca,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),da=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=Ee(this.xf["@@transducer/step"](e,this.idx))),e},t}();function fa(t){return function(e){return new da(t,e)}}var ma=z(Ct([],fa,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),pa=z(Ie("groupBy",oa(function(t,e){return t.push(e),t},[]))),ha=X(function(e,n,o){return Dt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),ga=z(_n),In=z(function(e,n){return Dt(e+1,function(){var o=arguments[e];if(o!=null&&qo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ce(o)+' does not have a method named "'+n+'"')})}),Bn=F(function(e){return e!=null&&qt(e,ia(e))}),ya=z(function(e,n){return function(o){return function(a){return ft(function(s){return n(s,a)},o(e(a)))}}});function ba(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Xt(a)?n=En(a,n):n=n[a]}return n}var Ta=F(function(e){return ya(ut(e),Wo(e))}),wa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)tt(s,n)&&(a[s]=tt(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)tt(s,o)&&!tt(s,a)&&(a[s]=o[s]);return a}),Sa=X(function t(e,n,o){return wa(function(a,s,i){return Zt(s)&&Zt(i)?t(e,s,i):e(a,s,i)},n,o)}),Oa=z(function(e,n){return Sa(function(o,a,s){return s},e,n)}),Aa=z(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),Rn=function(t){return{value:t,map:function(e){return Rn(e(t))}}},ka=X(function(e,n,o){return e(function(a){return Rn(n(a))})(o).value}),Be=z(ba),zn=X(function(e,n,o){return e(ut(n,o))}),_a=X(function(e,n,o){return o.replace(e,n)}),Pa=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),Vn=z(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})}),Pt=In(1,"split"),Gn=In(0,"toLowerCase"),It=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,xa="",Ea=typeof String.prototype.trim=="function",te=F(!Ea||It.trim()||!xa.trim()?function(e){var n=new RegExp("^["+It+"]["+It+"]*"),o=new RegExp("["+It+"]["+It+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Fn=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),jn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const f=!Bn(u),p=ft(te,Pt(".",c));return r.computed(()=>{const y=Yn(p);return f?$a(y,u):y}).value},a=c=>{const u=ft(te,Pt(".",c));return!!Re(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:r.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(Fn,l),{translate:o}},at=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=Na();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},Na=()=>{const t=r.inject(Fn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Yn=(t=[])=>{let e=Re(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Re(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Re(t,e,n){return Be([t,...e],n)}const $a=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},Hn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=ft(te,Pt(".",t.path)),o=Yn(n),a=Pt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),Un="https://api.icehockey.hu/vbr",Wn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",qn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Kn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Zn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Xn="https://api.icehockey.hu/static/api/flag",dt="original",b="descend",I="ascend",Jn=new Map().set("hu","hu-hu").set("en","hu-gb"),Qn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Ma=1e3*60*5,tr=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"};function va(t,e){return r.openBlock(),r.createElementBlock("svg",Da,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1)]))}const er={render:va},Ca={"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"};function La(t,e){return r.openBlock(),r.createElementBlock("svg",Ca,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1)]))}const Ia={render:La},Ba={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"};function Ra(t,e){return r.openBlock(),r.createElementBlock("svg",Ba,e[0]||(e[0]=[r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1)]))}const za={render:Ra},xt=Math.min,yt=Math.max,ee=Math.round,ne=Math.floor,st=t=>({x:t,y:t}),Va={left:"right",right:"left",bottom:"top",top:"bottom"},Ga={start:"end",end:"start"};function ze(t,e,n){return yt(t,xt(e,n))}function Bt(t,e){return typeof t=="function"?t(e):t}function bt(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function nr(t){return t==="x"?"y":"x"}function Ve(t){return t==="y"?"height":"width"}function re(t){return["top","bottom"].includes(bt(t))?"y":"x"}function Ge(t){return nr(re(t))}function Fa(t,e,n){n===void 0&&(n=!1);const o=Rt(t),a=Ge(t),s=Ve(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=oe(i)),[i,oe(i)]}function ja(t){const e=oe(t);return[Fe(t),e,Fe(e)]}function Fe(t){return t.replace(/start|end/g,e=>Ga[e])}function Ya(t,e,n){const o=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?s:i;default:return[]}}function Ha(t,e,n,o){const a=Rt(t);let s=Ya(bt(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(Fe)))),s}function oe(t){return t.replace(/left|right|bottom|top/g,e=>Va[e])}function Ua(t){return{top:0,right:0,bottom:0,left:0,...t}}function rr(t){return typeof t!="number"?Ua(t):{top:t,right:t,bottom:t,left:t}}function ae(t){const{x:e,y:n,width:o,height:a}=t;return{width:o,height:a,top:n,left:e,right:e+o,bottom:n+a,x:e,y:n}}function or(t,e,n){let{reference:o,floating:a}=t;const s=re(e),i=Ge(e),l=Ve(i),c=bt(e),u=s==="y",f=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,h=o[l]/2-a[l]/2;let y;switch(c){case"top":y={x:f,y:o.y-a.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-a.width,y:p};break;default:y={x:o.x,y:o.y}}switch(Rt(e)){case"start":y[i]-=h*(n&&u?-1:1);break;case"end":y[i]+=h*(n&&u?-1:1);break}return y}const Wa=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:p}=or(u,o,c),h=o,y={},m=0;for(let d=0;d<l.length;d++){const{name:g,fn:w}=l[d],{x:_,y:P,data:E,reset:N}=await w({x:f,y:p,initialPlacement:o,placement:h,strategy:a,middlewareData:y,rects:u,platform:i,elements:{reference:t,floating:e}});f=_??f,p=P??p,y={...y,[g]:{...y[g],...E}},N&&m<=50&&(m++,typeof N=="object"&&(N.placement&&(h=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):N.rects),{x:f,y:p}=or(u,h,c)),d=-1)}return{x:f,y:p,placement:h,strategy:a,middlewareData:y}};async function ar(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:y=0}=Bt(e,t),m=rr(y),g=l[h?p==="floating"?"reference":"floating":p],w=ae(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),_=p==="floating"?{...i.floating,x:o,y:a}:i.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},N=ae(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:P,strategy:c}):_);return{top:(w.top-N.top+m.top)/E.y,bottom:(N.bottom-w.bottom+m.bottom)/E.y,left:(w.left-N.left+m.left)/E.x,right:(N.right-w.right+m.right)/E.x}}const qa=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:f=0}=Bt(t,e)||{};if(u==null)return{};const p=rr(f),h={x:n,y:o},y=Ge(a),m=Ve(y),d=await i.getDimensions(u),g=y==="y",w=g?"top":"left",_=g?"bottom":"right",P=g?"clientHeight":"clientWidth",E=s.reference[m]+s.reference[y]-h[y]-s.floating[m],N=h[y]-s.reference[y],v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let L=v?v[P]:0;(!L||!await(i.isElement==null?void 0:i.isElement(v)))&&(L=l.floating[P]||s.floating[m]);const G=E/2-N/2,Y=L/2-d[m]/2-1,B=xt(p[w],Y),D=xt(p[_],Y),H=B,ot=L-d[m]-D,x=L/2-d[m]/2+G,k=ze(H,x,ot),S=!c.arrow&&Rt(a)!=null&&x!==k&&s.reference[m]/2-(x<H?B:D)-d[m]/2<0,O=S?x<H?x-H:x-ot:0;return{[y]:h[y]+O,data:{[y]:k,centerOffset:x-k-O,...S&&{alignmentOffset:O}},reset:S}}}),Ka=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:d=!0,...g}=Bt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=bt(a),_=bt(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(_||!d?[oe(l)]:ja(l));!h&&m!=="none"&&E.push(...Ha(l,d,m,P));const N=[l,...E],v=await ar(e,g),L=[];let G=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&L.push(v[w]),p){const H=Fa(a,i,P);L.push(v[H[0]],v[H[1]])}if(G=[...G,{placement:a,overflows:L}],!L.every(H=>H<=0)){var Y,B;const H=(((Y=s.flip)==null?void 0:Y.index)||0)+1,ot=N[H];if(ot)return{data:{index:H,overflows:G},reset:{placement:ot}};let x=(B=G.filter(k=>k.overflows[0]<=0).sort((k,S)=>k.overflows[1]-S.overflows[1])[0])==null?void 0:B.placement;if(!x)switch(y){case"bestFit":{var D;const k=(D=G.map(S=>[S.placement,S.overflows.filter(O=>O>0).reduce((O,A)=>O+A,0)]).sort((S,O)=>S[1]-O[1])[0])==null?void 0:D[0];k&&(x=k);break}case"initialPlacement":x=l;break}if(a!==x)return{reset:{placement:x}}}return{}}}};async function Za(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=bt(n),l=Rt(n),c=re(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&c?-1:1,p=Bt(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof m=="number"&&(y=l==="end"?m*-1:m),c?{x:y*f,y:h*u}:{x:h*u,y:y*f}}const Xa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Za(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Ja=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:g=>{let{x:w,y:_}=g;return{x:w,y:_}}},...c}=Bt(t,e),u={x:n,y:o},f=await ar(e,c),p=re(bt(a)),h=nr(p);let y=u[h],m=u[p];if(s){const g=h==="y"?"top":"left",w=h==="y"?"bottom":"right",_=y+f[g],P=y-f[w];y=ze(_,y,P)}if(i){const g=p==="y"?"top":"left",w=p==="y"?"bottom":"right",_=m+f[g],P=m-f[w];m=ze(_,m,P)}const d=l.fn({...e,[h]:y,[p]:m});return{...d,data:{x:d.x-n,y:d.y-o}}}}};function se(){return typeof window<"u"}function Et(t){return sr(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(sr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sr(t){return se()?t instanceof Node||t instanceof Z(t).Node:!1}function et(t){return se()?t instanceof Element||t instanceof Z(t).Element:!1}function lt(t){return se()?t instanceof HTMLElement||t instanceof Z(t).HTMLElement:!1}function ir(t){return!se()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function zt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Qa(t){return["table","td","th"].includes(Et(t))}function ie(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function je(t){const e=Ye(),n=et(t)?nt(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ts(t){let e=mt(t);for(;lt(e)&&!Nt(e);){if(je(e))return e;if(ie(e))return null;e=mt(e)}return null}function Ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nt(t){return["html","body","#document"].includes(Et(t))}function nt(t){return Z(t).getComputedStyle(t)}function le(t){return et(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if(Et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ir(t)&&t.host||it(t);return ir(e)?e.host:e}function lr(t){const e=mt(t);return Nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&zt(e)?e:lr(e)}function Vt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=lr(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);if(s){const l=He(i);return e.concat(i,i.visualViewport||[],zt(a)?a:[],l&&n?Vt(l):[])}return e.concat(a,Vt(a,[],n))}function He(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cr(t){const e=nt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=lt(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=ee(n)!==s||ee(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Ue(t){return et(t)?t:t.contextElement}function $t(t){const e=Ue(t);if(!lt(e))return st(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=cr(e);let i=(s?ee(n.width):n.width)/o,l=(s?ee(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const es=st(0);function ur(t){const e=Z(t);return!Ye()||!e.visualViewport?es:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ns(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function Tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Ue(t);let i=st(1);e&&(o?et(o)&&(i=$t(o)):i=$t(t));const l=ns(s,n,o)?ur(s):st(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,f=a.width/i.x,p=a.height/i.y;if(s){const h=Z(s),y=o&&et(o)?Z(o):o;let m=h,d=He(m);for(;d&&o&&y!==m;){const g=$t(d),w=d.getBoundingClientRect(),_=nt(d),P=w.left+(d.clientLeft+parseFloat(_.paddingLeft))*g.x,E=w.top+(d.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,f*=g.x,p*=g.y,c+=P,u+=E,m=Z(d),d=He(m)}}return ae({width:f,height:p,x:c,y:u})}function We(t,e){const n=le(t).scrollLeft;return e?e.left+n:Tt(it(t)).left+n}function dr(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),a=o.left+e.scrollLeft-(n?0:We(t,o)),s=o.top+e.scrollTop;return{x:a,y:s}}function rs(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=it(o),l=e?ie(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=st(1);const f=st(0),p=lt(o);if((p||!p&&!s)&&((Et(o)!=="body"||zt(i))&&(c=le(o)),lt(o))){const y=Tt(o);u=$t(o),f.x=y.x+o.clientLeft,f.y=y.y+o.clientTop}const h=i&&!p&&!s?dr(i,c,!0):st(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function os(t){return Array.from(t.getClientRects())}function as(t){const e=it(t),n=le(t),o=t.ownerDocument.body,a=yt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=yt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+We(t);const l=-n.scrollTop;return nt(o).direction==="rtl"&&(i+=yt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function ss(t,e){const n=Z(t),o=it(t),a=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=Ye();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function is(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=lt(t)?$t(t):st(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function fr(t,e,n){let o;if(e==="viewport")o=ss(t,n);else if(e==="document")o=as(it(t));else if(et(e))o=is(e,n);else{const a=ur(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return ae(o)}function mr(t,e){const n=mt(t);return n===e||!et(n)||Nt(n)?!1:nt(n).position==="fixed"||mr(n,e)}function ls(t,e){const n=e.get(t);if(n)return n;let o=Vt(t,[],!1).filter(l=>et(l)&&Et(l)!=="body"),a=null;const s=nt(t).position==="fixed";let i=s?mt(t):t;for(;et(i)&&!Nt(i);){const l=nt(i),c=je(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||zt(i)&&!c&&mr(t,i))?o=o.filter(f=>f!==i):a=l,i=mt(i)}return e.set(t,o),o}function cs(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?ie(e)?[]:ls(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,f)=>{const p=fr(e,f,a);return u.top=yt(p.top,u.top),u.right=xt(p.right,u.right),u.bottom=xt(p.bottom,u.bottom),u.left=yt(p.left,u.left),u},fr(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function us(t){const{width:e,height:n}=cr(t);return{width:e,height:n}}function ds(t,e,n){const o=lt(e),a=it(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=st(0);if(o||!o&&!s)if((Et(e)!=="body"||zt(a))&&(l=le(e)),o){const h=Tt(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else a&&(c.x=We(a));const u=a&&!o&&!s?dr(a,l):st(0),f=i.left+l.scrollLeft-c.x-u.x,p=i.top+l.scrollTop-c.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function qe(t){return nt(t).position==="static"}function pr(t,e){if(!lt(t)||nt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return it(t)===n&&(n=n.ownerDocument.body),n}function hr(t,e){const n=Z(t);if(ie(t))return n;if(!lt(t)){let a=mt(t);for(;a&&!Nt(a);){if(et(a)&&!qe(a))return a;a=mt(a)}return n}let o=pr(t,e);for(;o&&Qa(o)&&qe(o);)o=pr(o,e);return o&&Nt(o)&&qe(o)&&!je(o)?n:o||ts(t)||n}const fs=async function(t){const e=this.getOffsetParent||hr,n=this.getDimensions,o=await n(t.floating);return{reference:ds(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ms(t){return nt(t).direction==="rtl"}const ps={convertOffsetParentRelativeRectToViewportRelativeRect:rs,getDocumentElement:it,getClippingRect:cs,getOffsetParent:hr,getElementRects:fs,getClientRects:os,getDimensions:us,getScale:$t,isElement:et,isRTL:ms};function gr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function hs(t,e){let n=null,o;const a=it(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=t.getBoundingClientRect(),{left:f,top:p,width:h,height:y}=u;if(l||e(),!h||!y)return;const m=ne(p),d=ne(a.clientWidth-(f+h)),g=ne(a.clientHeight-(p+y)),w=ne(f),P={rootMargin:-m+"px "+-d+"px "+-g+"px "+-w+"px",threshold:yt(0,xt(1,c))||1};let E=!0;function N(v){const L=v[0].intersectionRatio;if(L!==c){if(!E)return i();L?i(!1,L):o=setTimeout(()=>{i(!1,1e-7)},1e3)}L===1&&!gr(u,t.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(N,{...P,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,P)}n.observe(t)}return i(!0),s}function gs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Ue(t),f=a||s?[...u?Vt(u):[],...Vt(e)]:[];f.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const p=u&&l?hs(u,n):null;let h=-1,y=null;i&&(y=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&y&&(y.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(e)})),n()}),u&&!c&&y.observe(u),y.observe(e));let m,d=c?Tt(t):null;c&&g();function g(){const w=Tt(t);d&&!gr(d,w)&&n(),d=w,m=requestAnimationFrame(g)}return n(),()=>{var w;f.forEach(_=>{a&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),p==null||p(),(w=y)==null||w.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const ys=Xa,bs=Ja,Ts=Ka,yr=qa,ws=(t,e,n)=>{const o=new Map,a={platform:ps,...n},s={...a.platform,_c:o};return Wa(t,e,{...a,platform:s})},br=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function Ss(t,e=()=>({})){return t.slice().sort((n,o)=>{let a=e(n),s=e(o);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Os({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),f=r.ref(null),p=r.ref(null),h=r.ref(n??"absolute"),y=r.ref(null),m=()=>{!s.value||!i.value||ws(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(g=>{l.value=g.x,c.value=g.y,h.value=g.strategy,u.value=g.middlewareData.arrow.x,f.value=g.middlewareData.arrow.y,p.value=g.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:g,append:w})=>{w&&br(g,w),m()},{flush:"post"}),r.watch(a,g=>{if(!(!s.value||!i.value)){if(!g)return d();y.value=gs(s.value,i.value,m,{})}},{flush:"post"});const d=()=>{var g;(g=y.value)==null||g.call(y),y.value=null};return{x:l,y:c,arrowX:u,arrowY:f,placement:p,reference:s,floating:i,strategy:h,update:m}}const As=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?yr({element:e.value,padding:n}).fn(o):{}:e?yr({element:e,padding:n}).fn(o):{}}}},ks=["data-placement"],Ke={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:f,strategy:p}=Os({placement:e.placement,middleware:[Ts(),bs({padding:5}),ys(e.offset),As({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),h=()=>{e.disabled||n.value||(n.value=!0)},y=g=>{n.value&&g&&(n.value=!1)},m=g=>{u.value=g},d={mouseenter:h,mouseleave:y,focus:h,blur:y};return ho(f,g=>{var w;(w=u.value)!=null&&w.contains(g.target)||y()}),(g,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(g.$slots,"default",{setRef:m,show:h,hide:y,events:d}),r.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(p),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(g.$slots,"content",{close:y},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(p),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,ks)],64))}},_s=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ps={key:0},xs=["colspan"],Es={key:1},Ns=["colspan"],Ze={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=yn(o,{delay:tr}),i=e,{t:l}=at(),c=ct("table"),u=r.computed(()=>n.columns),f=r.computed(()=>Object.keys(n.columns).length),p=(h,y)=>{h.sortOrders&&i("sort",{target:y,orders:h.sortOrders})};return(h,y)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(c))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(m,d)=>(r.openBlock(),r.createBlock(Ke,{key:d,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:w,hide:_})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[m.class],{"is-active":d===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-sortable":m.sortOrders,"is-desc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)}]),onMouseenter:w,onMouseleave:_,onFocus:w,onBlur:_,onClick:P=>p(m,d),onKeydown:[r.withKeys(r.withModifiers(P=>p(m,d),["prevent"]),["space"]),r.withKeys(r.withModifiers(P=>p(m,d),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[r.renderSlot(h.$slots,`header-${d}`,{column:m},()=>[r.createTextVNode(r.toDisplayString(m.label),1)]),m.sortOrders&&d!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(er),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(dt)?(r.openBlock(),r.createBlock(r.unref(er),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(Ia),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)?(r.openBlock(),r.createBlock(r.unref(za),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,_s)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(m,d)=>(r.openBlock(),r.createElementBlock("tr",{key:d,class:r.normalizeClass(m.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(g,w)=>(r.openBlock(),r.createElementBlock("td",{key:w,class:r.normalizeClass([[g.class],{"is-active":w===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-zero":m[w]==0||m[w]=="00:00"}])},[r.renderSlot(h.$slots,`cell-${w}`,{row:m,prop:w},()=>[r.createTextVNode(r.toDisplayString(m[w]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",Ps,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,xs)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",Es,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,Ns)])])):r.createCommentVNode("",!0)],2))}},$s={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"};function Ms(t,e){return r.openBlock(),r.createElementBlock("svg",$s,e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)]))}const Ds={render:Ms},vs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=at(),a=ct("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(Ds),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Tr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const wt=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return Be(Pt(".",o),e)})},wr=Symbol("ErrorProviderContext"),Sr=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||Tr(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(wr,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Xe=()=>{const t=Cs();return{onError:t.onError,reset:t.reset}},Cs=()=>{const t=r.inject(wr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ls={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=Sr();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},Is={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:"SO",overtimeShort:"OT",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Bs={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"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Rs=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},zs=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Oa({hu:Is,en:Bs},t.messages),{translate:n}=jn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Vs(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const Gs=Rs(zs,[["render",Vs]]),Fs=["src"],js=["src","title"],St=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=bo(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Fs)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title,loading:"lazy"},null,10,js))],64))}}),Ys={style:{"text-align":"center"}},Je={__name:"LoadingIndicator",setup(t){const{t:e}=at();return(n,o)=>(r.openBlock(),r.createElementBlock("div",Ys,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Hs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=Q}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const f=r.unref(t)-1,p=Array.from({length:s.value},(m,d)=>d+1),h=Math.floor(o/2);let y=Math.max(f-h,0);return y+o>=s.value&&(y=Math.max(s.value-o,0)),p.slice(y,y+o)}),l=f=>{const p=r.unref(t)+f;u(p)&&a(p)},c=f=>{u(f)&&a(f)},u=f=>f<=s.value&&f>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Us={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function Ws(t,e){return r.openBlock(),r.createElementBlock("svg",Us,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)]))}const qs={render:Ws},Ks={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"};function Zs(t,e){return r.openBlock(),r.createElementBlock("svg",Ks,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)]))}const Xs={render:Zs},Js=["disabled"],Qs=["disabled"],ti={key:1,class:"is-disabled"},ei=["disabled","onClick"],ni={key:2,class:"is-disabled"},ri=["disabled"],oi=["disabled"],ai={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,a=ct("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Hs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:f=>o("change",f)});return(f,p)=>r.unref(i)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(s)===1,onClick:p[0]||(p[0]=h=>r.unref(u)(-1))},[r.renderSlot(f.$slots,"prev",{},()=>[r.createVNode(r.unref(qs),{class:"icon paginator-left"})])],8,Js),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:p[1]||(p[1]=h=>r.unref(c)(1))},"1",8,Qs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ti,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),h=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:h,class:r.normalizeClass({"is-active":h===r.unref(s)}),disabled:h===r.unref(s),onClick:y=>r.unref(c)(h)},r.toDisplayString(h),11,ei))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ni,p[4]||(p[4]=[r.createElementVNode("span",null,"...",-1)]))),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:p[2]||(p[2]=h=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,ri)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:p[3]||(p[3]=r.withModifiers(h=>r.unref(u)(1),["prevent"]))},[r.renderSlot(f.$slots,"next",{},()=>[r.createVNode(r.unref(Xs),{class:"icon paginator-left"})])],8,oi)],2)):r.createCommentVNode("",!0)}},Qe={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=ct("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ce={exports:{}},si=ce.exports,Or;function Ar(){return Or||(Or=1,function(t,e){(function(n,o){t.exports=o()})(si,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",f="week",p="month",h="quarter",y="year",m="date",d="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,_={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(x){var k=["th","st","nd","rd"],S=x%100;return"["+x+(k[(S-20)%10]||k[S]||k[0])+"]"}},P=function(x,k,S){var O=String(x);return!O||O.length>=k?x:""+Array(k+1-O.length).join(S)+x},E={s:P,z:function(x){var k=-x.utcOffset(),S=Math.abs(k),O=Math.floor(S/60),A=S%60;return(k<=0?"+":"-")+P(O,2,"0")+":"+P(A,2,"0")},m:function x(k,S){if(k.date()<S.date())return-x(S,k);var O=12*(S.year()-k.year())+(S.month()-k.month()),A=k.clone().add(O,p),M=S-A<0,$=k.clone().add(O+(M?-1:1),p);return+(-(O+(S-A)/(M?A-$:$-A))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:p,y,w:f,d:u,D:m,h:c,m:l,s:i,ms:s,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",v={};v[N]=_;var L="$isDayjsObject",G=function(x){return x instanceof H||!(!x||!x[L])},Y=function x(k,S,O){var A;if(!k)return N;if(typeof k=="string"){var M=k.toLowerCase();v[M]&&(A=M),S&&(v[M]=S,A=M);var $=k.split("-");if(!A&&$.length>1)return x($[0])}else{var R=k.name;v[R]=k,A=R}return!O&&A&&(N=A),A||!O&&N},B=function(x,k){if(G(x))return x.clone();var S=typeof k=="object"?k:{};return S.date=x,S.args=arguments,new H(S)},D=E;D.l=Y,D.i=G,D.w=function(x,k){return B(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var H=function(){function x(S){this.$L=Y(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[L]=!0}var k=x.prototype;return k.parse=function(S){this.$d=function(O){var A=O.date,M=O.utc;if(A===null)return new Date(NaN);if(D.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var $=A.match(g);if($){var R=$[2]-1||0,j=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(A)}(S),this.init()},k.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},k.$utils=function(){return D},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(S,O){var A=B(S);return this.startOf(O)<=A&&A<=this.endOf(O)},k.isAfter=function(S,O){return B(S)<this.startOf(O)},k.isBefore=function(S,O){return this.endOf(O)<B(S)},k.$g=function(S,O,A){return D.u(S)?this[O]:this.set(A,S)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(S,O){var A=this,M=!!D.u(O)||O,$=D.p(S),R=function(kt,K){var pt=D.w(A.$u?Date.UTC(A.$y,K,kt):new Date(A.$y,K,kt),A);return M?pt:pt.endOf(u)},j=function(kt,K){return D.w(A.toDate()[kt].apply(A.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(K)),A)},U=this.$W,q=this.$M,J=this.$D,Mt="set"+(this.$u?"UTC":"");switch($){case y:return M?R(1,0):R(31,11);case p:return M?R(1,q):R(0,q+1);case f:var At=this.$locale().weekStart||0,jt=(U<At?U+7:U)-At;return R(M?J-jt:J+(6-jt),q);case u:case m:return j(Mt+"Hours",0);case c:return j(Mt+"Minutes",1);case l:return j(Mt+"Seconds",2);case i:return j(Mt+"Milliseconds",3);default:return this.clone()}},k.endOf=function(S){return this.startOf(S,!1)},k.$set=function(S,O){var A,M=D.p(S),$="set"+(this.$u?"UTC":""),R=(A={},A[u]=$+"Date",A[m]=$+"Date",A[p]=$+"Month",A[y]=$+"FullYear",A[c]=$+"Hours",A[l]=$+"Minutes",A[i]=$+"Seconds",A[s]=$+"Milliseconds",A)[M],j=M===u?this.$D+(O-this.$W):O;if(M===p||M===y){var U=this.clone().set(m,1);U.$d[R](j),U.init(),this.$d=U.set(m,Math.min(this.$D,U.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},k.set=function(S,O){return this.clone().$set(S,O)},k.get=function(S){return this[D.p(S)]()},k.add=function(S,O){var A,M=this;S=Number(S);var $=D.p(O),R=function(q){var J=B(M);return D.w(J.date(J.date()+Math.round(q*S)),M)};if($===p)return this.set(p,this.$M+S);if($===y)return this.set(y,this.$y+S);if($===u)return R(1);if($===f)return R(7);var j=(A={},A[l]=o,A[c]=a,A[i]=n,A)[$]||1,U=this.$d.getTime()+S*j;return D.w(U,this)},k.subtract=function(S,O){return this.add(-1*S,O)},k.format=function(S){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||d;var M=S||"YYYY-MM-DDTHH:mm:ssZ",$=D.z(this),R=this.$H,j=this.$m,U=this.$M,q=A.weekdays,J=A.months,Mt=A.meridiem,At=function(K,pt,Yt,Oe){return K&&(K[pt]||K(O,M))||Yt[pt].slice(0,Oe)},jt=function(K){return D.s(R%12||12,K,"0")},kt=Mt||function(K,pt,Yt){var Oe=K<12?"AM":"PM";return Yt?Oe.toLowerCase():Oe};return M.replace(w,function(K,pt){return pt||function(Yt){switch(Yt){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return U+1;case"MM":return D.s(U+1,2,"0");case"MMM":return At(A.monthsShort,U,J,3);case"MMMM":return At(J,U);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return At(A.weekdaysMin,O.$W,q,2);case"ddd":return At(A.weekdaysShort,O.$W,q,3);case"dddd":return q[O.$W];case"H":return String(R);case"HH":return D.s(R,2,"0");case"h":return jt(1);case"hh":return jt(2);case"a":return kt(R,j,!0);case"A":return kt(R,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return $}return null}(K)||$.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(S,O,A){var M,$=this,R=D.p(O),j=B(S),U=(j.utcOffset()-this.utcOffset())*o,q=this-j,J=function(){return D.m($,j)};switch(R){case y:M=J()/12;break;case p:M=J();break;case h:M=J()/3;break;case f:M=(q-U)/6048e5;break;case u:M=(q-U)/864e5;break;case c:M=q/a;break;case l:M=q/o;break;case i:M=q/n;break;default:M=q}return A?M:D.a(M)},k.daysInMonth=function(){return this.endOf(p).$D},k.$locale=function(){return v[this.$L]},k.locale=function(S,O){if(!S)return this.$L;var A=this.clone(),M=Y(S,O,!0);return M&&(A.$L=M),A},k.clone=function(){return D.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},x}(),ot=H.prototype;return B.prototype=ot,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",p],["$y",y],["$D",m]].forEach(function(x){ot[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),B.extend=function(x,k){return x.$i||(x(k,H,B),x.$i=!0),B},B.locale=Y,B.isDayjs=G,B.unix=function(x){return B(1e3*x)},B.en=v[N],B.Ls=v,B.p={},B})}(ce)),ce.exports}var ii=Ar();const C=rt(ii);var ue={exports:{}},li=ue.exports,kr;function ci(){return kr||(kr=1,function(t,e){(function(n,o){t.exports=o()})(li,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(d){var g={date:d,utc:!0,args:arguments};return new i(g)},c.utc=function(d){var g=l(this.toDate(),{locale:this.$L,utc:!0});return d?g.add(this.utcOffset(),n):g},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),u.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var p=c.utcOffset;c.utcOffset=function(d,g){var w=this.$utils().u;if(w(d))return this.$u?0:w(this.$offset)?p.call(this):this.$offset;if(typeof d=="string"&&(d=function(N){N===void 0&&(N="");var v=N.match(o);if(!v)return null;var L=(""+v[0]).match(a)||["-",0,0],G=L[0],Y=60*+L[1]+ +L[2];return Y===0?0:G==="+"?Y:-Y}(d),d===null))return this;var _=Math.abs(d)<=16?60*d:d,P=this;if(g)return P.$offset=_,P.$u=d===0,P;if(d!==0){var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(_+E,n)).$offset=_,P.$x.$localOffset=E}else P=this.utc();return P};var h=c.format;c.format=function(d){var g=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var y=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var m=c.diff;c.diff=function(d,g,w){if(d&&this.$u===d.$u)return m.call(this,d,g,w);var _=this.local(),P=l(d).local();return m.call(_,P,g,w)}}})}(ue)),ue.exports}var ui=ci();const di=rt(ui);var de={exports:{}},fi=de.exports,_r;function mi(){return _r||(_r=1,function(t,e){(function(n,o){t.exports=o()})(fi,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(h,y,m){m===void 0&&(m={});var d=new Date(h),g=function(w,_){_===void 0&&(_={});var P=_.timeZoneName||"short",E=w+"|"+P,N=o[E];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:w,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),o[E]=N),N}(y,m);return g.formatToParts(d)},u=function(h,y){for(var m=c(h,y),d=[],g=0;g<m.length;g+=1){var w=m[g],_=w.type,P=w.value,E=n[_];E>=0&&(d[E]=parseInt(P,10))}var N=d[3],v=N===24?0:N,L=d[0]+"-"+d[1]+"-"+d[2]+" "+v+":"+d[4]+":"+d[5]+":000",G=+h;return(i.utc(L).valueOf()-(G-=G%1e3))/6e4},f=s.prototype;f.tz=function(h,y){h===void 0&&(h=l);var m,d=this.utcOffset(),g=this.toDate(),w=g.toLocaleString("en-US",{timeZone:h}),_=Math.round((g-new Date(w))/1e3/60),P=15*-Math.round(g.getTimezoneOffset()/15)-_;if(!Number(P))m=this.utcOffset(0,y);else if(m=i(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(P,!0),y){var E=m.utcOffset();m=m.add(d-E,"minute")}return m.$x.$timezone=h,m},f.offsetName=function(h){var y=this.$x.$timezone||i.tz.guess(),m=c(this.valueOf(),y,{timeZoneName:h}).find(function(d){return d.type.toLowerCase()==="timezonename"});return m&&m.value};var p=f.startOf;f.startOf=function(h,y){if(!this.$x||!this.$x.$timezone)return p.call(this,h,y);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(m,h,y).tz(this.$x.$timezone,!0)},i.tz=function(h,y,m){var d=m&&y,g=m||y||l,w=u(+i(),g);if(typeof h!="string")return i(h).tz(g);var _=function(v,L,G){var Y=v-60*L*1e3,B=u(Y,G);if(L===B)return[Y,L];var D=u(Y-=60*(B-L)*1e3,G);return B===D?[Y,B]:[v-60*Math.min(B,D)*1e3,Math.max(B,D)]}(i.utc(h,d).valueOf(),w,g),P=_[0],E=_[1],N=i(P).utcOffset(E);return N.$x.$timezone=g,N},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(h){l=h}}})}(de)),de.exports}var pi=mi();const hi=rt(pi);var fe={exports:{}},gi=fe.exports,Pr;function yi(){return Pr||(Pr=1,function(t,e){(function(n,o){t.exports=o()})(gi,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),p==="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 p}});return s.bind(this)(f)}}})}(fe)),fe.exports}var bi=yi();const Ti=rt(bi);var me={exports:{}},wi=me.exports,xr;function Si(){return xr||(xr=1,function(t,e){(function(n,o){t.exports=o()})(wi,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})}(me)),me.exports}var Oi=Si();const Ai=rt(Oi);var pe={exports:{}},ki=pe.exports,Er;function _i(){return Er||(Er=1,function(t,e){(function(n,o){t.exports=o()})(ki,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),f=a(i),p=(c=c||"()")[0]==="(",h=c[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(f,l):!this.isBefore(f,l))}}})}(pe)),pe.exports}var Pi=_i();const xi=rt(Pi);var he={exports:{}},Ei=he.exports,Nr;function Ni(){return Nr||(Nr=1,function(t,e){(function(n,o){t.exports=o()})(Ei,function(){return function(n,o,a){o.prototype.isToday=function(){var s="YYYY-MM-DD",i=a();return this.format(s)===i.format(s)}}})}(he)),he.exports}var $i=Ni();const Mi=rt($i);var ge={exports:{}},Di=ge.exports,$r;function vi(){return $r||($r=1,function(t,e){(function(n,o){t.exports=o()})(Di,function(){return function(n,o){o.prototype.weekday=function(a){var s=this.$locale().weekStart||0,i=this.$W,l=(i<s?i+7:i)-s;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}})}(ge)),ge.exports}var Ci=vi();const Li=rt(Ci);var ye={exports:{}},Ii=ye.exports,Mr;function Bi(){return Mr||(Mr=1,function(t,e){(function(n,o){t.exports=o()})(Ii,function(){return function(n,o,a){var s=function(i,l){if(!l||!l.length||l.length===1&&!l[0]||l.length===1&&Array.isArray(l[0])&&!l[0].length)return null;var c;l.length===1&&l[0].length>0&&(l=l[0]),c=(l=l.filter(function(f){return f}))[0];for(var u=1;u<l.length;u+=1)l[u].isValid()&&!l[u][i](c)||(c=l[u]);return c};a.max=function(){var i=[].slice.call(arguments,0);return s("isAfter",i)},a.min=function(){var i=[].slice.call(arguments,0);return s("isBefore",i)}}})}(ye)),ye.exports}var Ri=Bi();const zi=rt(Ri);var be={exports:{}},Vi=be.exports,Dr;function Gi(){return Dr||(Dr=1,function(t,e){(function(n,o){t.exports=o()})(Vi,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,m,d){var g=d&&d.toUpperCase();return m||h[d]||n[d]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,_,P){return _||P.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,f)}}})}(be)),be.exports}var Fi=Gi();const ji=rt(Fi);var Te={exports:{}},Yi=Te.exports,vr;function Hi(){return vr||(vr=1,function(t,e){(function(n,o){t.exports=o()})(Yi,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,f,p,h){return s.fromToBase(u,f,p,h)}a.en.relativeTime=i,s.fromToBase=function(u,f,p,h,y){for(var m,d,g,w=p.$locale().relativeTime||i,_=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],P=_.length,E=0;E<P;E+=1){var N=_[E];N.d&&(m=h?a(u).diff(p,N.d,!0):p.diff(u,N.d,!0));var v=(n.rounding||Math.round)(Math.abs(m));if(g=m>0,v<=N.r||!N.r){v<=1&&E>0&&(N=_[E-1]);var L=w[N.l];y&&(v=y(""+v)),d=typeof L=="string"?L.replace("%d",v):L(v,f,N.l,g);break}}if(f)return d;var G=g?w.future:w.past;return typeof G=="function"?G(d):G.replace("%s",d)},s.to=function(u,f){return l(u,f,this,!0)},s.from=function(u,f){return l(u,f,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})}(Te)),Te.exports}var Ui=Hi();const Wi=rt(Ui);var we={exports:{}},qi=we.exports,Cr;function Ki(){return Cr||(Cr=1,function(t,e){(function(n,o){t.exports=o(Ar())})(qi,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})}(we)),we.exports}Ki(),C.extend(di),C.extend(hi),C.extend(Ti),C.extend(Wi),C.extend(ji),C.extend(Ai),C.extend(xi),C.extend(Mi),C.extend(Li),C.extend(zi);const Lr=()=>C.tz.guess(),Ot=(t="",e="",n="",o="hu")=>(n=n||C.tz.guess(),C(t).isValid()?C(t).tz(n).locale(o).format(e):""),Gt=(t="",e="",n="hu")=>{if(!C(t).isValid())return"";e=e||C.tz.guess();const a=new Intl.DateTimeFormat(Zi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Zi=t=>Jn.get(t),tn=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Ir=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Br=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},en=(t,e="day")=>C().isSameOrBefore(C(t),e),Rr=(t,e,n,o="[]")=>C(t).isBetween(e,C(n),"day",o),Xi=(t,e,n="month")=>C(t).isSame(e,n),Ji=(t,e="hu")=>C(t).locale(e).toNow(!0),Qi=(t,e,n="day")=>C(t).isBefore(e,n),tl=(t,e,n="day")=>C(t).isAfter(e,n),el=t=>C(t).isToday(),nl=t=>{const e=C().weekday(1),n=C().weekday(7);return Rr(t,e,n)},rl=t=>{const e=C(t).weekday(1),n=C(t).weekday(7);return{startDate:e,endDate:n}},ol=(t,e)=>C(t).subtract(e,"day"),al=(t,e)=>C(t).add(e,"day"),sl=t=>C(t).startOf("month"),il=t=>C(t).endOf("month"),ll=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.min(t)),cl=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.max(...t)),ul=["onClick"],dl={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,{t:a}=at(),s=ct("timezone-selector"),i=r.computed(()=>Gt(new Date,null,n.locale)),l=Lr(),c=r.computed(()=>Array.from(Qn.values()).map(f=>({...f,isActive:Gt(new Date,n.currentZone,n.locale)===Gt(new Date,f.timezone,n.locale),zoneOffsetName:Gt(new Date,f.timezone,n.locale)}))),u=f=>o("change",f);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref(Hn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(h=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,h=>(r.openBlock(),r.createElementBlock("a",{key:h.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":h.isActive}),onClick:r.withModifiers(y=>u(h.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${h.countryLabelKey}`))+" ("+r.toDisplayString(h.zoneOffsetName)+") ",11,ul))),128))],2))}},nn=(t,e="",n={})=>{const o=r.ref(""),{t:a}=at(),s=r.computed(()=>{if(r.unref(e))try{const c=zr(r.unref(t),r.unref(e));return Aa(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>ft(i,s.value)),error:o}},zr=(t,e="")=>{const n=ft(te,Pt(",",e)),o=gt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},Vr=async(t,e,n)=>{const o=`${Un}${r.unref(t)}${Bn(n)?"":`?${fl(n)}`}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ml(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},fl=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ml=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},pl=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>en(u,"day");return mn(n,()=>{if(!a)return;const u=ma(zn(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},hl=({options:t={},transform:e=a=>a,onError:n=Q,onSuccess:o=Q})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:f,isLoading:p,execute:h}=gn(()=>Vr(a,s,r.unref(i)).then(y=>e(y)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:f,isLoading:p,execute:h}};/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
11
11
|
|
|
12
12
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(T,o){"use strict";function Co(t){return o.getCu
|
|
|
19
19
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
20
20
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
21
21
|
PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
-
***************************************************************************** */function He(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var Eo;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Eo||(Eo={}));var Wi={type:"xstate.init"};function ue(t){return t===void 0?[]:[].concat(t)}function No(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Ue(t){return function(e){return t===e}}function qi(t){return typeof t=="string"?{type:t}:t}function xo(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Ue(t)}}function vo(t,e,n){var r=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},r);return typeof s.assignment=="function"?i=s.assignment(r,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](r,n):s.assignment[l]}),r=i,!1}return!0}),r,a]}function Ki(t,e){e===void 0&&(e={});var n=He(vo(ue(t.states[t.initial].entry).map(function(i){return No(i,e.actions)}),t.context,Wi),2),r=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:r,context:a,matches:Ue(t.initial)},transition:function(i,l){var c,u,f=typeof i=="string"?{value:i,context:t.context}:i,m=f.value,p=f.context,g=qi(l),d=t.states[m];if(d.on){var h=ue(d.on[g.type]);"*"in d.on&&h.push.apply(h,function(O,A,$){if(arguments.length===2)for(var v,B=0,F=A.length;B<F;B++)!v&&B in A||(v||(v=Array.prototype.slice.call(A,0,B)),v[B]=A[B]);return O.concat(v||Array.prototype.slice.call(A))}([],He(ue(d.on["*"])),!1));try{for(var y=function(O){var A=typeof Symbol=="function"&&Symbol.iterator,$=A&&O[A],v=0;if($)return $.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&v>=O.length&&(O=void 0),{value:O&&O[v++],done:!O}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),S=y.next();!S.done;S=y.next()){var k=S.value;if(k===void 0)return xo(m,p);var P=typeof k=="string"?{target:k}:k,N=P.target,x=P.actions,M=x===void 0?[]:x,z=P.cond,G=z===void 0?function(){return!0}:z,Y=N===void 0,I=N??m,D=t.states[I];if(G(p,g)){var H=He(vo((Y?ue(M):[].concat(d.exit,M,D.entry).filter(function(O){return O})).map(function(O){return No(O,s._options.actions)}),p,g),3),at=H[0],E=H[1],_=H[2],w=N??m;return{value:w,context:E,actions:at,changed:N!==m||at.length>0||_,matches:Ue(w)}}}}catch(O){c={error:O}}finally{try{S&&!S.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return xo(m,p)}};return s}const Zi=Ki({id:"sort",initial:dt,states:{[dt]:{on:{DIRECTION1:b,DIRECTION2:L}},[b]:{on:{DIRECTION1:L,DIRECTION2:dt}},[L]:{on:{DIRECTION1:dt,DIRECTION2:b}}}}),Xi=(t,e)=>{const n=e===L?"DIRECTION2":"DIRECTION1";return Zi.transition(t,n).value};function Ji(t={}){const{sortTarget:e=null,orders:n=[]}=t,r=o.reactive({sortTarget:e,orders:n});return{sort:r,change:({target:s,orders:i})=>{if(r.sortTarget!==s){r.sortTarget=s,r.orders=i;return}const l=i.map((c,u)=>({...c,direction:Xi(r.orders[u].direction,c.direction)}));r.sortTarget=s,r.orders=l}}}function Qi(t=!1,e=tt,n=tt){const r=er();o.watch(r,a=>{if(o.unref(t)){if(a==="visible")return e();n()}})}const tl=(t={})=>{const{items:e=[],element:n,offset:r=0,enabled:a=!0}=t,s=c=>Fe(c,"day"),i=()=>{var g;if(l(),!o.unref(a))return;const c=Kr(Pn(s,"gameDate"))(o.unref(e));if(!c)return;const u=_t(c.gameDate,"YYYY-MM-DD"),f=Et(n).querySelector(`div[data-gamedate="${u}"]`);if(!f)return;const m=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((g=f.getBoundingClientRect())==null?void 0:g.top)??0)-o.unref(r)-parseFloat(m);window.scrollTo(0,p)},{stop:l}=Ko(()=>({items:o.unref(e),element:o.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await o.nextTick(),i())})};function $o(t,e,n,r){const a=o.ref(""),s=o.ref(!1),i=l=>{const c=Oe(ut(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const m=c.map(p=>({team:p.team.longName,points:Math.abs(ut(e,p))})).map(p=>n(`additionalText.${e}.content`,p)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return Qe(t,i),o.watch(r,()=>i(o.unref(t))),{text:a,isVisible:s}}let el=0;function nl(){return++el}function ol(){return nl()}class We extends Error{constructor(e,n={}){const{key:r,cause:a}=n;super(e),this.name="WidgetError",this.key=r,this.cause=a}}const Yt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},rl={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},al={class:"is-portrait-image"},sl={class:"is-team-name-long"},il={key:0},ll=[o.createElementVNode("sup",null,"*",-1)],cl={class:"is-team-name-short"},ul={key:0},dl=[o.createElementVNode("sup",null,"*",-1)],fl={class:"is-team-name-long"},ml={class:"is-team-name-short"},pl={class:"is-team-name-long"},hl={class:"is-team-name-short"},gl=["href"],yl={class:"is-team-name-long"},bl={class:"is-team-name-short"},Tl=["href"],Sl={key:0,class:"is-text-dark"},wl=["href","target"],Ol={key:0,class:"label"},Al={key:1,class:"label"},_l={key:2,class:"label"},kl={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:r,hideColumns:a}=o.toRefs(n),s=e,{onError:i}=Re(),{t:l}=it(),{columns:c,error:u}=Ye(r,a,o.computed(()=>({offsetName:n.offsetName})));u.value&&i(new We(Yt.message,{...Yt.options,cause:{column:u.value}}));const f=m=>s("sort",m);return(m,p)=>(o.openBlock(),o.createBlock(Ge,null,{default:o.withCtx(({el:g})=>[o.createVNode(ze,{columns:o.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:f},o.createSlots({"cell-index":o.withCtx(({row:d})=>[o.createElementVNode("span",{class:o.normalizeClass(d.indexClass)},o.toDisplayString(d.index),3)]),"cell-playerPortrait":o.withCtx(({row:d})=>[o.createElementVNode("div",al,[(o.openBlock(),o.createBlock(At,{key:d.player.playerId,src:d.player.picture,"default-src":o.unref(Ln)},null,8,["src","default-src"]))])]),"cell-teamLogo":o.withCtx(({row:d})=>{var h,y;return[(o.openBlock(),o.createBlock(At,{class:"is-logo-image",key:((h=d.team)==null?void 0:h.id)??d.id,src:(y=d.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":o.withCtx(({row:d})=>{var h,y;return[(o.openBlock(),o.createBlock(At,{class:"is-logo-image is-right",key:(h=d.homeTeam)==null?void 0:h.id,src:(y=d.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":o.withCtx(({row:d})=>{var h,y;return[(o.openBlock(),o.createBlock(At,{class:"is-logo-image is-right",key:(h=d.awayTeam)==null?void 0:h.id,src:(y=d.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":o.withCtx(({row:d})=>{var h,y;return[o.createElementVNode("span",sl,[o.createTextVNode(o.toDisplayString((h=d.team)==null?void 0:h.longName)+" ",1),d.penaltyPoints?(o.openBlock(),o.createElementBlock("span",il,ll)):o.createCommentVNode("",!0)]),o.createElementVNode("span",cl,[o.createTextVNode(o.toDisplayString((y=d.team)==null?void 0:y.shortName)+" ",1),d.penaltyPoints?(o.openBlock(),o.createElementBlock("span",ul,dl)):o.createCommentVNode("",!0)])]}),"cell-homeTeamName":o.withCtx(({row:d})=>{var h,y;return[o.createElementVNode("span",fl,o.toDisplayString((h=d.homeTeam)==null?void 0:h.longName),1),o.createElementVNode("span",ml,o.toDisplayString((y=d.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":o.withCtx(({row:d})=>{var h,y;return[o.createElementVNode("span",pl,o.toDisplayString((h=d.awayTeam)==null?void 0:h.longName),1),o.createElementVNode("span",hl,o.toDisplayString((y=d.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":o.withCtx(({row:d})=>{var h;return[o.createTextVNode(o.toDisplayString(((h=d.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":o.withCtx(({row:d})=>[d.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Sl,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},o.toDisplayString(d.homeTeamScore)+":"+o.toDisplayString(d.awayTeamScore),11,wl))]),"cell-gameResultType":o.withCtx(({row:d})=>[d.isOvertime?(o.openBlock(),o.createElementBlock("span",Ol,o.toDisplayString(o.unref(l)("common.overtimeShort")),1)):o.createCommentVNode("",!0),d.isShootout?(o.openBlock(),o.createElementBlock("span",Al,o.toDisplayString(o.unref(l)("common.shootoutShort")),1)):o.createCommentVNode("",!0),d.seriesStandings?(o.openBlock(),o.createElementBlock("span",_l,o.toDisplayString(d.seriesStandings),1)):o.createCommentVNode("",!0)]),loading:o.withCtx(()=>[o.createVNode(Ve)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:o.withCtx(({row:d})=>{var h,y;return[o.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[o.createElementVNode("span",yl,o.toDisplayString((h=d.team)==null?void 0:h.longName),1),o.createElementVNode("span",bl,o.toDisplayString((y=d.team)==null?void 0:y.shortName),1)],8,gl)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:o.withCtx(({row:d})=>[o.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},o.toDisplayString(d.name),9,Tl)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Do={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Pl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:L}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:L}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:L}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:L},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},El={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:L}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:L}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Nl={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:L}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},xl={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:L}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},vl={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:L}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},toiMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"toi",direction:b}]},atoiMin:{label:"table.atoi.short",tooltip:"table.atoi.tooltip",sortOrders:[{target:"atoi",direction:b}]},shf:{label:"table.shf.short",tooltip:"table.shf.tooltip",sortOrders:[{target:"shf",direction:b}]},ashf:{label:"table.ashf.short",tooltip:"table.ashf.tooltip",sortOrders:[{target:"ashf",direction:b}]},eqToiMin:{label:"table.eqToi.short",tooltip:"table.eqToi.tooltip",sortOrders:[{target:"eqToi",direction:b}]},pp1ToiMin:{label:"table.pp1Toi.short",tooltip:"table.pp1Toi.tooltip",sortOrders:[{target:"pp1Toi",direction:b}]},pp2ToiMin:{label:"table.pp2Toi.short",tooltip:"table.pp2Toi.tooltip",sortOrders:[{target:"pp2Toi",direction:b}]},sh1ToiMin:{label:"table.sh1Toi.short",tooltip:"table.sh1Toi.tooltip",sortOrders:[{target:"sh1Toi",direction:b}]},sh2ToiMin:{label:"table.sh2Toi.short",tooltip:"table.sh2Toi.tooltip",sortOrders:[{target:"sh2Toi",direction:b}]},eqAToiMin:{label:"table.eqAToi.short",tooltip:"table.eqAToi.tooltip",sortOrders:[{target:"eqAToi",direction:b}]},pp1AToiMin:{label:"table.pp1AToi.short",tooltip:"table.pp1AToi.tooltip",sortOrders:[{target:"pp1AToi",direction:b}]},pp2AToiMin:{label:"table.pp2AToi.short",tooltip:"table.pp2AToi.tooltip",sortOrders:[{target:"pp2AToi",direction:b}]},sh1AToiMin:{label:"table.sh1AToi.short",tooltip:"table.sh1AToi.tooltip",sortOrders:[{target:"sh1AToi",direction:b}]},sh2AToiMin:{label:"table.sh2AToi.short",tooltip:"table.sh2AToi.tooltip",sortOrders:[{target:"sh2AToi",direction:b}]}},$l={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:L}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:L}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Dl={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assist:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assist",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]}},Ml={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Cl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ll={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},Il={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},Bl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:L}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:L}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:L}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:L}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:L}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},zl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],r=!1){if(e){const a=n.map(l=>r?ee(Pe(l),Zt(e)):ee(ut(l),Nn,ea(Nn(e)))),s=Nr(l=>l.name?ca(ra("name"),ua(",",""),l):l),i=Oe(ee(s,Er([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===dt)return this;const n=ta(Zt(L),Sn(_e),Sn(Yr));return this.result=En(e.orders.map(r=>On(n(r.direction),ut)(r.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,r,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===r[e];return r.index=i?s.index:a+1,r.indexClass=i?"is-duplicated":null,n.push(r),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const r=(e-1)*n,a=r+n;return this.result=this.result.slice(r,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(r=>({...r,gameResult:`${r.homeTeamScore}-${r.awayTeamScore}`,gameDateDate:_t(r.gameDate,"L dddd",e,n),gameDateTime:_t(r.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(r=>n[r]?n[`${r}Sec`]=je(n[r]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=Qr(e=>_t(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Rl=(t,...e)=>mt(On(...e))(t),Vl=t=>{var e,n,r,a;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.id)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((r=t.player)==null?void 0:r.nationality)&&{name:(a=t.player)!=null&&a.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}},Gl=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},jl=(t="",e="hu")=>n=>({...n,gameDateDate:_t(n.gameDate,"L dddd",t,e),gameDateTime:_t(n.gameDate,"HH:mm",t,e)}),Fl=t=>e=>({...e,gameResult:ec(e)}),Yl=t=>({...t,opponent:tc(t)}),Hl=t=>({...t,resultType:nc(t)}),Ul=t=>({...t,rowClasses:t.optional?"is-optional":""}),Wl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},ql=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=je(e[n]):e),e),Kl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=Ao(e[n]):e),e),Zl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=Oo(e[n])),e),Xl=t=>{var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}},Jl=En([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),_e(ut("id")),_e(ut("gameId"))]),Ql=da((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function tc(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function ec(t,e){let n=t==null?void 0:t.homeTeamScore,r=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,r=t==null?void 0:t.homeTeamScore),[n,r].join(":")}function nc(t){const e=t.gameResult.split(":"),n=e[0]>e[1],r=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":r&&t.isOvertime?"OTL":r&&t.isShootout?"SOL":r?"L":"D"}const oc=t=>t.map(e=>{var n,r;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((r=e.phaseSubType)==null?void 0:r.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),rc=(t,e={})=>{const n=qe("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(Ot(n||Cn,e))},ac=(t,e={})=>{const n=qe("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(Ot(n||Bn,e))},sc=(t,e={})=>{const n=qe("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(Ot(n||In,e))},ic=(t,e="1x1")=>`${zn}/flag:${t}-${e}.svg`,qe=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},lc=()=>{window.scrollTo(0,0)},cc={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"},uc=o.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),dc=o.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),fc=o.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),mc=[uc,dc,fc];function pc(t,e){return o.openBlock(),o.createElementBlock("svg",cc,[...mc])}const hc={render:pc},gc={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"},yc=o.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),bc=o.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),Tc=o.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),Sc=[yc,bc,Tc];function wc(t,e){return o.openBlock(),o.createElementBlock("svg",gc,[...Sc])}const Oc={render:wc},Ac={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"},_c=o.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),kc=o.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Pc=[_c,kc];function Ec(t,e){return o.openBlock(),o.createElementBlock("svg",Ac,[...Pc])}const Nc={render:Ec},xc={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"},vc=o.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),$c=o.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Dc=[vc,$c];function Mc(t,e){return o.openBlock(),o.createElementBlock("svg",xc,[...Dc])}const Cc={render:Mc},Lc={class:"is-team-name-long"},Ic={class:"is-team-name-short"},Bc={class:"is-team-name-long"},zc={class:"is-team-name-short"},Rc={key:0,class:"is-text-dark"},Vc=["href","target"],Gc={key:0,class:"label"},jc={key:1,class:"label"},Fc={key:2,class:"label"},Yc={key:1},Hc=["onClick","onFocus","onBlur"],Uc={class:"is-dropdown-menu"},Wc=["href","target"],qc={key:0},Kc=["href"],Zc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=o.ref(null),{onError:r}=Re(),{columns:a,error:s}=Ye(Do,o.computed(()=>e.hideColumns),o.computed(()=>({offsetName:e.offsetName})));Jo(s,()=>r(new We(Yt.message,{...Yt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=it();return(l,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(Ge,null,{default:o.withCtx(({el:u})=>[o.createVNode(ze,{columns:o.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":o.withCtx(({row:f})=>[o.createElementVNode("span",Lc,o.toDisplayString(f.homeTeam.longName),1),o.createElementVNode("span",Ic,o.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":o.withCtx(({row:f})=>[o.createElementVNode("span",Bc,o.toDisplayString(f.awayTeam.longName),1),o.createElementVNode("span",zc,o.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":o.withCtx(({row:f})=>[(o.openBlock(),o.createBlock(At,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":o.withCtx(({row:f})=>[(o.openBlock(),o.createBlock(At,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":o.withCtx(({row:f})=>[f.gameStatus===0?(o.openBlock(),o.createElementBlock("span",Rc,"-:-")):(o.openBlock(),o.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:o.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},o.toDisplayString(f.homeTeamScore)+":"+o.toDisplayString(f.awayTeamScore),11,Vc))]),"cell-gameResultType":o.withCtx(({row:f})=>[f.isOvertime?(o.openBlock(),o.createElementBlock("span",Gc,o.toDisplayString(o.unref(i)("common.overtimeShort")),1)):o.createCommentVNode("",!0),f.isShootout?(o.openBlock(),o.createElementBlock("span",jc,o.toDisplayString(o.unref(i)("common.shootoutShort")),1)):o.createCommentVNode("",!0),f.seriesStandings?(o.openBlock(),o.createElementBlock("span",Fc,o.toDisplayString(f.seriesStandings),1)):o.createCommentVNode("",!0)]),"cell-broadcast":o.withCtx(({row:f})=>[f.broadcast?(o.openBlock(),o.createBlock(o.unref(hc),{key:0})):(o.openBlock(),o.createElementBlock("span",Yc))]),"cell-location":o.withCtx(({row:f})=>{var m;return[o.createTextVNode(o.toDisplayString(((m=f.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":o.withCtx(({row:f})=>[o.createVNode(Be,{offset:2,placement:"left",theme:"content","append-to":u},{default:o.withCtx(({setRef:m,show:p,hide:g})=>[o.createElementVNode("button",{ref:m,onClick:o.withModifiers(p,["stop"]),onFocus:p,onBlur:g},[o.createVNode(o.unref(Oc))],40,Hc)]),content:o.withCtx(()=>[o.createElementVNode("ul",Uc,[o.createElementVNode("li",null,[o.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[o.createVNode(o.unref(Nc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(i)("common.report")),1)],8,Wc)]),f.video?(o.openBlock(),o.createElementBlock("li",qc,[o.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[o.createVNode(o.unref(Cc),{width:"14"}),o.createTextVNode(" "+o.toDisplayString(o.unref(i)("common.video")),1)],8,Kc)])):o.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:o.withCtx(()=>[o.createVNode(Ve)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),o.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Xc={class:"g-row g-gap-normal is-mb-5"},Jc=["value"],Qc={key:0},tu=["onClick"],eu={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,r=e,{t:a}=it(),s=o.computed({get(){return n.championshipId},set(l){r("onChangeSeason",l)}});function i(l){r("onChangeSection",l)}return(l,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",Xc,[o.createElementVNode("div",null,[o.createElementVNode("label",{for:"season",class:o.normalizeClass(o.unref(ct)("label"))},o.toDisplayString(o.unref(a)("selection.season")),3),o.createVNode(Ze,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.seasons,u=>(o.openBlock(),o.createElementBlock("option",{key:u.championshipId,value:u.championshipId},o.toDisplayString(u.seasonName),9,Jc))),128))]),_:1},8,["modelValue"])]),o.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Qc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.sections,u=>(o.openBlock(),o.createElementBlock("button",{key:u.phaseId,onClick:f=>i(u),class:o.normalizeClass([o.unref(ct)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},o.toDisplayString(u.sectionName),11,tu))),128))]))],64))}},nu=["textContent"],ou={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=o.toRef(e,"rows"),{t:r,locale:a}=it(),{isVisible:s,text:i}=$o(n,e.additionalKey,r,a);return(l,c)=>o.unref(s)?(o.openBlock(),o.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:o.toDisplayString(o.unref(i))},null,8,nu)):o.createCommentVNode("",!0)}},ru={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},au={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},su={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},iu={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Mo=({app:t=null,modules:e=[],apiKey:n,gameResolver:r,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:r,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},lu={install:(t,e={})=>Mo({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=Vn,T.AdditionalStandingsText=ou,T.BaseSelect=Ze,T.COLUMNS_FIELD_PLAYERS=Nl,T.COLUMNS_FIELD_PLAYERS_PENALTY=xl,T.COLUMNS_FIELD_PLAYERS_TOI=vl,T.COLUMNS_GOALIES=$l,T.COLUMNS_PLAYERS_NATIONAL=Dl,T.COLUMNS_SCHEDULE=Do,T.COLUMNS_SCORING_EFFICIENCY=Bl,T.COLUMNS_STANDINGS_P_2=El,T.COLUMNS_STANDINGS_P_3=Pl,T.COLUMNS_TEAMS_FAIRPLAY=Cl,T.COLUMNS_TEAMS_PENALTY_KILLING=Ll,T.COLUMNS_TEAMS_POWERPLAY=Il,T.COLUMNS_TEAM_ATTENDANCE=Ml,T.DEFAULT_EXTERNAL_GAME_URL=Cn,T.DEFAULT_EXTERNAL_PLAYER_URL=In,T.DEFAULT_EXTERNAL_TEAM_URL=Bn,T.DEFAULT_PORTRAIT_IMAGE_URL=Ln,T.DataTable=ze,T.ErrorNotice=Ns,T.ErrorProvider=vs,T.FLAG_BASE_URL=zn,T.FetchMoreObserver=Go,T.FloatingPanel=Be,T.I18NProvider=Is,T.Image=At,T.InvalidSeasonName=rl,T.LAZY_LOADING_STATE_DELAY=Gn,T.LOCALE_FOR_LANG=Rn,T.LoadingIndicator=Ve,T.Paginator=ai,T.REFRESH_DELAY=ga,T.ResponsiveTable=Ge,T.SORT_STATE_ASCEND=L,T.SORT_STATE_DESCEND=b,T.SORT_STATE_ORIGINAL=dt,T.ScheduleTable=Zc,T.SeasonSelector=eu,T.StatisticsTable=kl,T.TimezoneSelector=ji,T.UndefinedColumn=Yt,T.VBR_API_BASE_URL=Mn,T.WidgetError=We,T.addDays=Ii,T.appendTo=ro,T.baseProps=ru,T.convert=zl,T.convertGamePeriodResults=Xl,T.convertMinToMinSec=Ao,T.convertMinToSec=je,T.convertPhaseName=oc,T.convertSecToMin=Oo,T.convertTimes=ql,T.convertTimesMinToMinSec=Kl,T.convertTimesSecToMin=Zl,T.createConfig=Mo,T.createI18n=vn,T.currentWeek=Mi,T.currentWeekStartEnd=Ci,T.default=lu,T.endOfMonth=zi,T.externalGameLinkResolver=rc,T.externalPlayerLinkResolver=sc,T.externalTeamLinkResolver=ac,T.fetchVBRData=Po,T.flagResolver=ic,T.format=_t,T.gameDateTime=jl,T.gameProps=iu,T.gameResult=Fl,T.getLocalTimezone=wo,T.i18n=Dn,T.isAfter=$i,T.isBefore=vi,T.isBetween=_o,T.isSame=Ni,T.isSameOrBefore=Fe,T.isToday=Di,T.localeSort=Ql,T.max=Vi,T.min=Ri,T.offsetName=Ft,T.playerName=Vl,T.playerStatsProps=su,T.rawConvert=Rl,T.scheduleOptionalRowClass=Ul,T.scrollToTop=lc,T.sortByDomNode=fs,T.sortGames=Jl,T.startOfMonth=Bi,T.subtractDays=Li,T.teamName=Gl,T.teamOpponent=Yl,T.teamResultType=Hl,T.teamStatsProps=au,T.templateReplacer=Ot,T.toKebabCase=ao,T.upperCase=Wl,T.useAdditionalText=$o,T.useColumns=Ye,T.useError=Re,T.useErrorProvider=io,T.useI18n=it,T.useId=ol,T.useLazyLoadingState=on,T.useMainClass=ct,T.usePage=Hi,T.useScrollToGameDate=tl,T.useServices=Ui,T.useSort=Ji,T.useVisibilityChange=Qi,T.validateColumnsName=ko,T.yearToNow=xi,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
|
|
22
|
+
***************************************************************************** */function rn(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var Gr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Gr||(Gr={}));var gl={type:"xstate.init"};function Se(t){return t===void 0?[]:[].concat(t)}function Fr(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function on(t){return function(e){return t===e}}function yl(t){return typeof t=="string"?{type:t}:t}function jr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:on(t)}}function Yr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function bl(t,e){e===void 0&&(e={});var n=rn(Yr(Se(t.states[t.initial].entry).map(function(i){return Fr(i,e.actions)}),t.context,gl),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:on(t.initial)},transition:function(i,l){var c,u,f=typeof i=="string"?{value:i,context:t.context}:i,p=f.value,h=f.context,y=yl(l),m=t.states[p];if(m.on){var d=Se(m.on[y.type]);"*"in m.on&&d.push.apply(d,function(O,A,M){if(arguments.length===2)for(var $,R=0,j=A.length;R<j;R++)!$&&R in A||($||($=Array.prototype.slice.call(A,0,R)),$[R]=A[R]);return O.concat($||Array.prototype.slice.call(A))}([],rn(Se(m.on["*"])),!1));try{for(var g=function(O){var A=typeof Symbol=="function"&&Symbol.iterator,M=A&&O[A],$=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&$>=O.length&&(O=void 0),{value:O&&O[$++],done:!O}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),w=g.next();!w.done;w=g.next()){var _=w.value;if(_===void 0)return jr(p,h);var P=typeof _=="string"?{target:_}:_,E=P.target,N=P.actions,v=N===void 0?[]:N,L=P.cond,G=L===void 0?function(){return!0}:L,Y=E===void 0,B=E??p,D=t.states[B];if(G(h,y)){var H=rn(Yr((Y?Se(v):[].concat(m.exit,v,D.entry).filter(function(O){return O})).map(function(O){return Fr(O,s._options.actions)}),h,y),3),ot=H[0],x=H[1],k=H[2],S=E??p;return{value:S,context:x,actions:ot,changed:E!==p||ot.length>0||k,matches:on(S)}}}}catch(O){c={error:O}}finally{try{w&&!w.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}}return jr(p,h)}};return s}const Tl=bl({id:"sort",initial:dt,states:{[dt]:{on:{DIRECTION1:b,DIRECTION2:I}},[b]:{on:{DIRECTION1:I,DIRECTION2:dt}},[I]:{on:{DIRECTION1:dt,DIRECTION2:b}}}}),wl=(t,e)=>{const n=e===I?"DIRECTION2":"DIRECTION1";return Tl.transition(t,n).value};function Sl(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:wl(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ol(t=!1,e=Q,n=Q){const o=go();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Al=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>en(c,"day"),i=()=>{var y;if(l(),!r.unref(a))return;const c=ua(zn(s,"gameDate"))(r.unref(e));if(!c)return;const u=Ot(c.gameDate,"YYYY-MM-DD"),f=_t(n).querySelector(`div[data-gamedate="${u}"]`);if(!f)return;const p=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,h=(((y=f.getBoundingClientRect())==null?void 0:y.top)??0)-r.unref(o)-parseFloat(p);window.scrollTo(0,h)},{stop:l}=co(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function Hr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=ve(ut(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const p=c.map(h=>({team:h.team.longName,points:Math.abs(ut(e,h))})).map(h=>n(`additionalText.${e}.content`,h)).join(", ");a.value=[n(`additionalText.${e}.prependix`),p,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return mn(t,i),r.watch(()=>r.unref(o),()=>i(r.unref(t))),{text:a,isVisible:s}}class an extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ft={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},kl={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},_l={class:"is-portrait-image"},Pl={class:"is-team-name-long"},xl={key:0},El={class:"is-team-name-short"},Nl={key:0},$l={class:"is-team-name-long"},Ml={class:"is-team-name-short"},Dl={class:"is-team-name-long"},vl={class:"is-team-name-short"},Cl=["href"],Ll={class:"is-team-name-long"},Il={class:"is-team-name-short"},Bl=["href"],Rl={key:0,class:"is-text-dark"},zl=["href","target"],Vl={key:0,class:"label"},Gl={key:1,class:"label"},Fl={key:2,class:"label"},jl={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),s=e,{onError:i}=Xe(),{t:l}=at(),{columns:c,error:u}=nn(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new an(Ft.message,{...Ft.options,cause:{column:u.value}}));const f=p=>s("sort",p);return(p,h)=>(r.openBlock(),r.createBlock(Qe,null,{default:r.withCtx(({el:y})=>[r.createVNode(Ze,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||y,onSort:f},r.createSlots({"cell-index":r.withCtx(({row:m})=>[r.createElementVNode("span",{class:r.normalizeClass(m.indexClass)},r.toDisplayString(m.index),3)]),"cell-playerPortrait":r.withCtx(({row:m})=>[r.createElementVNode("div",_l,[(r.openBlock(),r.createBlock(St,{key:m.player.playerId,src:m.player.picture,"default-src":r.unref(qn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image",key:((d=m.team)==null?void 0:d.id)??m.id,src:(g=m.team)==null?void 0:g.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:(d=m.homeTeam)==null?void 0:d.id,src:(g=m.homeTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:(d=m.awayTeam)==null?void 0:d.id,src:(g=m.awayTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",Pl,[r.createTextVNode(r.toDisplayString((d=m.team)==null?void 0:d.longName)+" ",1),m.penaltyPoints?(r.openBlock(),r.createElementBlock("span",xl,h[0]||(h[0]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)]),r.createElementVNode("span",El,[r.createTextVNode(r.toDisplayString((g=m.team)==null?void 0:g.shortName)+" ",1),m.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Nl,h[1]||(h[1]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",$l,r.toDisplayString((d=m.homeTeam)==null?void 0:d.longName),1),r.createElementVNode("span",Ml,r.toDisplayString((g=m.homeTeam)==null?void 0:g.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",Dl,r.toDisplayString((d=m.awayTeam)==null?void 0:d.longName),1),r.createElementVNode("span",vl,r.toDisplayString((g=m.awayTeam)==null?void 0:g.shortName),1)]}),"cell-location":r.withCtx(({row:m})=>{var d;return[r.createTextVNode(r.toDisplayString(((d=m.location)==null?void 0:d.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:m})=>[m.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Rl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(m),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":m.gameStatus!==1,"is-text-accent":m.gameStatus===1})},r.toDisplayString(m.homeTeamScore)+":"+r.toDisplayString(m.awayTeamScore),11,zl))]),"cell-gameResultType":r.withCtx(({row:m})=>[m.isOvertime?(r.openBlock(),r.createElementBlock("span",Vl,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),m.isShootout?(r.openBlock(),r.createElementBlock("span",Gl,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),m.seriesStandings?(r.openBlock(),r.createElementBlock("span",Fl,r.toDisplayString(m.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Je)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("a",{href:t.externalTeamResolver(m),target:"_blank"},[r.createElementVNode("span",Ll,r.toDisplayString((d=m.team)==null?void 0:d.longName),1),r.createElementVNode("span",Il,r.toDisplayString((g=m.team)==null?void 0:g.shortName),1)],8,Cl)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:m})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(m),target:"_blank"},r.toDisplayString(m.name),9,Bl)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Ur={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Yl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:I}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:I},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Hl={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Ul={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Wl={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},ql={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},toiMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"toi",direction:b}]},atoiMin:{label:"table.atoi.short",tooltip:"table.atoi.tooltip",sortOrders:[{target:"atoi",direction:b}]},shf:{label:"table.shf.short",tooltip:"table.shf.tooltip",sortOrders:[{target:"shf",direction:b}]},ashf:{label:"table.ashf.short",tooltip:"table.ashf.tooltip",sortOrders:[{target:"ashf",direction:b}]},eqToiMin:{label:"table.eqToi.short",tooltip:"table.eqToi.tooltip",sortOrders:[{target:"eqToi",direction:b}]},pp1ToiMin:{label:"table.pp1Toi.short",tooltip:"table.pp1Toi.tooltip",sortOrders:[{target:"pp1Toi",direction:b}]},pp2ToiMin:{label:"table.pp2Toi.short",tooltip:"table.pp2Toi.tooltip",sortOrders:[{target:"pp2Toi",direction:b}]},sh1ToiMin:{label:"table.sh1Toi.short",tooltip:"table.sh1Toi.tooltip",sortOrders:[{target:"sh1Toi",direction:b}]},sh2ToiMin:{label:"table.sh2Toi.short",tooltip:"table.sh2Toi.tooltip",sortOrders:[{target:"sh2Toi",direction:b}]},eqAToiMin:{label:"table.eqAToi.short",tooltip:"table.eqAToi.tooltip",sortOrders:[{target:"eqAToi",direction:b}]},pp1AToiMin:{label:"table.pp1AToi.short",tooltip:"table.pp1AToi.tooltip",sortOrders:[{target:"pp1AToi",direction:b}]},pp2AToiMin:{label:"table.pp2AToi.short",tooltip:"table.pp2AToi.tooltip",sortOrders:[{target:"pp2AToi",direction:b}]},sh1AToiMin:{label:"table.sh1AToi.short",tooltip:"table.sh1AToi.tooltip",sortOrders:[{target:"sh1AToi",direction:b}]},sh2AToiMin:{label:"table.sh2AToi.short",tooltip:"table.sh2AToi.tooltip",sortOrders:[{target:"sh2AToi",direction:b}]}},Kl={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Zl={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assist:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assist",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]}},Xl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Jl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ql={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},tc={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},ec={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:I}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:b}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:I}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:b}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:I}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:b}]}},nc=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?Qt(Be(l),qt(e)):Qt(ut(l),Gn,ga(Gn(e)))),s=jo(l=>l.name?ka(Ta("name"),_a(",",""),l):l),i=ve(Qt(s,Fo([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===dt)return this;const n=ha(qt(I),vn(Le),vn(aa));return this.result=Vn(e.orders.map(o=>Ln(n(o.direction),ut)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:Ot(o.gameDate,"L dddd",e,n),gameDateTime:Ot(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=tn(n[o]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=pa(e=>Ot(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),rc=(t,...e)=>ft(Ln(...e))(t),oc=t=>{var e,n,o,a;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.id)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((o=t.player)==null?void 0:o.nationality)&&{name:(a=t.player)!=null&&a.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}},ac=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},sc=(t="",e="hu")=>n=>({...n,gameDateDate:Ot(n.gameDate,"L dddd",t,e),gameDateTime:Ot(n.gameDate,"HH:mm",t,e)}),ic=t=>e=>({...e,gameResult:Tc(e)}),lc=t=>({...t,opponent:bc(t)}),cc=t=>({...t,resultType:wc(t)}),uc=t=>({...t,rowClasses:t.optional?"is-optional":""}),dc=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},fc=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=tn(e[n]):e),e),mc=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=Br(e[n]):e),e),pc=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=Ir(e[n])),e),hc=t=>{var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}},gc=Vn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Le(ut("id")),Le(ut("gameId"))]),yc=Pa((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function bc(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function Tc(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function wc(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Sc=t=>t.map(e=>{var n,o;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((o=e.phaseSubType)==null?void 0:o.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),Oc=(t,e={})=>{const n=sn("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Wn,e))},Ac=(t,e={})=>{const n=sn("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Zn,e))},kc=(t,e={})=>{const n=sn("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Kn,e))},_c=(t,e="1x1")=>`${Xn}/flag:${t}-${e}.svg`,sn=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Pc=()=>{window.scrollTo(0,0)},xc={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"};function Ec(t,e){return r.openBlock(),r.createElementBlock("svg",xc,e[0]||(e[0]=[r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1)]))}const Nc={render:Ec},$c={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"};function Mc(t,e){return r.openBlock(),r.createElementBlock("svg",$c,e[0]||(e[0]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const Dc={render:Mc},vc={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"};function Cc(t,e){return r.openBlock(),r.createElementBlock("svg",vc,e[0]||(e[0]=[r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)]))}const Lc={render:Cc},Ic={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"};function Bc(t,e){return r.openBlock(),r.createElementBlock("svg",Ic,e[0]||(e[0]=[r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1)]))}const Rc={render:Bc},zc={class:"is-team-name-long"},Vc={class:"is-team-name-short"},Gc={class:"is-team-name-long"},Fc={class:"is-team-name-short"},jc={key:0,class:"is-text-dark"},Yc=["href","target"],Hc={key:0,class:"label"},Uc={key:1,class:"label"},Wc={key:2,class:"label"},qc={key:1},Kc=["onClick","onFocus","onBlur"],Zc={class:"is-dropdown-menu"},Xc=["href","target"],Jc={key:0},Qc=["href"],tu={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=Xe(),{columns:a,error:s}=nn(Ur,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));mo(s,()=>o(new an(Ft.message,{...Ft.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=at();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Qe,null,{default:r.withCtx(({el:u})=>[r.createVNode(Ze,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",zc,r.toDisplayString(f.homeTeam.longName),1),r.createElementVNode("span",Vc,r.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",Gc,r.toDisplayString(f.awayTeam.longName),1),r.createElementVNode("span",Fc,r.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",jc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},r.toDisplayString(f.homeTeamScore)+":"+r.toDisplayString(f.awayTeamScore),11,Yc))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Hc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Uc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Wc,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:f})=>[f.broadcast?(r.openBlock(),r.createBlock(r.unref(Nc),{key:0})):(r.openBlock(),r.createElementBlock("span",qc))]),"cell-location":r.withCtx(({row:f})=>{var p;return[r.createTextVNode(r.toDisplayString(((p=f.location)==null?void 0:p.locationName)??""),1)]}),"cell-more":r.withCtx(({row:f})=>[r.createVNode(Ke,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:p,show:h,hide:y})=>[r.createElementVNode("button",{ref:p,onClick:r.withModifiers(h,["stop"]),onFocus:h,onBlur:y},[r.createVNode(r.unref(Dc))],40,Kc)]),content:r.withCtx(()=>[r.createElementVNode("ul",Zc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Lc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,Xc)]),f.video?(r.openBlock(),r.createElementBlock("li",Jc,[r.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Rc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Qc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Je)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},eu={class:"g-row g-gap-normal is-mb-5"},nu=["value"],ru={key:0},ou=["onClick"],au={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,o=e,{t:a}=at(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",eu,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(ct)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(cn,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,u=>(r.openBlock(),r.createElementBlock("option",{key:u.championshipId,value:u.championshipId},r.toDisplayString(u.seasonName),9,nu))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ru,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,u=>(r.openBlock(),r.createElementBlock("button",{key:u.phaseId,onClick:f=>i(u),class:r.normalizeClass([r.unref(ct)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},r.toDisplayString(u.sectionName),11,ou))),128))]))],64))}},su=["textContent"],iu={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=r.toRef(e,"rows"),{t:o,locale:a}=at(),{isVisible:s,text:i}=Hr(n,e.additionalKey,o,a);return(l,c)=>r.unref(s)?(r.openBlock(),r.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:r.toDisplayString(r.unref(i))},null,8,su)):r.createCommentVNode("",!0)}},lu={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},cu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},uu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},du={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Wr=({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},fu={install:(t,e={})=>Wr({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=Qn,T.AdditionalStandingsText=iu,T.BaseSelect=cn,T.COLUMNS_FIELD_PLAYERS=Ul,T.COLUMNS_FIELD_PLAYERS_PENALTY=Wl,T.COLUMNS_FIELD_PLAYERS_TOI=ql,T.COLUMNS_GOALIES=Kl,T.COLUMNS_PLAYERS_NATIONAL=Zl,T.COLUMNS_SCHEDULE=Ur,T.COLUMNS_SCORING_EFFICIENCY=ec,T.COLUMNS_STANDINGS_P_2=Hl,T.COLUMNS_STANDINGS_P_3=Yl,T.COLUMNS_TEAMS_FAIRPLAY=Jl,T.COLUMNS_TEAMS_PENALTY_KILLING=Ql,T.COLUMNS_TEAMS_POWERPLAY=tc,T.COLUMNS_TEAM_ATTENDANCE=Xl,T.DEFAULT_EXTERNAL_GAME_URL=Wn,T.DEFAULT_EXTERNAL_PLAYER_URL=Kn,T.DEFAULT_EXTERNAL_TEAM_URL=Zn,T.DEFAULT_PORTRAIT_IMAGE_URL=qn,T.DataTable=Ze,T.ErrorNotice=vs,T.ErrorProvider=Ls,T.FLAG_BASE_URL=Xn,T.FetchMoreObserver=eo,T.FloatingPanel=Ke,T.I18NProvider=Gs,T.Image=St,T.InvalidSeasonName=kl,T.LAZY_LOADING_STATE_DELAY=tr,T.LOCALE_FOR_LANG=Jn,T.LoadingIndicator=Je,T.Paginator=ai,T.REFRESH_DELAY=Ma,T.ResponsiveTable=Qe,T.SORT_STATE_ASCEND=I,T.SORT_STATE_DESCEND=b,T.SORT_STATE_ORIGINAL=dt,T.ScheduleTable=tu,T.SeasonSelector=au,T.StatisticsTable=jl,T.TimezoneSelector=dl,T.UndefinedColumn=Ft,T.VBR_API_BASE_URL=Un,T.WidgetError=an,T.addDays=al,T.appendTo=br,T.baseProps=lu,T.convert=nc,T.convertGamePeriodResults=hc,T.convertMinToMinSec=Br,T.convertMinToSec=tn,T.convertPhaseName=Sc,T.convertSecToMin=Ir,T.convertTimes=fc,T.convertTimesMinToMinSec=mc,T.convertTimesSecToMin=pc,T.createConfig=Wr,T.createI18n=jn,T.currentWeek=nl,T.currentWeekStartEnd=rl,T.default=fu,T.endOfMonth=il,T.externalGameLinkResolver=Oc,T.externalPlayerLinkResolver=kc,T.externalTeamLinkResolver=Ac,T.fetchVBRData=Vr,T.flagResolver=_c,T.format=Ot,T.gameDateTime=sc,T.gameProps=du,T.gameResult=ic,T.getLocalTimezone=Lr,T.i18n=Hn,T.isAfter=tl,T.isBefore=Qi,T.isBetween=Rr,T.isSame=Xi,T.isSameOrBefore=en,T.isToday=el,T.localeSort=yc,T.max=cl,T.min=ll,T.offsetName=Gt,T.playerName=oc,T.playerStatsProps=uu,T.rawConvert=rc,T.scheduleOptionalRowClass=uc,T.scrollToTop=Pc,T.sortByDomNode=Ss,T.sortGames=gc,T.startOfMonth=sl,T.subtractDays=ol,T.teamName=ac,T.teamOpponent=lc,T.teamResultType=cc,T.teamStatsProps=cu,T.templateReplacer=wt,T.toKebabCase=Tr,T.upperCase=dc,T.useAdditionalText=Hr,T.useColumns=nn,T.useError=Xe,T.useErrorProvider=Sr,T.useI18n=at,T.useLazyLoadingState=yn,T.useMainClass=ct,T.usePage=pl,T.useScrollToGameDate=Al,T.useServices=hl,T.useSort=Sl,T.useVisibilityChange=Ol,T.validateColumnsName=zr,T.yearToNow=Ji,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
|