@golstats/gsc-game-data 1.0.191 → 1.0.193

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.
@@ -73,7 +73,7 @@
73
73
  * Vue 3 Carousel 0.3.1
74
74
  * (c) 2023
75
75
  * @license MIT
76
- */const Wc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},CF={itemsToShow:{default:Wc.itemsToShow,type:Number},itemsToScroll:{default:Wc.itemsToScroll,type:Number},wrapAround:{default:Wc.wrapAround,type:Boolean},throttle:{default:Wc.throttle,type:Number},snapAlign:{default:Wc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wc.transition,type:Number},breakpoints:{default:Wc.breakpoints,type:Object},autoplay:{default:Wc.autoplay,type:Number},pauseAutoplayOnHover:{default:Wc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wc.mouseDrag,type:Boolean},touchDrag:{default:Wc.touchDrag,type:Boolean},dir:{default:Wc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wc.i18n,type:Object},settings:{default(){return{}},type:Object}};function hFe({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function pFe({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function kk({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function fFe({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:kk({val:g,max:r-d,min:0})}function TF(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,...TF(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function Ck({val:e,max:a,min:r=0}){return e>a?Ck({val:e-(a+1),max:a,min:r}):e<r?Ck({val:e+(a+1),max:a,min:r}):e}function mFe(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function gFe(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function yFe(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var vFe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},yFe(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),_Fe=t.defineComponent({name:"Carousel",props:CF,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Wc));let i=Object.assign({},Wc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=gFe(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=hFe({config:m,slidesCount:_.value}),c.value=pFe({config:m,slidesCount:_.value}),m.wrapAround||(b.value=kk({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=mFe(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:kk({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=Ck({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>fFe({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(CF).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=TF(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(vFe)])}}}),SF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(SF||(SF={}));var bFe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Wc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const xFe=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},wFe=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),kFe={class:"gsc-carousel"},CFe={key:0},TFe=wFe(()=>t.createElementVNode("div",null,"no hay",-1)),SFe=[TFe],EFe={class:"gsc-carousel__2d__slides"},AFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MFe=["fill"],IFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PFe=["fill"],NFe={class:"gsc-carousel__2d__navigation"},BFe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OFe=["stroke"],zFe={key:1,class:"gsc-carousel__2d__navigation__pagination"},LFe=["onClick"],FFe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DFe=["stroke"],VFe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){if(o&&o.length&&L.value){if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",kFe,[I.is3d?(t.openBlock(),t.createElementBlock("div",CFe,SFe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",EFe,[t.createVNode(t.unref(_Fe),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(bFe),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",AFe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,MFe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",IFe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,PFe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",NFe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",BFe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,OFe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zFe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,LFe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",FFe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,DFe)]))])):t.createCommentVNode("",!0)])],2))]))}},RFe=xFe(VFe,[["__scopeId","data-v-cf3e4ab5"]]),Tk=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r};let EF=null;const Sk={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)EF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),EF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},AF=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},MF=Sk.setup;Sk.setup=MF?(e,a)=>(AF(),MF(e,a)):AF;const vx=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),$Fe=vx(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),jFe=[$Fe],UFe=vx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),HFe=["src"],GFe=vx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),WFe=vx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qFe=["src"],YFe=["src"],ZFe={class:"text-container"};function JFe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},jFe,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),UFe,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,HFe),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),GFe,WFe,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,qFe),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,YFe),t.createElementVNode("div",ZFe,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const XFe=Tk(Sk,[["render",JFe],["__scopeId","data-v-71797e9d"]]);let IF=null;const Ek={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)IF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),IF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},PF=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},NF=Ek.setup;Ek.setup=NF?(e,a)=>(PF(),NF(e,a)):PF;const _x=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),KFe=_x(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),QFe=_x(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),eDe=[QFe],tDe={class:"player-container"},nDe=["src"],aDe=["src"],rDe=["src"],iDe={class:"container-score"},oDe=["src"],sDe=["src"],lDe=["src"],cDe=_x(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),dDe=_x(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function uDe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[KFe,t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},eDe,2),t.createElementVNode("div",tDe,[t.createElementVNode("div",{class:t.normalizeClass(d.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(d.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(d.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(d.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(d.playerimage)},null,10,nDe)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,aDe)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,rDe)):t.createCommentVNode("",!0),t.createElementVNode("div",iDe,[t.createElementVNode("div",{class:t.normalizeClass(d.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,oDe),t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(d.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(d.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,sDe),t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,lDe),cDe,dDe],2)}const hDe=Tk(Ek,[["render",uDe],["__scopeId","data-v-83c7df16"]]),pDe={components:{GSCCarousel:RFe,GSCThumbnailHighlightGameHistoric:XFe,GSCThumbnailHighlightGamePlayer:hDe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],I=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${r} ${I} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const a=uFe.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let d=0;d<L.data.seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",player_name:L.data.seasons[e.season].games_played[d].home_team_acronym+" "+L.data.seasons[e.season].games_played[d].home_team_score+" : "+L.data.seasons[e.season].games_played[d].visiting_team_score+" "+L.data.seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.seasons[e.season].games_played[d].home_team,season_id:L.data.seasons[e.season].games_played[d].season_id,name:L.data.seasons[e.season].games_played[d].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[d].game_id,match:L.data.seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[d].date),scorehome:L.data.seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].visiting_team+".png",total:L.data.seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[d].home_team+"_"+L.data.seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I);else for(let d=0;d<L.data.national_seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[d].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[d].home_team_score+" : "+L.data.national_seasons[e.season].games_played[d].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[d].home_team,season_id:L.data.national_seasons[e.season].games_played[d].season_id,name:L.data.national_seasons[e.season].games_played[d].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[d].game_id,match:L.data.national_seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[d].date),scorehome:L.data.national_seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[d].home_team+"_"+L.data.national_seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)I={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?!r.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&r.push(I):r.push(I);const d=L.data.thumbnails;for(let g=0;g<r.length;g++){const n=Math.floor(Math.random()*d[r[g].game_id].info_thumbnails.images.background_default_games.length);r[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+d[r[g].game_id].info_thumbnails.images.background_default_games[n],r[g].backgroundhome=d[r[g].game_id].info_thumbnails.home_colors.background_color,r[g].backgroundaway=d[r[g].game_id].info_thumbnails.away_colors.background_color,r[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.away_colors.team_id+".png",r[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.home_colors.team_id+".png",r[g].match=d[r[g].game_id].matchday_name.replace("Matchday","Jor"),r[g].playingAs=d[r[g].game_id].info_thumbnails.home_colors.team_id===r[g].teamId?1:2,r[g].seasonname=d[r[g].game_id].season_name,r[g].score=d[r[g].game_id].score[0]+" - "+d[r[g].game_id].score[1],r[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let d=0;d<L.data.seasons[e.season].games.length;d++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[d],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[d].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",player_name:L.data.seasons[e.season].games[d].home_team_acronym+" "+L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score+" "+L.data.seasons[e.season].games[d].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[d].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[d].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[d].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",total:L.data.seasons[e.season].games[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[d].home_team+"_"+L.data.seasons[e.season].games[d].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},fDe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function mDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return d.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",fDe,[t.createVNode(_,t.mergeProps(d.carouselProps,{items:d.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const gDe=Tk(pDe,[["render",mDe]]);let BF=null;const yDe={components:{GSCHighlights:gDe,GSCPlayerTeamGame:ak,GSCCard:lk},props:{config:{type:Object,default:()=>{}},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},computed:{canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)BF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Tf.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),r=a.data.games.findIndex(g=>g.game_id===this.config.game);this.gameInfo=a.data.games[r];var I=[],L={},d=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let g=0;g<d.data.games[0].players.length;g++){const n=Math.floor(Math.random()*d.data.games[0].players[g].info_thumbnails.images.background_player_in_action.length),_=Math.floor(Math.random()*d.data.games[0].players[g].info_thumbnails.images.player_in_action.length);L={background_color_buttons:d.data.games[0].players[g].info_thumbnails.colors.background_color_buttons,background_color_cards:d.data.games[0].players[g].info_thumbnails.colors.background_color_cards,color_icon_play:d.data.games[0].players[g].info_thumbnails.colors.color_icon_play,color_next_back:d.data.games[0].players[g].info_thumbnails.colors.color_next_back,font_color:d.data.games[0].players[g].info_thumbnails.colors.font_color,font_color_card:d.data.games[0].players[g].info_thumbnails.colors.font_color_cards,colorbackgroundhome:d.data.games[0].players[g].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:d.data.games[0].players[g].player_name,background:d.data.games[0].players[g].info_thumbnails.images.background_player_in_action[n]?"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.background_player_in_action[n]:"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:d.data.games[0].players[g].team_logo,photoprofile:d.data.games[0].players[g].info_thumbnails.images.player_in_action[_]?"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.player_in_action[_]:`https://az755631.vo.msecnd.net/players-profile/${d.data.games[0].players[g].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:d.data.games[0].game_id,season_id:d.data.games[0].players[g].season_id,category:0,team_id:d.data.games[0].players[g].team_id},I.push(L)}this.printData=I}}},vDe=e=>(t.pushScopeId("data-v-0b7c7c48"),e=e(),t.popScopeId(),e),_De={ref:"gamesContainer",class:"container"},bDe={class:"video-partido-container"},xDe={class:"video-partido-higthlights"},wDe=vDe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),kDe={key:0,class:"video-partido-pltega-games"},CDe={key:1,class:"video-partido-pltega-games-team"};function TDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCHighlights"),n=t.resolveComponent("GSCPlayerTeamGame"),_=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",_De,[t.createElementVNode("div",bDe,[t.createElementVNode("div",xDe,[t.createVNode(g,{data:{game:r.config.game,season:r.config.season_id,type:"historic"},"can-play-videos":d.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"privileges-team-id":r.playVideosPrivileges?r.playVideosPrivileges.seasonAndPrivileges.teamId:0,onOpenmedia:d.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","privileges-team-id","onOpenmedia"])]),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:r.config.season_id,game:r.config.game,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegadatosClass)},[wDe,t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemunoClass)},[d.canPlayVideos.home&&L.printData[0]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[0].colorbackgroundhome,"background-img":L.printData[0].background,data:{team_name:L.gameInfo.home_team_name,player_photo:L.printData[0].photoprofile,team_id:L.gameInfo.home_team,background_color_buttons:L.printData[0].background_color_buttons,background_color_cards:L.printData[0].background_color_cards,color_icon_play:L.printData[0].color_icon_play,color_next_back:L.printData[0].color_next_back,font_color:L.printData[0].font_color,font_color_card:L.printData[0].font_color_card},"can-play-videos":d.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemdosClass)},[d.canPlayVideos.away&&L.printData[1]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[1].colorbackgroundhome,"background-img":L.printData[1].background,data:{team_name:L.gameInfo.visiting_team_name,player_photo:L.printData[1].photoprofile,team_id:L.gameInfo.visiting_team,background_color_buttons:L.printData[1].background_color_buttons,background_color_cards:L.printData[1].background_color_cards,color_icon_play:L.printData[1].color_icon_play,color_next_back:L.printData[1].color_next_back,font_color:L.printData[1].font_color,font_color_card:L.printData[1].font_color_card},"can-play-videos":d.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2)],2)],2),d.canPlayVideos.home?(t.openBlock(),t.createElementBlock("div",kDe,[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+L.gameInfo.home_team_name+":",data:{season:r.config.season_id,team:L.gameInfo.home_team,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),d.canPlayVideos.away?(t.openBlock(),t.createElementBlock("div",CDe,[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+L.gameInfo.visiting_team_name+":",data:{season:r.config.season_id,team:L.gameInfo.visiting_team,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const SDe=Lg(yDe,[["render",TDe],["__scopeId","data-v-0b7c7c48"]]);let OF=null;const EDe={components:{GSCCard:lk,GSCPlayerTeamGame:ak,GSCThumbnailHighlightGameHistoric:Pz},props:{config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{printData:[],gameInfo:{},informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,intervalId:null,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{pgtcontainercardClass(){return this.gamesContainerWidth<=350,"pgtcontainercard"},ptgtitleClass(){return this.gamesContainerWidth<=450?"ptgtitle450":"ptgtitle"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"}},watch:{config:{handler:function(){this.intervalId=setInterval(()=>{this.fetchLiveData()},3e3),this.$emit("intervalid",this.intervalId)},immediate:!0}},methods:{async fetchLiveData(){await this.getLiveHighlights(),await this.getLiveBestPlays(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()},async getLiveBestPlays(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a=[],r={},I=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let L=0;L<I.data.games[0].players.length;L++){const d=Math.floor(Math.random()*I.data.games[0].players[L].info_thumbnails.images.background_player_in_action.length),g=Math.floor(Math.random()*I.data.games[0].players[L].info_thumbnails.images.player_in_action.length);r={background_color_buttons:I.data.games[0].players[L].info_thumbnails.colors.background_color_buttons,background_color_cards:I.data.games[0].players[L].info_thumbnails.colors.background_color_cards,color_icon_play:I.data.games[0].players[L].info_thumbnails.colors.color_icon_play,color_next_back:I.data.games[0].players[L].info_thumbnails.colors.color_next_back,font_color:I.data.games[0].players[L].info_thumbnails.colors.font_color,font_color_card:I.data.games[0].players[L].info_thumbnails.colors.font_color_cards,colorbackgroundhome:I.data.games[0].players[L].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:I.data.games[0].players[L].player_name,background:I.data.games[0].players[L].info_thumbnails.images.background_player_in_action[d]?"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.background_player_in_action[d]:"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:I.data.games[0].players[L].team_logo,photoprofile:I.data.games[0].players[L].info_thumbnails.images.player_in_action[g]?"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.player_in_action[g]:`https://az755631.vo.msecnd.net/players-profile/${I.data.games[0].players[L].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:I.data.games[0].game_id,season_id:I.data.games[0].players[L].season_id,category:0,team_id:I.data.games[0].players[L].team_id},a.push(r)}this.printData=a},async getLiveHighlights(){const e=await Tf.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);e.data!=""&&(this.showHighlight=e.data==""?!1:e.data.plays.length>0,this.showHighlightGoals=e.data==""?!1:e.data.plays.filter(a=>a[0]===12).length>0,this.item.category=0,this.item.game_id=e.data.game_id,this.item.season_id=this.config.season_id,this.item.score=e.data.thumbnails[e.data.game_id].score[0]+" - "+e.data.thumbnails[e.data.game_id].score[1],this.item.backgroundhome=e.data.thumbnails[e.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=e.data.thumbnails[e.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+e.data.thumbnails[e.data.game_id].info_thumbnails.images.background_default_games[0])},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.type==4?a=[12,55,"35_r","54_r"]:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)OF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Tf.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),r=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),I=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);this.tournamentId=a.data.tournament_id,I.data!=""&&(this.showHighlight=I.data==""?!1:I.data.plays.length>0,this.showHighlightGoals=I.data==""?!1:I.data.plays.filter(_=>_[0]===12).length>0,this.item.category=0,this.item.game_id=I.data.game_id,this.item.season_id=this.config.season_id,this.item.score=I.data.thumbnails[I.data.game_id].score[0]+" - "+I.data.thumbnails[I.data.game_id].score[1],this.item.backgroundhome=I.data.thumbnails[I.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=I.data.thumbnails[I.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+I.data.thumbnails[I.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+I.data.thumbnails[I.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+I.data.thumbnails[I.data.game_id].info_thumbnails.images.background_default_games[0]);const L=r.data.games.findIndex(_=>_.game_id===this.config.game);this.gameInfo=r.data.games[L];var d=[],g={},n=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let _=0;_<n.data.games[0].players.length;_++){const m=Math.floor(Math.random()*n.data.games[0].players[_].info_thumbnails.images.background_player_in_action.length),i=Math.floor(Math.random()*n.data.games[0].players[_].info_thumbnails.images.player_in_action.length);g={background_color_buttons:n.data.games[0].players[_].info_thumbnails.colors.background_color_buttons,background_color_cards:n.data.games[0].players[_].info_thumbnails.colors.background_color_cards,color_icon_play:n.data.games[0].players[_].info_thumbnails.colors.color_icon_play,color_next_back:n.data.games[0].players[_].info_thumbnails.colors.color_next_back,font_color:n.data.games[0].players[_].info_thumbnails.colors.font_color,font_color_card:n.data.games[0].players[_].info_thumbnails.colors.font_color_cards,colorbackgroundhome:n.data.games[0].players[_].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:n.data.games[0].players[_].player_name,background:n.data.games[0].players[_].info_thumbnails.images.background_player_in_action[m]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.background_player_in_action[m]:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:n.data.games[0].players[_].team_logo,photoprofile:n.data.games[0].players[_].info_thumbnails.images.player_in_action[i]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.player_in_action[i]:`https://az755631.vo.msecnd.net/players-profile/${n.data.games[0].players[_].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:n.data.games[0].game_id,season_id:n.data.games[0].players[_].season_id,category:0,team_id:n.data.games[0].players[_].team_id},d.push(g)}this.printData=d},getBestPlaysUrl({season:e,player:a,team:r,game:I,category:L}){let d="https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/";return e&&(d+=`${e}`),a&&(d+=`/players/${a}`),r&&(d+=`/teams/${r}`),I&&(d+=`/games/${I}`),L&&(d+=`/categories/${L}`),this.videoPrivilegesPlayingAs.has(1)&&!this.videoPrivilegesPlayingAs.has(2)?d+="?isLocal=1":this.videoPrivilegesPlayingAs.has(2)&&!this.videoPrivilegesPlayingAs.has(1)&&(d+="?isVisitor=1"),d},async getStatsBestPlaysTeamHome(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysTeamHome=[],this.playerPhoto=!1,a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.home_team);for(let I=0;I<a.data.categories.length;I++){const L=Math.floor(Math.random()*a.data.categories[I].info_thumbnails.images.background_default_teams.length);r={game_id:a.data.game_id,has_mxm:a.data.has_mxm,season_id:a.data.season_id,team_id:a.data.team_id,category:a.data.categories[I].categories.concat(a.data.categories[I].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+a.data.team_id+".png",color:a.data.categories[I].info_thumbnails.colors.background_color,colorfont:a.data.categories[I].info_thumbnails.colors.font_color,player_name:a.data.categories[I].category_name,total:a.data.categories[I].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+a.data.team_id+"_"+a.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamHome.push(r)}},async getStatsBestPlaysTeamAway(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysTeamAway=[],this.playerPhoto=!1,a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.visiting_team);for(let I=0;I<a.data.categories.length;I++){const L=Math.floor(Math.random()*a.data.categories[I].info_thumbnails.images.background_default_teams.length);r={game_id:a.data.game_id,has_mxm:a.data.has_mxm,season_id:a.data.season_id,team_id:a.data.team_id,category:a.data.categories[I].categories.concat(a.data.categories[I].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+a.data.team_id+".png",color:a.data.categories[I].info_thumbnails.colors.background_color,colorfont:a.data.categories[I].info_thumbnails.colors.font_color,player_name:a.data.categories[I].category_name,total:a.data.categories[I].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+a.data.team_id+"_"+a.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamAway.push(r)}},async getStatsBestPlaysPlayers(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysPlayers=[],this.playerPhoto=!1,a=await e.get(this.getBestPlaysUrl({season:this.config.season_id,game:this.config.game})),this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?a.data.games[0].game_status!==1&&(a.data.games[0].players=a.data.games[0].players.filter(I=>I.team_id==this.playVideosPrivileges.seasonAndPrivileges.teamId)):a.data.games[0].players=[]);for(let I=0;I<a.data.games[0].players.length;I++){const L=Math.floor(Math.random()*a.data.games[0].players[I].info_thumbnails.images.background_player_in_action.length),d=Math.floor(Math.random()*a.data.games[0].players[I].info_thumbnails.images.player_in_action.length);r={colorbackgroundhome:a.data.games[0].players[I].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:a.data.games[0].players[I].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[I].info_thumbnails.images.background_player_in_action[L],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:a.data.games[0].players[I].info_thumbnails.colors.font_color,team_id:a.data.games[0].players[I].team_id,player_id:a.data.games[0].players[I].player_id,game_id:a.data.games[0].game_id,has_mxm:a.data.games[0].has_mxm,season_id:a.data.season_id,logohome:a.data.games[0].players[I].team_logo,photoprofile:a.data.games[0].players[I].info_thumbnails.images.player_in_action[d]?"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[I].info_thumbnails.images.player_in_action[d]:"https://az755631.vo.msecnd.net/players-profile/"+a.data.games[0].players[I].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},this.informationBestPlaysPlayers.push(r)}}},beforeDestroy(){clearInterval(this.intervalId)},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()}},X0=e=>(t.pushScopeId("data-v-8b8f2695"),e=e(),t.popScopeId(),e),ADe={ref:"gamesContainer",class:"container",style:{}},MDe={class:"video-partido-container"},IDe={class:"video-partido-container__highlight"},PDe={class:"video-partido-container__content"},NDe=X0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"}," • LIVE ",-1)),BDe=X0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),ODe=X0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),zDe=X0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),LDe=X0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),FDe={class:"video-partido-container__image"},DDe={class:"ptg",ref:"ptgDiv"},VDe=X0(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este partido:",-1)),RDe={class:"video-partido-pltega-games"},$De={class:"video-partido-pltega-games-team"};function jDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCPlayerTeamGame"),_=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",ADe,[t.createElementVNode("div",MDe,[t.withDirectives(t.createElementVNode("div",IDe,[t.createElementVNode("div",PDe,[NDe,BDe,ODe,zDe,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[0]||(a[0]=m=>d.onclickPlayVideos({data:L.item,type:1}))},[LDe,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",FDe,[t.createVNode(g,{"is-live":!0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,background:L.item.background,onOnclickPlayVideos:a[1]||(a[1]=m=>d.onclickPlayVideos({data:L.item,type:1})),matchday:L.item.match,"season-name":L.item.seasonname,score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,r.canPlayVideos&&L.showHighlight]]),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createElementVNode("div",DDe,[t.createElementVNode("div",{class:t.normalizeClass(d.ptgtitleClass)},"Goles del partido",2),L.showHighlightGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.pgtcontainercardClass),style:{"margin-left":"0px !important",color:"white"}},[t.createVNode(g,{"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,background:L.item.background,onOnclickPlayVideos:a[2]||(a[2]=m=>d.onclickPlayVideos({data:L.item,type:4})),matchday:L.item.match,"season-name":L.item.seasonname,score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])],2)):t.createCommentVNode("",!0)],512)],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,"receive-data":!0,information:L.informationBestPlaysPlayers,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:3e3,title:"Jugadores (sus mejores jugadas):","video-privileges-playing-as":r.videoPrivilegesPlayingAs,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","video-privileges-playing-as","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegadatosClass)},[VDe,t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemunoClass)},[L.printData[0]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[3]||(a[3]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),onOnClickCard:a[4]||(a[4]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[0].colorbackgroundhome,"background-img":L.printData[0].background,data:{team_name:L.gameInfo.home_team_name,player_photo:L.printData[0].photoprofile,team_id:L.gameInfo.home_team,background_color_buttons:L.printData[0].background_color_buttons,background_color_cards:L.printData[0].background_color_cards,color_icon_play:L.printData[0].color_icon_play,color_next_back:L.printData[0].color_next_back,font_color:L.printData[0].font_color,font_color_card:L.printData[0].font_color_card},"can-play-videos":r.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemdosClass)},[L.printData[1]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[5]||(a[5]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),onOnClickCard:a[6]||(a[6]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[1].colorbackgroundhome,"background-img":L.printData[1].background,data:{team_name:L.gameInfo.visiting_team_name,player_photo:L.printData[1].photoprofile,team_id:L.gameInfo.visiting_team,background_color_buttons:L.printData[1].background_color_buttons,background_color_cards:L.printData[1].background_color_cards,color_icon_play:L.printData[1].color_icon_play,color_next_back:L.printData[1].color_next_back,font_color:L.printData[1].font_color,font_color_card:L.printData[1].font_color_card},"can-play-videos":r.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",RDe,[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,information:L.informationBestPlaysTeamHome,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},"receive-data":!0,type:4e3,title:"Jugadas específicas "+L.gameInfo.home_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",$De,[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:5e3,"receive-data":!0,information:L.informationBestPlaysTeamAway,title:"Jugadas específicas "+L.gameInfo.visiting_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])])],512)}const UDe={components:{GSCVideoGamePreMatch:SDe,GSCVideoGamePostMatch:Yze,GSCVideoGameLive:Lg(EDe,[["render",jDe],["__scopeId","data-v-8b8f2695"]])},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{}},computed:{},methods:{intervalid(e){this.$emit("intervalid",e)},openmedia(e){this.$emit("openmedia",e)}}},HDe={style:{margin:"0 auto"}};function GDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCVideoGamePreMatch"),n=t.resolveComponent("GSCVideoGamePostMatch"),_=t.resolveComponent("GSCVideoGameLive");return t.openBlock(),t.createElementBlock("div",HDe,[r.type==="Prematch"?(t.openBlock(),t.createBlock(g,{key:0,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onOpenmedia"])):t.createCommentVNode("",!0),r.type==="Postmatch"?(t.openBlock(),t.createBlock(n,{key:1,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onOpenmedia"])):t.createCommentVNode("",!0),r.type==="Live"?(t.openBlock(),t.createBlock(_,{key:2,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onIntervalid:d.intervalid,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onIntervalid","onOpenmedia"])):t.createCommentVNode("",!0)])}const Ak=Lg(UDe,[["render",GDe],["__scopeId","data-v-b79f7745"]]),$un="",jun="",WDe={class:"datagame-container"},qDe=Jr({__name:"GSCVideoGame",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","intervalid"],setup(e,{emit:a}){const r=e,I=t.ref(0);t.watch(()=>r.game,g=>{I.value=g.gameId},{deep:!0,immediate:!0});function L(g){a("openmedia",g)}function d(g){a("intervalid",g)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",WDe,[e.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,onIntervalid:d,type:"Live",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-870dad78"]]),Hun="",YDe={components:{},props:{width:{type:Number,default:0},type:{type:Number,default:0},plays:{type:Object,default:()=>{}},game:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{handleOutsideClick(){this.$emit("close-modal-events-live"),document.body.classList.remove("no-scroll")}},created(){document.body.classList.add("no-scroll")}},xu=e=>(t.pushScopeId("data-v-dc3632e6"),e=e(),t.popScopeId(),e),ZDe={class:"home_team-events"},JDe={class:"home_team-events__title"},XDe=["src"],KDe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),QDe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),eVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),tVe={class:"away_team-events"},nVe={class:"away_team-events__title"},aVe=["src"],rVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),iVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),oVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),sVe={class:"home_team-events"},lVe={class:"home_team-events__title"},cVe=["src"],dVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),uVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),hVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),pVe={class:"away_team-events"},fVe={class:"away_team-events__title"},mVe=["src"],gVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),yVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),vVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1));function _Ve(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:a[1]||(a[1]=(...g)=>d.handleOutsideClick&&d.handleOutsideClick(...g))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:a[0]||(a[0]=t.withModifiers(()=>{},["stop"]))},[Object.keys(r.plays).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.width>540?"container-events":r.width>420?"container-events-movil":r.width>350?"container-events-movilxl":"container-events-movilsm")},[r.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",ZDe,[t.createElementVNode("div",JDe,[t.createElementVNode("img",{width:"24",height:"24",src:r.plays[r.game.home_team.team_id].team.logo},null,8,XDe),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].team.name),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].goals),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[KDe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].goals[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].goals[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].red),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[QDe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].red[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].red[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].yellow),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[eVe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].yellow[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].yellow[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128))]),t.createElementVNode("div",tVe,[t.createElementVNode("div",nVe,[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].team.name),1),t.createElementVNode("img",{width:"24",height:"24",src:r.plays[r.game.visiting_team.team_id].team.logo},null,8,aVe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].goals),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].goals[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].goals[g].name),1),rVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].red),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].red[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].red[g].name),1),iVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].yellow),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].yellow[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].yellow[g].name),1),oVe],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",sVe,[t.createElementVNode("div",lVe,[t.createElementVNode("img",{width:"24",height:"24",src:r.plays.home_team.logo},null,8,cVe),t.createElementVNode("div",null,t.toDisplayString(r.plays.home_team.acronym),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_goals_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[dVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_red_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[uVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_yellow_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[hVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128))]),t.createElementVNode("div",pVe,[t.createElementVNode("div",fVe,[t.createElementVNode("div",null,t.toDisplayString(r.plays.visiting_team.acronym),1),t.createElementVNode("img",{width:"24",height:"24",src:r.plays.visiting_team.logo},null,8,mVe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.visiting_goals_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),gVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.away_red_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),yVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.away_yellow_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),vVe],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])])}const zF=Jr(YDe,[["render",_Ve],["__scopeId","data-v-dc3632e6"]]),bVe=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},Mk={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},LF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},FF=Mk.setup;Mk.setup=FF?(e,a)=>(LF(),FF(e,a)):LF;const xVe={ref:"gscScrollableContainer",class:"scrollable-container"},wVe={class:"scrollable-arrows"},kVe=["width","height","viewBox"],CVe=["stroke"],TVe={class:"scrollable-wrapper"},SVe={class:"scrollable-arrows"},EVe=["width","height","viewBox"],AVe=["stroke"];function MVe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",xVe,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",wVe,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,CVe)],8,kVe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",TVe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:a[2]||(a[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",SVe,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,AVe)],8,EVe))])],2)):t.createCommentVNode("",!0)],512)}const IVe=bVe(Mk,[["render",MVe],["__scopeId","data-v-b548a08d"]]);function DF(e,a){return function(){return e.apply(a,arguments)}}const{toString:PVe}=Object.prototype,{getPrototypeOf:Ik}=Object,bx=(e=>a=>{const r=PVe.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qh=e=>(e=e.toLowerCase(),a=>bx(a)===e),xx=e=>a=>typeof a===e,{isArray:K0}=Array,Yg=xx("undefined");function NVe(e){return e!==null&&!Yg(e)&&e.constructor!==null&&!Yg(e.constructor)&&wu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const VF=Qh("ArrayBuffer");function BVe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&VF(e.buffer),a}const OVe=xx("string"),wu=xx("function"),RF=xx("number"),wx=e=>e!==null&&typeof e=="object",zVe=e=>e===!0||e===!1,kx=e=>{if(bx(e)!=="object")return!1;const a=Ik(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},LVe=Qh("Date"),FVe=Qh("File"),DVe=Qh("Blob"),VVe=Qh("FileList"),RVe=e=>wx(e)&&wu(e.pipe),$Ve=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||wu(e.append)&&((a=bx(e))==="formdata"||a==="object"&&wu(e.toString)&&e.toString()==="[object FormData]"))},jVe=Qh("URLSearchParams"),UVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zg(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),K0(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function $F(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const jF=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),UF=e=>!Yg(e)&&e!==jF;function Pk(){const{caseless:e}=UF(this)&&this||{},a={},r=(I,L)=>{const d=e&&$F(a,L)||L;kx(a[d])&&kx(I)?a[d]=Pk(a[d],I):kx(I)?a[d]=Pk({},I):K0(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Zg(arguments[I],r);return a}const HVe=(e,a,r,{allOwnKeys:I}={})=>(Zg(a,(L,d)=>{r&&wu(L)?e[d]=DF(L,r):e[d]=L},{allOwnKeys:I}),e),GVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WVe=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},qVe=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&Ik(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},YVe=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},ZVe=e=>{if(!e)return null;if(K0(e))return e;let a=e.length;if(!RF(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},JVe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ik(Uint8Array)),XVe=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},KVe=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},QVe=Qh("HTMLFormElement"),eRe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),HF=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),tRe=Qh("RegExp"),GF=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Zg(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},nRe=e=>{GF(e,(a,r)=>{if(wu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(wu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},aRe=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return K0(e)?I(e):I(String(e).split(a)),r},rRe=()=>{},iRe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Nk="abcdefghijklmnopqrstuvwxyz",WF="0123456789",qF={DIGIT:WF,ALPHA:Nk,ALPHA_DIGIT:Nk+Nk.toUpperCase()+WF},oRe=(e=16,a=qF.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function sRe(e){return!!(e&&wu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lRe=e=>{const a=new Array(10),r=(I,L)=>{if(wx(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=K0(I)?[]:{};return Zg(I,(g,n)=>{const _=r(g,L+1);!Yg(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},cRe=Qh("AsyncFunction"),dRe=e=>e&&(wx(e)||wu(e))&&wu(e.then)&&wu(e.catch),er={isArray:K0,isArrayBuffer:VF,isBuffer:NVe,isFormData:$Ve,isArrayBufferView:BVe,isString:OVe,isNumber:RF,isBoolean:zVe,isObject:wx,isPlainObject:kx,isUndefined:Yg,isDate:LVe,isFile:FVe,isBlob:DVe,isRegExp:tRe,isFunction:wu,isStream:RVe,isURLSearchParams:jVe,isTypedArray:JVe,isFileList:VVe,forEach:Zg,merge:Pk,extend:HVe,trim:UVe,stripBOM:GVe,inherits:WVe,toFlatObject:qVe,kindOf:bx,kindOfTest:Qh,endsWith:YVe,toArray:ZVe,forEachEntry:XVe,matchAll:KVe,isHTMLForm:QVe,hasOwnProperty:HF,hasOwnProp:HF,reduceDescriptors:GF,freezeMethods:nRe,toObjectSet:aRe,toCamelCase:eRe,noop:rRe,toFiniteNumber:iRe,findKey:$F,global:jF,isContextDefined:UF,ALPHABET:qF,generateString:oRe,isSpecCompliantForm:sRe,toJSONObject:lRe,isAsyncFn:cRe,isThenable:dRe};function Ho(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}er.inherits(Ho,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const YF=Ho.prototype,ZF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ZF[e]={value:e}}),Object.defineProperties(Ho,ZF),Object.defineProperty(YF,"isAxiosError",{value:!0}),Ho.from=(e,a,r,I,L,d)=>{const g=Object.create(YF);return er.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Ho.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const uRe=null;function Bk(e){return er.isPlainObject(e)||er.isArray(e)}function JF(e){return er.endsWith(e,"[]")?e.slice(0,-2):e}function XF(e,a,r){return e?e.concat(a).map(function(I,L){return I=JF(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function hRe(e){return er.isArray(e)&&!e.some(Bk)}const pRe=er.toFlatObject(er,{},null,function(e){return/^is[A-Z]/.test(e)});function Cx(e,a,r){if(!er.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=er.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!er.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&er.isSpecCompliantForm(a);if(!er.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(er.isDate(l))return l.toISOString();if(!n&&er.isBlob(l))throw new Ho("Blob is not supported. Use a Buffer instead.");return er.isArrayBuffer(l)||er.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(er.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(er.isArray(l)&&hRe(l)||(er.isFileList(l)||er.endsWith(s,"[]"))&&(c=er.toArray(l)))return s=JF(s),c.forEach(function(u,h){!(er.isUndefined(u)||u===null)&&a.append(g===!0?XF([s],h,d):g===null?s:s+"[]",_(u))}),!1}return Bk(l)?!0:(a.append(XF(o,s,d),_(l)),!1)}const i=[],v=Object.assign(pRe,{defaultVisitor:m,convertValue:_,isVisitable:Bk});function b(l,s){if(!er.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),er.forEach(l,function(o,c){(!(er.isUndefined(o)||o===null)&&L.call(a,o,er.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!er.isObject(e))throw new TypeError("data must be an object");return b(e),a}function KF(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Ok(e,a){this._pairs=[],e&&Cx(e,this,a)}const QF=Ok.prototype;QF.append=function(e,a){this._pairs.push([e,a])},QF.toString=function(e){const a=e?function(r){return e.call(this,r,KF)}:KF;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function fRe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eD(e,a,r){if(!a)return e;const I=r&&r.encode||fRe,L=r&&r.serialize;let d;if(L?d=L(a,r):d=er.isURLSearchParams(a)?a.toString():new Ok(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const tD=class{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){er.forEach(this.handlers,function(r){r!==null&&a(r)})}},nD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mRe=typeof URLSearchParams<"u"?URLSearchParams:Ok,gRe=typeof FormData<"u"?FormData:null,yRe=typeof Blob<"u"?Blob:null,vRe={isBrowser:!0,classes:{URLSearchParams:mRe,FormData:gRe,Blob:yRe},protocols:["http","https","file","blob","url","data"]},aD=typeof window<"u"&&typeof document<"u",_Re=(e=>aD&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bRe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),xRe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aD,hasStandardBrowserEnv:_Re,hasStandardBrowserWebWorkerEnv:bRe},Symbol.toStringTag,{value:"Module"})),ep={...xRe,...vRe};function wRe(e,a){return Cx(e,new ep.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return ep.isNode&&er.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function kRe(e){return er.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function CRe(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function rD(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&er.isArray(L)?L.length:g,_?(er.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!er.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&er.isArray(L[g])&&(L[g]=CRe(L[g])),!n)}if(er.isFormData(e)&&er.isFunction(e.entries)){const r={};return er.forEachEntry(e,(I,L)=>{a(kRe(I),L,r,0)}),r}return null}function TRe(e,a,r){if(er.isString(e))try{return(a||JSON.parse)(e),er.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const zk={transitional:nD,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=er.isObject(e);if(L&&er.isHTMLForm(e)&&(e=new FormData(e)),er.isFormData(e))return I?JSON.stringify(rD(e)):e;if(er.isArrayBuffer(e)||er.isBuffer(e)||er.isStream(e)||er.isFile(e)||er.isBlob(e))return e;if(er.isArrayBufferView(e))return e.buffer;if(er.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wRe(e,this.formSerializer).toString();if((d=er.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Cx(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),TRe(e)):e}],transformResponse:[function(e){const a=this.transitional||zk.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(e&&er.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Ho.from(d,Ho.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ep.classes.FormData,Blob:ep.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};er.forEach(["delete","get","head","post","put","patch"],e=>{zk.headers[e]={}});const Lk=zk,SRe=er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ERe=e=>{const a={};let r,I,L;return e&&e.split(`
76
+ */const Wc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},CF={itemsToShow:{default:Wc.itemsToShow,type:Number},itemsToScroll:{default:Wc.itemsToScroll,type:Number},wrapAround:{default:Wc.wrapAround,type:Boolean},throttle:{default:Wc.throttle,type:Number},snapAlign:{default:Wc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wc.transition,type:Number},breakpoints:{default:Wc.breakpoints,type:Object},autoplay:{default:Wc.autoplay,type:Number},pauseAutoplayOnHover:{default:Wc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wc.mouseDrag,type:Boolean},touchDrag:{default:Wc.touchDrag,type:Boolean},dir:{default:Wc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wc.i18n,type:Object},settings:{default(){return{}},type:Object}};function hFe({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function pFe({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function kk({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function fFe({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:kk({val:g,max:r-d,min:0})}function TF(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,...TF(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function Ck({val:e,max:a,min:r=0}){return e>a?Ck({val:e-(a+1),max:a,min:r}):e<r?Ck({val:e+(a+1),max:a,min:r}):e}function mFe(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function gFe(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function yFe(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var vFe=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},yFe(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),_Fe=t.defineComponent({name:"Carousel",props:CF,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Wc));let i=Object.assign({},Wc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=gFe(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=hFe({config:m,slidesCount:_.value}),c.value=pFe({config:m,slidesCount:_.value}),m.wrapAround||(b.value=kk({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=mFe(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:kk({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=Ck({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>fFe({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(CF).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=TF(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(vFe)])}}}),SF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(SF||(SF={}));var bFe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Wc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const xFe=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},wFe=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),kFe={class:"gsc-carousel"},CFe={key:0},TFe=wFe(()=>t.createElementVNode("div",null,"no hay",-1)),SFe=[TFe],EFe={class:"gsc-carousel__2d__slides"},AFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MFe=["fill"],IFe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PFe=["fill"],NFe={class:"gsc-carousel__2d__navigation"},BFe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OFe=["stroke"],zFe={key:1,class:"gsc-carousel__2d__navigation__pagination"},LFe=["onClick"],FFe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DFe=["stroke"],VFe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){if(o&&o.length&&L.value){if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",kFe,[I.is3d?(t.openBlock(),t.createElementBlock("div",CFe,SFe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",EFe,[t.createVNode(t.unref(_Fe),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(bFe),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",AFe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,MFe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",IFe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,PFe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",NFe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",BFe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,OFe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zFe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,LFe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",FFe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,DFe)]))])):t.createCommentVNode("",!0)])],2))]))}},RFe=xFe(VFe,[["__scopeId","data-v-cf3e4ab5"]]),Tk=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r};let EF=null;const Sk={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)EF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),EF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},AF=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},MF=Sk.setup;Sk.setup=MF?(e,a)=>(AF(),MF(e,a)):AF;const vx=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),$Fe=vx(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),jFe=[$Fe],UFe=vx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),HFe=["src"],GFe=vx(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),WFe=vx(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qFe=["src"],YFe=["src"],ZFe={class:"text-container"};function JFe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},jFe,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),UFe,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,HFe),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),GFe,WFe,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,qFe),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,YFe),t.createElementVNode("div",ZFe,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const XFe=Tk(Sk,[["render",JFe],["__scopeId","data-v-71797e9d"]]);let IF=null;const Ek={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)IF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),IF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},PF=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},NF=Ek.setup;Ek.setup=NF?(e,a)=>(PF(),NF(e,a)):PF;const _x=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),KFe=_x(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),QFe=_x(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),eDe=[QFe],tDe={class:"player-container"},nDe=["src"],aDe=["src"],rDe=["src"],iDe={class:"container-score"},oDe=["src"],sDe=["src"],lDe=["src"],cDe=_x(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),dDe=_x(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function uDe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[KFe,t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},eDe,2),t.createElementVNode("div",tDe,[t.createElementVNode("div",{class:t.normalizeClass(d.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(d.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(d.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(d.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(d.playerimage)},null,10,nDe)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,aDe)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,rDe)):t.createCommentVNode("",!0),t.createElementVNode("div",iDe,[t.createElementVNode("div",{class:t.normalizeClass(d.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,oDe),t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(d.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(d.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,sDe),t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,lDe),cDe,dDe],2)}const hDe=Tk(Ek,[["render",uDe],["__scopeId","data-v-83c7df16"]]),pDe={components:{GSCCarousel:RFe,GSCThumbnailHighlightGameHistoric:XFe,GSCThumbnailHighlightGamePlayer:hDe},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],I=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${r} ${I} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const a=uFe.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let d=0;d<L.data.seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",player_name:L.data.seasons[e.season].games_played[d].home_team_acronym+" "+L.data.seasons[e.season].games_played[d].home_team_score+" : "+L.data.seasons[e.season].games_played[d].visiting_team_score+" "+L.data.seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.seasons[e.season].games_played[d].home_team,season_id:L.data.seasons[e.season].games_played[d].season_id,name:L.data.seasons[e.season].games_played[d].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[d].game_id,match:L.data.seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[d].date),scorehome:L.data.seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].visiting_team+".png",total:L.data.seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[d].home_team+"_"+L.data.seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I);else for(let d=0;d<L.data.national_seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[d].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[d].home_team_score+" : "+L.data.national_seasons[e.season].games_played[d].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[d].home_team,season_id:L.data.national_seasons[e.season].games_played[d].season_id,name:L.data.national_seasons[e.season].games_played[d].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[d].game_id,match:L.data.national_seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[d].date),scorehome:L.data.national_seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[d].home_team+"_"+L.data.national_seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)I={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?!r.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&r.push(I):r.push(I);const d=L.data.thumbnails;for(let g=0;g<r.length;g++){const n=Math.floor(Math.random()*d[r[g].game_id].info_thumbnails.images.background_default_games.length);r[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+d[r[g].game_id].info_thumbnails.images.background_default_games[n],r[g].backgroundhome=d[r[g].game_id].info_thumbnails.home_colors.background_color,r[g].backgroundaway=d[r[g].game_id].info_thumbnails.away_colors.background_color,r[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.away_colors.team_id+".png",r[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.home_colors.team_id+".png",r[g].match=d[r[g].game_id].matchday_name.replace("Matchday","Jor"),r[g].playingAs=d[r[g].game_id].info_thumbnails.home_colors.team_id===r[g].teamId?1:2,r[g].seasonname=d[r[g].game_id].season_name,r[g].score=d[r[g].game_id].score[0]+" - "+d[r[g].game_id].score[1],r[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let d=0;d<L.data.seasons[e.season].games.length;d++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[d],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[d].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",player_name:L.data.seasons[e.season].games[d].home_team_acronym+" "+L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score+" "+L.data.seasons[e.season].games[d].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[d].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[d].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[d].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",total:L.data.seasons[e.season].games[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[d].home_team+"_"+L.data.seasons[e.season].games[d].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},fDe={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function mDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return d.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",fDe,[t.createVNode(_,t.mergeProps(d.carouselProps,{items:d.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const gDe=Tk(pDe,[["render",mDe]]);let BF=null;const yDe={components:{GSCHighlights:gDe,GSCPlayerTeamGame:ak,GSCCard:lk},props:{config:{type:Object,default:()=>{}},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},computed:{canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)BF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Tf.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),r=a.data.games.findIndex(g=>g.game_id===this.config.game);this.gameInfo=a.data.games[r];var I=[],L={},d=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let g=0;g<d.data.games[0].players.length;g++){const n=Math.floor(Math.random()*d.data.games[0].players[g].info_thumbnails.images.background_player_in_action.length),_=Math.floor(Math.random()*d.data.games[0].players[g].info_thumbnails.images.player_in_action.length);L={background_color_buttons:d.data.games[0].players[g].info_thumbnails.colors.background_color_buttons,background_color_cards:d.data.games[0].players[g].info_thumbnails.colors.background_color_cards,color_icon_play:d.data.games[0].players[g].info_thumbnails.colors.color_icon_play,color_next_back:d.data.games[0].players[g].info_thumbnails.colors.color_next_back,font_color:d.data.games[0].players[g].info_thumbnails.colors.font_color,font_color_card:d.data.games[0].players[g].info_thumbnails.colors.font_color_cards,colorbackgroundhome:d.data.games[0].players[g].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:d.data.games[0].players[g].player_name,background:d.data.games[0].players[g].info_thumbnails.images.background_player_in_action[n]?"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.background_player_in_action[n]:"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:d.data.games[0].players[g].team_logo,photoprofile:d.data.games[0].players[g].info_thumbnails.images.player_in_action[_]?"https://golstatsimages.blob.core.windows.net/images-library/"+d.data.games[0].players[g].info_thumbnails.images.player_in_action[_]:`https://az755631.vo.msecnd.net/players-profile/${d.data.games[0].players[g].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:d.data.games[0].game_id,season_id:d.data.games[0].players[g].season_id,category:0,team_id:d.data.games[0].players[g].team_id},I.push(L)}this.printData=I}}},vDe=e=>(t.pushScopeId("data-v-0b7c7c48"),e=e(),t.popScopeId(),e),_De={ref:"gamesContainer",class:"container"},bDe={class:"video-partido-container"},xDe={class:"video-partido-higthlights"},wDe=vDe(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),kDe={key:0,class:"video-partido-pltega-games"},CDe={key:1,class:"video-partido-pltega-games-team"};function TDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCHighlights"),n=t.resolveComponent("GSCPlayerTeamGame"),_=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",_De,[t.createElementVNode("div",bDe,[t.createElementVNode("div",xDe,[t.createVNode(g,{data:{game:r.config.game,season:r.config.season_id,type:"historic"},"can-play-videos":d.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"privileges-team-id":r.playVideosPrivileges?r.playVideosPrivileges.seasonAndPrivileges.teamId:0,onOpenmedia:d.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","privileges-team-id","onOpenmedia"])]),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:r.config.season_id,game:r.config.game,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegadatosClass)},[wDe,t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemunoClass)},[d.canPlayVideos.home&&L.printData[0]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[0].colorbackgroundhome,"background-img":L.printData[0].background,data:{team_name:L.gameInfo.home_team_name,player_photo:L.printData[0].photoprofile,team_id:L.gameInfo.home_team,background_color_buttons:L.printData[0].background_color_buttons,background_color_cards:L.printData[0].background_color_cards,color_icon_play:L.printData[0].color_icon_play,color_next_back:L.printData[0].color_next_back,font_color:L.printData[0].font_color,font_color_card:L.printData[0].font_color_card},"can-play-videos":d.canPlayVideos.home},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemdosClass)},[d.canPlayVideos.away&&L.printData[1]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[1].colorbackgroundhome,"background-img":L.printData[1].background,data:{team_name:L.gameInfo.visiting_team_name,player_photo:L.printData[1].photoprofile,team_id:L.gameInfo.visiting_team,background_color_buttons:L.printData[1].background_color_buttons,background_color_cards:L.printData[1].background_color_cards,color_icon_play:L.printData[1].color_icon_play,color_next_back:L.printData[1].color_next_back,font_color:L.printData[1].font_color,font_color_card:L.printData[1].font_color_card},"can-play-videos":d.canPlayVideos.away},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2)],2)],2),d.canPlayVideos.home?(t.openBlock(),t.createElementBlock("div",kDe,[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+L.gameInfo.home_team_name+":",data:{season:r.config.season_id,team:L.gameInfo.home_team,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0),d.canPlayVideos.away?(t.openBlock(),t.createElementBlock("div",CDe,[t.createVNode(n,{onOpenmedia:d.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+L.gameInfo.visiting_team_name+":",data:{season:r.config.season_id,team:L.gameInfo.visiting_team,isPrematch:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])])):t.createCommentVNode("",!0)])],512)}const SDe=Lg(yDe,[["render",TDe],["__scopeId","data-v-0b7c7c48"]]);let OF=null;const EDe={components:{GSCCard:lk,GSCPlayerTeamGame:ak,GSCThumbnailHighlightGameHistoric:Pz},props:{config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{printData:[],gameInfo:{},informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,intervalId:null,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{pgtcontainercardClass(){return this.gamesContainerWidth<=350,"pgtcontainercard"},ptgtitleClass(){return this.gamesContainerWidth<=450?"ptgtitle450":"ptgtitle"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"}},watch:{config:{handler:function(){this.intervalId=setInterval(()=>{this.fetchLiveData()},3e5),this.$emit("intervalid",this.intervalId)},immediate:!0}},methods:{async fetchLiveData(){await this.getLiveHighlights(),await this.getLiveBestPlays(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()},async getLiveBestPlays(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a=[],r={},I=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let L=0;L<I.data.games[0].players.length;L++){const d=Math.floor(Math.random()*I.data.games[0].players[L].info_thumbnails.images.background_player_in_action.length),g=Math.floor(Math.random()*I.data.games[0].players[L].info_thumbnails.images.player_in_action.length);r={background_color_buttons:I.data.games[0].players[L].info_thumbnails.colors.background_color_buttons,background_color_cards:I.data.games[0].players[L].info_thumbnails.colors.background_color_cards,color_icon_play:I.data.games[0].players[L].info_thumbnails.colors.color_icon_play,color_next_back:I.data.games[0].players[L].info_thumbnails.colors.color_next_back,font_color:I.data.games[0].players[L].info_thumbnails.colors.font_color,font_color_card:I.data.games[0].players[L].info_thumbnails.colors.font_color_cards,colorbackgroundhome:I.data.games[0].players[L].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:I.data.games[0].players[L].player_name,background:I.data.games[0].players[L].info_thumbnails.images.background_player_in_action[d]?"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.background_player_in_action[d]:"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:I.data.games[0].players[L].team_logo,photoprofile:I.data.games[0].players[L].info_thumbnails.images.player_in_action[g]?"https://golstatsimages.blob.core.windows.net/images-library/"+I.data.games[0].players[L].info_thumbnails.images.player_in_action[g]:`https://az755631.vo.msecnd.net/players-profile/${I.data.games[0].players[L].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:I.data.games[0].game_id,season_id:I.data.games[0].players[L].season_id,category:0,team_id:I.data.games[0].players[L].team_id},a.push(r)}this.printData=a},async getLiveHighlights(){const e=await Tf.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);e.data!=""&&(this.showHighlight=e.data==""?!1:e.data.plays.length>0,this.showHighlightGoals=e.data==""?!1:e.data.plays.filter(a=>a[0]===12).length>0,this.item.category=0,this.item.game_id=e.data.game_id,this.item.season_id=this.config.season_id,this.item.score=e.data.thumbnails[e.data.game_id].score[0]+" - "+e.data.thumbnails[e.data.game_id].score[1],this.item.backgroundhome=e.data.thumbnails[e.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=e.data.thumbnails[e.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+e.data.thumbnails[e.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+e.data.thumbnails[e.data.game_id].info_thumbnails.images.background_default_games[0])},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.type==4?a=[12,55,"35_r","54_r"]:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)OF=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OF.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=Tf.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.config.season_id),r=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),I=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.config.game);this.tournamentId=a.data.tournament_id,I.data!=""&&(this.showHighlight=I.data==""?!1:I.data.plays.length>0,this.showHighlightGoals=I.data==""?!1:I.data.plays.filter(_=>_[0]===12).length>0,this.item.category=0,this.item.game_id=I.data.game_id,this.item.season_id=this.config.season_id,this.item.score=I.data.thumbnails[I.data.game_id].score[0]+" - "+I.data.thumbnails[I.data.game_id].score[1],this.item.backgroundhome=I.data.thumbnails[I.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=I.data.thumbnails[I.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+I.data.thumbnails[I.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+I.data.thumbnails[I.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+I.data.thumbnails[I.data.game_id].info_thumbnails.images.background_default_games[0]);const L=r.data.games.findIndex(_=>_.game_id===this.config.game);this.gameInfo=r.data.games[L];var d=[],g={},n=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let _=0;_<n.data.games[0].players.length;_++){const m=Math.floor(Math.random()*n.data.games[0].players[_].info_thumbnails.images.background_player_in_action.length),i=Math.floor(Math.random()*n.data.games[0].players[_].info_thumbnails.images.player_in_action.length);g={background_color_buttons:n.data.games[0].players[_].info_thumbnails.colors.background_color_buttons,background_color_cards:n.data.games[0].players[_].info_thumbnails.colors.background_color_cards,color_icon_play:n.data.games[0].players[_].info_thumbnails.colors.color_icon_play,color_next_back:n.data.games[0].players[_].info_thumbnails.colors.color_next_back,font_color:n.data.games[0].players[_].info_thumbnails.colors.font_color,font_color_card:n.data.games[0].players[_].info_thumbnails.colors.font_color_cards,colorbackgroundhome:n.data.games[0].players[_].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:n.data.games[0].players[_].player_name,background:n.data.games[0].players[_].info_thumbnails.images.background_player_in_action[m]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.background_player_in_action[m]:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:n.data.games[0].players[_].team_logo,photoprofile:n.data.games[0].players[_].info_thumbnails.images.player_in_action[i]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.games[0].players[_].info_thumbnails.images.player_in_action[i]:`https://az755631.vo.msecnd.net/players-profile/${n.data.games[0].players[_].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:n.data.games[0].game_id,season_id:n.data.games[0].players[_].season_id,category:0,team_id:n.data.games[0].players[_].team_id},d.push(g)}this.printData=d},getBestPlaysUrl({season:e,player:a,team:r,game:I,category:L}){let d="https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/";return e&&(d+=`${e}`),a&&(d+=`/players/${a}`),r&&(d+=`/teams/${r}`),I&&(d+=`/games/${I}`),L&&(d+=`/categories/${L}`),this.videoPrivilegesPlayingAs.has(1)&&!this.videoPrivilegesPlayingAs.has(2)?d+="?isLocal=1":this.videoPrivilegesPlayingAs.has(2)&&!this.videoPrivilegesPlayingAs.has(1)&&(d+="?isVisitor=1"),d},async getStatsBestPlaysTeamHome(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysTeamHome=[],this.playerPhoto=!1,a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.home_team);for(let I=0;I<a.data.categories.length;I++){const L=Math.floor(Math.random()*a.data.categories[I].info_thumbnails.images.background_default_teams.length);r={game_id:a.data.game_id,has_mxm:a.data.has_mxm,season_id:a.data.season_id,team_id:a.data.team_id,category:a.data.categories[I].categories.concat(a.data.categories[I].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+a.data.team_id+".png",color:a.data.categories[I].info_thumbnails.colors.background_color,colorfont:a.data.categories[I].info_thumbnails.colors.font_color,player_name:a.data.categories[I].category_name,total:a.data.categories[I].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+a.data.team_id+"_"+a.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamHome.push(r)}},async getStatsBestPlaysTeamAway(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysTeamAway=[],this.playerPhoto=!1,a=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game+"/teams/"+this.gameInfo.visiting_team);for(let I=0;I<a.data.categories.length;I++){const L=Math.floor(Math.random()*a.data.categories[I].info_thumbnails.images.background_default_teams.length);r={game_id:a.data.game_id,has_mxm:a.data.has_mxm,season_id:a.data.season_id,team_id:a.data.team_id,category:a.data.categories[I].categories.concat(a.data.categories[I].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.categories[I].info_thumbnails.images.background_default_categories[L],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+a.data.team_id+".png",color:a.data.categories[I].info_thumbnails.colors.background_color,colorfont:a.data.categories[I].info_thumbnails.colors.font_color,player_name:a.data.categories[I].category_name,total:a.data.categories[I].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+a.data.team_id+"_"+a.data.season_id+"_r1.jpg"},this.informationBestPlaysTeamAway.push(r)}},async getStatsBestPlaysPlayers(){const e=Tf.create({headers:{Authorization:`${this.token}`}});var a={},r={};this.informationBestPlaysPlayers=[],this.playerPhoto=!1,a=await e.get(this.getBestPlaysUrl({season:this.config.season_id,game:this.config.game})),this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?a.data.games[0].game_status!==1&&(a.data.games[0].players=a.data.games[0].players.filter(I=>I.team_id==this.playVideosPrivileges.seasonAndPrivileges.teamId)):a.data.games[0].players=[]);for(let I=0;I<a.data.games[0].players.length;I++){const L=Math.floor(Math.random()*a.data.games[0].players[I].info_thumbnails.images.background_player_in_action.length),d=Math.floor(Math.random()*a.data.games[0].players[I].info_thumbnails.images.player_in_action.length);r={colorbackgroundhome:a.data.games[0].players[I].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:a.data.games[0].players[I].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[I].info_thumbnails.images.background_player_in_action[L],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:a.data.games[0].players[I].info_thumbnails.colors.font_color,team_id:a.data.games[0].players[I].team_id,player_id:a.data.games[0].players[I].player_id,game_id:a.data.games[0].game_id,has_mxm:a.data.games[0].has_mxm,season_id:a.data.season_id,logohome:a.data.games[0].players[I].team_logo,photoprofile:a.data.games[0].players[I].info_thumbnails.images.player_in_action[d]?"https://golstatsimages.blob.core.windows.net/images-library/"+a.data.games[0].players[I].info_thumbnails.images.player_in_action[d]:"https://az755631.vo.msecnd.net/players-profile/"+a.data.games[0].players[I].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},this.informationBestPlaysPlayers.push(r)}}},beforeDestroy(){clearInterval(this.intervalId)},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),await this.fillData(),await this.getStatsBestPlaysPlayers(),await this.getStatsBestPlaysTeamHome(),await this.getStatsBestPlaysTeamAway()}},X0=e=>(t.pushScopeId("data-v-8bfd52ad"),e=e(),t.popScopeId(),e),ADe={ref:"gamesContainer",class:"container",style:{}},MDe={class:"video-partido-container"},IDe={class:"video-partido-container__highlight"},PDe={class:"video-partido-container__content"},NDe=X0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"}," • LIVE ",-1)),BDe=X0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),ODe=X0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),zDe=X0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),LDe=X0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),FDe={class:"video-partido-container__image"},DDe={class:"ptg",ref:"ptgDiv"},VDe=X0(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este partido:",-1)),RDe={class:"video-partido-pltega-games"},$De={class:"video-partido-pltega-games-team"};function jDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCPlayerTeamGame"),_=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",ADe,[t.createElementVNode("div",MDe,[t.withDirectives(t.createElementVNode("div",IDe,[t.createElementVNode("div",PDe,[NDe,BDe,ODe,zDe,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[0]||(a[0]=m=>d.onclickPlayVideos({data:L.item,type:1}))},[LDe,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",FDe,[t.createVNode(g,{"is-live":!0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,background:L.item.background,onOnclickPlayVideos:a[1]||(a[1]=m=>d.onclickPlayVideos({data:L.item,type:1})),matchday:L.item.match,"season-name":L.item.seasonname,score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,r.canPlayVideos&&L.showHighlight]]),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createElementVNode("div",DDe,[t.createElementVNode("div",{class:t.normalizeClass(d.ptgtitleClass)},"Goles del partido",2),L.showHighlightGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.pgtcontainercardClass),style:{"margin-left":"0px !important",color:"white"}},[t.createVNode(g,{"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,background:L.item.background,onOnclickPlayVideos:a[2]||(a[2]=m=>d.onclickPlayVideos({data:L.item,type:4})),matchday:L.item.match,"season-name":L.item.seasonname,score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])],2)):t.createCommentVNode("",!0)],512)],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegaplayersClass)},[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,"receive-data":!0,information:L.informationBestPlaysPlayers,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:3e3,title:"Jugadores (sus mejores jugadas):","video-privileges-playing-as":r.videoPrivilegesPlayingAs,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","video-privileges-playing-as","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(d.videopartidopltegadatosClass)},[VDe,t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemunoClass)},[L.printData[0]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[3]||(a[3]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),onOnClickCard:a[4]||(a[4]=m=>d.onclickPlayVideos({data:L.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[0].colorbackgroundhome,"background-img":L.printData[0].background,data:{team_name:L.gameInfo.home_team_name,player_photo:L.printData[0].photoprofile,team_id:L.gameInfo.home_team,background_color_buttons:L.printData[0].background_color_buttons,background_color_cards:L.printData[0].background_color_cards,color_icon_play:L.printData[0].color_icon_play,color_next_back:L.printData[0].color_next_back,font_color:L.printData[0].font_color,font_color_card:L.printData[0].font_color_card},"can-play-videos":r.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(d.gridcarrouselesitemsitemdosClass)},[L.printData[1]?(t.openBlock(),t.createBlock(_,{key:0,type:1,onOnClickVideos:a[5]||(a[5]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),onOnClickCard:a[6]||(a[6]=m=>d.onclickPlayVideos({data:L.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:L.printData[1].colorbackgroundhome,"background-img":L.printData[1].background,data:{team_name:L.gameInfo.visiting_team_name,player_photo:L.printData[1].photoprofile,team_id:L.gameInfo.visiting_team,background_color_buttons:L.printData[1].background_color_buttons,background_color_cards:L.printData[1].background_color_cards,color_icon_play:L.printData[1].color_icon_play,color_next_back:L.printData[1].color_next_back,font_color:L.printData[1].font_color,font_color_card:L.printData[1].font_color_card},"can-play-videos":r.canPlayVideos},null,8,["backgroundColor","background-img","data","can-play-videos"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",RDe,[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,information:L.informationBestPlaysTeamHome,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},"receive-data":!0,type:4e3,title:"Jugadas específicas "+L.gameInfo.home_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",$De,[t.createVNode(n,{onOpenmedia:d.openmedia,"background-color":"#172531","px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",style:{"margin-top":"10px"},type:5e3,"receive-data":!0,information:L.informationBestPlaysTeamAway,title:"Jugadas específicas "+L.gameInfo.visiting_team_name+":",onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","information","title","onOnClickVideos","onOnClickCard"])])])],512)}const UDe={components:{GSCVideoGamePreMatch:SDe,GSCVideoGamePostMatch:Yze,GSCVideoGameLive:Lg(EDe,[["render",jDe],["__scopeId","data-v-8bfd52ad"]])},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{}},computed:{},methods:{intervalid(e){this.$emit("intervalid",e)},openmedia(e){this.$emit("openmedia",e)}}},HDe={style:{margin:"0 auto"}};function GDe(e,a,r,I,L,d){const g=t.resolveComponent("GSCVideoGamePreMatch"),n=t.resolveComponent("GSCVideoGamePostMatch"),_=t.resolveComponent("GSCVideoGameLive");return t.openBlock(),t.createElementBlock("div",HDe,[r.type==="Prematch"?(t.openBlock(),t.createBlock(g,{key:0,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onOpenmedia"])):t.createCommentVNode("",!0),r.type==="Postmatch"?(t.openBlock(),t.createBlock(n,{key:1,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onOpenmedia"])):t.createCommentVNode("",!0),r.type==="Live"?(t.openBlock(),t.createBlock(_,{key:2,"can-play-videos":r.canPlayVideos,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,config:r.config,onIntervalid:d.intervalid,onOpenmedia:d.openmedia},null,8,["can-play-videos","video-privileges-playing-as","play-videos-privileges","config","onIntervalid","onOpenmedia"])):t.createCommentVNode("",!0)])}const Ak=Lg(UDe,[["render",GDe],["__scopeId","data-v-b79f7745"]]),$un="",jun="",WDe={class:"datagame-container"},qDe=Jr({__name:"GSCVideoGame",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","intervalid"],setup(e,{emit:a}){const r=e,I=t.ref(0);t.watch(()=>r.game,g=>{I.value=g.gameId},{deep:!0,immediate:!0});function L(g){a("openmedia",g)}function d(g){a("intervalid",g)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",WDe,[e.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,onIntervalid:d,type:"Live",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Ak),{onOpenmedia:L,key:I.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId},"play-videos-privileges":e.playVideosPrivileges,"video-privileges-playing-as":e.videoPrivilegesPlayingAs},null,8,["config","play-videos-privileges","video-privileges-playing-as"])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-870dad78"]]),Hun="",YDe={components:{},props:{width:{type:Number,default:0},type:{type:Number,default:0},plays:{type:Object,default:()=>{}},game:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{handleOutsideClick(){this.$emit("close-modal-events-live"),document.body.classList.remove("no-scroll")}},created(){document.body.classList.add("no-scroll")}},xu=e=>(t.pushScopeId("data-v-dc3632e6"),e=e(),t.popScopeId(),e),ZDe={class:"home_team-events"},JDe={class:"home_team-events__title"},XDe=["src"],KDe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),QDe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),eVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),tVe={class:"away_team-events"},nVe={class:"away_team-events__title"},aVe=["src"],rVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),iVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),oVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),sVe={class:"home_team-events"},lVe={class:"home_team-events__title"},cVe=["src"],dVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),uVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),hVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1)),pVe={class:"away_team-events"},fVe={class:"away_team-events__title"},mVe=["src"],gVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1)),yVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1)),vVe=xu(()=>t.createElementVNode("img",{width:"13",height:"13",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1));function _Ve(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"modal-events",onClick:a[1]||(a[1]=(...g)=>d.handleOutsideClick&&d.handleOutsideClick(...g))},[t.createElementVNode("div",{class:"modal-events__modal",onClick:a[0]||(a[0]=t.withModifiers(()=>{},["stop"]))},[Object.keys(r.plays).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.width>540?"container-events":r.width>420?"container-events-movil":r.width>350?"container-events-movilxl":"container-events-movilsm")},[r.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",ZDe,[t.createElementVNode("div",JDe,[t.createElementVNode("img",{width:"24",height:"24",src:r.plays[r.game.home_team.team_id].team.logo},null,8,XDe),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].team.name),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].goals),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[KDe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].goals[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].goals[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].red),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[QDe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].red[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].red[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.home_team.team_id].yellow),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[eVe,t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].yellow[g].name),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.home_team.team_id].yellow[g].event.map(_=>`${_}'`).join(", ")),1)],2))),128))]),t.createElementVNode("div",tVe,[t.createElementVNode("div",nVe,[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].team.name),1),t.createElementVNode("img",{width:"24",height:"24",src:r.plays[r.game.visiting_team.team_id].team.logo},null,8,aVe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].goals),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].goals[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].goals[g].name),1),rVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].red),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].red[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].red[g].name),1),iVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(r.plays[r.game.visiting_team.team_id].yellow),(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].yellow[g].event.map(_=>`${_}'`).join(", ")),1),t.createElementVNode("div",null,t.toDisplayString(r.plays[r.game.visiting_team.team_id].yellow[g].name),1),oVe],2))),128))])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",sVe,[t.createElementVNode("div",lVe,[t.createElementVNode("img",{width:"24",height:"24",src:r.plays.home_team.logo},null,8,cVe),t.createElementVNode("div",null,t.toDisplayString(r.plays.home_team.acronym),1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_goals_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[dVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_red_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[uVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.home_yellow_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"home_team-events__event":"home_team-events__eventsm")},[hVe,t.createElementVNode("div",null,t.toDisplayString(g),1)],2))),128))]),t.createElementVNode("div",pVe,[t.createElementVNode("div",fVe,[t.createElementVNode("div",null,t.toDisplayString(r.plays.visiting_team.acronym),1),t.createElementVNode("img",{width:"24",height:"24",src:r.plays.visiting_team.logo},null,8,mVe)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.visiting_goals_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),gVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.away_red_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),yVe],2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plays.plays.away_yellow_cards_minutes,(g,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(r.width>420?"away_team-events__event":"away_team-events__eventsm")},[t.createElementVNode("div",null,t.toDisplayString(g),1),vVe],2))),128))])],64))],2)):t.createCommentVNode("",!0)])])])}const zF=Jr(YDe,[["render",_Ve],["__scopeId","data-v-dc3632e6"]]),bVe=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},Mk={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},LF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},FF=Mk.setup;Mk.setup=FF?(e,a)=>(LF(),FF(e,a)):LF;const xVe={ref:"gscScrollableContainer",class:"scrollable-container"},wVe={class:"scrollable-arrows"},kVe=["width","height","viewBox"],CVe=["stroke"],TVe={class:"scrollable-wrapper"},SVe={class:"scrollable-arrows"},EVe=["width","height","viewBox"],AVe=["stroke"];function MVe(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",xVe,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",wVe,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,CVe)],8,kVe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",TVe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:a[2]||(a[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",SVe,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,AVe)],8,EVe))])],2)):t.createCommentVNode("",!0)],512)}const IVe=bVe(Mk,[["render",MVe],["__scopeId","data-v-b548a08d"]]);function DF(e,a){return function(){return e.apply(a,arguments)}}const{toString:PVe}=Object.prototype,{getPrototypeOf:Ik}=Object,bx=(e=>a=>{const r=PVe.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qh=e=>(e=e.toLowerCase(),a=>bx(a)===e),xx=e=>a=>typeof a===e,{isArray:K0}=Array,Yg=xx("undefined");function NVe(e){return e!==null&&!Yg(e)&&e.constructor!==null&&!Yg(e.constructor)&&wu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const VF=Qh("ArrayBuffer");function BVe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&VF(e.buffer),a}const OVe=xx("string"),wu=xx("function"),RF=xx("number"),wx=e=>e!==null&&typeof e=="object",zVe=e=>e===!0||e===!1,kx=e=>{if(bx(e)!=="object")return!1;const a=Ik(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},LVe=Qh("Date"),FVe=Qh("File"),DVe=Qh("Blob"),VVe=Qh("FileList"),RVe=e=>wx(e)&&wu(e.pipe),$Ve=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||wu(e.append)&&((a=bx(e))==="formdata"||a==="object"&&wu(e.toString)&&e.toString()==="[object FormData]"))},jVe=Qh("URLSearchParams"),UVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zg(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),K0(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function $F(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const jF=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),UF=e=>!Yg(e)&&e!==jF;function Pk(){const{caseless:e}=UF(this)&&this||{},a={},r=(I,L)=>{const d=e&&$F(a,L)||L;kx(a[d])&&kx(I)?a[d]=Pk(a[d],I):kx(I)?a[d]=Pk({},I):K0(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Zg(arguments[I],r);return a}const HVe=(e,a,r,{allOwnKeys:I}={})=>(Zg(a,(L,d)=>{r&&wu(L)?e[d]=DF(L,r):e[d]=L},{allOwnKeys:I}),e),GVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),WVe=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},qVe=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&Ik(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},YVe=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},ZVe=e=>{if(!e)return null;if(K0(e))return e;let a=e.length;if(!RF(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},JVe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ik(Uint8Array)),XVe=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},KVe=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},QVe=Qh("HTMLFormElement"),eRe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),HF=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),tRe=Qh("RegExp"),GF=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Zg(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},nRe=e=>{GF(e,(a,r)=>{if(wu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(wu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},aRe=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return K0(e)?I(e):I(String(e).split(a)),r},rRe=()=>{},iRe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Nk="abcdefghijklmnopqrstuvwxyz",WF="0123456789",qF={DIGIT:WF,ALPHA:Nk,ALPHA_DIGIT:Nk+Nk.toUpperCase()+WF},oRe=(e=16,a=qF.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function sRe(e){return!!(e&&wu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lRe=e=>{const a=new Array(10),r=(I,L)=>{if(wx(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=K0(I)?[]:{};return Zg(I,(g,n)=>{const _=r(g,L+1);!Yg(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},cRe=Qh("AsyncFunction"),dRe=e=>e&&(wx(e)||wu(e))&&wu(e.then)&&wu(e.catch),er={isArray:K0,isArrayBuffer:VF,isBuffer:NVe,isFormData:$Ve,isArrayBufferView:BVe,isString:OVe,isNumber:RF,isBoolean:zVe,isObject:wx,isPlainObject:kx,isUndefined:Yg,isDate:LVe,isFile:FVe,isBlob:DVe,isRegExp:tRe,isFunction:wu,isStream:RVe,isURLSearchParams:jVe,isTypedArray:JVe,isFileList:VVe,forEach:Zg,merge:Pk,extend:HVe,trim:UVe,stripBOM:GVe,inherits:WVe,toFlatObject:qVe,kindOf:bx,kindOfTest:Qh,endsWith:YVe,toArray:ZVe,forEachEntry:XVe,matchAll:KVe,isHTMLForm:QVe,hasOwnProperty:HF,hasOwnProp:HF,reduceDescriptors:GF,freezeMethods:nRe,toObjectSet:aRe,toCamelCase:eRe,noop:rRe,toFiniteNumber:iRe,findKey:$F,global:jF,isContextDefined:UF,ALPHABET:qF,generateString:oRe,isSpecCompliantForm:sRe,toJSONObject:lRe,isAsyncFn:cRe,isThenable:dRe};function Ho(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}er.inherits(Ho,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const YF=Ho.prototype,ZF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ZF[e]={value:e}}),Object.defineProperties(Ho,ZF),Object.defineProperty(YF,"isAxiosError",{value:!0}),Ho.from=(e,a,r,I,L,d)=>{const g=Object.create(YF);return er.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Ho.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const uRe=null;function Bk(e){return er.isPlainObject(e)||er.isArray(e)}function JF(e){return er.endsWith(e,"[]")?e.slice(0,-2):e}function XF(e,a,r){return e?e.concat(a).map(function(I,L){return I=JF(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function hRe(e){return er.isArray(e)&&!e.some(Bk)}const pRe=er.toFlatObject(er,{},null,function(e){return/^is[A-Z]/.test(e)});function Cx(e,a,r){if(!er.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=er.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!er.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&er.isSpecCompliantForm(a);if(!er.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(er.isDate(l))return l.toISOString();if(!n&&er.isBlob(l))throw new Ho("Blob is not supported. Use a Buffer instead.");return er.isArrayBuffer(l)||er.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(er.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(er.isArray(l)&&hRe(l)||(er.isFileList(l)||er.endsWith(s,"[]"))&&(c=er.toArray(l)))return s=JF(s),c.forEach(function(u,h){!(er.isUndefined(u)||u===null)&&a.append(g===!0?XF([s],h,d):g===null?s:s+"[]",_(u))}),!1}return Bk(l)?!0:(a.append(XF(o,s,d),_(l)),!1)}const i=[],v=Object.assign(pRe,{defaultVisitor:m,convertValue:_,isVisitable:Bk});function b(l,s){if(!er.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),er.forEach(l,function(o,c){(!(er.isUndefined(o)||o===null)&&L.call(a,o,er.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!er.isObject(e))throw new TypeError("data must be an object");return b(e),a}function KF(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Ok(e,a){this._pairs=[],e&&Cx(e,this,a)}const QF=Ok.prototype;QF.append=function(e,a){this._pairs.push([e,a])},QF.toString=function(e){const a=e?function(r){return e.call(this,r,KF)}:KF;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function fRe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eD(e,a,r){if(!a)return e;const I=r&&r.encode||fRe,L=r&&r.serialize;let d;if(L?d=L(a,r):d=er.isURLSearchParams(a)?a.toString():new Ok(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const tD=class{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){er.forEach(this.handlers,function(r){r!==null&&a(r)})}},nD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mRe=typeof URLSearchParams<"u"?URLSearchParams:Ok,gRe=typeof FormData<"u"?FormData:null,yRe=typeof Blob<"u"?Blob:null,vRe={isBrowser:!0,classes:{URLSearchParams:mRe,FormData:gRe,Blob:yRe},protocols:["http","https","file","blob","url","data"]},aD=typeof window<"u"&&typeof document<"u",_Re=(e=>aD&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bRe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),xRe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aD,hasStandardBrowserEnv:_Re,hasStandardBrowserWebWorkerEnv:bRe},Symbol.toStringTag,{value:"Module"})),ep={...xRe,...vRe};function wRe(e,a){return Cx(e,new ep.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return ep.isNode&&er.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function kRe(e){return er.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function CRe(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function rD(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&er.isArray(L)?L.length:g,_?(er.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!er.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&er.isArray(L[g])&&(L[g]=CRe(L[g])),!n)}if(er.isFormData(e)&&er.isFunction(e.entries)){const r={};return er.forEachEntry(e,(I,L)=>{a(kRe(I),L,r,0)}),r}return null}function TRe(e,a,r){if(er.isString(e))try{return(a||JSON.parse)(e),er.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const zk={transitional:nD,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=er.isObject(e);if(L&&er.isHTMLForm(e)&&(e=new FormData(e)),er.isFormData(e))return I?JSON.stringify(rD(e)):e;if(er.isArrayBuffer(e)||er.isBuffer(e)||er.isStream(e)||er.isFile(e)||er.isBlob(e))return e;if(er.isArrayBufferView(e))return e.buffer;if(er.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return wRe(e,this.formSerializer).toString();if((d=er.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Cx(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),TRe(e)):e}],transformResponse:[function(e){const a=this.transitional||zk.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(e&&er.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Ho.from(d,Ho.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ep.classes.FormData,Blob:ep.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};er.forEach(["delete","get","head","post","put","patch"],e=>{zk.headers[e]={}});const Lk=zk,SRe=er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ERe=e=>{const a={};let r,I,L;return e&&e.split(`
77
77
  `).forEach(function(d){L=d.indexOf(":"),r=d.substring(0,L).trim().toLowerCase(),I=d.substring(L+1).trim(),!(!r||a[r]&&SRe[r])&&(r==="set-cookie"?a[r]?a[r].push(I):a[r]=[I]:a[r]=a[r]?a[r]+", "+I:I)}),a},iD=Symbol("internals");function Jg(e){return e&&String(e).trim().toLowerCase()}function Tx(e){return e===!1||e==null?e:er.isArray(e)?e.map(Tx):String(e)}function ARe(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)a[I[1]]=I[2];return a}const MRe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fk(e,a,r,I,L){if(er.isFunction(I))return I.call(this,a,r);if(L&&(a=r),!!er.isString(a)){if(er.isString(I))return a.indexOf(I)!==-1;if(er.isRegExp(I))return I.test(a)}}function IRe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,I)=>r.toUpperCase()+I)}function PRe(e,a){const r=er.toCamelCase(" "+a);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(L,d,g){return this[I].call(this,a,L,d,g)},configurable:!0})})}let Sx=class{constructor(a){a&&this.set(a)}set(a,r,I){const L=this;function d(n,_,m){const i=Jg(_);if(!i)throw new Error("header name must be a non-empty string");const v=er.findKey(L,i);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||_]=Tx(n))}const g=(n,_)=>er.forEach(n,(m,i)=>d(m,i,_));return er.isPlainObject(a)||a instanceof this.constructor?g(a,r):er.isString(a)&&(a=a.trim())&&!MRe(a)?g(ERe(a),r):a!=null&&d(r,a,I),this}get(a,r){if(a=Jg(a),a){const I=er.findKey(this,a);if(I){const L=this[I];if(!r)return L;if(r===!0)return ARe(L);if(er.isFunction(r))return r.call(this,L,I);if(er.isRegExp(r))return r.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=Jg(a),a){const I=er.findKey(this,a);return!!(I&&this[I]!==void 0&&(!r||Fk(this,this[I],I,r)))}return!1}delete(a,r){const I=this;let L=!1;function d(g){if(g=Jg(g),g){const n=er.findKey(I,g);n&&(!r||Fk(I,I[n],n,r))&&(delete I[n],L=!0)}}return er.isArray(a)?a.forEach(d):d(a),L}clear(a){const r=Object.keys(this);let I=r.length,L=!1;for(;I--;){const d=r[I];(!a||Fk(this,this[d],d,a,!0))&&(delete this[d],L=!0)}return L}normalize(a){const r=this,I={};return er.forEach(this,(L,d)=>{const g=er.findKey(I,d);if(g){r[g]=Tx(L),delete r[d];return}const n=a?IRe(d):String(d).trim();n!==d&&delete r[d],r[n]=Tx(L),I[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return er.forEach(this,(I,L)=>{I!=null&&I!==!1&&(r[L]=a&&er.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
78
78
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const I=new this(a);return r.forEach(L=>I.set(L)),I}static accessor(a){const r=(this[iD]=this[iD]={accessors:{}}).accessors,I=this.prototype;function L(d){const g=Jg(d);r[g]||(PRe(I,d),r[g]=!0)}return er.isArray(a)?a.forEach(L):L(a),this}};Sx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),er.reduceDescriptors(Sx.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(I){this[r]=I}}}),er.freezeMethods(Sx);const yp=Sx;function Dk(e,a){const r=this||Lk,I=a||r,L=yp.from(I.headers);let d=I.data;return er.forEach(e,function(g){d=g.call(r,d,L.normalize(),a?a.status:void 0)}),L.normalize(),d}function oD(e){return!!(e&&e.__CANCEL__)}function Xg(e,a,r){Ho.call(this,e??"canceled",Ho.ERR_CANCELED,a,r),this.name="CanceledError"}er.inherits(Xg,Ho,{__CANCEL__:!0});function NRe(e,a,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):a(new Ho("Request failed with status code "+r.status,[Ho.ERR_BAD_REQUEST,Ho.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const BRe=ep.hasStandardBrowserEnv?{write(e,a,r,I,L,d){const g=[e+"="+encodeURIComponent(a)];er.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),er.isString(I)&&g.push("path="+I),er.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ORe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zRe(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function sD(e,a){return e&&!ORe(a)?zRe(e,a):a}const LRe=ep.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function I(L){let d=L;return e&&(a.setAttribute("href",d),d=a.href),a.setAttribute("href",d),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=I(window.location.href),function(L){const d=er.isString(L)?I(L):L;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}();function FRe(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function DRe(e,a){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),m=I[d];g||(g=_),r[L]=n,I[L]=_;let i=d,v=0;for(;i!==L;)v+=r[i++],i=i%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),_-g<a)return;const b=m&&_-m;return b?Math.round(v*1e3/b):void 0}}function lD(e,a){let r=0;const I=DRe(50,250);return L=>{const d=L.loaded,g=L.lengthComputable?L.total:void 0,n=d-r,_=I(n),m=d<=g;r=d;const i={loaded:d,total:g,progress:g?d/g:void 0,bytes:n,rate:_||void 0,estimated:_&&g&&m?(g-d)/_:void 0,event:L};i[a?"download":"upload"]=!0,e(i)}}const VRe=typeof XMLHttpRequest<"u",RRe=VRe&&function(e){return new Promise(function(a,r){let I=e.data;const L=yp.from(e.headers).normalize();let{responseType:d,withXSRFToken:g}=e,n;function _(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let m;if(er.isFormData(I)){if(ep.hasStandardBrowserEnv||ep.hasStandardBrowserWebWorkerEnv)L.setContentType(!1);else if((m=L.getContentType())!==!1){const[s,...o]=m?m.split(";").map(c=>c.trim()).filter(Boolean):[];L.setContentType([s||"multipart/form-data",...o].join("; "))}}let i=new XMLHttpRequest;if(e.auth){const s=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";L.set("Authorization","Basic "+btoa(s+":"+o))}const v=sD(e.baseURL,e.url);i.open(e.method.toUpperCase(),eD(v,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function b(){if(!i)return;const s=yp.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),o={data:!d||d==="text"||d==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};NRe(function(c){a(c),_()},function(c){r(c),_()},o),i=null}if("onloadend"in i?i.onloadend=b:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(b)},i.onabort=function(){i&&(r(new Ho("Request aborted",Ho.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new Ho("Network Error",Ho.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let s=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||nD;e.timeoutErrorMessage&&(s=e.timeoutErrorMessage),r(new Ho(s,o.clarifyTimeoutError?Ho.ETIMEDOUT:Ho.ECONNABORTED,e,i)),i=null},ep.hasStandardBrowserEnv&&(g&&er.isFunction(g)&&(g=g(e)),g||g!==!1&&LRe(v))){const s=e.xsrfHeaderName&&e.xsrfCookieName&&BRe.read(e.xsrfCookieName);s&&L.set(e.xsrfHeaderName,s)}I===void 0&&L.setContentType(null),"setRequestHeader"in i&&er.forEach(L.toJSON(),function(s,o){i.setRequestHeader(o,s)}),er.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),d&&d!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",lD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",lD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=s=>{i&&(r(!s||s.type?new Xg(null,e,i):s),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const l=FRe(v);if(l&&ep.protocols.indexOf(l)===-1){r(new Ho("Unsupported protocol "+l+":",Ho.ERR_BAD_REQUEST,e));return}i.send(I||null)})},Vk={http:uRe,xhr:RRe};er.forEach(Vk,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const cD=e=>`- ${e}`,$Re=e=>er.isFunction(e)||e===null||e===!1,dD={getAdapter:e=>{e=er.isArray(e)?e:[e];const{length:a}=e;let r,I;const L={};for(let d=0;d<a;d++){r=e[d];let g;if(I=r,!$Re(r)&&(I=Vk[(g=String(r)).toLowerCase()],I===void 0))throw new Ho(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let g=a?d.length>1?`since :
79
79
  `+d.map(cD).join(`
@@ -120,7 +120,7 @@
120
120
  * Vue 3 Carousel 0.3.1
121
121
  * (c) 2023
122
122
  * @license MIT
123
- */const Jc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},vU={itemsToShow:{default:Jc.itemsToShow,type:Number},itemsToScroll:{default:Jc.itemsToScroll,type:Number},wrapAround:{default:Jc.wrapAround,type:Boolean},throttle:{default:Jc.throttle,type:Number},snapAlign:{default:Jc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Jc.transition,type:Number},breakpoints:{default:Jc.breakpoints,type:Object},autoplay:{default:Jc.autoplay,type:Number},pauseAutoplayOnHover:{default:Jc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Jc.mouseDrag,type:Boolean},touchDrag:{default:Jc.touchDrag,type:Boolean},dir:{default:Jc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Jc.i18n,type:Object},settings:{default(){return{}},type:Object}};function cgt({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function dgt({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function mC({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function ugt({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:mC({val:g,max:r-d,min:0})}function _U(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,..._U(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function gC({val:e,max:a,min:r=0}){return e>a?gC({val:e-(a+1),max:a,min:r}):e<r?gC({val:e+(a+1),max:a,min:r}):e}function hgt(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function pgt(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function fgt(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var mgt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Jc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},fgt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),ggt=t.defineComponent({name:"Carousel",props:vU,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Jc));let i=Object.assign({},Jc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=pgt(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=cgt({config:m,slidesCount:_.value}),c.value=dgt({config:m,slidesCount:_.value}),m.wrapAround||(b.value=mC({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=hgt(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:mC({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=gC({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>ugt({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(vU).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=_U(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(mgt)])}}}),bU;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bU||(bU={}));var ygt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Jc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const vgt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},_gt=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),bgt={class:"gsc-carousel"},xgt={key:0},wgt=_gt(()=>t.createElementVNode("div",null,"no hay",-1)),kgt=[wgt],Cgt={class:"gsc-carousel__2d__slides"},Tgt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sgt=["fill"],Egt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Agt=["fill"],Mgt={class:"gsc-carousel__2d__navigation"},Igt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pgt=["stroke"],Ngt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bgt=["onClick"],Ogt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zgt=["stroke"],Lgt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){if(o&&o.length&&L.value){if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",bgt,[I.is3d?(t.openBlock(),t.createElementBlock("div",xgt,kgt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Cgt,[t.createVNode(t.unref(ggt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(ygt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Tgt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Sgt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Egt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Agt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Mgt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",Igt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,Pgt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Ngt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,Bgt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ogt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,zgt)]))])):t.createCommentVNode("",!0)])],2))]))}},Fgt=vgt(Lgt,[["__scopeId","data-v-cf3e4ab5"]]),yC=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r};let xU=null;const vC={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)xU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),xU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wU=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},kU=vC.setup;vC.setup=kU?(e,a)=>(wU(),kU(e,a)):wU;const a4=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),Dgt=a4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Vgt=[Dgt],Rgt=a4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),$gt=["src"],jgt=a4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Ugt=a4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Hgt=["src"],Ggt=["src"],Wgt={class:"text-container"};function qgt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},Vgt,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Rgt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,$gt),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),jgt,Ugt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,Hgt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,Ggt),t.createElementVNode("div",Wgt,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const Ygt=yC(vC,[["render",qgt],["__scopeId","data-v-71797e9d"]]);let CU=null;const _C={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)CU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),CU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TU=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},SU=_C.setup;_C.setup=SU?(e,a)=>(TU(),SU(e,a)):TU;const r4=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),Zgt=r4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Jgt=r4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Xgt=[Jgt],Kgt={class:"player-container"},Qgt=["src"],eyt=["src"],tyt=["src"],nyt={class:"container-score"},ayt=["src"],ryt=["src"],iyt=["src"],oyt=r4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),syt=r4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function lyt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[Zgt,t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},Xgt,2),t.createElementVNode("div",Kgt,[t.createElementVNode("div",{class:t.normalizeClass(d.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(d.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(d.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(d.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(d.playerimage)},null,10,Qgt)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,eyt)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,tyt)):t.createCommentVNode("",!0),t.createElementVNode("div",nyt,[t.createElementVNode("div",{class:t.normalizeClass(d.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,ayt),t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(d.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(d.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,ryt),t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iyt),oyt,syt],2)}const cyt={components:{GSCCarousel:Fgt,GSCThumbnailHighlightGameHistoric:Ygt,GSCThumbnailHighlightGamePlayer:yC(_C,[["render",lyt],["__scopeId","data-v-83c7df16"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],I=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${r} ${I} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const a=lgt.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let d=0;d<L.data.seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",player_name:L.data.seasons[e.season].games_played[d].home_team_acronym+" "+L.data.seasons[e.season].games_played[d].home_team_score+" : "+L.data.seasons[e.season].games_played[d].visiting_team_score+" "+L.data.seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.seasons[e.season].games_played[d].home_team,season_id:L.data.seasons[e.season].games_played[d].season_id,name:L.data.seasons[e.season].games_played[d].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[d].game_id,match:L.data.seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[d].date),scorehome:L.data.seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].visiting_team+".png",total:L.data.seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[d].home_team+"_"+L.data.seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I);else for(let d=0;d<L.data.national_seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[d].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[d].home_team_score+" : "+L.data.national_seasons[e.season].games_played[d].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[d].home_team,season_id:L.data.national_seasons[e.season].games_played[d].season_id,name:L.data.national_seasons[e.season].games_played[d].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[d].game_id,match:L.data.national_seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[d].date),scorehome:L.data.national_seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[d].home_team+"_"+L.data.national_seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)I={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?!r.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&r.push(I):r.push(I);const d=L.data.thumbnails;for(let g=0;g<r.length;g++){const n=Math.floor(Math.random()*d[r[g].game_id].info_thumbnails.images.background_default_games.length);r[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+d[r[g].game_id].info_thumbnails.images.background_default_games[n],r[g].backgroundhome=d[r[g].game_id].info_thumbnails.home_colors.background_color,r[g].backgroundaway=d[r[g].game_id].info_thumbnails.away_colors.background_color,r[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.away_colors.team_id+".png",r[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.home_colors.team_id+".png",r[g].match=d[r[g].game_id].matchday_name.replace("Matchday","Jor"),r[g].playingAs=d[r[g].game_id].info_thumbnails.home_colors.team_id===r[g].teamId?1:2,r[g].seasonname=d[r[g].game_id].season_name,r[g].score=d[r[g].game_id].score[0]+" - "+d[r[g].game_id].score[1],r[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let d=0;d<L.data.seasons[e.season].games.length;d++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[d],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[d].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",player_name:L.data.seasons[e.season].games[d].home_team_acronym+" "+L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score+" "+L.data.seasons[e.season].games[d].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[d].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[d].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[d].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",total:L.data.seasons[e.season].games[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[d].home_team+"_"+L.data.seasons[e.season].games[d].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},dyt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function uyt(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return d.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",dyt,[t.createVNode(_,t.mergeProps(d.carouselProps,{items:d.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const hyt=yC(cyt,[["render",uyt]]),shn="",lhn="",chn="",pyt={components:{GSCSlider:ag},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.game_status==1?(this.getDataProminent(e.gameId),e.is_live==1&&setInterval(()=>{this.getDataProminent(e.gameId)},3e5)):this.getDataProminentPrematch(e.gameId)}}},data(){return{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const a=[1,2,3];let r={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:a,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",r)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const a=e.split(/(\*.*?\*)/g).filter(L=>L.trim()!=="");let r=Math.ceil(a.length/2),I="";return a.forEach((L,d)=>{d===r&&(I+="<br/>"),L.startsWith("*")&&L.endsWith("*")?I+=`<span class="text-bold-prominent">${L.slice(1,-1)}</span>`:L.trim()!==""&&(I+=`<span class="text-prominent">${L}</span>`)}),I},async getDataProminentPrematch(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch");this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(a){return Promise.reject(a)}},async getDataProminent(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId);this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(a){return Promise.reject(a)}}}},fyt=e=>(t.pushScopeId("data-v-802190bb"),e=e(),t.popScopeId(),e),myt={class:"data-prominent-game"},gyt={class:"title-data"},yyt={class:"item-data-text"},vyt=["innerHTML"],_yt={class:"contain-stats-control"},byt={key:0,class:"title-total"},xyt={key:1,class:"item-total"},wyt=["onClick"],kyt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Cyt=[fyt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Tyt(e,a,r,I,L,d){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",myt,[t.createElementVNode("div",gyt,[r.game.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.dataProminent,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",yyt,[t.createElementVNode("div",{class:"container-text",innerHTML:d.textoConNegritas(n.description)},null,8,vyt),t.createElementVNode("div",_yt,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",byt,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",xyt,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],64))])):t.createCommentVNode("",!0),r.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:m=>d.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",kyt,Cyt))],12,wyt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Syt=Jr(pyt,[["render",Tyt],["__scopeId","data-v-802190bb"]]),uhn="";w0();const Eyt={components:{GSCCheckbox:C0},props:{game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId),this.getStatsData(e)},3e5),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1?(this.getDataPosession(e.gameId),await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId"]),...Al("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const a=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=a.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const I in r.data.teams)r.data.teams.hasOwnProperty(I)&&(this.arrTeams[I]=r.data.teams[I])}catch(a){return Promise.reject(a)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,r){if(!a.game_id)return this.objectZeroValues;const I=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,L=e[r].accomplished.avgPostGame/I;return e[r].accomplished.avgPostGame?{numberValue:L<1?L*100:L,numberBarPercent:e[r].accomplished.avgPostGame/I}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},b1=e=>(t.pushScopeId("data-v-79d1ea8e"),e=e(),t.popScopeId(),e),Ayt={key:0,class:"field-posesion-prominent"},Myt={key:0,class:"title"},Iyt={class:"info-data-item"},Pyt={class:"item-indicador"},Nyt={class:"item-indicador-value"},Byt={key:0},Oyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),zyt={key:0,class:"inactiveInfo"},Lyt={class:"info-data-item"},Fyt={class:"item-indicador"},Dyt={class:"item-indicador-value"},Vyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Ryt={class:"info-data-item"},$yt={class:"item-indicador"},jyt={class:"item-indicador-value"},Uyt={key:0},Hyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Gyt={class:"info-data-item"},Wyt={class:"item-indicador"},qyt={class:"item-indicador-value"},Yyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Zyt={key:0,class:"inactiveInfo"},Jyt={class:"info-data-item"},Xyt={class:"item-indicador"},Kyt={class:"item-indicador-value"},Qyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),evt={class:"info-data-item"},tvt={class:"item-indicador"},nvt={class:"item-indicador-value"},avt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function rvt(e,a,r,I,L,d){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ayt,[r.widthSection>760?(t.openBlock(),t.createElementBlock("div",Myt,"Porcentajes")):t.createCommentVNode("",!0),r.game.game_status==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Iyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Pyt,[t.createElementVNode("div",Nyt,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Byt,t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Oyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)],2)])],2),L.areInactiveVisible&&L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",zyt,[t.createElementVNode("div",Lyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Fyt,[t.createElementVNode("div",Dyt,t.toDisplayString(L.dataPosession.active_time.inactive_time),1),Vyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Ryt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",$yt,[t.createElementVNode("div",jyt,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Uyt,t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Hyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Gyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Wyt,[t.createElementVNode("div",qyt,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),Yyt]),r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2),L.areInactiveVisible&&L.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Zyt,[t.createElementVNode("div",Jyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Xyt,[t.createElementVNode("div",Kyt,t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.inactive_time),1),Qyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",evt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",tvt,[t.createElementVNode("div",nvt,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),avt]),r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const ivt=Jr(Eyt,[["render",rvt],["__scopeId","data-v-79d1ea8e"]]),hhn="",bC={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},EU=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},AU=bC.setup;bC.setup=AU?(e,a)=>(EU(),AU(e,a)):EU;const ovt={key:0,class:"text-left"},svt=["width","src"],lvt=["checked"],cvt=["width","src"],dvt={key:3,class:"text-right"};function uvt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",ovt,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,svt)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,lvt),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,cvt)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",dvt,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const MU=Jr(bC,[["render",uvt],["__scopeId","data-v-c17e5be3"]]),phn="";let IU=null;const xC={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)IU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),IU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},PU=()=>{t.useCssVars(e=>({"4d4a3978":e.colorBackgroundHome+"45","25cabcc9":e.colorBackgroundAway+"45","217e5cb2":e.colorBackgroundHome,"217b4ac1":e.colorBackgroundAway}))},NU=xC.setup;xC.setup=NU?(e,a)=>(PU(),NU(e,a)):PU;const i4=e=>(t.pushScopeId("data-v-45f17850"),e=e(),t.popScopeId(),e),hvt=[i4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],pvt=i4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),fvt=["src"],mvt=i4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),gvt=i4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),yvt=["src"],vvt=["src"],_vt={class:"text-container"};function bvt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},hvt,2)):t.createCommentVNode("",!0),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),pvt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,fvt),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),mvt,gvt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,yvt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,vvt),t.createElementVNode("div",_vt,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const xvt=Jr(xC,[["render",bvt],["__scopeId","data-v-45f17850"]]),mhn="";let BU=null;const wvt={components:{GSCThumbnailHighlightGameHistoric:xvt},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async fillData(){const e=Il.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=r.data.tournament_id;const I=a.data.games.findIndex(d=>d.game_id===this.game.gameId);this.gameInfo=a.data.games[I];const L=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=L.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].score[0]+" - "+L.data.thumbnails[L.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].home_team+".png":"",this.item.logoaway=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].visiting_team+".png":"",this.item.background=L.data.thumbnails[L.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.thumbnails[L.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)BU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},kvt={class:"highlights-prominent-game",ref:"gamesContainer"},Cvt={class:"video-partido-container__highlight"},Tvt={key:0,class:"video-partido-container__ribbon"},Svt={key:1,class:"video-partido-container__description"};function Evt(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",kvt,[t.createElementVNode("div",Cvt,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(L.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[L.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(L.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),L.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(L.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(L.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",Tvt,t.toDisplayString(L.tournamentId!=41?L.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):L.gameInfo.matchday_name=="Matchday 10"?"Final":L.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),L.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",Svt," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[L.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,"is-live":!0,"can-play-videos":r.canPlayVideos,background:L.item.background,matchday:L.item.match,"season-name":L.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=n=>d.onclickPlayVideos({data:L.item,type:1})),score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const Avt=Jr(wvt,[["render",Evt],["__scopeId","data-v-a97dd11b"]]),wC="/play-icn.svg",ghn="",Mvt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function Ivt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",d.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),onClick:a[1]||(a[1]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...g)=>d.closeClick&&d.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Pvt=Jr(Mvt,[["render",Ivt],["__scopeId","data-v-5ec23081"]]),yhn="",Nvt={class:"game-event__minute"},Bvt={class:"game-event__icon"},Ovt=["src"],zvt="/images/events/",Lvt=Jr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--icon-bottom":r.gameEvent.isHomeTeam?"30px":"-5px","--border-color":r.gameEvent.isSelected?"#336dff":"#747c83","--background-color":r.gameEvent.isSelected?"#336dff":"#0d1d29"})),L=t.computed(()=>{let g="";return r.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":r.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":r.gameEvent.category_id===10?g="icn-cambio.svg":r.gameEvent.category_id===21?g="icn-falta.svg":r.gameEvent.category_id===27?g="atajada.svg":r.gameEvent.category_id===17?g="fuera-de-lugar.svg":r.gameEvent.category_id===4||r.gameEvent.category_id===13||r.gameEvent.category_id===14||r.gameEvent.category_id===16||r.gameEvent.category_id===6&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===5&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===1&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===2&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===3&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===7&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===12&&r.gameEvent.event_type_id===1?g="gol.svg":r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?g="var.png":r.gameEvent.category_id===28?g="tiempo-agregado.svg":r.gameEvent.category_id===26?g="jugada-peligrosa.svg":r.gameEvent.category_id===22?g="penal-marcado.svg":r.gameEvent.category_id===15||r.gameEvent.category_id===23?g="penal-fallado.svg":r.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":r.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${zvt}${g}`});function d(){a("click-event",r.gameEvent)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-event",onClick:d,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Nvt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",Bvt,[t.createElementVNode("img",{src:L.value},null,8,Ovt)])],4))}},[["__scopeId","data-v-0bfb9e88"]]),_hn="",Fvt=e=>(t.pushScopeId("data-v-f5698f0e"),e=e(),t.popScopeId(),e),Dvt={class:"events-line"},Vvt={class:"events-line__events"},Rvt=Fvt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),$vt=Jr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function r(I){a("click-event",I)}return(I,L)=>(t.openBlock(),t.createElementBlock("div",Dvt,[t.createVNode(t.unref(ag),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",Vvt,[Rvt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,d=>(t.openBlock(),t.createBlock(Lvt,{key:d.id,"game-event":d,onClickEvent:r},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-f5698f0e"]]),xhn="",Py=e=>(t.pushScopeId("data-v-7f49ae1f"),e=e(),t.popScopeId(),e),jvt={class:"tooltip-data"},Uvt=["src"],Hvt=Py(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),Gvt=Py(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),Wvt={class:"game-events__team-logo"},qvt=["src"],Yvt={class:"game-events__event-info"},Zvt={key:0,class:"game-events__event-info__line"},Jvt={key:1,class:"game-events__event-info__info"},Xvt={class:"game-events__event-info__info__player-photo"},Kvt={key:0,class:"game-events__event-info__info__player-photo__img"},Qvt=["src"],e2t={class:"game-events__event-info__info__event-name"},t2t={class:"game-events__event-info__info__player-name"},n2t=[Py(()=>t.createElementVNode("img",{src:wC,alt:""},null,-1))],a2t=Py(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),r2t={class:"game-events__events"},i2t={class:"game-events__team-logo"},o2t=["src"],s2t={class:"game-events__event-info"},l2t={key:0,class:"game-events__event-info__line"},c2t={key:1,class:"game-events__event-info__info"},d2t={class:"game-events__event-info__info__player-photo"},u2t={key:0,class:"game-events__event-info__info__player-photo__img"},h2t=["src"],p2t={class:"game-events__event-info__info__event-name"},f2t={class:"game-events__event-info__info__player-name"},m2t=[Py(()=>t.createElementVNode("img",{src:wC,alt:""},null,-1))],g2t="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",y2t=Jr({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},setup(e){const a=e;let r=null,I=0;const L=t.ref([]),d=t.ref(new Map),g=t.ref(""),n=t.ref(null),_=t.ref({visible:!1,link:""});t.watch(()=>a.game,u=>{u&&u.gameId!==I&&(I=u.gameId,i(u.gameId,u.is_live))},{deep:!0,immediate:!0}),t.watch(()=>g.value,(u,h)=>{if(u!==h){const p=d.value.get(h),f=d.value.get(u);if(p&&(p.isSelected=!1),f){if(!f.playerShortName){const[y,w]=f.player_name.split(","),x=y.split(" ");let M="";for(const k of x)if(M+=` ${k}`,k.length>3)break;f.playerShortName=w&&y?`${w.trim().charAt(0)}.${M}`:""}f.isSelected=!0,n.value=f}}});function m(u){clearInterval(r),r=setInterval(()=>{i(u)},1e4)}async function i(u,h=!1){try{L.value=[],d.value=new Map,g.value="";let p=!1,f=await l(u);f&&(f=f.reduce((y,w)=>(w.category_id===0&&[13,17,19,21,23].includes(w.game_status_id)&&(p=!0),w.team_id&&(w.isHomeTeam=w.team_id===a.game.homeTeam.team_id,y.push(w),d.value.set(w.play_id,w)),y),[]),L.value=v(f)),!g.value&&L.value.length&&(g.value=L.value[0].play_id),h&&!p?m(u):p&&clearInterval(r)}catch(p){console.error(p)}}function v(u){return u.sort((h,p)=>b(h.match_lapse)+Number(h.minute)-(b(p.match_lapse)+Number(p.minute)))}function b(u){let h=0;switch(u){case 1:h=0;break;case 2:h=45;break;case 3:h=90;break;case 4:h=105;break;case 5:h=120;break}return h}async function l(u){try{const{data:{plays:h}}=await Il.get(`${g2t}${u}`,{headers:{Authorization:a.token}});return h}catch(h){throw new Error(h)}}function s(u){g.value=u.play_id}function o(){a.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"&&(_.value.visible=!0,_.value.link=n.value.video_link)}function c(){_.value.visible=!1,_.value.link=""}return(u,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Pvt,{data:_.value,onClose:c},{default:t.withCtx(()=>[t.createElementVNode("div",jvt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:_.value.link,format:"video/mp4"},null,8,Uvt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[Hvt,Gvt,t.createElementVNode("div",Wvt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,qvt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yvt,[n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Zvt)):t.createCommentVNode("",!0),n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Jvt,[t.createElementVNode("div",Xvt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",Kvt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,Qvt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",e2t,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",t2t," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},n2t)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),a2t,t.createElementVNode("div",r2t,[t.createVNode($vt,{"game-events":L.value,onClickEvent:s},null,8,["game-events"])]),t.createElementVNode("div",i2t,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,o2t)):t.createCommentVNode("",!0)]),t.createElementVNode("div",s2t,[n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",l2t)):t.createCommentVNode("",!0),n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",c2t,[t.createElementVNode("div",d2t,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",u2t,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,h2t)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",p2t,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",f2t," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},m2t)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-7f49ae1f"]]),Thn="",v2t={class:"toggle-buttons__background"},_2t=["onClick"],b2t={key:0,class:"toggle-buttons__button__img"},x2t=["src"],o4=Jr({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const r=e;t.useCssVars(g=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const I=t.ref(r.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,g=>{I.value=g}),t.watch(I,(g,n)=>{g!==n&&a("change",{index:g,button:r.buttons[g]})});function d(g){I.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",v2t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===m,right:_.img&&m>0}]),onClick:i=>d(m)},[_.img?(t.openBlock(),t.createElementBlock("div",b2t,[t.createElementVNode("img",{src:_.img,alt:""},null,8,x2t)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(_.text||_),1)],10,_2t))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),Ehn="",w2t="/images/cancha-horizontal-raw.jpg",Ahn="",kC=e=>(t.pushScopeId("data-v-b3a94cf2"),e=e(),t.popScopeId(),e),k2t={class:"tooltip__content"},C2t={key:0,class:"tooltip__content__category"},T2t={class:"tooltip__content__player"},S2t={class:"tooltip__content__player__name"},E2t={class:"tooltip__content__player__photo"},A2t=["src"],M2t={class:"tooltip__content__minute"},I2t={key:1,class:"tooltip__content__game"},P2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),N2t={class:"tooltip__content__game__round-abbreviation"},B2t={class:"tooltip__content__game__logo"},O2t=["src"],z2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),L2t={class:"tooltip__content__game__logo"},F2t=["src"],D2t={key:2,class:"tooltip__content__team"},V2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),R2t={class:"tooltip__content__team__logo"},$2t=["src"],j2t=Jr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--top":r.position.y,"--left":r.position.x})),L=t.computed(()=>`${r.event.player.player_name} ${r.event.player.player_lastname}`),d=t.computed(()=>{const[n]=r.event.momentOfPlay.split(":");return`${Number(n)}'`});function g(){a("close")}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",k2t,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",C2t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",T2t,[t.createElementVNode("div",S2t,t.toDisplayString(L.value),1),t.createElementVNode("div",E2t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,A2t)])]),t.createElementVNode("div",M2t,"Minuto: "+t.toDisplayString(d.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",I2t,[P2t,t.createElementVNode("div",N2t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",B2t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,O2t)]),z2t,t.createElementVNode("div",L2t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,F2t)])])):(t.openBlock(),t.createElementBlock("div",D2t,[V2t,t.createElementVNode("div",R2t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,$2t)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]);function CC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U2t(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function I(){return this instanceof I?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(I){var L=Object.getOwnPropertyDescriptor(e,I);Object.defineProperty(r,I,L.get?L:{enumerable:!0,get:function(){return e[I]}})}),r}var TC={exports:{}};function SC(){}SC.prototype={on:function(e,a,r){var I=this.e||(this.e={});return(I[e]||(I[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var I=this;function L(){I.off(e,L),a.apply(r,arguments)}return L._=a,this.on(e,L,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),I=0,L=r.length;for(I;I<L;I++)r[I].fn.apply(r[I].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),I=r[e],L=[];if(I&&a)for(var d=0,g=I.length;d<g;d++)I[d].fn!==a&&I[d].fn._!==a&&L.push(I[d]);return L.length?r[e]=L:delete r[e],this}},TC.exports=SC,TC.exports.TinyEmitter=SC;var H2t=TC.exports,G2t=H2t,W2t=new G2t;const Pu=CC(W2t),q2t=["id"],Y2t=["fill"],Z2t=["id"],J2t=["fill"],X2t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],K2t=["x","y","stroke-width","fill","stroke"],Q2t=["x","y"],e_t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,r=t.computed(()=>{const v=[];if(a.eventConnection.hasConnectionPath){const b=a.eventConnection.x1===a.eventConnection.x2&&a.eventConnection.y1===a.eventConnection.y2?1:2;let l=n(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1);const s=_(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1);let o=0,c=0;b===2&&(o=n(a.eventConnection.y2),c=_(a.eventConnection.x2));const u=n(a.eventConnection.y3),h=_(a.eventConnection.x3);b===1?v.push({x1:s,y1:l,x2:h,y2:u}):(v.push({x1:s,y1:l,x2:c,y2:o}),v.push({x1:c,y1:o,x2:h,y2:u}))}return v}),I=t.computed(()=>a.mainEventIdSelected!==0?a.eventConnection.relatedPlayId===a.mainEventIdSelected?1:.1:1),L=t.computed(()=>a.mainEventIdSelected!==0?a.eventConnection.relatedPlayId===a.mainEventIdSelected:!0),d=t.computed(()=>n(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1)),g=t.computed(()=>_(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1));function n(v){return(1-v)*100}function _(v){return v*100}function m(v){Pu.emit("mouse-over-event",{mouseEvent:v,eventConnection:a.eventConnection,position:{x:g.value,y:d.value}})}function i(){Pu.emit("mouse-leave-event",{mainEventId:a.eventConnection.relatedPlayId,eventId:a.eventConnection.playId})}return(v,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:I.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Y2t)],12,q2t),[[t.vShow,L.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:I.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,J2t)],12,Z2t),[[t.vShow,L.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(l,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[l.x1&&l.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${s}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:I.value}),"stroke-dasharray":s===0&&r.value.length===2?"none":"5,5",x1:`${l.x1}%`,y1:`${l.y1}%`,x2:`${l.x2}%`,y2:`${l.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&s===r.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,X2t)),[[t.vShow,L.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:m,onMouseleave:i,style:t.normalizeStyle({cursor:"pointer",opacity:I.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${d.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:I.value}),rx:"14",ry:"14"},null,12,K2t),t.createElementVNode("text",{x:`${g.value}%`,y:`${d.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:I.value})},t.toDisplayString(e.eventConnection.player.jersey),13,Q2t)],36),[[t.vShow,L.value]])],64))}},t_t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:a}){const r=e,I=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),L=t.computed(()=>r.eventConnections.getTeamColor());function d(_){a("click-event",_)}function g(_){a("mouse-over-event",_)}function n(){a("mouse-leave-event")}return(_,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(i,v)=>(t.openBlock(),t.createBlock(e_t,{key:i.id,color:L.value,"is-last-event":v===I.value.length-1,"event-connection":i,"main-event-id-selected":e.mainEventIdSelected,onClickEvent:d,onMouseOverEvent:g,onMouseLeaveEvent:n},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},Ihn="",n_t=e=>(t.pushScopeId("data-v-32f95543"),e=e(),t.popScopeId(),e),a_t={class:"soccer-chalkboard"},r_t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},i_t=n_t(()=>t.createElementVNode("img",{src:w2t,alt:""},null,-1)),o_t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s_t=Jr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=Mae()?0:1e3;Pu.on("mouse-over-time-event",b=>{_(b),setTimeout(()=>{_(b)},r)}),Pu.on("mouse-leave-time-event",b=>{setTimeout(()=>{d.value==b&&!I.value&&_(0)},r)}),Pu.on("mouse-over-event",b=>{i(b)}),Pu.on("mouse-leave-event",b=>{setTimeout(()=>{b.eventId===g.value&&v()},r)});const I=t.ref(!1),L=t.ref({}),d=t.ref(0),g=t.ref(0),n=t.ref({x:0,y:0});function _(b){d.value=b}function m(){I.value=!1}function i(b){const s=document.getElementById("soccerChalkboardField");if(s){const o=s.getBoundingClientRect(),c=b.position.x/100*o.width+14,u=b.position.y/100*o.height+14,h=c+170>o.width?o.width-170:c,p=u;d.value=b.eventConnection.relatedPlayId,g.value=b.eventConnection.playId,L.value=b.eventConnection,n.value={x:`${h}px`,y:`${p}px`},I.value=!0}}function v(){I.value=!1,d.value=0}return(b,l)=>(t.openBlock(),t.createElementBlock("div",a_t,[t.createElementVNode("div",r_t,[i_t,(t.openBlock(),t.createElementBlock("svg",o_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&s.hasTeam(e.teamsSelected)||e.listType==="players"&&s.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(t_t,{key:o,"event-connections":s,"main-event-id-selected":d.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),I.value?(t.openBlock(),t.createBlock(j2t,{key:0,position:n.value,event:L.value,onClose:m},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-32f95543"]]),Nhn="",OU=e=>(t.pushScopeId("data-v-f70399b8"),e=e(),t.popScopeId(),e),l_t={class:"events-timeline"},c_t=OU(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),d_t=["onMouseover","onMouseleave"],u_t=["id"],h_t=[OU(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],p_t=["fill"],f_t=["mask"],m_t=["stroke"],g_t=Jr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,r=["0'","45'","90'"],I=t.computed(()=>a.eventsConnections.reduce((g,n)=>{const _={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[m]=n.mainPlay.momentOfPlay.split(":"),i=parseInt(m);return i>=90?(_.minute=`${i}'`,_.left="100%"):(_.minute=`${i}'`,_.left=`${i/90*100}%`),g.push(_),g},[]));function L(g){Pu.emit("mouse-over-time-event",g.playId)}function d(g){Pu.emit("mouse-leave-time-event",g.playId)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",l_t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(r,(_,m)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:m},t.toDisplayString(_),1)),64)),c_t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(_,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(_.teamId)||e.listType==="players"&&e.playersSelected.has(_.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:m,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:_.left,cursor:"pointer"}),onMouseover:i=>L(_),onMouseleave:i=>d(_)},[t.createElementVNode("mask",{id:_.playId.toString(),fill:"white"},h_t,8,u_t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:_.color},null,8,p_t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${_.playId})`},null,8,f_t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:_.fontColor,"stroke-width":"0.7"},t.toDisplayString(_.minute),9,m_t)])],44,d_t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-f70399b8"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},y_t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},v_t={key:1},__t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b_t=["fill"],x_t={key:0,class:"checkbox__teams"},w_t={class:"checkbox__teams__logo"},k_t=["src"],C_t={class:"checkbox__teams__logo"},T_t=["src"],S_t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),L=t.computed(()=>{const m={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(m["background-color"]=r.boxBackgroundColor,m.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):m.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,m}),d=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(m[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),m});t.watch(()=>r.modelValue,m=>{m!==I.value&&(I.value=m)},{immediate:!0});function n(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,a("update:modelValue",I.value))}function _(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(d.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",v_t,[(t.openBlock(),t.createElementBlock("svg",__t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,b_t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",x_t,[t.createElementVNode("div",w_t,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,k_t)]),t.createElementVNode("div",C_t,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,T_t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},co=y_t(S_t,[["__scopeId","data-v-bcf3bcc6"]]),So=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},E_t={class:"container"},A_t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M_t=["fill"],I_t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P_t=["fill"],N_t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(a=>({"563e5242":e.width,a529e9a4:e.height})),(a,r)=>(t.openBlock(),t.createElementBlock("div",E_t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",A_t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,M_t)])):(t.openBlock(),t.createElementBlock("svg",I_t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,P_t)]))]))}},fm=So(N_t,[["__scopeId","data-v-166b6226"]]),Ny=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),B_t={class:"productivity"},O_t={class:"productivity__body__offensive"},z_t={class:"productivity__body__title"},L_t={class:"productivity__body__title__info"},F_t={class:"number-of-categories"},D_t={class:"productivity__body__categories"},V_t={class:"productivity__body__defensive-possession"},R_t={class:"productivity__body__title"},$_t={class:"productivity__body__title__info"},j_t={class:"number-of-categories"},U_t={class:"productivity__body__categories"},H_t={class:"productivity__body__title"},G_t={class:"productivity__body__title__info"},W_t={class:"number-of-categories"},q_t={class:"productivity__body__categories"},Y_t={class:"productivity__footer"},Z_t={class:"productivity__footer__offenses"},J_t=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),X_t={class:"productivity__footer__offenses__table"},K_t=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),Q_t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},ebt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),tbt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},nbt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),abt={class:"productivity__footer__offenses__table__row has-padding"},rbt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),ibt={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.ref(!1),d=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),_=t.computed(()=>r.productivityCategories.offensive.categories.reduce((l,s)=>(s.isSelected&&l++,l),0)),m=t.computed(()=>r.productivityCategories.defensive.categories.reduce((l,s)=>(s.isSelected&&l++,l),0)),i=t.computed(()=>r.productivityCategories.possession.categories.reduce((l,s)=>(s.isSelected&&l++,l),0));t.watch(()=>r.productivityCategories,l=>{g.value.areYellowCardsSelected=l.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=l.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=l.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,l=>{a("update:offensesConditions",l)},{deep:!0,immediate:!0});function v(l,s){s.isSelected=l,setTimeout(()=>{s.priority=r.numberOfCategoriesSelected},10)}function b(l){l==="offensive"?I.value=!I.value:l==="defensive"?L.value=!L.value:l==="possession"&&(d.value=!d.value)}return(l,s)=>(t.openBlock(),t.createElementBlock("div",B_t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",O_t,[t.createElementVNode("div",z_t,[t.createElementVNode("div",L_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",F_t,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=o=>b("offensive"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":I.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",D_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||I.value]])]),t.createElementVNode("div",V_t,[t.createElementVNode("div",R_t,[t.createElementVNode("div",$_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",j_t,"("+t.toDisplayString(m.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=o=>b("defensive"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":L.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",U_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||L.value]]),t.createElementVNode("div",H_t,[t.createElementVNode("div",G_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",W_t,"("+t.toDisplayString(i.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=o=>b("possession"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":d.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",q_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||d.value]])])],4),t.createElementVNode("div",Y_t,[t.createElementVNode("div",Z_t,[J_t,t.createElementVNode("div",X_t,[K_t,t.createElementVNode("div",Q_t,[ebt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",tbt,[nbt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",abt,[rbt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},obt=So(ibt,[["__scopeId","data-v-4df743e3"]]),s4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),sbt={class:"details__header"},lbt=s4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),cbt={class:"details__header__checkbox"},dbt={class:"details__body"},ubt={class:"details__body__playing-as"},hbt=["onClick"],pbt={class:"details__header"},fbt=s4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),mbt={class:"details__header__checkbox"},gbt={class:"details__body"},ybt=s4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),vbt={class:"details__body__game-section"},_bt=["onClick"],bbt={class:"details__body"},xbt=s4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),wbt={class:"details__body__game-section"},kbt=["onClick"],Cbt={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(i=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(i=>i.isSelected)),I=t.computed(()=>a.gameSections.every(i=>i.isSelected)),L=t.computed(()=>a.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(i){i?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,b)=>{v.isSelected=b===0})}function n(i){a.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function _(i){a.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,b)=>{v.isSelected=b===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.withDirectives(t.createElementVNode("div",sbt,[lbt,t.createElementVNode("div",cbt,[t.createVNode(t.unref(co),{label:"Todos",fontFamily:e.fontFamily,"model-value":r.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",dbt,[t.createElementVNode("div",ubt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>n(b)},t.toDisplayString(b.name),11,hbt))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",pbt,[fbt,t.createElementVNode("div",mbt,[t.createVNode(t.unref(co),{label:"Todos",fontFamily:e.fontFamily,"model-value":I.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",gbt,[ybt,t.createElementVNode("div",vbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,_bt))),128))])]),t.createElementVNode("div",bbt,[xbt,t.createElementVNode("div",wbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,kbt))),128))])])],4))}},Tbt=So(Cbt,[["__scopeId","data-v-9a3af80d"]]),Sbt={class:"scroll-container"},Ebt={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(a=>({"6aab424d":e.height,39848040:e.width})),(a,r)=>(t.openBlock(),t.createElementBlock("div",Sbt,[t.renderSlot(a.$slots,"default",{},void 0,!0)]))}},zU=So(Ebt,[["__scopeId","data-v-218f5976"]]),Abt={class:"tournaments"},Mbt={class:"tournaments__tournament"},Ibt={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.computed(()=>r.tournaments.filter(g=>g.isSelected).length);t.watch(()=>r.tournaments,g=>{const n=g.filter(_=>_.isSelected);I.value=n.length===g.length,a("change-filters-selected",n.length),a("update:filters",r.tournaments)},{immediate:!0,deep:!0});function d(g){r.tournaments.forEach((n,_)=>{n.isSelected=g||(_!==0?g:!0)})}return(g,n)=>(t.openBlock(),t.createElementBlock("div",Abt,[t.createVNode(zU,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",Mbt,[t.createVNode(t.unref(co),{"model-value":I.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":d},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id||_._id,class:"tournaments__tournament"},[t.createVNode(t.unref(co),{modelValue:_.isSelected,"onUpdate:modelValue":m=>_.isSelected=m,label:_.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":L.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Pbt=So(Ibt,[["__scopeId","data-v-590d8ab3"]]),Ea={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},Nbt={key:0,class:"plays-golstats__placeholder"},Bbt=["onClick"],Obt={key:0,class:"plays-golstats__item__value"},zbt={class:"plays-golstats__item__text"},Lbt={class:"plays-golstats__item__svg"},Fbt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dbt=["fill"],Vbt={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--grid-template-columns":r.type===Ea.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${r.svgWidth}px`,"--svg-height":`${r.svgHeight}px`}));t.watch(()=>r.categories,d=>{const g=d.filter(n=>n.isSelected);a("update:filters",g)},{immediate:!0,deep:!0});function L(d){d.isSelected||(r.categories.forEach(g=>{g.isSelected=!1}),d.isSelected=!0,r.type===Ea.GOLSTATS&&a("change-filters-selected",d.value))}return(d,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(I.value)},[t.createVNode(zU,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Ea).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Nbt," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:`k${_}`,class:"plays-golstats__item",onClick:m=>L(n)},[e.type===t.unref(Ea).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Obt,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",zbt,t.toDisplayString(n.name),1),t.createElementVNode("div",Lbt,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,Dbt)],512)),[[t.vShow,n.isSelected]])])],8,Bbt))),128))]),_:1},8,["height"])],4))}},LU=So(Vbt,[["__scopeId","data-v-af3c1673"]]),Rbt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},EC={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const a=e.which?e.which:e.keyCode();a>31&&(a<48||a>57)&&e.preventDefault()}}}},FU=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},DU=EC.setup;EC.setup=DU?(e,a)=>(FU(),DU(e,a)):FU;const $bt={class:"input-container"},jbt=["type","placeholder","value"],Ubt={class:"right-text"};function Hbt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",$bt,[t.createElementVNode("input",{type:r.inputType,placeholder:r.placeholder,value:r.value,style:t.normalizeStyle(d.inputStyle),onKeydown:a[0]||(a[0]=(...g)=>d.onKeyDown&&d.onKeyDown(...g)),onInput:a[1]||(a[1]=(...g)=>d.updateInputValue&&d.updateInputValue(...g))},null,44,jbt),t.createElementVNode("div",Ubt,t.toDisplayString(r.textRight),1)])}const VU=Rbt(EC,[["render",Hbt],["__scopeId","data-v-b73049e7"]]),Gbt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},AC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},RU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$U=AC.setup;AC.setup=$U?(e,a)=>(RU(),$U(e,a)):RU;const Wbt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),qbt=["src"],Ybt={key:1,class:"text"},Zbt=["src"],Jbt={class:"stats"},Xbt=Wbt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Kbt={class:"numstats"},Qbt={class:"leyend"};function ext(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,qbt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Ybt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Zbt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",Jbt,[Xbt,t.createElementVNode("div",Kbt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Qbt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const txt=Gbt(AC,[["render",ext],["__scopeId","data-v-fb269a1e"]]),nxt={class:"gsc-dropdown__main-container__item-selected"},axt=["height","width"],rxt=["stroke"],ixt={class:"gsc-dropdown__items-container"},oxt=["onClick"],sxt={key:0,class:"gsc-dropdown__items-footer"},Df={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const r=e,I=t.ref({}),L=t.ref(null),d=t.ref(r.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>r.items,(l,s)=>{if(!r.modelValue&&(!r.onlyFirstTime||!s||!s.length)&&l&&l.length){if(r.defaultItemByProp){const o=r.items.findIndex(c=>c[r.defaultItemByProp.propName]===r.defaultItemByProp.value);o!==-1?(d.value=o,I.value=l[o]):(d.value=0,I.value=l[0])}else I.value=l[r.defaultItemByIndex];a("input",I.value)}},{immediate:!0}),t.watch(()=>r.modelValue,l=>{if(l){const s=r.items.findIndex(o=>typeof l=="object"?JSON.stringify(o)===JSON.stringify(l):o===l);s!==-1&&(d.value=s,I.value=r.items[s],a("update:modelValue",I.value))}},{immediate:!0});const n=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),_=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function m(){r.isDisabled||(g.value=!g.value)}function i(l){L.value&&!L.value.contains(l.target)&&(g.value=!1)}function v(l,s){r.isMultipleOption?d.value=-1:(d.value=s,g.value=!1),I.value=l,a("input",I.value),a("update:modelValue",I.value)}function b(){g.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",i)}),t.onBeforeMount(()=>{document.removeEventListener("click",i)}),(l,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:L,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:m},[t.createElementVNode("div",nxt,[t.renderSlot(l.$slots,"default",{selectedItem:I.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(_.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,rxt)],8,axt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ixt,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:c===d.value}]),key:c,onClick:u=>v(o,c)},[t.renderSlot(l.$slots,"availableItem",{item:o})],10,oxt))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",sxt,[t.createVNode(t.unref(txt),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:b})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},By={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},x1=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),lxt={class:"universe"},cxt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),dxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),uxt={class:"universe__inputs"},hxt={class:"universe__inputs__input"},pxt={class:"universe__inputs__checkbox"},fxt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),mxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),gxt={class:"universe__inputs"},yxt={class:"universe__inputs__input"},vxt={class:"universe__inputs__checkbox"},_xt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),bxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),xxt={class:"universe__dropdown"},wxt={class:"selected-item"},jU=11,kxt={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:a,emit:r}){const I=e,L=t.ref(!1),d=t.ref(!1),g=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>I.universeFilters,l=>{n.value={...l,lastMonths:l.selectedMonth?l.selectedMonth:l.lastMonths[jU],statistics:{...l.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,l=>{L.value=!l.value.minutesPlayed||Number(l.value.minutesPlayed)===0,d.value=!l.value.percentMinutesPlayed||Number(l.value.percentMinutesPlayed)===0,g.value=!l.value.lastMonths||Number(l.value.lastMonths)===0,r("update:universeFilters",l)},{deep:!0,immediate:!0});function _(l){n.value.minutesPlayed=l}function m(l){n.value.percentMinutesPlayed=l}function i(l,s){switch(s){case"minutes":L.value=l,l&&(n.value.minutesPlayed=0);break;case"percent":d.value=l,l&&(n.value.percentMinutesPlayed=0);break;case"months":g.value=l,l&&(n.value.lastMonths=0);break}}function v(){n.value={...I.universeFilters,lastMonths:I.universeFilters.lastMonths[jU],statistics:{...I.universeFilters.statistics}}}function b(l){n.value.lastMonths=l}return a({resetFilters:v}),(l,s)=>(t.openBlock(),t.createElementBlock("div",lxt,[cxt,dxt,t.createElementVNode("div",uxt,[t.createElementVNode("div",hxt,[t.createVNode(t.unref(VU),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:_},null,8,["value"])]),t.createElementVNode("div",pxt,[t.createVNode(t.unref(co),{modelValue:L.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=o=>i(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),fxt,mxt,t.createElementVNode("div",gxt,[t.createElementVNode("div",yxt,[t.createVNode(t.unref(VU),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:m},null,8,["value"])]),t.createElementVNode("div",vxt,[t.createVNode(t.unref(co),{modelValue:d.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=o=>i(o,"percent"))},null,8,["modelValue","fontFamily"])])]),_xt,bxt,t.createElementVNode("div",xxt,[t.createVNode(t.unref(Df),t.mergeProps(t.unref(By),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:b}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",wxt,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Cxt=So(kxt,[["__scopeId","data-v-b1fc2fa6"]]),UU=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},Txt={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],a=this.min===void 0?0:this.min,r=e.length?e.length-1:100,I=this.max===void 0?r:this.max,L=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(L=1);let d=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(d=e.length-2),I<=a)throw new Error("Invalid props min or max");if(L>d)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,n=g%this.step;return n&&(g=g+this.step-n),{valueMin:L<a?a:L,valueMax:d>I?I:d,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let a=parseFloat(e.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:e.target.value=this.valueMin},onInputMaxChange(e){let a=parseFloat(e.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,L=I%this.step;I-=L,I<this.minimum?I=this.minimum:I>this.valueMax-this.rangeMarginValue&&(I=this.valueMax-this.rangeMarginValue),this.valueMin=I},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,L=I%this.step;I-=L,I<this.valueMin+this.rangeMarginValue?I=this.valueMin+this.rangeMarginValue:I>this.maximum&&(I=this.maximum),this.valueMax=I},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let a=this.step;e.deltaY<0&&(a=-a),e.shiftKey&&e.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):e.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):e.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],a=e.length?e.length-1:100;return this.max===void 0?a:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},Sxt={class:"bar"},Ext=["min","max","step","value"],Axt={class:"caption"},Mxt={class:"min-caption"},Ixt={class:"bar-inner"},Pxt=["min","max","step","value"],Nxt={class:"caption"},Bxt={class:"max-caption"},Oxt={key:0,class:"ruler"},zxt={key:1,class:"sub-ruler"},Lxt={key:2,class:"labels"};function Fxt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.baseClassName,L.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=t.withModifiers((...g)=>d.onMouseWheel&&d.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",Sxt,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:d.barMin+"%"}),onClick:a[0]||(a[0]=(...g)=>d.onBarLeftClick&&d.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:d.minimum,max:d.maximum,step:r.step,value:L.valueMin,onInput:a[1]||(a[1]=t.withModifiers((...g)=>d.onInputMinChange&&d.onInputMinChange(...g),["stop","prevent"]))},null,40,Ext),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...g)=>d.onLeftThumbMousedown&&d.onLeftThumbMousedown(...g)),onTouchstart:a[3]||(a[3]=(...g)=>d.onLeftThumbMousedown&&d.onLeftThumbMousedown(...g))},[t.createElementVNode("div",Axt,[t.createElementVNode("span",Mxt,t.toDisplayString(r.minCaption||d.barMinVal),1)])],32),t.createElementVNode("div",Ixt,[t.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...g)=>d.onInnerBarLeftClick&&d.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...g)=>d.onInnerBarRightClick&&d.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:d.minimum,max:d.maximum,step:r.step,value:L.valueMax,onInput:a[6]||(a[6]=t.withModifiers((...g)=>d.onInputMaxChange&&d.onInputMaxChange(...g),["stop","prevent"]))},null,40,Pxt),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...g)=>d.onRightThumbMousedown&&d.onRightThumbMousedown(...g)),onTouchstart:a[8]||(a[8]=(...g)=>d.onRightThumbMousedown&&d.onRightThumbMousedown(...g))},[t.createElementVNode("div",Nxt,[t.createElementVNode("span",Bxt,t.toDisplayString(r.maxCaption||d.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:d.barMax+"%"}),onClick:a[9]||(a[9]=(...g)=>d.onBarRightClick&&d.onBarRightClick(...g))},null,4)]),r.ruler?(t.openBlock(),t.createElementBlock("div",Oxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),d.subStepCount?(t.openBlock(),t.createElementBlock("div",zxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),r.label?(t.openBlock(),t.createElementBlock("div",Lxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const Dxt=UU(Txt,[["render",Fxt]]),MC={components:{MultiRangeSlider:Dxt},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},HU=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},GU=MC.setup;MC.setup=GU?(e,a)=>(HU(),GU(e,a)):HU;const Vxt={class:"center"},Rxt={class:"bar-ref"},$xt={class:"bar-ref-element-left"},jxt={class:"bar-ref-element-right"};function Uxt(e,a,r,I,L,d){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(d.customStyle)},[t.createElementVNode("div",Vxt,[t.createElementVNode("div",Rxt,[t.createElementVNode("div",$xt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(d.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(d.customStyleValue)},t.toDisplayString(L.minValueLocal)+t.toDisplayString(r.minSuffix),5)]),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(d.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(d.customStyleValue)},t.toDisplayString(L.maxValueLocal)+t.toDisplayString(r.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:r.minLimit,max:r.maxLimit,step:1,ruler:!1,label:!1,"min-value":L.minValueLocal,"max-value":L.maxValueLocal,"range-margin":0,onInput:d.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const WU=UU(MC,[["render",Uxt]]),Hxt={class:"template-distance"},Gxt={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:a}){const r=e,I=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>I.value,d=>{a("update:distanceFilters",d)},{deep:!0}),t.watch(()=>r.distance,d=>{I.value.minValue=d.minValue,I.value.maxValue=d.maxValue,I.value.minLimit=d.minLimit,I.value.maxLimit=d.maxLimit},{immediate:!0,deep:!0});function L(d){I.value.minValue=d.minValue,I.value.maxValue=d.maxValue}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Hxt,[t.createVNode(t.unref(WU),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":I.value.minLimit,"max-limit":I.value.maxLimit,"min-value":I.value.minValue,"max-value":I.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:L},null,8,["min-limit","max-limit","min-value","max-value"])]))}},Wxt=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),qxt={class:"template-games"},Yxt={class:"template-games__header"},Zxt=Wxt(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),Jxt={class:"template-games__header__all-games"},Xxt={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.computed(()=>r.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>r.gamesFilters,g=>{a("update:gamesFilters",g)},{deep:!0}),t.watch(L,g=>{I.value=g===r.gamesFilters.length,a("update:gamesFilters",r.gamesFilters)},{immediate:!0});const d=g=>{g?r.gamesFilters.forEach(n=>{n.isSelected=g}):r.gamesFilters.forEach((n,_)=>{n.isSelected=_===0}),I.value=g};return(g,n)=>(t.openBlock(),t.createElementBlock("div",qxt,[t.createElementVNode("div",Yxt,[Zxt,t.createElementVNode("div",Jxt,[t.createVNode(t.unref(co),{modelValue:I.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":d},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"template-games__game"},[t.createVNode(t.unref(co),{modelValue:_.isSelected,"onUpdate:modelValue":i=>_.isSelected=i,label:_.label,"teams-ids":_.teamsIds,"avoid-interaction":L.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},Kxt=So(Xxt,[["__scopeId","data-v-be32e3d8"]]),Qxt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},IC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},qU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},YU=IC.setup;IC.setup=YU?(e,a)=>(qU(),YU(e,a)):qU;const e3t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),t3t=["src"],n3t={key:1,class:"text"},a3t=["src"],r3t={class:"stats"},i3t=e3t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),o3t={class:"numstats"},s3t={class:"leyend"};function l3t(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,t3t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",n3t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,a3t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",r3t,[i3t,t.createElementVNode("div",o3t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",s3t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const PC=Qxt(IC,[["render",l3t],["__scopeId","data-v-fb269a1e"]]),c3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},NC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ZU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},JU=NC.setup;NC.setup=JU?(e,a)=>(ZU(),JU(e,a)):ZU;const d3t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),u3t=["src"],h3t={key:1,class:"text"},p3t=["src"],f3t={class:"stats"},m3t=d3t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),g3t={class:"numstats"},y3t={class:"leyend"};function v3t(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,u3t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",h3t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,p3t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",f3t,[m3t,t.createElementVNode("div",g3t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",y3t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const _3t=c3t(NC,[["render",v3t],["__scopeId","data-v-fb269a1e"]]),b3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},x3t={key:1},w3t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k3t=["fill"],C3t={key:0,class:"checkbox__teams"},T3t={class:"checkbox__teams__logo"},S3t=["src"],E3t={class:"checkbox__teams__logo"},A3t=["src"],M3t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),L=t.computed(()=>{const m={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(m["background-color"]=r.boxBackgroundColor,m.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):m.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,m}),d=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(m[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),m});t.watch(()=>r.modelValue,m=>{m!==I.value&&(I.value=m)},{immediate:!0});function n(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,a("update:modelValue",I.value))}function _(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(d.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",x3t,[(t.openBlock(),t.createElementBlock("svg",w3t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,k3t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",C3t,[t.createElementVNode("div",T3t,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,S3t)]),t.createElementVNode("div",E3t,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,A3t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},I3t=b3t(M3t,[["__scopeId","data-v-bcf3bcc6"]]),P3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},BC={components:{GSCButton:_3t,GSCCheckbox:I3t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,a)=>({sector:a+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const a=e.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((r,I)=>{r.active=e.includes(I+1),this.validateField(I)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var a=[];for(let r=0;r<e.length;r++)e[r].active&&a.push(r+1);this.$emit("update:modelValue",a)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var a=0;this.sectors[e].active=!this.sectors[e].active;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,a==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,a==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,a==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,a==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},XU=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},KU=BC.setup;BC.setup=KU?(e,a)=>(XU(),KU(e,a)):XU;const N3t={class:"gsc-field"},B3t={class:"gsc-field__title-checked"},O3t={class:"gsc-field__title-checked__title"},z3t={class:"gsc-field__container-field"},L3t={class:"gsc-field__container-field__field"},F3t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},D3t=["stroke"],V3t=["stroke","stroke-width"],R3t=["stroke","stroke-width"],$3t=["stroke-width","stroke"],j3t=["fill","fill-opacity","stroke","stroke-width"],U3t=["fill","fill-opacity","stroke","stroke-width"],H3t=["fill","fill-opacity","stroke","stroke-width"],G3t=["fill","fill-opacity","stroke","stroke-width"],W3t=["fill","fill-opacity","stroke","stroke-width"],q3t=["fill","fill-opacity","stroke","stroke-width"],Y3t=["fill","fill-opacity","stroke","stroke-width"],Z3t=["fill","fill-opacity","stroke","stroke-width"],J3t=["fill","fill-opacity","stroke","stroke-width"],X3t=["fill","fill-opacity","stroke","stroke-width"],K3t=["fill","fill-opacity","stroke","stroke-width"],Q3t=["fill","fill-opacity","stroke","stroke-width"],e4t=["fill","fill-opacity","stroke","stroke-width"],t4t=["fill","fill-opacity","stroke","stroke-width"],n4t=["fill","fill-opacity","stroke","stroke-width"],a4t=["fill","fill-opacity","stroke","stroke-width"],r4t={class:"gsc-field__container-field__bar-buttons"};function i4t(e,a,r,I,L,d){const g=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",N3t,[t.createElementVNode("div",B3t,[t.createElementVNode("div",O3t,t.toDisplayString(r.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(r.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:r.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":r.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:L.all,key:L.update,"model-value":L.all,"onUpdate:modelValue":d.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",z3t,[t.createElementVNode("div",L3t,[(t.openBlock(),t.createElementBlock("svg",F3t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:r.colorLineField},null,8,D3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+d.translx+"px, "+d.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,V3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+d.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,R3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+d.translxcircle+"px, "+d.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":r.borderWidthLineField,stroke:r.colorLineField},null,12,$3t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:L.sectors[0].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[0]||(a[0]=_=>d.selectSector(0))},null,8,j3t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:L.sectors[1].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[1]||(a[1]=_=>d.selectSector(1))},null,8,U3t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:L.sectors[2].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[2]||(a[2]=_=>d.selectSector(2))},null,8,H3t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:L.sectors[3].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[3]||(a[3]=_=>d.selectSector(3))},null,8,G3t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:L.sectors[4].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[4]||(a[4]=_=>d.selectSector(4))},null,8,W3t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:L.sectors[5].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[5]||(a[5]=_=>d.selectSector(5))},null,8,q3t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:L.sectors[6].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[6]||(a[6]=_=>d.selectSector(6))},null,8,Y3t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:L.sectors[7].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[7]||(a[7]=_=>d.selectSector(7))},null,8,Z3t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:L.sectors[8].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[8]||(a[8]=_=>d.selectSector(8))},null,8,J3t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:L.sectors[9].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[9]||(a[9]=_=>d.selectSector(9))},null,8,X3t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:L.sectors[10].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[10]||(a[10]=_=>d.selectSector(10))},null,8,K3t),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:L.sectors[11].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[11]||(a[11]=_=>d.selectSector(11))},null,8,Q3t),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:L.sectors[12].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[12]||(a[12]=_=>d.selectSector(12))},null,8,e4t),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:L.sectors[13].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[13]||(a[13]=_=>d.selectSector(13))},null,8,t4t),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:L.sectors[14].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[14]||(a[14]=_=>d.selectSector(14))},null,8,n4t),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:L.sectors[15].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[15]||(a[15]=_=>d.selectSector(15))},null,8,a4t)]))]),t.createElementVNode("div",r4t,[(t.openBlock(),t.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:d.btn14,key:L.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:d.btn24,key:L.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:d.btn34,key:L.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:d.btn44,key:L.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const QU=P3t(BC,[["render",i4t],["__scopeId","data-v-b85699b8"]]),o4t={class:"toggle-buttons__background"},s4t=["onClick"],l4t={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:a}){const r=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const I=t.ref(r.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,g=>{I.value=g}),t.watch(I,(g,n)=>{g!==n&&a("change",{index:g,button:r.buttons[g]})});function d(g){I.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",o4t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===m}]),onClick:i=>d(m)},t.toDisplayString(_.text||_),11,s4t))),128))],4)]))}},c4t=So(l4t,[["__scopeId","data-v-ac2af001"]]);function eH(e,a){return function(){return e.apply(a,arguments)}}const{toString:d4t}=Object.prototype,{getPrototypeOf:OC}=Object,l4=(e=>a=>{const r=d4t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),op=e=>(e=e.toLowerCase(),a=>l4(a)===e),c4=e=>a=>typeof a===e,{isArray:w1}=Array,Oy=c4("undefined");function u4t(e){return e!==null&&!Oy(e)&&e.constructor!==null&&!Oy(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tH=op("ArrayBuffer");function h4t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&tH(e.buffer),a}const p4t=c4("string"),Nu=c4("function"),nH=c4("number"),d4=e=>e!==null&&typeof e=="object",f4t=e=>e===!0||e===!1,u4=e=>{if(l4(e)!=="object")return!1;const a=OC(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m4t=op("Date"),g4t=op("File"),y4t=op("Blob"),v4t=op("FileList"),_4t=e=>d4(e)&&Nu(e.pipe),b4t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Nu(e.append)&&((a=l4(e))==="formdata"||a==="object"&&Nu(e.toString)&&e.toString()==="[object FormData]"))},x4t=op("URLSearchParams"),w4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zy(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),w1(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function aH(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const rH=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),iH=e=>!Oy(e)&&e!==rH;function zC(){const{caseless:e}=iH(this)&&this||{},a={},r=(I,L)=>{const d=e&&aH(a,L)||L;u4(a[d])&&u4(I)?a[d]=zC(a[d],I):u4(I)?a[d]=zC({},I):w1(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&zy(arguments[I],r);return a}const k4t=(e,a,r,{allOwnKeys:I}={})=>(zy(a,(L,d)=>{r&&Nu(L)?e[d]=eH(L,r):e[d]=L},{allOwnKeys:I}),e),C4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T4t=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},S4t=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&OC(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},E4t=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},A4t=e=>{if(!e)return null;if(w1(e))return e;let a=e.length;if(!nH(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},M4t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&OC(Uint8Array)),I4t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},P4t=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},N4t=op("HTMLFormElement"),B4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),oH=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),O4t=op("RegExp"),sH=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};zy(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},z4t=e=>{sH(e,(a,r)=>{if(Nu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(Nu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},L4t=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return w1(e)?I(e):I(String(e).split(a)),r},F4t=()=>{},D4t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),LC="abcdefghijklmnopqrstuvwxyz",lH="0123456789",cH={DIGIT:lH,ALPHA:LC,ALPHA_DIGIT:LC+LC.toUpperCase()+lH},V4t=(e=16,a=cH.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function R4t(e){return!!(e&&Nu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $4t=e=>{const a=new Array(10),r=(I,L)=>{if(d4(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=w1(I)?[]:{};return zy(I,(g,n)=>{const _=r(g,L+1);!Oy(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},j4t=op("AsyncFunction"),U4t=e=>e&&(d4(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),ar={isArray:w1,isArrayBuffer:tH,isBuffer:u4t,isFormData:b4t,isArrayBufferView:h4t,isString:p4t,isNumber:nH,isBoolean:f4t,isObject:d4,isPlainObject:u4,isUndefined:Oy,isDate:m4t,isFile:g4t,isBlob:y4t,isRegExp:O4t,isFunction:Nu,isStream:_4t,isURLSearchParams:x4t,isTypedArray:M4t,isFileList:v4t,forEach:zy,merge:zC,extend:k4t,trim:w4t,stripBOM:C4t,inherits:T4t,toFlatObject:S4t,kindOf:l4,kindOfTest:op,endsWith:E4t,toArray:A4t,forEachEntry:I4t,matchAll:P4t,isHTMLForm:N4t,hasOwnProperty:oH,hasOwnProp:oH,reduceDescriptors:sH,freezeMethods:z4t,toObjectSet:L4t,toCamelCase:B4t,noop:F4t,toFiniteNumber:D4t,findKey:aH,global:rH,isContextDefined:iH,ALPHABET:cH,generateString:V4t,isSpecCompliantForm:R4t,toJSONObject:$4t,isAsyncFn:j4t,isThenable:U4t};function qo(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}ar.inherits(qo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dH=qo.prototype,uH={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{uH[e]={value:e}}),Object.defineProperties(qo,uH),Object.defineProperty(dH,"isAxiosError",{value:!0}),qo.from=(e,a,r,I,L,d)=>{const g=Object.create(dH);return ar.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),qo.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const H4t=null;function FC(e){return ar.isPlainObject(e)||ar.isArray(e)}function hH(e){return ar.endsWith(e,"[]")?e.slice(0,-2):e}function pH(e,a,r){return e?e.concat(a).map(function(I,L){return I=hH(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function G4t(e){return ar.isArray(e)&&!e.some(FC)}const W4t=ar.toFlatObject(ar,{},null,function(e){return/^is[A-Z]/.test(e)});function h4(e,a,r){if(!ar.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=ar.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!ar.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&ar.isSpecCompliantForm(a);if(!ar.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(ar.isDate(l))return l.toISOString();if(!n&&ar.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return ar.isArrayBuffer(l)||ar.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(ar.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(ar.isArray(l)&&G4t(l)||(ar.isFileList(l)||ar.endsWith(s,"[]"))&&(c=ar.toArray(l)))return s=hH(s),c.forEach(function(u,h){!(ar.isUndefined(u)||u===null)&&a.append(g===!0?pH([s],h,d):g===null?s:s+"[]",_(u))}),!1}return FC(l)?!0:(a.append(pH(o,s,d),_(l)),!1)}const i=[],v=Object.assign(W4t,{defaultVisitor:m,convertValue:_,isVisitable:FC});function b(l,s){if(!ar.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),ar.forEach(l,function(o,c){(!(ar.isUndefined(o)||o===null)&&L.call(a,o,ar.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!ar.isObject(e))throw new TypeError("data must be an object");return b(e),a}function fH(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function DC(e,a){this._pairs=[],e&&h4(e,this,a)}const mH=DC.prototype;mH.append=function(e,a){this._pairs.push([e,a])},mH.toString=function(e){const a=e?function(r){return e.call(this,r,fH)}:fH;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function q4t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gH(e,a,r){if(!a)return e;const I=r&&r.encode||q4t,L=r&&r.serialize;let d;if(L?d=L(a,r):d=ar.isURLSearchParams(a)?a.toString():new DC(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class Y4t{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ar.forEach(this.handlers,function(r){r!==null&&a(r)})}}const yH=Y4t,vH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z4t=typeof URLSearchParams<"u"?URLSearchParams:DC,J4t=typeof FormData<"u"?FormData:null,X4t=typeof Blob<"u"?Blob:null,K4t={isBrowser:!0,classes:{URLSearchParams:Z4t,FormData:J4t,Blob:X4t},protocols:["http","https","file","blob","url","data"]},_H=typeof window<"u"&&typeof document<"u",Q4t=(e=>_H&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),e5t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),t5t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_H,hasStandardBrowserEnv:Q4t,hasStandardBrowserWebWorkerEnv:e5t},Symbol.toStringTag,{value:"Module"})),sp={...t5t,...K4t};function n5t(e,a){return h4(e,new sp.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return sp.isNode&&ar.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function a5t(e){return ar.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function r5t(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function bH(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&ar.isArray(L)?L.length:g,_?(ar.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!ar.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&ar.isArray(L[g])&&(L[g]=r5t(L[g])),!n)}if(ar.isFormData(e)&&ar.isFunction(e.entries)){const r={};return ar.forEachEntry(e,(I,L)=>{a(a5t(I),L,r,0)}),r}return null}function i5t(e,a,r){if(ar.isString(e))try{return(a||JSON.parse)(e),ar.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const VC={transitional:vH,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=ar.isObject(e);if(L&&ar.isHTMLForm(e)&&(e=new FormData(e)),ar.isFormData(e))return I?JSON.stringify(bH(e)):e;if(ar.isArrayBuffer(e)||ar.isBuffer(e)||ar.isStream(e)||ar.isFile(e)||ar.isBlob(e))return e;if(ar.isArrayBufferView(e))return e.buffer;if(ar.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return n5t(e,this.formSerializer).toString();if((d=ar.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return h4(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),i5t(e)):e}],transformResponse:[function(e){const a=this.transitional||VC.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(e&&ar.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?qo.from(d,qo.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sp.classes.FormData,Blob:sp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ar.forEach(["delete","get","head","post","put","patch"],e=>{VC.headers[e]={}});const RC=VC,o5t=ar.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),s5t=e=>{const a={};let r,I,L;return e&&e.split(`
123
+ */const Jc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},vU={itemsToShow:{default:Jc.itemsToShow,type:Number},itemsToScroll:{default:Jc.itemsToScroll,type:Number},wrapAround:{default:Jc.wrapAround,type:Boolean},throttle:{default:Jc.throttle,type:Number},snapAlign:{default:Jc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Jc.transition,type:Number},breakpoints:{default:Jc.breakpoints,type:Object},autoplay:{default:Jc.autoplay,type:Number},pauseAutoplayOnHover:{default:Jc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Jc.mouseDrag,type:Boolean},touchDrag:{default:Jc.touchDrag,type:Boolean},dir:{default:Jc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Jc.i18n,type:Object},settings:{default(){return{}},type:Object}};function cgt({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function dgt({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function mC({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function ugt({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:mC({val:g,max:r-d,min:0})}function _U(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,..._U(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function gC({val:e,max:a,min:r=0}){return e>a?gC({val:e-(a+1),max:a,min:r}):e<r?gC({val:e+(a+1),max:a,min:r}):e}function hgt(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function pgt(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function fgt(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var mgt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Jc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},fgt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),ggt=t.defineComponent({name:"Carousel",props:vU,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Jc));let i=Object.assign({},Jc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=pgt(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=cgt({config:m,slidesCount:_.value}),c.value=dgt({config:m,slidesCount:_.value}),m.wrapAround||(b.value=mC({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=hgt(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:mC({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=gC({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>ugt({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(vU).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=_U(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(mgt)])}}}),bU;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bU||(bU={}));var ygt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Jc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const vgt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},_gt=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),bgt={class:"gsc-carousel"},xgt={key:0},wgt=_gt(()=>t.createElementVNode("div",null,"no hay",-1)),kgt=[wgt],Cgt={class:"gsc-carousel__2d__slides"},Tgt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sgt=["fill"],Egt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Agt=["fill"],Mgt={class:"gsc-carousel__2d__navigation"},Igt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pgt=["stroke"],Ngt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bgt=["onClick"],Ogt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zgt=["stroke"],Lgt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){if(o&&o.length&&L.value){if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",bgt,[I.is3d?(t.openBlock(),t.createElementBlock("div",xgt,kgt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Cgt,[t.createVNode(t.unref(ggt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(ygt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Tgt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Sgt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Egt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Agt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Mgt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",Igt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,Pgt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Ngt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,Bgt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ogt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,zgt)]))])):t.createCommentVNode("",!0)])],2))]))}},Fgt=vgt(Lgt,[["__scopeId","data-v-cf3e4ab5"]]),yC=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r};let xU=null;const vC={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)xU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),xU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wU=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},kU=vC.setup;vC.setup=kU?(e,a)=>(wU(),kU(e,a)):wU;const a4=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),Dgt=a4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Vgt=[Dgt],Rgt=a4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),$gt=["src"],jgt=a4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Ugt=a4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Hgt=["src"],Ggt=["src"],Wgt={class:"text-container"};function qgt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},Vgt,2),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Rgt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,$gt),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),jgt,Ugt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,Hgt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,Ggt),t.createElementVNode("div",Wgt,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const Ygt=yC(vC,[["render",qgt],["__scopeId","data-v-71797e9d"]]);let CU=null;const _C={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)CU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),CU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TU=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},SU=_C.setup;_C.setup=SU?(e,a)=>(TU(),SU(e,a)):TU;const r4=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),Zgt=r4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Jgt=r4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Xgt=[Jgt],Kgt={class:"player-container"},Qgt=["src"],eyt=["src"],tyt=["src"],nyt={class:"container-score"},ayt=["src"],ryt=["src"],iyt=["src"],oyt=r4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),syt=r4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function lyt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[Zgt,t.createElementVNode("div",{class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},Xgt,2),t.createElementVNode("div",Kgt,[t.createElementVNode("div",{class:t.normalizeClass(d.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(d.matchboxContainer)},t.toDisplayString(r.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(d.seasonnameContainer)},t.toDisplayString(r.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.date),3)],2),r.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(d.texttitle)},t.toDisplayString(r.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(d.texttitle2)},t.toDisplayString(r.nameCategory),3)),r.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:r.photoProfile,class:t.normalizeClass(d.playerimage)},null,10,Qgt)):t.createCommentVNode("",!0),r.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:r.photoProfile,alt:""},null,8,eyt)):t.createCommentVNode("",!0),r.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:r.photoProfile,class:"img-number"},null,8,tyt)):t.createCommentVNode("",!0),t.createElementVNode("div",nyt,[t.createElementVNode("div",{class:t.normalizeClass(d.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameHomeTeam),3),t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,ayt),t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(d.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(d.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(d.teamscore)},t.toDisplayString(r.scoreAway),3),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,ryt),t.createElementVNode("span",{class:t.normalizeClass(d.teamname)},t.toDisplayString(r.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iyt),oyt,syt],2)}const cyt={components:{GSCCarousel:Fgt,GSCThumbnailHighlightGameHistoric:Ygt,GSCThumbnailHighlightGamePlayer:yC(_C,[["render",lyt],["__scopeId","data-v-83c7df16"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),r=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],I=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${r} ${I} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},play(e){this.$emit("play",e)},async getData(e){const a=lgt.create({headers:{Authorization:`${this.token}`}});var r=[],I={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let d=0;d<L.data.seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",player_name:L.data.seasons[e.season].games_played[d].home_team_acronym+" "+L.data.seasons[e.season].games_played[d].home_team_score+" : "+L.data.seasons[e.season].games_played[d].visiting_team_score+" "+L.data.seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.seasons[e.season].games_played[d].home_team,season_id:L.data.seasons[e.season].games_played[d].season_id,name:L.data.seasons[e.season].games_played[d].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[d].game_id,match:L.data.seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[d].date),scorehome:L.data.seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[d].visiting_team+".png",total:L.data.seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[d].home_team+"_"+L.data.seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I);else for(let d=0;d<L.data.national_seasons[e.season].games_played.length;d++)I={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[d],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[d].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[d].home_team_score+" : "+L.data.national_seasons[e.season].games_played[d].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[d].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[d].home_team,season_id:L.data.national_seasons[e.season].games_played[d].season_id,name:L.data.national_seasons[e.season].games_played[d].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[d].game_id,match:L.data.national_seasons[e.season].games_played[d].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[d].date),scorehome:L.data.national_seasons[e.season].games_played[d].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[d].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[d].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[d].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[d].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[d].home_team+"_"+L.data.national_seasons[e.season].games_played[d].season_id+"_r1.jpg"},r.push(I)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)I={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},r.length>0?!r.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&r.push(I):r.push(I);const d=L.data.thumbnails;for(let g=0;g<r.length;g++){const n=Math.floor(Math.random()*d[r[g].game_id].info_thumbnails.images.background_default_games.length);r[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+d[r[g].game_id].info_thumbnails.images.background_default_games[n],r[g].backgroundhome=d[r[g].game_id].info_thumbnails.home_colors.background_color,r[g].backgroundaway=d[r[g].game_id].info_thumbnails.away_colors.background_color,r[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.away_colors.team_id+".png",r[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+d[r[g].game_id].info_thumbnails.home_colors.team_id+".png",r[g].match=d[r[g].game_id].matchday_name.replace("Matchday","Jor"),r[g].playingAs=d[r[g].game_id].info_thumbnails.home_colors.team_id===r[g].teamId?1:2,r[g].seasonname=d[r[g].game_id].season_name,r[g].score=d[r[g].game_id].score[0]+" - "+d[r[g].game_id].score[1],r[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let d=0;d<L.data.seasons[e.season].games.length;d++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games.length);I={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[d],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[d].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",player_name:L.data.seasons[e.season].games[d].home_team_acronym+" "+L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score+" "+L.data.seasons[e.season].games[d].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[d].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[d].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[d].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[d].home_team_score+" : "+L.data.seasons[e.season].games[d].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[d].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[d].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[d].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[d].visiting_team+".png",total:L.data.seasons[e.season].games[d].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[d].home_team+"_"+L.data.seasons[e.season].games[d].season_id+"_r1.jpg"},r.push(I)}}this.printData=r},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},dyt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function uyt(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),_=t.resolveComponent("GSCCarousel");return d.printDataFiltered.length>0&&r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",dyt,[t.createVNode(_,t.mergeProps(d.carouselProps,{items:d.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[r.data.type=="team"||r.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":r.title,onOnclickPlayVideos:i=>d.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const hyt=yC(cyt,[["render",uyt]]),shn="",lhn="",chn="",pyt={components:{GSCSlider:ag},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},3e5)):e.game_status==1?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const a=[1,2,3];let r={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:a,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",r)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const a=e.split(/(\*.*?\*)/g).filter(L=>L.trim()!=="");let r=Math.ceil(a.length/2),I="";return a.forEach((L,d)=>{d===r&&(I+="<br/>"),L.startsWith("*")&&L.endsWith("*")?I+=`<span class="text-bold-prominent">${L.slice(1,-1)}</span>`:L.trim()!==""&&(I+=`<span class="text-prominent">${L}</span>`)}),I},async getDataProminentPrematch(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch");this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(a){return Promise.reject(a)}},async getDataProminent(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId);this.dataProminent=r.data.data,this.dataProminentAll=r.data}catch(a){return Promise.reject(a)}}}},fyt=e=>(t.pushScopeId("data-v-b9643ef6"),e=e(),t.popScopeId(),e),myt={class:"data-prominent-game"},gyt={class:"title-data"},yyt={class:"item-data-text"},vyt=["innerHTML"],_yt={class:"contain-stats-control"},byt={key:0,class:"title-total"},xyt={key:1,class:"item-total"},wyt=["onClick"],kyt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Cyt=[fyt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Tyt(e,a,r,I,L,d){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",myt,[t.createElementVNode("div",gyt,[r.game.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.dataProminent,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",yyt,[t.createElementVNode("div",{class:"container-text",innerHTML:d.textoConNegritas(n.description)},null,8,vyt),t.createElementVNode("div",_yt,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",byt,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",xyt,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.total),1)],64))],64))])):t.createCommentVNode("",!0),r.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:m=>d.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",kyt,Cyt))],12,wyt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Syt=Jr(pyt,[["render",Tyt],["__scopeId","data-v-b9643ef6"]]),uhn="";w0();const Eyt={components:{GSCCheckbox:C0},props:{game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},3e5),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1?(this.getDataPosession(e.gameId),await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId"]),...Al("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const a=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=a.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const r=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const I in r.data.teams)r.data.teams.hasOwnProperty(I)&&(this.arrTeams[I]=r.data.teams[I])}catch(a){return Promise.reject(a)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,r){if(!a.game_id)return this.objectZeroValues;const I=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,L=e[r].accomplished.avgPostGame/I;return e[r].accomplished.avgPostGame?{numberValue:L<1?L*100:L,numberBarPercent:e[r].accomplished.avgPostGame/I}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},b1=e=>(t.pushScopeId("data-v-317aca36"),e=e(),t.popScopeId(),e),Ayt={key:0,class:"field-posesion-prominent"},Myt={key:0,class:"title"},Iyt={class:"info-data-item"},Pyt={class:"item-indicador"},Nyt={class:"item-indicador-value"},Byt={key:0},Oyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),zyt={key:0,class:"inactiveInfo"},Lyt={class:"info-data-item"},Fyt={class:"item-indicador"},Dyt={class:"item-indicador-value"},Vyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Ryt={class:"info-data-item"},$yt={class:"item-indicador"},jyt={class:"item-indicador-value"},Uyt={key:0},Hyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Gyt={class:"info-data-item"},Wyt={class:"item-indicador"},qyt={class:"item-indicador-value"},Yyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Zyt={key:0,class:"inactiveInfo"},Jyt={class:"info-data-item"},Xyt={class:"item-indicador"},Kyt={class:"item-indicador-value"},Qyt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),evt={class:"info-data-item"},tvt={class:"item-indicador"},nvt={class:"item-indicador-value"},avt=b1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function rvt(e,a,r,I,L,d){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ayt,[r.widthSection>760?(t.openBlock(),t.createElementBlock("div",Myt,"Porcentajes")):t.createCommentVNode("",!0),r.game.game_status==1||r.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Iyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Pyt,[t.createElementVNode("div",Nyt,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Byt,t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Oyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)],2)])],2),L.areInactiveVisible&&L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",zyt,[t.createElementVNode("div",Lyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Fyt,[t.createElementVNode("div",Dyt,t.toDisplayString(L.dataPosession.active_time.inactive_time),1),Vyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Ryt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",$yt,[t.createElementVNode("div",jyt,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[d.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Uyt,t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Hyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>760?"field-container":r.widthSection>520?"field-container-movil":r.widthSection>440?"field-container-movil-2":r.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>1020?"time-show":r.widthSection>920?"time-show-table-xl":r.widthSection>880?"time-show-table-xl-2":r.widthSection>820?"time-show-table-xl-3":r.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>1020?"field-data-container":r.widthSection>920?"field-data-container-xl":r.widthSection>880?"field-data-container-xl-2":r.widthSection>820?"field-data-container-xl-3":r.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+r.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",Gyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Wyt,[t.createElementVNode("div",qyt,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),Yyt]),r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2),L.areInactiveVisible&&L.arrTeams[r.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Zyt,[t.createElementVNode("div",Jyt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Xyt,[t.createElementVNode("div",Kyt,t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.inactive_time),1),Qyt]),t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},[r.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+r.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",evt,[t.createElementVNode("div",{class:t.normalizeClass(r.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",tvt,[t.createElementVNode("div",nvt,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.homeTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[r.teamSelected.teamId].home),1)],64))],64))]),avt]),r.game.awayTeam.team_id==r.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(r.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const ivt=Jr(Eyt,[["render",rvt],["__scopeId","data-v-317aca36"]]),hhn="",bC={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},EU=()=>{t.useCssVars(e=>({"0fd788f0":e.backgroundColor,"65d48069":e.widthCircle,ab129df8:e.heightCircle}))},AU=bC.setup;bC.setup=AU?(e,a)=>(EU(),AU(e,a)):EU;const ovt={key:0,class:"text-left"},svt=["width","src"],lvt=["checked"],cvt=["width","src"],dvt={key:3,class:"text-right"};function uvt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",ovt,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,svt)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,lvt),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,cvt)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",dvt,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const MU=Jr(bC,[["render",uvt],["__scopeId","data-v-c17e5be3"]]),phn="";let IU=null;const xC={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)IU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),IU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},PU=()=>{t.useCssVars(e=>({"4d4a3978":e.colorBackgroundHome+"45","25cabcc9":e.colorBackgroundAway+"45","217e5cb2":e.colorBackgroundHome,"217b4ac1":e.colorBackgroundAway}))},NU=xC.setup;xC.setup=NU?(e,a)=>(PU(),NU(e,a)):PU;const i4=e=>(t.pushScopeId("data-v-45f17850"),e=e(),t.popScopeId(),e),hvt=[i4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],pvt=i4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),fvt=["src"],mvt=i4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),gvt=i4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),yvt=["src"],vvt=["src"],_vt={class:"text-container"};function bvt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(d.thumbnailhighlights)},[r.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.playbutton),onClick:a[0]||(a[0]=(...g)=>d.onclickPlayVideos&&d.onclickPlayVideos(...g))},hvt,2)):t.createCommentVNode("",!0),r.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.date)},t.toDisplayString(r.dateGame),3)):t.createCommentVNode("",!0),r.matchday!=""&&r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(d.containerinfogame)},[r.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(d.matchcontainer)},t.toDisplayString(r.matchday),3)):t.createCommentVNode("",!0),r.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(d.seasoncontainer)},t.toDisplayString(r.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),pvt,t.createElementVNode("img",{src:r.background,alt:"",class:"bkg-blackwhite position-image"},null,8,fvt),t.createElementVNode("div",{class:t.normalizeClass([d.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(d.baselogoright)},null,2),mvt,gvt,t.createElementVNode("img",{src:r.logoHome,alt:"",class:t.normalizeClass(d.teamlogo)},null,10,yvt),t.createElementVNode("img",{src:r.logoAway,alt:"",class:t.normalizeClass(d.logoright)},null,10,vvt),t.createElementVNode("div",_vt,[t.createElementVNode("span",{class:t.normalizeClass(d.secondline)},t.toDisplayString(r.score),3),t.createElementVNode("div",{class:t.normalizeClass(d.titlename)},t.toDisplayString(r.titleCategory),3)])],2)}const xvt=Jr(xC,[["render",bvt],["__scopeId","data-v-45f17850"]]),mhn="";let BU=null;const wvt={components:{GSCThumbnailHighlightGameHistoric:xvt},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let I={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(I.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",I)},async fillData(){const e=Il.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),r=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=r.data.tournament_id;const I=a.data.games.findIndex(d=>d.game_id===this.game.gameId);this.gameInfo=a.data.games[I];const L=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=L.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].score[0]+" - "+L.data.thumbnails[L.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].home_team+".png":"",this.item.logoaway=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].visiting_team+".png":"",this.item.background=L.data.thumbnails[L.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.thumbnails[L.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)BU=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),BU.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},kvt={class:"highlights-prominent-game",ref:"gamesContainer"},Cvt={class:"video-partido-container__highlight"},Tvt={key:0,class:"video-partido-container__ribbon"},Svt={key:1,class:"video-partido-container__description"};function Evt(e,a,r,I,L,d){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",kvt,[t.createElementVNode("div",Cvt,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(L.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[L.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(L.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),L.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(L.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(L.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",Tvt,t.toDisplayString(L.tournamentId!=41?L.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):L.gameInfo.matchday_name=="Matchday 10"?"Final":L.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),L.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",Svt," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[L.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,"is-live":!0,"can-play-videos":r.canPlayVideos,background:L.item.background,matchday:L.item.match,"season-name":L.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=n=>d.onclickPlayVideos({data:L.item,type:1})),score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const Avt=Jr(wvt,[["render",Evt],["__scopeId","data-v-a97dd11b"]]),wC="/play-icn.svg",ghn="",Mvt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function Ivt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",d.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),onClick:a[1]||(a[1]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...g)=>d.closeClick&&d.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Pvt=Jr(Mvt,[["render",Ivt],["__scopeId","data-v-5ec23081"]]),yhn="",Nvt={class:"game-event__minute"},Bvt={class:"game-event__icon"},Ovt=["src"],zvt="/images/events/",Lvt=Jr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--icon-bottom":r.gameEvent.isHomeTeam?"30px":"-5px","--border-color":r.gameEvent.isSelected?"#336dff":"#747c83","--background-color":r.gameEvent.isSelected?"#336dff":"#0d1d29"})),L=t.computed(()=>{let g="";return r.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":r.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":r.gameEvent.category_id===10?g="icn-cambio.svg":r.gameEvent.category_id===21?g="icn-falta.svg":r.gameEvent.category_id===27?g="atajada.svg":r.gameEvent.category_id===17?g="fuera-de-lugar.svg":r.gameEvent.category_id===4||r.gameEvent.category_id===13||r.gameEvent.category_id===14||r.gameEvent.category_id===16||r.gameEvent.category_id===6&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===5&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===1&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===2&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===3&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===7&&r.gameEvent.event_type_id===1||r.gameEvent.category_id===12&&r.gameEvent.event_type_id===1?g="gol.svg":r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?g="var.png":r.gameEvent.category_id===28?g="tiempo-agregado.svg":r.gameEvent.category_id===26?g="jugada-peligrosa.svg":r.gameEvent.category_id===22?g="penal-marcado.svg":r.gameEvent.category_id===15||r.gameEvent.category_id===23?g="penal-fallado.svg":r.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":r.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${zvt}${g}`});function d(){a("click-event",r.gameEvent)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-event",onClick:d,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",Nvt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",Bvt,[t.createElementVNode("img",{src:L.value},null,8,Ovt)])],4))}},[["__scopeId","data-v-0bfb9e88"]]),_hn="",Fvt=e=>(t.pushScopeId("data-v-f5698f0e"),e=e(),t.popScopeId(),e),Dvt={class:"events-line"},Vvt={class:"events-line__events"},Rvt=Fvt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),$vt=Jr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function r(I){a("click-event",I)}return(I,L)=>(t.openBlock(),t.createElementBlock("div",Dvt,[t.createVNode(t.unref(ag),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",Vvt,[Rvt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,d=>(t.openBlock(),t.createBlock(Lvt,{key:d.id,"game-event":d,onClickEvent:r},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-f5698f0e"]]),xhn="",Py=e=>(t.pushScopeId("data-v-7f49ae1f"),e=e(),t.popScopeId(),e),jvt={class:"tooltip-data"},Uvt=["src"],Hvt=Py(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),Gvt=Py(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),Wvt={class:"game-events__team-logo"},qvt=["src"],Yvt={class:"game-events__event-info"},Zvt={key:0,class:"game-events__event-info__line"},Jvt={key:1,class:"game-events__event-info__info"},Xvt={class:"game-events__event-info__info__player-photo"},Kvt={key:0,class:"game-events__event-info__info__player-photo__img"},Qvt=["src"],e2t={class:"game-events__event-info__info__event-name"},t2t={class:"game-events__event-info__info__player-name"},n2t=[Py(()=>t.createElementVNode("img",{src:wC,alt:""},null,-1))],a2t=Py(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),r2t={class:"game-events__events"},i2t={class:"game-events__team-logo"},o2t=["src"],s2t={class:"game-events__event-info"},l2t={key:0,class:"game-events__event-info__line"},c2t={key:1,class:"game-events__event-info__info"},d2t={class:"game-events__event-info__info__player-photo"},u2t={key:0,class:"game-events__event-info__info__player-photo__img"},h2t=["src"],p2t={class:"game-events__event-info__info__event-name"},f2t={class:"game-events__event-info__info__player-name"},m2t=[Py(()=>t.createElementVNode("img",{src:wC,alt:""},null,-1))],g2t="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",y2t=Jr({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},setup(e){const a=e;let r=null,I=0;const L=t.ref([]),d=t.ref(new Map),g=t.ref(""),n=t.ref(null),_=t.ref({visible:!1,link:""});t.watch(()=>a.game,u=>{u&&u.gameId!==I&&(I=u.gameId,i(u.gameId,u.is_live))},{deep:!0,immediate:!0}),t.watch(()=>g.value,(u,h)=>{if(u!==h){const p=d.value.get(h),f=d.value.get(u);if(p&&(p.isSelected=!1),f){if(!f.playerShortName){const[y,w]=f.player_name.split(","),x=y.split(" ");let M="";for(const k of x)if(M+=` ${k}`,k.length>3)break;f.playerShortName=w&&y?`${w.trim().charAt(0)}.${M}`:""}f.isSelected=!0,n.value=f}}});function m(u){clearInterval(r),r=setInterval(()=>{i(u)},1e4)}async function i(u,h=!1){try{L.value=[],d.value=new Map,g.value="";let p=!1,f=await l(u);f&&(f=f.reduce((y,w)=>(w.category_id===0&&[13,17,19,21,23].includes(w.game_status_id)&&(p=!0),w.team_id&&(w.isHomeTeam=w.team_id===a.game.homeTeam.team_id,y.push(w),d.value.set(w.play_id,w)),y),[]),L.value=v(f)),!g.value&&L.value.length&&(g.value=L.value[0].play_id),h&&!p?m(u):p&&clearInterval(r)}catch(p){console.error(p)}}function v(u){return u.sort((h,p)=>b(h.match_lapse)+Number(h.minute)-(b(p.match_lapse)+Number(p.minute)))}function b(u){let h=0;switch(u){case 1:h=0;break;case 2:h=45;break;case 3:h=90;break;case 4:h=105;break;case 5:h=120;break}return h}async function l(u){try{const{data:{plays:h}}=await Il.get(`${g2t}${u}`,{headers:{Authorization:a.token}});return h}catch(h){throw new Error(h)}}function s(u){g.value=u.play_id}function o(){a.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"&&(_.value.visible=!0,_.value.link=n.value.video_link)}function c(){_.value.visible=!1,_.value.link=""}return(u,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Pvt,{data:_.value,onClose:c},{default:t.withCtx(()=>[t.createElementVNode("div",jvt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:_.value.link,format:"video/mp4"},null,8,Uvt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[Hvt,Gvt,t.createElementVNode("div",Wvt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,qvt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yvt,[n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Zvt)):t.createCommentVNode("",!0),n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Jvt,[t.createElementVNode("div",Xvt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",Kvt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,Qvt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",e2t,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",t2t," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},n2t)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),a2t,t.createElementVNode("div",r2t,[t.createVNode($vt,{"game-events":L.value,onClickEvent:s},null,8,["game-events"])]),t.createElementVNode("div",i2t,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,o2t)):t.createCommentVNode("",!0)]),t.createElementVNode("div",s2t,[n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",l2t)):t.createCommentVNode("",!0),n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",c2t,[t.createElementVNode("div",d2t,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",u2t,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,h2t)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",p2t,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",f2t," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},m2t)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-7f49ae1f"]]),Thn="",v2t={class:"toggle-buttons__background"},_2t=["onClick"],b2t={key:0,class:"toggle-buttons__button__img"},x2t=["src"],o4=Jr({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const r=e;t.useCssVars(g=>({64265112:e.height,df19770a:e.width,"6caf15d1":e.mainBackgroundColor,"2d25df89":e.borderRadius,"21a281f6":e.mainBorderWidth,"208b8393":e.mainBorderColor,94332204:e.fontFamily,"3e48121b":e.fontSize,"37a2dd49":e.activeBorderWidth,"368bdee6":e.activeBorderColor,ecc8e0b8:e.activeBackgroundColor,"5528ac63":e.activeFontColor}));const I=t.ref(r.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,g=>{I.value=g}),t.watch(I,(g,n)=>{g!==n&&a("change",{index:g,button:r.buttons[g]})});function d(g){I.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",v2t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===m,right:_.img&&m>0}]),onClick:i=>d(m)},[_.img?(t.openBlock(),t.createElementBlock("div",b2t,[t.createElementVNode("img",{src:_.img,alt:""},null,8,x2t)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(_.text||_),1)],10,_2t))),128))],4)]))}},[["__scopeId","data-v-8c3c29c6"]]),Ehn="",w2t="/images/cancha-horizontal-raw.jpg",Ahn="",kC=e=>(t.pushScopeId("data-v-b3a94cf2"),e=e(),t.popScopeId(),e),k2t={class:"tooltip__content"},C2t={key:0,class:"tooltip__content__category"},T2t={class:"tooltip__content__player"},S2t={class:"tooltip__content__player__name"},E2t={class:"tooltip__content__player__photo"},A2t=["src"],M2t={class:"tooltip__content__minute"},I2t={key:1,class:"tooltip__content__game"},P2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),N2t={class:"tooltip__content__game__round-abbreviation"},B2t={class:"tooltip__content__game__logo"},O2t=["src"],z2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),L2t={class:"tooltip__content__game__logo"},F2t=["src"],D2t={key:2,class:"tooltip__content__team"},V2t=kC(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),R2t={class:"tooltip__content__team__logo"},$2t=["src"],j2t=Jr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--top":r.position.y,"--left":r.position.x})),L=t.computed(()=>`${r.event.player.player_name} ${r.event.player.player_lastname}`),d=t.computed(()=>{const[n]=r.event.momentOfPlay.split(":");return`${Number(n)}'`});function g(){a("close")}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(I.value)},[t.createElementVNode("div",k2t,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",C2t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",T2t,[t.createElementVNode("div",S2t,t.toDisplayString(L.value),1),t.createElementVNode("div",E2t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,A2t)])]),t.createElementVNode("div",M2t,"Minuto: "+t.toDisplayString(d.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",I2t,[P2t,t.createElementVNode("div",N2t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",B2t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,O2t)]),z2t,t.createElementVNode("div",L2t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,F2t)])])):(t.openBlock(),t.createElementBlock("div",D2t,[V2t,t.createElementVNode("div",R2t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,$2t)])]))])],4))}},[["__scopeId","data-v-b3a94cf2"]]);function CC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U2t(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var r=function I(){return this instanceof I?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(I){var L=Object.getOwnPropertyDescriptor(e,I);Object.defineProperty(r,I,L.get?L:{enumerable:!0,get:function(){return e[I]}})}),r}var TC={exports:{}};function SC(){}SC.prototype={on:function(e,a,r){var I=this.e||(this.e={});return(I[e]||(I[e]=[])).push({fn:a,ctx:r}),this},once:function(e,a,r){var I=this;function L(){I.off(e,L),a.apply(r,arguments)}return L._=a,this.on(e,L,r)},emit:function(e){var a=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),I=0,L=r.length;for(I;I<L;I++)r[I].fn.apply(r[I].ctx,a);return this},off:function(e,a){var r=this.e||(this.e={}),I=r[e],L=[];if(I&&a)for(var d=0,g=I.length;d<g;d++)I[d].fn!==a&&I[d].fn._!==a&&L.push(I[d]);return L.length?r[e]=L:delete r[e],this}},TC.exports=SC,TC.exports.TinyEmitter=SC;var H2t=TC.exports,G2t=H2t,W2t=new G2t;const Pu=CC(W2t),q2t=["id"],Y2t=["fill"],Z2t=["id"],J2t=["fill"],X2t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],K2t=["x","y","stroke-width","fill","stroke"],Q2t=["x","y"],e_t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const a=e,r=t.computed(()=>{const v=[];if(a.eventConnection.hasConnectionPath){const b=a.eventConnection.x1===a.eventConnection.x2&&a.eventConnection.y1===a.eventConnection.y2?1:2;let l=n(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1);const s=_(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1);let o=0,c=0;b===2&&(o=n(a.eventConnection.y2),c=_(a.eventConnection.x2));const u=n(a.eventConnection.y3),h=_(a.eventConnection.x3);b===1?v.push({x1:s,y1:l,x2:h,y2:u}):(v.push({x1:s,y1:l,x2:c,y2:o}),v.push({x1:c,y1:o,x2:h,y2:u}))}return v}),I=t.computed(()=>a.mainEventIdSelected!==0?a.eventConnection.relatedPlayId===a.mainEventIdSelected?1:.1:1),L=t.computed(()=>a.mainEventIdSelected!==0?a.eventConnection.relatedPlayId===a.mainEventIdSelected:!0),d=t.computed(()=>n(a.eventConnection.previousEvent?a.eventConnection.previousEvent.y3:a.eventConnection.y1)),g=t.computed(()=>_(a.eventConnection.previousEvent?a.eventConnection.previousEvent.x3:a.eventConnection.x1));function n(v){return(1-v)*100}function _(v){return v*100}function m(v){Pu.emit("mouse-over-event",{mouseEvent:v,eventConnection:a.eventConnection,position:{x:g.value,y:d.value}})}function i(){Pu.emit("mouse-leave-event",{mainEventId:a.eventConnection.relatedPlayId,eventId:a.eventConnection.playId})}return(v,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:I.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,Y2t)],12,q2t),[[t.vShow,L.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:I.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,J2t)],12,Z2t),[[t.vShow,L.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(l,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[l.x1&&l.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${s}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:I.value}),"stroke-dasharray":s===0&&r.value.length===2?"none":"5,5",x1:`${l.x1}%`,y1:`${l.y1}%`,x2:`${l.x2}%`,y2:`${l.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&s===r.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,X2t)),[[t.vShow,L.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:m,onMouseleave:i,style:t.normalizeStyle({cursor:"pointer",opacity:I.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${d.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:I.value}),rx:"14",ry:"14"},null,12,K2t),t.createElementVNode("text",{x:`${g.value}%`,y:`${d.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:I.value})},t.toDisplayString(e.eventConnection.player.jersey),13,Q2t)],36),[[t.vShow,L.value]])],64))}},t_t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:a}){const r=e,I=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),L=t.computed(()=>r.eventConnections.getTeamColor());function d(_){a("click-event",_)}function g(_){a("mouse-over-event",_)}function n(){a("mouse-leave-event")}return(_,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(i,v)=>(t.openBlock(),t.createBlock(e_t,{key:i.id,color:L.value,"is-last-event":v===I.value.length-1,"event-connection":i,"main-event-id-selected":e.mainEventIdSelected,onClickEvent:d,onMouseOverEvent:g,onMouseLeaveEvent:n},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},Ihn="",n_t=e=>(t.pushScopeId("data-v-32f95543"),e=e(),t.popScopeId(),e),a_t={class:"soccer-chalkboard"},r_t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},i_t=n_t(()=>t.createElementVNode("img",{src:w2t,alt:""},null,-1)),o_t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s_t=Jr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=Mae()?0:1e3;Pu.on("mouse-over-time-event",b=>{_(b),setTimeout(()=>{_(b)},r)}),Pu.on("mouse-leave-time-event",b=>{setTimeout(()=>{d.value==b&&!I.value&&_(0)},r)}),Pu.on("mouse-over-event",b=>{i(b)}),Pu.on("mouse-leave-event",b=>{setTimeout(()=>{b.eventId===g.value&&v()},r)});const I=t.ref(!1),L=t.ref({}),d=t.ref(0),g=t.ref(0),n=t.ref({x:0,y:0});function _(b){d.value=b}function m(){I.value=!1}function i(b){const s=document.getElementById("soccerChalkboardField");if(s){const o=s.getBoundingClientRect(),c=b.position.x/100*o.width+14,u=b.position.y/100*o.height+14,h=c+170>o.width?o.width-170:c,p=u;d.value=b.eventConnection.relatedPlayId,g.value=b.eventConnection.playId,L.value=b.eventConnection,n.value={x:`${h}px`,y:`${p}px`},I.value=!0}}function v(){I.value=!1,d.value=0}return(b,l)=>(t.openBlock(),t.createElementBlock("div",a_t,[t.createElementVNode("div",r_t,[i_t,(t.openBlock(),t.createElementBlock("svg",o_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&s.hasTeam(e.teamsSelected)||e.listType==="players"&&s.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(t_t,{key:o,"event-connections":s,"main-event-id-selected":d.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),I.value?(t.openBlock(),t.createBlock(j2t,{key:0,position:n.value,event:L.value,onClose:m},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-32f95543"]]),Nhn="",OU=e=>(t.pushScopeId("data-v-f70399b8"),e=e(),t.popScopeId(),e),l_t={class:"events-timeline"},c_t=OU(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),d_t=["onMouseover","onMouseleave"],u_t=["id"],h_t=[OU(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],p_t=["fill"],f_t=["mask"],m_t=["stroke"],g_t=Jr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,r=["0'","45'","90'"],I=t.computed(()=>a.eventsConnections.reduce((g,n)=>{const _={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[m]=n.mainPlay.momentOfPlay.split(":"),i=parseInt(m);return i>=90?(_.minute=`${i}'`,_.left="100%"):(_.minute=`${i}'`,_.left=`${i/90*100}%`),g.push(_),g},[]));function L(g){Pu.emit("mouse-over-time-event",g.playId)}function d(g){Pu.emit("mouse-leave-time-event",g.playId)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",l_t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(r,(_,m)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:m},t.toDisplayString(_),1)),64)),c_t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,(_,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(_.teamId)||e.listType==="players"&&e.playersSelected.has(_.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:m,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:_.left,cursor:"pointer"}),onMouseover:i=>L(_),onMouseleave:i=>d(_)},[t.createElementVNode("mask",{id:_.playId.toString(),fill:"white"},h_t,8,u_t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:_.color},null,8,p_t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${_.playId})`},null,8,f_t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:_.fontColor,"stroke-width":"0.7"},t.toDisplayString(_.minute),9,m_t)])],44,d_t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-f70399b8"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},y_t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},v_t={key:1},__t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b_t=["fill"],x_t={key:0,class:"checkbox__teams"},w_t={class:"checkbox__teams__logo"},k_t=["src"],C_t={class:"checkbox__teams__logo"},T_t=["src"],S_t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),L=t.computed(()=>{const m={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(m["background-color"]=r.boxBackgroundColor,m.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):m.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,m}),d=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(m[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),m});t.watch(()=>r.modelValue,m=>{m!==I.value&&(I.value=m)},{immediate:!0});function n(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,a("update:modelValue",I.value))}function _(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(d.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",v_t,[(t.openBlock(),t.createElementBlock("svg",__t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,b_t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",x_t,[t.createElementVNode("div",w_t,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,k_t)]),t.createElementVNode("div",C_t,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,T_t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},co=y_t(S_t,[["__scopeId","data-v-bcf3bcc6"]]),So=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},E_t={class:"container"},A_t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M_t=["fill"],I_t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P_t=["fill"],N_t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(a=>({"563e5242":e.width,a529e9a4:e.height})),(a,r)=>(t.openBlock(),t.createElementBlock("div",E_t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",A_t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,M_t)])):(t.openBlock(),t.createElementBlock("svg",I_t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,P_t)]))]))}},fm=So(N_t,[["__scopeId","data-v-166b6226"]]),Ny=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),B_t={class:"productivity"},O_t={class:"productivity__body__offensive"},z_t={class:"productivity__body__title"},L_t={class:"productivity__body__title__info"},F_t={class:"number-of-categories"},D_t={class:"productivity__body__categories"},V_t={class:"productivity__body__defensive-possession"},R_t={class:"productivity__body__title"},$_t={class:"productivity__body__title__info"},j_t={class:"number-of-categories"},U_t={class:"productivity__body__categories"},H_t={class:"productivity__body__title"},G_t={class:"productivity__body__title__info"},W_t={class:"number-of-categories"},q_t={class:"productivity__body__categories"},Y_t={class:"productivity__footer"},Z_t={class:"productivity__footer__offenses"},J_t=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),X_t={class:"productivity__footer__offenses__table"},K_t=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),Q_t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},ebt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),tbt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},nbt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),abt={class:"productivity__footer__offenses__table__row has-padding"},rbt=Ny(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),ibt={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.ref(!1),d=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),_=t.computed(()=>r.productivityCategories.offensive.categories.reduce((l,s)=>(s.isSelected&&l++,l),0)),m=t.computed(()=>r.productivityCategories.defensive.categories.reduce((l,s)=>(s.isSelected&&l++,l),0)),i=t.computed(()=>r.productivityCategories.possession.categories.reduce((l,s)=>(s.isSelected&&l++,l),0));t.watch(()=>r.productivityCategories,l=>{g.value.areYellowCardsSelected=l.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=l.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=l.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,l=>{a("update:offensesConditions",l)},{deep:!0,immediate:!0});function v(l,s){s.isSelected=l,setTimeout(()=>{s.priority=r.numberOfCategoriesSelected},10)}function b(l){l==="offensive"?I.value=!I.value:l==="defensive"?L.value=!L.value:l==="possession"&&(d.value=!d.value)}return(l,s)=>(t.openBlock(),t.createElementBlock("div",B_t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",O_t,[t.createElementVNode("div",z_t,[t.createElementVNode("div",L_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",F_t,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=o=>b("offensive"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":I.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",D_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||I.value]])]),t.createElementVNode("div",V_t,[t.createElementVNode("div",R_t,[t.createElementVNode("div",$_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",j_t,"("+t.toDisplayString(m.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=o=>b("defensive"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":L.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",U_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||L.value]]),t.createElementVNode("div",H_t,[t.createElementVNode("div",G_t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",W_t,"("+t.toDisplayString(i.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=o=>b("possession"))},[t.withDirectives(t.createVNode(fm,{"is-expanded":d.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",q_t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(co),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":c=>v(c,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||d.value]])])],4),t.createElementVNode("div",Y_t,[t.createElementVNode("div",Z_t,[J_t,t.createElementVNode("div",X_t,[K_t,t.createElementVNode("div",Q_t,[ebt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",tbt,[nbt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",abt,[rbt,t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(co),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},obt=So(ibt,[["__scopeId","data-v-4df743e3"]]),s4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),sbt={class:"details__header"},lbt=s4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),cbt={class:"details__header__checkbox"},dbt={class:"details__body"},ubt={class:"details__body__playing-as"},hbt=["onClick"],pbt={class:"details__header"},fbt=s4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),mbt={class:"details__header__checkbox"},gbt={class:"details__body"},ybt=s4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),vbt={class:"details__body__game-section"},_bt=["onClick"],bbt={class:"details__body"},xbt=s4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),wbt={class:"details__body__game-section"},kbt=["onClick"],Cbt={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(i=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(i=>i.isSelected)),I=t.computed(()=>a.gameSections.every(i=>i.isSelected)),L=t.computed(()=>a.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(i){i?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,b)=>{v.isSelected=b===0})}function n(i){a.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function _(i){a.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,b)=>{v.isSelected=b===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.withDirectives(t.createElementVNode("div",sbt,[lbt,t.createElementVNode("div",cbt,[t.createVNode(t.unref(co),{label:"Todos",fontFamily:e.fontFamily,"model-value":r.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",dbt,[t.createElementVNode("div",ubt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>n(b)},t.toDisplayString(b.name),11,hbt))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",pbt,[fbt,t.createElementVNode("div",mbt,[t.createVNode(t.unref(co),{label:"Todos",fontFamily:e.fontFamily,"model-value":I.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",gbt,[ybt,t.createElementVNode("div",vbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,_bt))),128))])]),t.createElementVNode("div",bbt,[xbt,t.createElementVNode("div",wbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,kbt))),128))])])],4))}},Tbt=So(Cbt,[["__scopeId","data-v-9a3af80d"]]),Sbt={class:"scroll-container"},Ebt={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(a=>({"6aab424d":e.height,39848040:e.width})),(a,r)=>(t.openBlock(),t.createElementBlock("div",Sbt,[t.renderSlot(a.$slots,"default",{},void 0,!0)]))}},zU=So(Ebt,[["__scopeId","data-v-218f5976"]]),Abt={class:"tournaments"},Mbt={class:"tournaments__tournament"},Ibt={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.computed(()=>r.tournaments.filter(g=>g.isSelected).length);t.watch(()=>r.tournaments,g=>{const n=g.filter(_=>_.isSelected);I.value=n.length===g.length,a("change-filters-selected",n.length),a("update:filters",r.tournaments)},{immediate:!0,deep:!0});function d(g){r.tournaments.forEach((n,_)=>{n.isSelected=g||(_!==0?g:!0)})}return(g,n)=>(t.openBlock(),t.createElementBlock("div",Abt,[t.createVNode(zU,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",Mbt,[t.createVNode(t.unref(co),{"model-value":I.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":d},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id||_._id,class:"tournaments__tournament"},[t.createVNode(t.unref(co),{modelValue:_.isSelected,"onUpdate:modelValue":m=>_.isSelected=m,label:_.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":L.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Pbt=So(Ibt,[["__scopeId","data-v-590d8ab3"]]),Ea={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},Nbt={key:0,class:"plays-golstats__placeholder"},Bbt=["onClick"],Obt={key:0,class:"plays-golstats__item__value"},zbt={class:"plays-golstats__item__text"},Lbt={class:"plays-golstats__item__svg"},Fbt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dbt=["fill"],Vbt={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,I=t.computed(()=>({"--grid-template-columns":r.type===Ea.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${r.svgWidth}px`,"--svg-height":`${r.svgHeight}px`}));t.watch(()=>r.categories,d=>{const g=d.filter(n=>n.isSelected);a("update:filters",g)},{immediate:!0,deep:!0});function L(d){d.isSelected||(r.categories.forEach(g=>{g.isSelected=!1}),d.isSelected=!0,r.type===Ea.GOLSTATS&&a("change-filters-selected",d.value))}return(d,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(I.value)},[t.createVNode(zU,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Ea).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Nbt," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:`k${_}`,class:"plays-golstats__item",onClick:m=>L(n)},[e.type===t.unref(Ea).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Obt,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",zbt,t.toDisplayString(n.name),1),t.createElementVNode("div",Lbt,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,Dbt)],512)),[[t.vShow,n.isSelected]])])],8,Bbt))),128))]),_:1},8,["height"])],4))}},LU=So(Vbt,[["__scopeId","data-v-af3c1673"]]),Rbt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},EC={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const a=e.which?e.which:e.keyCode();a>31&&(a<48||a>57)&&e.preventDefault()}}}},FU=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},DU=EC.setup;EC.setup=DU?(e,a)=>(FU(),DU(e,a)):FU;const $bt={class:"input-container"},jbt=["type","placeholder","value"],Ubt={class:"right-text"};function Hbt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",$bt,[t.createElementVNode("input",{type:r.inputType,placeholder:r.placeholder,value:r.value,style:t.normalizeStyle(d.inputStyle),onKeydown:a[0]||(a[0]=(...g)=>d.onKeyDown&&d.onKeyDown(...g)),onInput:a[1]||(a[1]=(...g)=>d.updateInputValue&&d.updateInputValue(...g))},null,44,jbt),t.createElementVNode("div",Ubt,t.toDisplayString(r.textRight),1)])}const VU=Rbt(EC,[["render",Hbt],["__scopeId","data-v-b73049e7"]]),Gbt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},AC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},RU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$U=AC.setup;AC.setup=$U?(e,a)=>(RU(),$U(e,a)):RU;const Wbt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),qbt=["src"],Ybt={key:1,class:"text"},Zbt=["src"],Jbt={class:"stats"},Xbt=Wbt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Kbt={class:"numstats"},Qbt={class:"leyend"};function ext(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,qbt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Ybt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Zbt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",Jbt,[Xbt,t.createElementVNode("div",Kbt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Qbt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const txt=Gbt(AC,[["render",ext],["__scopeId","data-v-fb269a1e"]]),nxt={class:"gsc-dropdown__main-container__item-selected"},axt=["height","width"],rxt=["stroke"],ixt={class:"gsc-dropdown__items-container"},oxt=["onClick"],sxt={key:0,class:"gsc-dropdown__items-footer"},Df={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const r=e,I=t.ref({}),L=t.ref(null),d=t.ref(r.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>r.items,(l,s)=>{if(!r.modelValue&&(!r.onlyFirstTime||!s||!s.length)&&l&&l.length){if(r.defaultItemByProp){const o=r.items.findIndex(c=>c[r.defaultItemByProp.propName]===r.defaultItemByProp.value);o!==-1?(d.value=o,I.value=l[o]):(d.value=0,I.value=l[0])}else I.value=l[r.defaultItemByIndex];a("input",I.value)}},{immediate:!0}),t.watch(()=>r.modelValue,l=>{if(l){const s=r.items.findIndex(o=>typeof l=="object"?JSON.stringify(o)===JSON.stringify(l):o===l);s!==-1&&(d.value=s,I.value=r.items[s],a("update:modelValue",I.value))}},{immediate:!0});const n=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),_=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function m(){r.isDisabled||(g.value=!g.value)}function i(l){L.value&&!L.value.contains(l.target)&&(g.value=!1)}function v(l,s){r.isMultipleOption?d.value=-1:(d.value=s,g.value=!1),I.value=l,a("input",I.value),a("update:modelValue",I.value)}function b(){g.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",i)}),t.onBeforeMount(()=>{document.removeEventListener("click",i)}),(l,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:L,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:m},[t.createElementVNode("div",nxt,[t.renderSlot(l.$slots,"default",{selectedItem:I.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(_.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,rxt)],8,axt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ixt,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:c===d.value}]),key:c,onClick:u=>v(o,c)},[t.renderSlot(l.$slots,"availableItem",{item:o})],10,oxt))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",sxt,[t.createVNode(t.unref(txt),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:b})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},By={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},x1=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),lxt={class:"universe"},cxt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),dxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),uxt={class:"universe__inputs"},hxt={class:"universe__inputs__input"},pxt={class:"universe__inputs__checkbox"},fxt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),mxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),gxt={class:"universe__inputs"},yxt={class:"universe__inputs__input"},vxt={class:"universe__inputs__checkbox"},_xt=x1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),bxt=x1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),xxt={class:"universe__dropdown"},wxt={class:"selected-item"},jU=11,kxt={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:a,emit:r}){const I=e,L=t.ref(!1),d=t.ref(!1),g=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>I.universeFilters,l=>{n.value={...l,lastMonths:l.selectedMonth?l.selectedMonth:l.lastMonths[jU],statistics:{...l.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,l=>{L.value=!l.value.minutesPlayed||Number(l.value.minutesPlayed)===0,d.value=!l.value.percentMinutesPlayed||Number(l.value.percentMinutesPlayed)===0,g.value=!l.value.lastMonths||Number(l.value.lastMonths)===0,r("update:universeFilters",l)},{deep:!0,immediate:!0});function _(l){n.value.minutesPlayed=l}function m(l){n.value.percentMinutesPlayed=l}function i(l,s){switch(s){case"minutes":L.value=l,l&&(n.value.minutesPlayed=0);break;case"percent":d.value=l,l&&(n.value.percentMinutesPlayed=0);break;case"months":g.value=l,l&&(n.value.lastMonths=0);break}}function v(){n.value={...I.universeFilters,lastMonths:I.universeFilters.lastMonths[jU],statistics:{...I.universeFilters.statistics}}}function b(l){n.value.lastMonths=l}return a({resetFilters:v}),(l,s)=>(t.openBlock(),t.createElementBlock("div",lxt,[cxt,dxt,t.createElementVNode("div",uxt,[t.createElementVNode("div",hxt,[t.createVNode(t.unref(VU),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:_},null,8,["value"])]),t.createElementVNode("div",pxt,[t.createVNode(t.unref(co),{modelValue:L.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=o=>i(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),fxt,mxt,t.createElementVNode("div",gxt,[t.createElementVNode("div",yxt,[t.createVNode(t.unref(VU),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:m},null,8,["value"])]),t.createElementVNode("div",vxt,[t.createVNode(t.unref(co),{modelValue:d.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=o=>i(o,"percent"))},null,8,["modelValue","fontFamily"])])]),_xt,bxt,t.createElementVNode("div",xxt,[t.createVNode(t.unref(Df),t.mergeProps(t.unref(By),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:b}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",wxt,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Cxt=So(kxt,[["__scopeId","data-v-b1fc2fa6"]]),UU=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},Txt={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],a=this.min===void 0?0:this.min,r=e.length?e.length-1:100,I=this.max===void 0?r:this.max,L=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(L=1);let d=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(d=e.length-2),I<=a)throw new Error("Invalid props min or max");if(L>d)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,n=g%this.step;return n&&(g=g+this.step-n),{valueMin:L<a?a:L,valueMax:d>I?I:d,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let a=parseFloat(e.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:e.target.value=this.valueMin},onInputMaxChange(e){let a=parseFloat(e.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,L=I%this.step;I-=L,I<this.minimum?I=this.minimum:I>this.valueMax-this.rangeMarginValue&&(I=this.valueMax-this.rangeMarginValue),this.valueMin=I},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,I=this.barValue+(this.maximum-this.minimum)*r,L=I%this.step;I-=L,I<this.valueMin+this.rangeMarginValue?I=this.valueMin+this.rangeMarginValue:I>this.maximum&&(I=this.maximum),this.valueMax=I},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let a=this.step;e.deltaY<0&&(a=-a),e.shiftKey&&e.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):e.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):e.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],a=e.length?e.length-1:100;return this.max===void 0?a:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},Sxt={class:"bar"},Ext=["min","max","step","value"],Axt={class:"caption"},Mxt={class:"min-caption"},Ixt={class:"bar-inner"},Pxt=["min","max","step","value"],Nxt={class:"caption"},Bxt={class:"max-caption"},Oxt={key:0,class:"ruler"},zxt={key:1,class:"sub-ruler"},Lxt={key:2,class:"labels"};function Fxt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.baseClassName,L.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=t.withModifiers((...g)=>d.onMouseWheel&&d.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",Sxt,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:d.barMin+"%"}),onClick:a[0]||(a[0]=(...g)=>d.onBarLeftClick&&d.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:d.minimum,max:d.maximum,step:r.step,value:L.valueMin,onInput:a[1]||(a[1]=t.withModifiers((...g)=>d.onInputMinChange&&d.onInputMinChange(...g),["stop","prevent"]))},null,40,Ext),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...g)=>d.onLeftThumbMousedown&&d.onLeftThumbMousedown(...g)),onTouchstart:a[3]||(a[3]=(...g)=>d.onLeftThumbMousedown&&d.onLeftThumbMousedown(...g))},[t.createElementVNode("div",Axt,[t.createElementVNode("span",Mxt,t.toDisplayString(r.minCaption||d.barMinVal),1)])],32),t.createElementVNode("div",Ixt,[t.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...g)=>d.onInnerBarLeftClick&&d.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...g)=>d.onInnerBarRightClick&&d.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:d.minimum,max:d.maximum,step:r.step,value:L.valueMax,onInput:a[6]||(a[6]=t.withModifiers((...g)=>d.onInputMaxChange&&d.onInputMaxChange(...g),["stop","prevent"]))},null,40,Pxt),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...g)=>d.onRightThumbMousedown&&d.onRightThumbMousedown(...g)),onTouchstart:a[8]||(a[8]=(...g)=>d.onRightThumbMousedown&&d.onRightThumbMousedown(...g))},[t.createElementVNode("div",Nxt,[t.createElementVNode("span",Bxt,t.toDisplayString(r.maxCaption||d.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:d.barMax+"%"}),onClick:a[9]||(a[9]=(...g)=>d.onBarRightClick&&d.onBarRightClick(...g))},null,4)]),r.ruler?(t.openBlock(),t.createElementBlock("div",Oxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),d.subStepCount?(t.openBlock(),t.createElementBlock("div",zxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),r.label?(t.openBlock(),t.createElementBlock("div",Lxt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const Dxt=UU(Txt,[["render",Fxt]]),MC={components:{MultiRangeSlider:Dxt},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},HU=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},GU=MC.setup;MC.setup=GU?(e,a)=>(HU(),GU(e,a)):HU;const Vxt={class:"center"},Rxt={class:"bar-ref"},$xt={class:"bar-ref-element-left"},jxt={class:"bar-ref-element-right"};function Uxt(e,a,r,I,L,d){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(d.customStyle)},[t.createElementVNode("div",Vxt,[t.createElementVNode("div",Rxt,[t.createElementVNode("div",$xt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(d.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(d.customStyleValue)},t.toDisplayString(L.minValueLocal)+t.toDisplayString(r.minSuffix),5)]),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(d.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(d.customStyleValue)},t.toDisplayString(L.maxValueLocal)+t.toDisplayString(r.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:r.minLimit,max:r.maxLimit,step:1,ruler:!1,label:!1,"min-value":L.minValueLocal,"max-value":L.maxValueLocal,"range-margin":0,onInput:d.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const WU=UU(MC,[["render",Uxt]]),Hxt={class:"template-distance"},Gxt={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:a}){const r=e,I=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>I.value,d=>{a("update:distanceFilters",d)},{deep:!0}),t.watch(()=>r.distance,d=>{I.value.minValue=d.minValue,I.value.maxValue=d.maxValue,I.value.minLimit=d.minLimit,I.value.maxLimit=d.maxLimit},{immediate:!0,deep:!0});function L(d){I.value.minValue=d.minValue,I.value.maxValue=d.maxValue}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Hxt,[t.createVNode(t.unref(WU),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":I.value.minLimit,"max-limit":I.value.maxLimit,"min-value":I.value.minValue,"max-value":I.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:L},null,8,["min-limit","max-limit","min-value","max-value"])]))}},Wxt=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),qxt={class:"template-games"},Yxt={class:"template-games__header"},Zxt=Wxt(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),Jxt={class:"template-games__header__all-games"},Xxt={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:a}){const r=e,I=t.ref(!1),L=t.computed(()=>r.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>r.gamesFilters,g=>{a("update:gamesFilters",g)},{deep:!0}),t.watch(L,g=>{I.value=g===r.gamesFilters.length,a("update:gamesFilters",r.gamesFilters)},{immediate:!0});const d=g=>{g?r.gamesFilters.forEach(n=>{n.isSelected=g}):r.gamesFilters.forEach((n,_)=>{n.isSelected=_===0}),I.value=g};return(g,n)=>(t.openBlock(),t.createElementBlock("div",qxt,[t.createElementVNode("div",Yxt,[Zxt,t.createElementVNode("div",Jxt,[t.createVNode(t.unref(co),{modelValue:I.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":d},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"template-games__game"},[t.createVNode(t.unref(co),{modelValue:_.isSelected,"onUpdate:modelValue":i=>_.isSelected=i,label:_.label,"teams-ids":_.teamsIds,"avoid-interaction":L.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},Kxt=So(Xxt,[["__scopeId","data-v-be32e3d8"]]),Qxt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},IC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},qU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},YU=IC.setup;IC.setup=YU?(e,a)=>(qU(),YU(e,a)):qU;const e3t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),t3t=["src"],n3t={key:1,class:"text"},a3t=["src"],r3t={class:"stats"},i3t=e3t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),o3t={class:"numstats"},s3t={class:"leyend"};function l3t(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,t3t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",n3t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,a3t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",r3t,[i3t,t.createElementVNode("div",o3t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",s3t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const PC=Qxt(IC,[["render",l3t],["__scopeId","data-v-fb269a1e"]]),c3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},NC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ZU=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},JU=NC.setup;NC.setup=JU?(e,a)=>(ZU(),JU(e,a)):ZU;const d3t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),u3t=["src"],h3t={key:1,class:"text"},p3t=["src"],f3t={class:"stats"},m3t=d3t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),g3t={class:"numstats"},y3t={class:"leyend"};function v3t(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([d.customStyle,L.status&&r.typeOnOff&&d.customActive]),onClick:a[0]||(a[0]=(...g)=>d.btnClick&&d.btnClick(...g))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,u3t)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",h3t,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,p3t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>d.btnClick&&d.btnClick(...g))},[t.createElementVNode("div",f3t,[m3t,t.createElementVNode("div",g3t,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",y3t,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const _3t=c3t(NC,[["render",v3t],["__scopeId","data-v-fb269a1e"]]),b3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},x3t={key:1},w3t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k3t=["fill"],C3t={key:0,class:"checkbox__teams"},T3t={class:"checkbox__teams__logo"},S3t=["src"],E3t={class:"checkbox__teams__logo"},A3t=["src"],M3t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const I=t.ref(!1),L=t.computed(()=>{const m={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return I.value?(m["background-color"]=r.boxBackgroundColor,m.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):m.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,m}),d=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(m[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),m});t.watch(()=>r.modelValue,m=>{m!==I.value&&(I.value=m)},{immediate:!0});function n(){r.avoidInteraction||!I.value&&r.avoidToCheck||(I.value=!I.value,a("update:modelValue",I.value))}function _(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[I.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(d.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",x3t,[(t.openBlock(),t.createElementBlock("svg",w3t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,k3t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",C3t,[t.createElementVNode("div",T3t,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,S3t)]),t.createElementVNode("div",E3t,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,A3t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},I3t=b3t(M3t,[["__scopeId","data-v-bcf3bcc6"]]),P3t=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},BC={components:{GSCButton:_3t,GSCCheckbox:I3t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,a)=>({sector:a+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const a=e.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((r,I)=>{r.active=e.includes(I+1),this.validateField(I)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var a=[];for(let r=0;r<e.length;r++)e[r].active&&a.push(r+1);this.$emit("update:modelValue",a)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var a=0;this.sectors[e].active=!this.sectors[e].active;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,a==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,a==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,a==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,a==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},XU=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},KU=BC.setup;BC.setup=KU?(e,a)=>(XU(),KU(e,a)):XU;const N3t={class:"gsc-field"},B3t={class:"gsc-field__title-checked"},O3t={class:"gsc-field__title-checked__title"},z3t={class:"gsc-field__container-field"},L3t={class:"gsc-field__container-field__field"},F3t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},D3t=["stroke"],V3t=["stroke","stroke-width"],R3t=["stroke","stroke-width"],$3t=["stroke-width","stroke"],j3t=["fill","fill-opacity","stroke","stroke-width"],U3t=["fill","fill-opacity","stroke","stroke-width"],H3t=["fill","fill-opacity","stroke","stroke-width"],G3t=["fill","fill-opacity","stroke","stroke-width"],W3t=["fill","fill-opacity","stroke","stroke-width"],q3t=["fill","fill-opacity","stroke","stroke-width"],Y3t=["fill","fill-opacity","stroke","stroke-width"],Z3t=["fill","fill-opacity","stroke","stroke-width"],J3t=["fill","fill-opacity","stroke","stroke-width"],X3t=["fill","fill-opacity","stroke","stroke-width"],K3t=["fill","fill-opacity","stroke","stroke-width"],Q3t=["fill","fill-opacity","stroke","stroke-width"],e4t=["fill","fill-opacity","stroke","stroke-width"],t4t=["fill","fill-opacity","stroke","stroke-width"],n4t=["fill","fill-opacity","stroke","stroke-width"],a4t=["fill","fill-opacity","stroke","stroke-width"],r4t={class:"gsc-field__container-field__bar-buttons"};function i4t(e,a,r,I,L,d){const g=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",N3t,[t.createElementVNode("div",B3t,[t.createElementVNode("div",O3t,t.toDisplayString(r.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(r.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:r.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":r.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:L.all,key:L.update,"model-value":L.all,"onUpdate:modelValue":d.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",z3t,[t.createElementVNode("div",L3t,[(t.openBlock(),t.createElementBlock("svg",F3t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:r.colorLineField},null,8,D3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+d.translx+"px, "+d.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,V3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+d.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,R3t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+d.translxcircle+"px, "+d.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":r.borderWidthLineField,stroke:r.colorLineField},null,12,$3t),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:L.sectors[0].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[0]||(a[0]=_=>d.selectSector(0))},null,8,j3t),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:L.sectors[1].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[1]||(a[1]=_=>d.selectSector(1))},null,8,U3t),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:L.sectors[2].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[2]||(a[2]=_=>d.selectSector(2))},null,8,H3t),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:L.sectors[3].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[3]||(a[3]=_=>d.selectSector(3))},null,8,G3t),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:L.sectors[4].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[4]||(a[4]=_=>d.selectSector(4))},null,8,W3t),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:L.sectors[5].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[5]||(a[5]=_=>d.selectSector(5))},null,8,q3t),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:L.sectors[6].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[6]||(a[6]=_=>d.selectSector(6))},null,8,Y3t),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:L.sectors[7].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[7]||(a[7]=_=>d.selectSector(7))},null,8,Z3t),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:L.sectors[8].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[8]||(a[8]=_=>d.selectSector(8))},null,8,J3t),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:L.sectors[9].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[9]||(a[9]=_=>d.selectSector(9))},null,8,X3t),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:L.sectors[10].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[10]||(a[10]=_=>d.selectSector(10))},null,8,K3t),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:L.sectors[11].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[11]||(a[11]=_=>d.selectSector(11))},null,8,Q3t),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:L.sectors[12].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[12]||(a[12]=_=>d.selectSector(12))},null,8,e4t),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:L.sectors[13].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[13]||(a[13]=_=>d.selectSector(13))},null,8,t4t),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:L.sectors[14].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[14]||(a[14]=_=>d.selectSector(14))},null,8,n4t),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:L.sectors[15].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[15]||(a[15]=_=>d.selectSector(15))},null,8,a4t)]))]),t.createElementVNode("div",r4t,[(t.openBlock(),t.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:d.btn14,key:L.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:d.btn24,key:L.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:d.btn34,key:L.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:d.btn44,key:L.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const QU=P3t(BC,[["render",i4t],["__scopeId","data-v-b85699b8"]]),o4t={class:"toggle-buttons__background"},s4t=["onClick"],l4t={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:a}){const r=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const I=t.ref(r.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,g=>{I.value=g}),t.watch(I,(g,n)=>{g!==n&&a("change",{index:g,button:r.buttons[g]})});function d(g){I.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",o4t,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:I.value===m}]),onClick:i=>d(m)},t.toDisplayString(_.text||_),11,s4t))),128))],4)]))}},c4t=So(l4t,[["__scopeId","data-v-ac2af001"]]);function eH(e,a){return function(){return e.apply(a,arguments)}}const{toString:d4t}=Object.prototype,{getPrototypeOf:OC}=Object,l4=(e=>a=>{const r=d4t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),op=e=>(e=e.toLowerCase(),a=>l4(a)===e),c4=e=>a=>typeof a===e,{isArray:w1}=Array,Oy=c4("undefined");function u4t(e){return e!==null&&!Oy(e)&&e.constructor!==null&&!Oy(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tH=op("ArrayBuffer");function h4t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&tH(e.buffer),a}const p4t=c4("string"),Nu=c4("function"),nH=c4("number"),d4=e=>e!==null&&typeof e=="object",f4t=e=>e===!0||e===!1,u4=e=>{if(l4(e)!=="object")return!1;const a=OC(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m4t=op("Date"),g4t=op("File"),y4t=op("Blob"),v4t=op("FileList"),_4t=e=>d4(e)&&Nu(e.pipe),b4t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Nu(e.append)&&((a=l4(e))==="formdata"||a==="object"&&Nu(e.toString)&&e.toString()==="[object FormData]"))},x4t=op("URLSearchParams"),w4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zy(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),w1(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function aH(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const rH=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),iH=e=>!Oy(e)&&e!==rH;function zC(){const{caseless:e}=iH(this)&&this||{},a={},r=(I,L)=>{const d=e&&aH(a,L)||L;u4(a[d])&&u4(I)?a[d]=zC(a[d],I):u4(I)?a[d]=zC({},I):w1(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&zy(arguments[I],r);return a}const k4t=(e,a,r,{allOwnKeys:I}={})=>(zy(a,(L,d)=>{r&&Nu(L)?e[d]=eH(L,r):e[d]=L},{allOwnKeys:I}),e),C4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),T4t=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},S4t=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&OC(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},E4t=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},A4t=e=>{if(!e)return null;if(w1(e))return e;let a=e.length;if(!nH(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},M4t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&OC(Uint8Array)),I4t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},P4t=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},N4t=op("HTMLFormElement"),B4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),oH=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),O4t=op("RegExp"),sH=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};zy(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},z4t=e=>{sH(e,(a,r)=>{if(Nu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(Nu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},L4t=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return w1(e)?I(e):I(String(e).split(a)),r},F4t=()=>{},D4t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),LC="abcdefghijklmnopqrstuvwxyz",lH="0123456789",cH={DIGIT:lH,ALPHA:LC,ALPHA_DIGIT:LC+LC.toUpperCase()+lH},V4t=(e=16,a=cH.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function R4t(e){return!!(e&&Nu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $4t=e=>{const a=new Array(10),r=(I,L)=>{if(d4(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=w1(I)?[]:{};return zy(I,(g,n)=>{const _=r(g,L+1);!Oy(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},j4t=op("AsyncFunction"),U4t=e=>e&&(d4(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),ar={isArray:w1,isArrayBuffer:tH,isBuffer:u4t,isFormData:b4t,isArrayBufferView:h4t,isString:p4t,isNumber:nH,isBoolean:f4t,isObject:d4,isPlainObject:u4,isUndefined:Oy,isDate:m4t,isFile:g4t,isBlob:y4t,isRegExp:O4t,isFunction:Nu,isStream:_4t,isURLSearchParams:x4t,isTypedArray:M4t,isFileList:v4t,forEach:zy,merge:zC,extend:k4t,trim:w4t,stripBOM:C4t,inherits:T4t,toFlatObject:S4t,kindOf:l4,kindOfTest:op,endsWith:E4t,toArray:A4t,forEachEntry:I4t,matchAll:P4t,isHTMLForm:N4t,hasOwnProperty:oH,hasOwnProp:oH,reduceDescriptors:sH,freezeMethods:z4t,toObjectSet:L4t,toCamelCase:B4t,noop:F4t,toFiniteNumber:D4t,findKey:aH,global:rH,isContextDefined:iH,ALPHABET:cH,generateString:V4t,isSpecCompliantForm:R4t,toJSONObject:$4t,isAsyncFn:j4t,isThenable:U4t};function qo(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}ar.inherits(qo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dH=qo.prototype,uH={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{uH[e]={value:e}}),Object.defineProperties(qo,uH),Object.defineProperty(dH,"isAxiosError",{value:!0}),qo.from=(e,a,r,I,L,d)=>{const g=Object.create(dH);return ar.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),qo.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const H4t=null;function FC(e){return ar.isPlainObject(e)||ar.isArray(e)}function hH(e){return ar.endsWith(e,"[]")?e.slice(0,-2):e}function pH(e,a,r){return e?e.concat(a).map(function(I,L){return I=hH(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function G4t(e){return ar.isArray(e)&&!e.some(FC)}const W4t=ar.toFlatObject(ar,{},null,function(e){return/^is[A-Z]/.test(e)});function h4(e,a,r){if(!ar.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=ar.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!ar.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&ar.isSpecCompliantForm(a);if(!ar.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(ar.isDate(l))return l.toISOString();if(!n&&ar.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return ar.isArrayBuffer(l)||ar.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(ar.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(ar.isArray(l)&&G4t(l)||(ar.isFileList(l)||ar.endsWith(s,"[]"))&&(c=ar.toArray(l)))return s=hH(s),c.forEach(function(u,h){!(ar.isUndefined(u)||u===null)&&a.append(g===!0?pH([s],h,d):g===null?s:s+"[]",_(u))}),!1}return FC(l)?!0:(a.append(pH(o,s,d),_(l)),!1)}const i=[],v=Object.assign(W4t,{defaultVisitor:m,convertValue:_,isVisitable:FC});function b(l,s){if(!ar.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),ar.forEach(l,function(o,c){(!(ar.isUndefined(o)||o===null)&&L.call(a,o,ar.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!ar.isObject(e))throw new TypeError("data must be an object");return b(e),a}function fH(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function DC(e,a){this._pairs=[],e&&h4(e,this,a)}const mH=DC.prototype;mH.append=function(e,a){this._pairs.push([e,a])},mH.toString=function(e){const a=e?function(r){return e.call(this,r,fH)}:fH;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function q4t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gH(e,a,r){if(!a)return e;const I=r&&r.encode||q4t,L=r&&r.serialize;let d;if(L?d=L(a,r):d=ar.isURLSearchParams(a)?a.toString():new DC(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class Y4t{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ar.forEach(this.handlers,function(r){r!==null&&a(r)})}}const yH=Y4t,vH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Z4t=typeof URLSearchParams<"u"?URLSearchParams:DC,J4t=typeof FormData<"u"?FormData:null,X4t=typeof Blob<"u"?Blob:null,K4t={isBrowser:!0,classes:{URLSearchParams:Z4t,FormData:J4t,Blob:X4t},protocols:["http","https","file","blob","url","data"]},_H=typeof window<"u"&&typeof document<"u",Q4t=(e=>_H&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),e5t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),t5t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_H,hasStandardBrowserEnv:Q4t,hasStandardBrowserWebWorkerEnv:e5t},Symbol.toStringTag,{value:"Module"})),sp={...t5t,...K4t};function n5t(e,a){return h4(e,new sp.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return sp.isNode&&ar.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function a5t(e){return ar.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function r5t(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function bH(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&ar.isArray(L)?L.length:g,_?(ar.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!ar.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&ar.isArray(L[g])&&(L[g]=r5t(L[g])),!n)}if(ar.isFormData(e)&&ar.isFunction(e.entries)){const r={};return ar.forEachEntry(e,(I,L)=>{a(a5t(I),L,r,0)}),r}return null}function i5t(e,a,r){if(ar.isString(e))try{return(a||JSON.parse)(e),ar.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const VC={transitional:vH,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=ar.isObject(e);if(L&&ar.isHTMLForm(e)&&(e=new FormData(e)),ar.isFormData(e))return I?JSON.stringify(bH(e)):e;if(ar.isArrayBuffer(e)||ar.isBuffer(e)||ar.isStream(e)||ar.isFile(e)||ar.isBlob(e))return e;if(ar.isArrayBufferView(e))return e.buffer;if(ar.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return n5t(e,this.formSerializer).toString();if((d=ar.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return h4(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),i5t(e)):e}],transformResponse:[function(e){const a=this.transitional||VC.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(e&&ar.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?qo.from(d,qo.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sp.classes.FormData,Blob:sp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ar.forEach(["delete","get","head","post","put","patch"],e=>{VC.headers[e]={}});const RC=VC,o5t=ar.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),s5t=e=>{const a={};let r,I,L;return e&&e.split(`
124
124
  `).forEach(function(d){L=d.indexOf(":"),r=d.substring(0,L).trim().toLowerCase(),I=d.substring(L+1).trim(),!(!r||a[r]&&o5t[r])&&(r==="set-cookie"?a[r]?a[r].push(I):a[r]=[I]:a[r]=a[r]?a[r]+", "+I:I)}),a},xH=Symbol("internals");function Ly(e){return e&&String(e).trim().toLowerCase()}function p4(e){return e===!1||e==null?e:ar.isArray(e)?e.map(p4):String(e)}function l5t(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)a[I[1]]=I[2];return a}const c5t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $C(e,a,r,I,L){if(ar.isFunction(I))return I.call(this,a,r);if(L&&(a=r),!!ar.isString(a)){if(ar.isString(I))return a.indexOf(I)!==-1;if(ar.isRegExp(I))return I.test(a)}}function d5t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,I)=>r.toUpperCase()+I)}function u5t(e,a){const r=ar.toCamelCase(" "+a);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(L,d,g){return this[I].call(this,a,L,d,g)},configurable:!0})})}let f4=class{constructor(a){a&&this.set(a)}set(a,r,I){const L=this;function d(n,_,m){const i=Ly(_);if(!i)throw new Error("header name must be a non-empty string");const v=ar.findKey(L,i);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||_]=p4(n))}const g=(n,_)=>ar.forEach(n,(m,i)=>d(m,i,_));return ar.isPlainObject(a)||a instanceof this.constructor?g(a,r):ar.isString(a)&&(a=a.trim())&&!c5t(a)?g(s5t(a),r):a!=null&&d(r,a,I),this}get(a,r){if(a=Ly(a),a){const I=ar.findKey(this,a);if(I){const L=this[I];if(!r)return L;if(r===!0)return l5t(L);if(ar.isFunction(r))return r.call(this,L,I);if(ar.isRegExp(r))return r.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=Ly(a),a){const I=ar.findKey(this,a);return!!(I&&this[I]!==void 0&&(!r||$C(this,this[I],I,r)))}return!1}delete(a,r){const I=this;let L=!1;function d(g){if(g=Ly(g),g){const n=ar.findKey(I,g);n&&(!r||$C(I,I[n],n,r))&&(delete I[n],L=!0)}}return ar.isArray(a)?a.forEach(d):d(a),L}clear(a){const r=Object.keys(this);let I=r.length,L=!1;for(;I--;){const d=r[I];(!a||$C(this,this[d],d,a,!0))&&(delete this[d],L=!0)}return L}normalize(a){const r=this,I={};return ar.forEach(this,(L,d)=>{const g=ar.findKey(I,d);if(g){r[g]=p4(L),delete r[d];return}const n=a?d5t(d):String(d).trim();n!==d&&delete r[d],r[n]=p4(L),I[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return ar.forEach(this,(I,L)=>{I!=null&&I!==!1&&(r[L]=a&&ar.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
125
125
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const I=new this(a);return r.forEach(L=>I.set(L)),I}static accessor(a){const r=(this[xH]=this[xH]={accessors:{}}).accessors,I=this.prototype;function L(d){const g=Ly(d);r[g]||(u5t(I,d),r[g]=!0)}return ar.isArray(a)?a.forEach(L):L(a),this}};f4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ar.reduceDescriptors(f4.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(I){this[r]=I}}}),ar.freezeMethods(f4);const bp=f4;function jC(e,a){const r=this||RC,I=a||r,L=bp.from(I.headers);let d=I.data;return ar.forEach(e,function(g){d=g.call(r,d,L.normalize(),a?a.status:void 0)}),L.normalize(),d}function wH(e){return!!(e&&e.__CANCEL__)}function Fy(e,a,r){qo.call(this,e??"canceled",qo.ERR_CANCELED,a,r),this.name="CanceledError"}ar.inherits(Fy,qo,{__CANCEL__:!0});function h5t(e,a,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):a(new qo("Request failed with status code "+r.status,[qo.ERR_BAD_REQUEST,qo.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const p5t=sp.hasStandardBrowserEnv?{write(e,a,r,I,L,d){const g=[e+"="+encodeURIComponent(a)];ar.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),ar.isString(I)&&g.push("path="+I),ar.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f5t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m5t(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function kH(e,a){return e&&!f5t(a)?m5t(e,a):a}const g5t=sp.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function I(L){let d=L;return e&&(a.setAttribute("href",d),d=a.href),a.setAttribute("href",d),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=I(window.location.href),function(L){const d=ar.isString(L)?I(L):L;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}();function y5t(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function v5t(e,a){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),m=I[d];g||(g=_),r[L]=n,I[L]=_;let i=d,v=0;for(;i!==L;)v+=r[i++],i=i%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),_-g<a)return;const b=m&&_-m;return b?Math.round(v*1e3/b):void 0}}function CH(e,a){let r=0;const I=v5t(50,250);return L=>{const d=L.loaded,g=L.lengthComputable?L.total:void 0,n=d-r,_=I(n),m=d<=g;r=d;const i={loaded:d,total:g,progress:g?d/g:void 0,bytes:n,rate:_||void 0,estimated:_&&g&&m?(g-d)/_:void 0,event:L};i[a?"download":"upload"]=!0,e(i)}}const _5t=typeof XMLHttpRequest<"u",b5t=_5t&&function(e){return new Promise(function(a,r){let I=e.data;const L=bp.from(e.headers).normalize();let{responseType:d,withXSRFToken:g}=e,n;function _(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let m;if(ar.isFormData(I)){if(sp.hasStandardBrowserEnv||sp.hasStandardBrowserWebWorkerEnv)L.setContentType(!1);else if((m=L.getContentType())!==!1){const[s,...o]=m?m.split(";").map(c=>c.trim()).filter(Boolean):[];L.setContentType([s||"multipart/form-data",...o].join("; "))}}let i=new XMLHttpRequest;if(e.auth){const s=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";L.set("Authorization","Basic "+btoa(s+":"+o))}const v=kH(e.baseURL,e.url);i.open(e.method.toUpperCase(),gH(v,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function b(){if(!i)return;const s=bp.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),o={data:!d||d==="text"||d==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};h5t(function(c){a(c),_()},function(c){r(c),_()},o),i=null}if("onloadend"in i?i.onloadend=b:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(b)},i.onabort=function(){i&&(r(new qo("Request aborted",qo.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new qo("Network Error",qo.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let s=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||vH;e.timeoutErrorMessage&&(s=e.timeoutErrorMessage),r(new qo(s,o.clarifyTimeoutError?qo.ETIMEDOUT:qo.ECONNABORTED,e,i)),i=null},sp.hasStandardBrowserEnv&&(g&&ar.isFunction(g)&&(g=g(e)),g||g!==!1&&g5t(v))){const s=e.xsrfHeaderName&&e.xsrfCookieName&&p5t.read(e.xsrfCookieName);s&&L.set(e.xsrfHeaderName,s)}I===void 0&&L.setContentType(null),"setRequestHeader"in i&&ar.forEach(L.toJSON(),function(s,o){i.setRequestHeader(o,s)}),ar.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),d&&d!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",CH(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",CH(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=s=>{i&&(r(!s||s.type?new Fy(null,e,i):s),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const l=y5t(v);if(l&&sp.protocols.indexOf(l)===-1){r(new qo("Unsupported protocol "+l+":",qo.ERR_BAD_REQUEST,e));return}i.send(I||null)})},UC={http:H4t,xhr:b5t};ar.forEach(UC,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const TH=e=>`- ${e}`,x5t=e=>ar.isFunction(e)||e===null||e===!1,SH={getAdapter:e=>{e=ar.isArray(e)?e:[e];const{length:a}=e;let r,I;const L={};for(let d=0;d<a;d++){r=e[d];let g;if(I=r,!x5t(r)&&(I=UC[(g=String(r)).toLowerCase()],I===void 0))throw new qo(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let g=a?d.length>1?`since :
126
126
  `+d.map(TH).join(`
@@ -3575,7 +3575,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3575
3575
  * Vue 3 Carousel 0.3.1
3576
3576
  * (c) 2023
3577
3577
  * @license MIT
3578
- */const Xc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},CG={itemsToShow:{default:Xc.itemsToShow,type:Number},itemsToScroll:{default:Xc.itemsToScroll,type:Number},wrapAround:{default:Xc.wrapAround,type:Boolean},throttle:{default:Xc.throttle,type:Number},snapAlign:{default:Xc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Xc.transition,type:Number},breakpoints:{default:Xc.breakpoints,type:Object},autoplay:{default:Xc.autoplay,type:Number},pauseAutoplayOnHover:{default:Xc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Xc.mouseDrag,type:Boolean},touchDrag:{default:Xc.touchDrag,type:Boolean},dir:{default:Xc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Xc.i18n,type:Object},settings:{default(){return{}},type:Object}};function aMt({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function rMt({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function hT({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function iMt({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:hT({val:g,max:r-d,min:0})}function TG(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,...TG(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function pT({val:e,max:a,min:r=0}){return e>a?pT({val:e-(a+1),max:a,min:r}):e<r?pT({val:e+(a+1),max:a,min:r}):e}function oMt(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function sMt(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function lMt(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var cMt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Xc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lMt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),dMt=t.defineComponent({name:"Carousel",props:CG,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Xc));let i=Object.assign({},Xc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=sMt(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=aMt({config:m,slidesCount:_.value}),c.value=rMt({config:m,slidesCount:_.value}),m.wrapAround||(b.value=hT({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=oMt(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:hT({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=pT({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>iMt({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(CG).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=TG(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(cMt)])}}}),SG;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(SG||(SG={}));var uMt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Xc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const hMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},pMt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),fMt={class:"gsc-carousel"},mMt={key:0},gMt=pMt(()=>t.createElementVNode("div",null,"no hay",-1)),yMt=[gMt],vMt={class:"gsc-carousel__2d__slides"},_Mt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bMt=["fill"],xMt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wMt=["fill"],kMt={class:"gsc-carousel__2d__navigation"},CMt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TMt=["stroke"],SMt={key:1,class:"gsc-carousel__2d__navigation__pagination"},EMt=["onClick"],AMt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MMt=["stroke"],IMt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.defaultItemByIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){o&&o.length&&L.value&&setTimeout(()=>{if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),d.value&&g.value===0&&r("input",{selectedItem:d.value,selectedItemIndex:g.value})},500)}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",fMt,[I.is3d?(t.openBlock(),t.createElementBlock("div",mMt,yMt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",vMt,[t.createVNode(t.unref(dMt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(uMt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",_Mt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,bMt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",xMt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,wMt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",kMt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",CMt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,TMt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",SMt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,EMt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",AMt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,MMt)]))])):t.createCommentVNode("",!0)])],2))]))}},PMt=hMt(IMt,[["__scopeId","data-v-54620d25"]]),nyn="",EG={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},ayn="",fT={components:{GSCCarousel:PMt,GSCLeaders:EAt,GSCRowTable:hG,GSCTableHeader:oG,GSCExpandedInfo:kG},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:Object,default:()=>{}},game:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Uy(e);return{myDivRef:e,elementSize:a}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season))}},typeData:{immediate:!1,async handler(e){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,a){e&&(JSON.stringify(e)!==JSON.stringify(a)||this.sonConjuntosDistintos(e.setNationalitiesIds,a.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},a={},r=[],I=[],L=[];return this.formatFilterStats.map(d=>{e[d.team_id]?e[d.team_id].total=e[d.team_id].total+d.total:(e[d.team_id]={},e[d.team_id].total=d.total,e[d.team_id].id=this.teamInfo[d.team_id].id,e[d.team_id].name=this.teamInfo[d.team_id].name.replace(" Femenil",""),e[d.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+d.team_id+".png",e[d.team_id].effectiveness=this.teamInfo[d.team_id].effectiveness,e[d.team_id].frecuency=this.teamInfo[d.team_id].frecuency,e[d.team_id].game_avg=this.teamInfo[d.team_id].game_avg,e[d.team_id].game_avg_last_season=this.teamInfo[d.team_id].game_avg_last_season,e[d.team_id].games_played_lastseason=this.teamInfo[d.team_id].games_played_lastseason,e[d.team_id].games_played=this.teamInfo[d.team_id].games_played,e[d.team_id].positiontable=this.teamInfo[d.team_id].positiontable,e[d.team_id].goals=this.teamInfo[d.team_id].goals,e[d.team_id].goalsrecived=this.teamInfo[d.team_id].goalsrecived,e[d.team_id].xg=this.teamInfo[d.team_id].xg),a[d.player_id]?d.player_id!=0&&d.player_id!=62117&&(a[d.player_id].total=a[d.player_id].total+d.total):d.player_id!=0&&d.player_id!=62117&&(a[d.player_id]={},a[d.player_id].total=d.total,d.player_id&&this.playersInfo[d.player_id]?(a[d.player_id].name=this.playersInfo[d.player_id].name,a[d.player_id].name_short=this.getnameshort(this.playersInfo[d.player_id].name),a[d.player_id].img=this.playersInfo[d.player_id].img,a[d.player_id].id=this.playersInfo[d.player_id].id,a[d.player_id].age=this.playersInfo[d.player_id].age,a[d.player_id].team=this.playersInfo[d.player_id].team,a[d.player_id].teamname=this.playersInfo[d.player_id].teamname,a[d.player_id].teamid=this.playersInfo[d.player_id].teamid,a[d.player_id].position=this.playersInfo[d.player_id].position,a[d.player_id].positionId=this.playersInfo[d.player_id].positionId,a[d.player_id].positionfull=this.playersInfo[d.player_id].positionfull,a[d.player_id].country=this.playersInfo[d.player_id].country,a[d.player_id].effectiveness=this.playersInfo[d.player_id].effectiveness,a[d.player_id].minutes=this.playersInfo[d.player_id].minutes_played,a[d.player_id].games=this.playersInfo[d.player_id].games_played,a[d.player_id].date=this.playersInfo[d.player_id].date,a[d.player_id].nationality=this.playersInfo[d.player_id].nationality,a[d.player_id].player_country_flag=this.playersInfo[d.player_id].player_country_flag,a[d.player_id].categoryName=this.categoryName):(a[d.player_id].id=d.player_id,a[d.player_id].name=d.player_id,a[d.player_id].img="SIN IMAGEN",a[d.player_id].age="",a[d.player_id].teamname="",a[d.player_id].team="",a[d.player_id].teamid=0,a[d.player_id].position="",a[d.player_id].positionId=0,a[d.player_id].positionfull="",a[d.player_id].country="",a[d.player_id].effectiveness="",a[d.player_id].minutes="",a[d.player_id].games="",a[d.player_id].date="00-00-0000",a[d.player_id].nationality="",a[d.player_id].player_country_flag="",a[d.player_id].categoryName=""))}),r.push(...Object.values(e)),I.push(...Object.values(a)),r=this.sortAndSlice(Object.values(e),60),I=I.sort(this.compareObjectsMinutes).slice(0,60),I=I.map((d,g)=>(d.top=g<9?"0"+(g+1):""+(g+1),d)),r=r.map((d,g)=>(d.top=g<9?"0"+(g+1):""+(g+1),d)),this.filterTeam!==0&&!this.isTeam&&(L=I.filter(d=>d.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(r):this.filterTeam!=0?this.formatArrayPaginate(L):this.formatArrayPaginate(I)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,a){return e.total>a.total?-1:e.total<a.total?1:e.minutes<a.minutes?-1:e.minutes>a.minutes?1:0},sonConjuntosDistintos(e,a){const r=Array.from(e),I=Array.from(a);if(r.length!==I.length)return!0;for(let L=0;L<r.length;L++)if(!a.has(r[L]))return!0;return!1},getnameshort(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";return L=L.replace(",",""),d+". "+L},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,a){return e.total<a.total?-1:e.total>a.total?1:e.name<a.name?-1:e.name>a.name?1:0},sortAndSlice(e,a){return e.sort((r,I)=>(r.name<I.name?1:-1)&&(r.total<I.total?1:-1)).slice(0,a)},getCategoryName(e){let a="";for(let r=0;r<this.categories.length;r++)e==this.categories[r].id&&(a=this.categories[r].name);return a},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,a,r){let I=this.filtersValues.matchResult,L=this.filtersValues.playingAs,d=this.filtersValues.sections,g=this.filtersValues.zone,n=this.translateTopCategories(a);Object.keys(this.filterEmitAux).length>0&&(I=this.filterEmitAux.matchResult,L=this.filterEmitAux.playingAs,d=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const _=1,m=2,i=3,v=this.isTeam?i:m,b=e.player_id;let l=[],s=this.isTeam?e.id:this.filterTeam;b?this.isTeam?s=b:(l=[b],n=n.filter(c=>!c.toString().includes("_r"))):this.isTeam?s=e.id:(l=[e.id],n=n.filter(c=>!c.toString().includes("_r")));const o={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:_,playListType:v,gameIds:null,playerIds:l,goalkeeperIds:[],categoryIds:this.translateTopCategories(a),teamId:s||0,matchResult:I,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:r,playingAs:L,timeSections:d,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(a)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,a,r){let I=this.filtersValues.matchResult,L=this.filtersValues.playingAs,d=this.filtersValues.sections,g=this.filtersValues.zone,n=this.translateTopCategories(a);Object.keys(this.filterEmitAux).length>0&&(I=this.filterEmitAux.matchResult,L=this.filterEmitAux.playingAs,d=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const _=1,m=2,i=3,v=this.isTeam?i:m;let b=[],l=this.isTeam?e.id:this.filterTeam;this.isTeam?l=e.id:(b=[e.id],n=n.filter(o=>!o.toString().includes("_r")));const s={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:_,playListType:v,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:n,teamId:l||0,matchResult:I,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:r,playingAs:L,timeSections:d,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(a)}};this.$emit("setopenmedia",s)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";L=L.replace(",","");var g=d+". "+L;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,a){this.$emit("clickprofile",{id:e,teamId:a,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let a=[],r={},I={};this.arePlaysEmpty=!1;const L=Il.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let d={};if(this.typeData==1?d=await L.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status==1?d=await L.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):d=await L.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),d&&d.data&&d.data.data&&d.data.data.length>0){a=d.data.data.map(n=>this.formatStatsData(n)),d.data.teams.forEach(n=>{r[n[0]]={},r[n[0]].id=n[0],r[n[0]].name=n[1],r[n[0]].abrv=n[2],r[n[0]].img=n[3],r[n[0]].effectiveness=n[4],r[n[0]].games_played=n[5],r[n[0]].games_played_lastseason=n[6],r[n[0]].positiontable=n[7],r[n[0]].goals=n[8],r[n[0]].goalsrecived=n[9],r[n[0]].xg=n[10],r[n[0]].frecuency=n[11],r[n[0]].game_avg=n[12],r[n[0]].game_avg_last_season=n[13]});const g=new Set;d.data.players.forEach(n=>{const _=this.getObjectPlayer(n);this.mapPlayers.set(_.numberId,_);const m=_.numberAge,i=_.teamName.length>0?_.teamName[0].acronym:"",v=_.teamName.length>0?r[_.teamName[0].team_id].name:"",b=_.teamName.length>0?_.teamName[0].team_id:"",l=this.positions[_.numberPositionId-1].fullname,s=this.positions[_.numberPositionId-1].name,o=_.countryId.length>0?_.countryId[0].nationality_id:"",c=_.effectiveness,u=_.min,h=_.games,p=_.date;_.arrayNationalities.forEach(f=>{g.add(f.numberId)}),I[n[0]]={id:n[0],name:n[1],img:n[2],age:m,team:i,teamname:v,teamid:b,position:l,positionfull:s,effectiveness:c,country:o,games_played:h,minutes_played:u,date:p,nationality:_.stringNationalityName,player_country_flag:_.player_country_flag,positionId:_.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[d.data.min_age,d.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=r,this.playersInfo=I,this.formatStats=a,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=d}catch(a){return Promise.reject(a)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(a=>{const r=e.playingAs.includes(a.playing_as),I=e.matchResult.includes(a.match_result),L=e.sections.includes(a.section),d=e.typeZone===1&&e.zone.includes(a.origen)||e.typeZone===2&&e.zone.includes(a.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(a.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(a.player_id))return!1}else{let n=!1;for(const _ of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(_)){n=!0;break}if(!n)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||r)&&(e.matchResult.length===0||I)&&(e.sections.length===0||L)&&(e.zone.length===0||d)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const a={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((r,I)=>{a[r]=e[I]}),a},getObjectPlayer(e){const a=[],r=e[7].map(L=>(a.push(L.nationality_id),{stringName:L.nationality,numberId:L.nationality_id})),I=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:EG[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:I.length>0?Number(I[0]):0,arrayNationalities:r,category:this.categoryName,arrayNationalitiesIds:a}},formatArrayPaginate(e){const a=Math.ceil(e.length/this.numRows);return Array.from({length:a},(r,I)=>{const L=I*this.numRows,d=L+this.numRows;return e.slice(L,d)})}},async created(){try{await this.getCategoryStats(this.season),this.game.is_live==1&&(this.intervalIdtops=setInterval(()=>{this.getCategoryStats(this.season)},3e5),this.$emit("intervalidtops",this.intervalIdtops))}catch(e){throw new Error(e)}},beforeDestroy(){clearInterval(this.intervalIdtops)}},AG=()=>{t.useCssVars(e=>({"481845f1":e.borderRadius,"5d742c87":e.borderWidth,"5c5d2e24":e.borderColor}))},MG=fT.setup;fT.setup=MG?(e,a)=>(AG(),MG(e,a)):AG;const b4=e=>(t.pushScopeId("data-v-843d4f31"),e=e(),t.popScopeId(),e),NMt={ref:"myDivRef"},BMt={class:"btnViewFullList"},OMt={class:"text"},zMt={class:"groupsLeague"},LMt={class:"row-table-carrousel"},FMt={key:1,class:"container-no-search-result"},DMt={key:0,class:"overlay-loading-top"},VMt=[b4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),b4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],RMt=b4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),$Mt=b4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function jMt(e,a,r,I,L,d){const g=t.resolveComponent("GSCLeaders"),n=t.resolveComponent("GSCRowTable"),_=t.resolveComponent("GSCExpandedInfo"),m=t.resolveComponent("GSCCarousel"),i=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",NMt,[t.createElementVNode("div",BMt,[t.createElementVNode("div",OMt,[t.createElementVNode("div",zMt,t.toDisplayString(r.categoryName),1)])]),r.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[d.topData.length>0?(t.openBlock(),t.createBlock(m,{key:0,items:d.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:d.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",LMt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(b,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[b.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:a[0]||(a[0]=s=>d.emitEventMedia(s,r.category,r.categoryName)),type:r.typeTable,"can-play-videos":r.canPlayVideos,"is-expanded":e.playerexpand==b.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:r.typeTable==0?{top:"01",photo:b.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+b.teamid+".png",name:b.name,player_short:b.name_short,player_id:b.id,categoryId:r.category,total:b.total}:{top:"01",logo:b.img,total:b.total,name_team:b.name,player_id:b.id},"category-name":r.categoryName,buttonMaxWidth:r.typeTable!=0?I.elementSize.width>360?"210px":"130px":I.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:d.clickexpand,onMore:d.morestats},null,8,["type","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(n,{key:1,type:r.typeTable,"type-view":r.type,"is-expanded":e.playerexpand==b.id&&e.expand,onMediadata:a[1]||(a[1]=s=>d.emitEventMedia(s,r.category,r.categoryName)),data:r.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+b.teamid+".png",player_position:b.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+b.country+".jpg",player_games:b.minutes,player_min:b.games,league_name:"          Liga MX          "}:{position:b.top,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,teams_games:"-",category:r.category,total:b.total,id:b.id},height:"71px","can-play-videos":r.canPlayVideos,background:l%2===0?r.backgroundEven:r.backgroundOdd,onExpand:d.clickexpand},null,8,["type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(_,{key:2,type:r.typeTable,"view-effectiveness":b.positionId!==1,data:r.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.position,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:r.categoryName,id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:r.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,attendance:"-",id:b.id},onViewprofile:s=>d.viewprofile(s,b.teamid),background:l%2===0?r.backgroundEven:r.backgroundOdd},null,8,["type","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",FMt,[e.isloading?(t.openBlock(),t.createElementBlock("div",DMt,VMt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[RMt,$Mt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{background:"#183143",type:r.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.topData,(v,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(l,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[t.createVNode(n,{type:r.typeTable,"type-view":r.type,"can-play-videos":r.canPlayVideos,"is-expanded":e.playerexpand==l.id&&e.expand,onMediadata:a[2]||(a[2]=o=>d.emitEventMediaFullTable(o,r.category,r.categoryName)),data:r.typeTable==0?{position:l.top,player_name:l.name,player_short:l.name_short,player_photo:l.img,total:l.total,id:l.id,player_age:l.age,team_abrev:l.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+l.teamid+".png",player_position:l.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+l.country+".jpg",player_games:l.games,player_min:l.minutes,league_name:"          Liga MX          "}:{position:l.positiontable,team_logo:l.img,team_abrev:l.name,frequency:l.frecuency,promthistournament:l.game_avg,promlasttournament:l.game_avg_last_season,category:r.category,team_games:l.games_played,total:l.total,id:l.id},height:"71px",background:((b+1)*5+s)%2===0?r.backgroundOdd:r.backgroundEven,onExpand:d.clickexpand},null,8,["type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==l.id?(t.openBlock(),t.createBlock(_,{key:0,type:r.typeTable,additionalClass:"fullTable","view-effectiveness":l.positionId!==1,data:r.typeTable==0?{teams:l.teamname,age:l.age,dataofbirth:l.date,nationality:l.nationality,countryFlag:l.player_country_flag,position:l.positionfull,positionfull:l.positionfull,games:l.games,min:l.minutes,goals:l.total,effectiveness:l.effectiveness,category:d.getCategoryName(r.category),id:l.id}:{position:l.positiontable,goals:l.goals,goals_received:l.goalsrecived,games_played:l.games_played,category:r.categoryName,effectiveness:l.effectiveness,xg:l.xg,total:l.total,category:d.getCategoryName(r.category),attendance:"-",id:l.id},onViewprofile:o=>d.viewprofile(o,l.teamid),background:s%2===0?r.backgroundEven:r.backgroundOdd},null,8,["type","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const UMt=Jr(fT,[["render",jMt],["__scopeId","data-v-843d4f31"]]),HMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},GMt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},WMt=["src"],qMt=["src"];function YMt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(d.customStyle),class:"gsc-label",onClick:a[0]||(a[0]=(...g)=>d.btnLabel&&d.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(r.numFilter)+" "+t.toDisplayString(r.textValue)+" ",1),r.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(d.customIcon),class:"icon",src:r.icon},null,12,WMt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(d.customStyle)},[t.createTextVNode(t.toDisplayString(r.numFilter)+" "+t.toDisplayString(r.textValue)+" ",1),r.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:a[1]||(a[1]=(...g)=>d.btnClose&&d.btnClose(...g)),style:t.normalizeStyle(d.customIcon),class:"icon",src:r.icon},null,12,qMt)):t.createCommentVNode("",!0)],4))])}const ZMt=HMt(GMt,[["render",YMt],["__scopeId","data-v-42ff544a"]]);function JMt(e){const a=t.ref({width:0,height:0});function r(){const I=e.value.getBoundingClientRect();a.value.width=I.width,a.value.height=I.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const XMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},mT={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},IG=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},PG=mT.setup;mT.setup=PG?(e,a)=>(IG(),PG(e,a)):IG;const KMt={ref:"gscScrollableContainer",class:"scrollable-container"},QMt={class:"scrollable-arrows"},eIt=["width","height","viewBox"],tIt=["stroke"],nIt={class:"scrollable-wrapper"},aIt={class:"scrollable-arrows"},rIt=["width","height","viewBox"],iIt=["stroke"];function oIt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",KMt,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",QMt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,tIt)],8,eIt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",nIt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:a[2]||(a[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",aIt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,iIt)],8,rIt))])],2)):t.createCommentVNode("",!0)],512)}const sIt=XMt(mT,[["render",oIt],["__scopeId","data-v-b548a08d"]]),lIt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},gT={components:{GSCSlider:sIt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=JMt(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},NG=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},BG=gT.setup;gT.setup=BG?(e,a)=>(NG(),BG(e,a)):NG;const cIt={ref:"myDivRef"},dIt={key:0,class:"gs-switch-container"},uIt=["onClick"],hIt={key:1,class:"gs-switch-container-type"},pIt=["onClick"],fIt={key:2,class:"gs-switch-container-carousel"},mIt=["onClick"];function gIt(e,a,r,I,L,d){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cIt,[r.type==0?(t.openBlock(),t.createElementBlock("div",dIt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([d.customGrid(I.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,uIt))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",hIt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([d.customGrid(I.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:r.backgroundOptionDisable}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,pIt))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",fIt,[t.createVNode(g,{arrows:r.arrow,"background-color":r.background,"px-scroll":r.pxScroll,"scroll-color":r.scrollColor,"arrows-position":r.arrowsPosition,arrowsScrollHide:r.arrowsScrollHide,"arrows-background":r.arrowsBackground,"arrows-container-bg-l":r.arrowsContainerBgL,"arrows-container-bg-r":r.arrowsContainerBgR,"arrows-margin":r.arrowsMargin,"arrows-radius":r.arrowsRadius,"arrows-border":r.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,mIt))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const yT=lIt(gT,[["render",gIt],["__scopeId","data-v-8a86dfaf"]]),oyn="",syn="";function yIt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const lyn="",vIt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},_It=t.ref(yIt()),bIt={components:{GSCTableHeader:oG,GscSwitchComponent:yT,GSCFilterperteam:mAt,GSCFilters:jH,GSCExpandedInfo:kG,GSCLabel:ZMt,GSCSeasonSelect:gM,GSCTopCategory:UMt,GSCTournamentSelect:pM,GSCRowTable:hG},computed:{...vEt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},a=JSON.stringify(e);if(JSON.stringify(this.filters)!=a)return a},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{..._It.value}}},props:{currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let a=0;a<e.teams.length;a++)this.teams.push({id:e.teams[a].team_id,team:e.teams[a].colloquial_name,logo:e.teams[a].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=Uy(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Ea,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";return L=L.replace(",",""),d+". "+L},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const a=e.id===this.selectedTournament.id;e.isSelected=a,e.isDefaultTournament=a})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let I=0;I<this.detaildProductivityCategories.offensive.categories.length;I++)this.detaildProductivityCategories.offensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.defensive.categories.length;I++)this.detaildProductivityCategories.defensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.possession.categories.length;I++)this.detaildProductivityCategories.possession.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.offensesConditions.length;I++)this.detaildProductivityCategories.offensesConditions[I]=!1;this.setUpTournamentsToFilter();const a=this.$refs.personalDataFilter;a.clearFilters(Yl.All),a.clearFilters(Yl.AGE_RANGE),a.clearFilters(Yl.YEAR),a.clearFilters(Yl.NATIONALITY),a.clearFilters(Yl.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(I,L)=>L+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let I=0;I<r.teams.length;I++)this.teamsscouting.push({id:r.teams[I].team_id,team:r.teams[I].colloquial_name,logo:r.teams[I].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let L=[e.id],d=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:L,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:d||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,a,r){this.$emit("openProfilePlayer",{playerId:e,teamId:r,seasonId:a||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var r=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let L=0;L<a.length;L++){a[L];let g=a[L].dob.split("T")[0].split("-");var I={position:L+1,player_name:this.abrevName(a[L].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+a[L].player_id+".png",total:a[L].total.toFixed(0),id:a[L].player_id,player_age:this.calcularEdad(a[L].dob),team_abrev:a[L].teams[0].acronym,team_name:a[L].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+a[L].teams[0].team_id+".png",player_position:a[L].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+a[L].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:a[L].team_id,nationality_name:EG[a[L].nationality_id],player_games:a[L].games_played,player_min:a[L].minutes_played,league_name:a[L].tournament_name,seasons:a[L].seasons,season_id:a[L].seasons[0]};this.rowScoutingData.push(I)}if(this.seasonsFilterSelected!=0){const L=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let d=0;d<L.teams.length;d++)this.teamsscouting.push({id:L.teams[d].team_id,team:L.teams[d].colloquial_name,logo:L.teams[d].logo})}this.loadingActive=!1},abrevName(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";L=L.replace(",","");var g=d+". "+L;return g},calcularEdad(e){var a=new Date(e),r=new Date,I=r-a,L=Math.floor(I/(1e3*60*60*24*365.25));return L},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var a=[];for(let r=0;r<e.length;r++)e[r].isSelected&&a.push(e[r].id);if(a.length==0&&(a=[1]),a.length==1)for(let r=0;r<e.length;r++)e[r].isSelected&&(this.nameLeagueSelected=e[r].name,this.seasonsFilterSelected=e[r].seasons[0].id);else this.seasonsFilterSelected=0,a.length>0&&(this.nameLeagueSelected=a.length+" Ligas");this.filterScounting.tournaments=a,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const I=e.ageByRange.min==0?10:e.ageByRange.min,L=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[I,L],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var a=[];if(e.hasOwnProperty("nationalities")){for(let I=0;I<e.nationalities.length;I++)e.nationalities[I].isSelected&&a.push(e.nationalities[I].id);a.length==0&&(a=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var r=[];for(let I=0;I<e.positions.length;I++)e.positions[I].isSelected&&r.push(e.positions[I].id);r.length==0&&(r=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=r,this.filterScounting.nationalities=a},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var a=[];for(let r=0;r<e.productivityFilters.length;r++)a[e.productivityFilters[r].priority-1]={name:e.productivityFilters[r].name,ids:e.productivityFilters[r].id};a.length==0&&(a=[]),this.filterScounting.categories=a,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");a!==-1?this.arrayFiltersPlays[a].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&r!==-1){this.filtersPredefinedF=this.filters;for(let L=0;L<this.FVfilterGolstats.length;L++)this.FVfilterGolstats[L].isSelected=!1;var r=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersPredefined");r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&a!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(a,1);var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(r!==-1){for(let I=0;I<this.FVfilterGolstats.length;I++)this.FVfilterGolstats[I].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var a=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&a!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(a,1);for(let d=0;d<this.categoriesDefault.length;d++)this.categoriesDefault[d].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&r!==-1){for(let d=0;d<this.FVfilterGolstats.length;d++)this.FVfilterGolstats[d].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,a){return Math.floor(Math.random()*(a-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let r=0;r<this.categoriesPlaysTypes.offensive.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.defensive.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.possession.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.offenses.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r])}else for(let r=0;r<e.playsCategories.length;r++)e.playsCategories[r].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[r].id),this.arrayCategoryFilterFull.push(e.playsCategories[r]));var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):a!==-1&&this.arrayFiltersPlays.splice(a,1)},async deleteLabelFilter(e){var a=this.arrayFiltersPlays.findIndex(I=>I.type===e);if(a!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let L=0;L<this.detaildProductivityCategories.offensive.categories.length;L++)this.detaildProductivityCategories.offensive.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.defensive.categories.length;L++)this.detaildProductivityCategories.defensive.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.possession.categories.length;L++)this.detaildProductivityCategories.possession.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.offensesConditions.length;L++)this.detaildProductivityCategories.offensesConditions[L]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(L,d)=>d+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const I=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let L=0;L<I.teams.length;L++)this.teamsscouting.push({id:I.teams[L].team_id,team:I.teams[L].colloquial_name,logo:I.teams[L].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let I=0;I<this.categoriesPlaysTypes.offensive.categories.length;I++)this.categoriesPlaysTypes.offensive.categories[I].isSelected=!0;for(let I=0;I<this.categoriesPlaysTypes.defensive.categories.length;I++)this.categoriesPlaysTypes.defensive.categories[I].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[I]);for(let I=0;I<this.categoriesPlaysTypes.possession.categories.length;I++)this.categoriesPlaysTypes.possession.categories[I].isSelected=!0;for(let I=0;I<this.categoriesPlaysTypes.offenses.categories.length;I++)this.categoriesPlaysTypes.offenses.categories[I].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let I=0;I<this.FVfilterGolstats.length;I++)this.FVfilterGolstats[I].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");r!==-1&&this.arrayFiltersPlays.splice(r,1);for(let I=0;I<this.categoriesDefault.length;I++)this.categoriesDefault[I].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Yl.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Yl.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(a,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersField");a!=-1?this.arrayFiltersPlays[a].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(a!=-1?this.arrayFiltersPlays[a].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(a!=-1?this.arrayFiltersPlays[a].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(a!=-1?this.arrayFiltersPlays[a].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(a!=-1?this.arrayFiltersPlays[a].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(a!=-1?this.arrayFiltersPlays[a].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(a!=-1?this.arrayFiltersPlays[a].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(a,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var a=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var r=[];for(let d=0;d<e.playingAs.length;d++)if(e.playingAs[d].isSelected){const g=e.playingAs[d].name=="Local"?1:2;a.push(g)}for(let d=0;d<e.gameSections.length;d++)e.gameSections[d].isSelected&&r.push(e.gameSections[d].value);this.fVsections=r,this.fVplayingAs=a;var I=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersDetailsTime"),L="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(L+=", 0-15"),this.fVsections.includes(2)&&(L+=", 15-30"),this.fVsections.includes(3)&&(L+=", 30-45"),this.fVsections.includes(4)&&(L+=", 45-60"),this.fVsections.includes(5)&&(L+=", 60-75"),this.fVsections.includes(6)&&(L+=", 75-90"),I!=-1?this.arrayFiltersPlays[I].name=L:this.arrayFiltersPlays.push({name:L,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(I!=-1?this.arrayFiltersPlays[I].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):I!=-1&&this.arrayFiltersPlays.splice(I,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(I,L)=>L+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(Yl.All),e.clearFilters(Yl.AGE_RANGE),e.clearFilters(Yl.YEAR),e.clearFilters(Yl.NATIONALITY),e.clearFilters(Yl.POSITION),this.rowScoutingData=[];for(let I=0;I<this.detaildProductivityCategories.offensive.categories.length;I++)this.detaildProductivityCategories.offensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.defensive.categories.length;I++)this.detaildProductivityCategories.defensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.possession.categories.length;I++)this.detaildProductivityCategories.possession.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.offensesConditions.length;I++)this.detaildProductivityCategories.offensesConditions[I]=!1;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(a,1),this.setUpTournamentsToFilter();const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let I=0;I<r.teams.length;I++)this.teamsscouting.push({id:r.teams[I].team_id,team:r.teams[I].colloquial_name,logo:r.teams[I].logo})},onFiltersData(e){var a=0,r=0;e.ageByRange&&(e.ageByRange.min==0?a=1:a=e.ageByRange.min,e.ageByRange.max==0?r=40:r=e.ageByRange.max,this.fVarrayAgeRange=[a,r]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let I="",L="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let b=0;b<e.nationalities.length;b++)e.nationalities[b].isSelected&&this.fVnationalities.add(e.nationalities[b].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let b=0;b<this.elegibilidadArray.length;b++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[b])}for(let b=0;b<e.positions.length;b++)e.positions[b].isSelected&&this.fVsetPositionsIds.push(e.positions[b].id);if(e.hasOwnProperty("nationalities"))var d=e.nationalities.filter(b=>b.isSelected===!0);var g=e.positions.filter(b=>b.isSelected===!0);if(g.length==1&&(I=g[0].name),e.hasOwnProperty("nationalities")&&d.length==1&&(L=d[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var _=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPosition");_!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[_].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+I:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+I,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var m=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersYear");m!=-1?this.arrayFiltersPlays[m].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var i=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");i!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[i].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(i,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersAge");i!=-1&&this.arrayFiltersPlays.splice(i,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+L:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+L,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let r=0;r<a.teams.length;r++)this.teamsscouting.push({id:a.teams[r].team_id,team:a.teams[r].colloquial_name,logo:a.teams[r].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a},async fetchTeams(){const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.teamsUrl+this.seasonActive);return a},async fetchTeamsScouting(e){const a=Il.create({headers:{Authorization:`${this.token}`}}),{data:r}=await a.get(this.teamsUrl+e);return r},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var a="";e.id==1?a=this.urlFilter:a=this.urlFilter;const r=Il.create({headers:{Authorization:`${this.token}`}}),{data:I}=await r.get(a+e.id);if(Object.keys(I[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=I[0].match_lapse_combinations[v]}),Object.keys(I[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=I[0].playing_as_combinations[v]}),Object.keys(I[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=I[0].field_sections_combinations[v]}),I[0]){for(let v=0;v<I[0].filter_records.length;v++){var L=I[0].description;if(I[0].filter_records[v].field_sections!==void 0){const l=I[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[l]||this.predefinedFiltersSections[l]=="")&&(this.predefinedFiltersSections[l]==""?L=L.replace(" [en {field_sections}]",this.predefinedFiltersSections[l]):L=L.replace("{field_sections}",this.predefinedFiltersSections[l]))}if(I[0].filter_records[v].match_lapse!==void 0){const l=I[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[l]||this.predefinedFiltersMatchLapse[l]=="")&&(this.predefinedFiltersMatchLapse[l]==""?L=L.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[l]):L=L.replace("{match_lapse}",this.predefinedFiltersMatchLapse[l]))}if(I[0].filter_records[v].playing_as!==void 0){const l=I[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?L=L.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):L=L.replace("{playing_as}",this.predefinedFiltersPlayingAs[l]))}I[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?L=L.replace("{section_type}","Jugadores"):L=L.replace("{section_type}","Equipos")),L=L.replace(/\[/g,""),L=L.replace(/\]/g,""),L=L.replace("{category_name}",I[0].category_name);const b=L.split(": ");var d=b[1];d.length>129&&this.windowWidth>1358&&(d=d.substring(0,129),d=d+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||I[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:I[0].id,title:b[0]+":",text:b[1],textOrigin:I[0].description,titledots:d,filtersPredefined:{matchResult:I[0].filter_records[v].match_result,playingAs:I[0].filter_records[v].playing_as,sections:I[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:I[0].type_zone,zone:I[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var n=0,_=new Set,m={},i=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(i=i.replace(/\*/g,""),i=i.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?m.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?m.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?m.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:m.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(n+=1),m.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let b=0;b<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;b++)_.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[b]);m.setNationalitiesIds=_}else _.add(138),_.add(222),_.add(163),_.add(51),_.add(226),_.add(10),_.add(223),_.add(96),_.add(171),_.add(198),_.add(105),_.add(80),_.add(29),_.add(74),_.add(216),_.add(196),_.add(64),_.add(155),_.add(156),_.add(89),_.add(106),_.add(81),_.add(233),_.add(204),m.setNationalitiesIds=_;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(n+=1),m.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?m.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:m.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?m.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:m.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?m.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:m.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],m.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:i,isSelected:!1,value:n,filters:m})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const a=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((i,v)=>i-v).toString();this.predefinedFiltersSections[a]||this.predefinedFiltersSections[a]==""?this.predefinedFiltersSections[a]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var r=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(r=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(r||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const I=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[I]||this.predefinedFiltersMatchLapse[I]=="")this.predefinedFiltersMatchLapse[I]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[I]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[I]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var L="";I.includes(1)&&(L=L+"0-15, "),I.includes(2)&&(L=L+"16-30, "),I.includes(3)&&(L=L+"31-45, "),I.includes(4)&&(L=L+"46-60, "),I.includes(5)&&(L=L+"61-75, "),I.includes(6)&&(L=L+"76-90, "),L=L.slice(0,-2),L=L.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",L)}const d=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[d])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let n=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),_=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const m=_.match(/\*/g);if(m&&m.length)if(m.length%2===0)for(let i=1;i<=m.length;i++)i%2===0||(_=_.replace("*",'<span style="color: #ffff03" >'));else _=_.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=_},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=Il.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(r=>(delete r.headers.Authorization,r));const a=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=a.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},xIt={ref:"myDivRefTopsFull"},wIt={key:0,class:"overlay-loading"},kIt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],CIt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],TIt={key:0,class:"cont-leyemd-multipleleagues"},SIt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),EIt={key:0,style:{"margin-left":"10px"}},AIt=t.createElementVNode("span",null,"Tipo de Jugada",-1),MIt=t.createElementVNode("span",null,"Filtro GolStats",-1),IIt={key:3,style:{width:"100%",height:"295px"}};function PIt(e,a,r,I,L,d){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCFilterperteam"),_=t.resolveComponent("GSCFilters"),m=t.resolveComponent("GSCLabel"),i=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),b=t.resolveComponent("GSCRowTable"),l=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",xIt,[L.loadingActive?(t.openBlock(),t.createElementBlock("div",wIt,kIt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[L.optionSelected!="Scouting"&&L.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(n,{data:L.teams,"team-id":r.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:d.clickTeam,onClickAll:d.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(L.showfiltersPc?"":I.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[I.elementSize.width>760&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:a[1]||(a[1]=(...s)=>d.clickCloseFilters&&d.clickCloseFilters(...s))},CIt,2)):t.createCommentVNode("",!0),L.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":L.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:d.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(L.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:a[3]||(a[3]=(...s)=>d.openMenuFilters&&d.openMenuFilters(...s))},null,6),[[t.vShow,I.elementSize.width<760&&L.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[L.optionSelectedSubmenu=="Todas las jugadas"&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[I.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersPlays,filters:L.categoriesPlaysTypes,onApply:d.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!L.showFullTable]]),(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{key:L.updateFilterField,"filter-type":L.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersField,filters:L.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersDetails,filters:L.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),L.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(_,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:r.seasonActive,tournamentId:L.tournamentSelectedObj.value},token:L.token,"onUpdate:filters":d.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),L.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[I.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:L.tournamentsToFilter,key:L.keyTournamentValue,"onUpdate:filters":d.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:L.filterScounting.seasonId,tournamentId:L.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":d.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:L.universeData,"onUpdate:filters":d.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersProductivity,filters:L.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:a[4]||(a[4]=(...s)=>d.getScoutingData&&d.getScoutingData(...s))},"Buscar",2)],64)):t.createCommentVNode("",!0),L.optionSelectedSubmenu=="Predeterminados"&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps,modalHeight:"300px"},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModePropsTypePlays,{"filter-type":L.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:L.updateFilterPlaytypesGolstats,"onUpdate:filters":d.onFiltersPlaysTypes,filters:L.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps,modalHeight:"300px"},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:L.updateFilterGolstats,"onUpdate:filters":d.onFiltersGolStats,filters:d.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,I.elementSize.width>760||L.openMenuMobil]]),L.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[L.filterScounting.tournaments.length>1&&L.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",TIt,[SIt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(n,{data:L.teamsscouting,"team-id":L.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:L.updateFilterTeamsScouting,onClickTeam:d.clickTeamScouting,onClickAll:d.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[L.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[L.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),L.optionSelected!="Scouting"&&L.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[L.showFullTable?(t.openBlock(),t.createElementBlock("div",EIt,[t.createVNode(m,{"text-value":"Categoría - "+L.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:d.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayFiltersPlays,(s,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(m,{"text-value":s.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:d.deleteLabelFilter,id:s.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:I.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),L.rowScoutingData.length!=0||L.optionSelectedSubmenu=="Predeterminados"&&L.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:a[5]||(a[5]=(...s)=>d.onClickDeleteFilter&&d.onClickDeleteFilter(...s))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),r.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(L.showFullTable?"gap: 0px!important;":"")},[L.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.categoriesDefault,(s,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!L.showOnlyCategories&&L.arrayCategoryFilter.includes(s.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,onMore:d.onShowFullTable,"border-width":0,onIntervalidtops:d.intervalidtops,"can-play-videos":r.canPlayVideos,"border-radius":"12px","game-id":r.gameId,game:r.game,typeData:r.typeData,"filters-prop":d.filterChange,category:s.id,"type-table":L.typeTable,categoryName:s.name,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTables,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia,onComponentLoaded:e.onComponentLoaded},null,8,["is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[t.vShow,!L.showOnlyCategories&&L.arrayCategoryFilter.includes(s.id)&&!L.showFullTable]])],4))),128)),L.showFullTable?(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,"border-width":0,"border-radius":"12px","game-id":r.gameId,onIntervalidtops:d.intervalidtops,game:r.game,typeData:r.typeData,category:L.showFullCategory,type:1,"type-table":L.typeTable,categoryName:"","filters-prop":d.filterChange,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTablesfull,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia},null,8,["is-team","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[L.categoryPredefinedActive?(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,onIntervalidtops:d.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":r.canPlayVideos,"game-id":r.gameId,game:r.game,typeData:r.typeData,category:L.categoryPredefined,type:1,"type-table":L.typeTable,categoryName:"","filters-prop":d.filterChangePredefined,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTables,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia},null,8,["is-team","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[AIt,t.createTextVNode(" y un "),MIt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(L.rowScoutingData.length>0?"height: auto;":"")},[L.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.rowScoutingData,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[L.teamselectrec==0||L.teamselectrec==s.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(b,{type:2,"is-expanded":L.playerexpand==s.id&&L.expand,onMediadata:d.setMediaData,data:{position:s.position,player_name:s.player_name,player_photo:s.player_photo,total:s.total,id:s.id,player_age:s.player_age,team_abrev:s.team_abrev,team_logo:s.team_logo,player_position:L.positions[s.player_position-1].fullname,player_country_flag:s.player_country_flag,player_games:s.player_games,player_min:s.player_min,league_name:s.league_name,seasons:s.seasons,season_id:s.season_id},height:"71px",background:o%2===0?r.backgroundOdd:r.backgroundEven,onExpand:d.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),L.expand&&L.playerexpand==s.id?(t.openBlock(),t.createBlock(l,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:s.team_name,age:s.player_age,dataofbirth:s.date,nationality:s.nationality_name,countryFlag:s.player_country_flag,position:L.positions[s.player_position-1].name,games:s.player_games,min:s.player_min,goals:s.total,effectiveness:"-",category:"total",id:s.id},onViewprofile:c=>d.viewprofile(c,s.season_id,s.team_id),background:o%2===0?r.backgroundOdd:r.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),L.rowScoutingData.length==0&&!L.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),L.rowScoutingData.length==0&&!L.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:a[6]||(a[6]=(...s)=>d.onClickDeleteFilter&&d.onClickDeleteFilter(...s))}," Eliminar filtros aplicados ",2),L.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:a[7]||(a[7]=(...s)=>d.getScoutingData&&d.getScoutingData(...s))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),L.loadingActive?(t.openBlock(),t.createElementBlock("div",IIt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const NIt=Jr(bIt,[["render",PIt],["__cssModules",{$style:vIt}]]),r2n="";let OG=null;const BIt={components:{GSCDatosGSMain:yEt,GSCCheckbox:C0,GSCRadioToggle:MU,GSCTopFull:NIt},props:{game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)OG=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),OG.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData==1?(e.gameIds=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},OIt=e=>(t.pushScopeId("data-v-014084ec"),e=e(),t.popScopeId(),e),zIt={class:"container-comparative",ref:"comparative"},LIt={class:"container-btn"},FIt={class:"items-container-btn"},DIt={class:"container-sections"},VIt={class:"container-teams-menu"},RIt={class:"container-team-menu-home"},$It=["src"],jIt=OIt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),UIt={class:"container-team-menu-away"},HIt=["src"],GIt={key:0,class:"container-switch-menu"},WIt={class:"container-leyend"},qIt={class:"container-tops"};function YIt(e,a,r,I,L,d){const g=t.resolveComponent("GSCDatosGSMain"),n=t.resolveComponent("GSCCheckbox"),_=t.resolveComponent("GSCRadioToggle"),m=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",zIt,[t.createElementVNode("div",LIt,[t.createElementVNode("div",FIt,[t.createElementVNode("div",{class:t.normalizeClass([L.widthSection>480?"btn-destacados":"btn-destacados-movil",L.activeSection=="destacados"?"active":""]),onClick:a[0]||(a[0]=i=>d.clickOptSection("destacados"))},[r.game.status==1||r.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadores destacados")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([L.widthSection>480?"btn-avanced":"btn-avanced-movil",L.activeSection=="avanzado"?"active":""]),onClick:a[1]||(a[1]=i=>d.clickOptSection("avanzado"))},"Avanzado",2)])]),t.createElementVNode("div",DIt,[L.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,game:r.game,"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia},null,8,["game","play-videos-privileges","onOpenmedia"])):t.createCommentVNode("",!0),L.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",VIt,[t.createElementVNode("div",RIt,[(t.openBlock(),t.createBlock(n,{fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:L.updateHomeCheck,"model-value":L.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:r.game.homeTeam.logo},null,8,$It),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(r.game.homeTeam.colloquial_name),3)]),jIt,t.createElementVNode("div",UIt,[t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(r.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:r.game.awayTeam.logo},null,8,HIt),(t.openBlock(),t.createBlock(n,{fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:L.updateAwayCheck,"model-value":L.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])]),r.game.status==1?(t.openBlock(),t.createElementBlock("div",GIt,[t.createVNode(_,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":L.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:d.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",WIt,[L.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Jugadores destacados durante lo que va del torneo ")],64))],64))]),t.createElementVNode("div",qIt,[t.createVNode(m,{"can-play-videos":r.canPlayVideos,onOpenmedia:d.openmedia,onOpenProfileTeam:d.onOpenProfileTeam,onIntervalidtops:d.intervalidtops,onOpenProfilePlayer:d.onOpenProfilePlayer,"type-data":L.typeViewData,"game-id":r.game.gameId,game:r.game,"current-season-id":r.game.seasonId,"team-id":L.teamactive,"season-active":r.game.seasonId,teamselect:L.teamactive},null,8,["can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const ZIt=Jr(BIt,[["render",YIt],["__scopeId","data-v-014084ec"]]);function zG(e,a){return function(){return e.apply(a,arguments)}}const{toString:JIt}=Object.prototype,{getPrototypeOf:vT}=Object,x4=(e=>a=>{const r=JIt.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fh=e=>(e=e.toLowerCase(),a=>x4(a)===e),w4=e=>a=>typeof a===e,{isArray:A1}=Array,Hy=w4("undefined");function XIt(e){return e!==null&&!Hy(e)&&e.constructor!==null&&!Hy(e.constructor)&&Bu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LG=fh("ArrayBuffer");function KIt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&LG(e.buffer),a}const QIt=w4("string"),Bu=w4("function"),FG=w4("number"),k4=e=>e!==null&&typeof e=="object",ePt=e=>e===!0||e===!1,C4=e=>{if(x4(e)!=="object")return!1;const a=vT(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tPt=fh("Date"),nPt=fh("File"),aPt=fh("Blob"),rPt=fh("FileList"),iPt=e=>k4(e)&&Bu(e.pipe),oPt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Bu(e.append)&&((a=x4(e))==="formdata"||a==="object"&&Bu(e.toString)&&e.toString()==="[object FormData]"))},sPt=fh("URLSearchParams"),[lPt,cPt,dPt,uPt]=["ReadableStream","Request","Response","Headers"].map(fh),hPt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gy(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),A1(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function DG(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const VG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,RG=e=>!Hy(e)&&e!==VG;function _T(){const{caseless:e}=RG(this)&&this||{},a={},r=(I,L)=>{const d=e&&DG(a,L)||L;C4(a[d])&&C4(I)?a[d]=_T(a[d],I):C4(I)?a[d]=_T({},I):A1(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Gy(arguments[I],r);return a}const pPt=(e,a,r,{allOwnKeys:I}={})=>(Gy(a,(L,d)=>{r&&Bu(L)?e[d]=zG(L,r):e[d]=L},{allOwnKeys:I}),e),fPt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mPt=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},gPt=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&vT(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},yPt=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},vPt=e=>{if(!e)return null;if(A1(e))return e;let a=e.length;if(!FG(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},_Pt=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&vT(Uint8Array)),bPt=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},xPt=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},wPt=fh("HTMLFormElement"),kPt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),$G=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),CPt=fh("RegExp"),jG=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Gy(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},TPt=e=>{jG(e,(a,r)=>{if(Bu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(Bu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},SPt=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return A1(e)?I(e):I(String(e).split(a)),r},EPt=()=>{},APt=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,bT="abcdefghijklmnopqrstuvwxyz",UG="0123456789",HG={DIGIT:UG,ALPHA:bT,ALPHA_DIGIT:bT+bT.toUpperCase()+UG},MPt=(e=16,a=HG.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function IPt(e){return!!(e&&Bu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const PPt=e=>{const a=new Array(10),r=(I,L)=>{if(k4(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=A1(I)?[]:{};return Gy(I,(g,n)=>{const _=r(g,L+1);!Hy(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},NPt=fh("AsyncFunction"),BPt=e=>e&&(k4(e)||Bu(e))&&Bu(e.then)&&Bu(e.catch),qa={isArray:A1,isArrayBuffer:LG,isBuffer:XIt,isFormData:oPt,isArrayBufferView:KIt,isString:QIt,isNumber:FG,isBoolean:ePt,isObject:k4,isPlainObject:C4,isReadableStream:lPt,isRequest:cPt,isResponse:dPt,isHeaders:uPt,isUndefined:Hy,isDate:tPt,isFile:nPt,isBlob:aPt,isRegExp:CPt,isFunction:Bu,isStream:iPt,isURLSearchParams:sPt,isTypedArray:_Pt,isFileList:rPt,forEach:Gy,merge:_T,extend:pPt,trim:hPt,stripBOM:fPt,inherits:mPt,toFlatObject:gPt,kindOf:x4,kindOfTest:fh,endsWith:yPt,toArray:vPt,forEachEntry:bPt,matchAll:xPt,isHTMLForm:wPt,hasOwnProperty:$G,hasOwnProp:$G,reduceDescriptors:jG,freezeMethods:TPt,toObjectSet:SPt,toCamelCase:kPt,noop:EPt,toFiniteNumber:APt,findKey:DG,global:VG,isContextDefined:RG,ALPHABET:HG,generateString:MPt,isSpecCompliantForm:IPt,toJSONObject:PPt,isAsyncFn:NPt,isThenable:BPt};function Xi(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}qa.inherits(Xi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GG=Xi.prototype,WG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{WG[e]={value:e}}),Object.defineProperties(Xi,WG),Object.defineProperty(GG,"isAxiosError",{value:!0}),Xi.from=(e,a,r,I,L,d)=>{const g=Object.create(GG);return qa.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xi.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const OPt=null;function xT(e){return qa.isPlainObject(e)||qa.isArray(e)}function qG(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function YG(e,a,r){return e?e.concat(a).map(function(I,L){return I=qG(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function zPt(e){return qa.isArray(e)&&!e.some(xT)}const LPt=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function T4(e,a,r){if(!qa.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=qa.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!qa.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&qa.isSpecCompliantForm(a);if(!qa.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(qa.isDate(l))return l.toISOString();if(!n&&qa.isBlob(l))throw new Xi("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(l)||qa.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(qa.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(qa.isArray(l)&&zPt(l)||(qa.isFileList(l)||qa.endsWith(s,"[]"))&&(c=qa.toArray(l)))return s=qG(s),c.forEach(function(u,h){!(qa.isUndefined(u)||u===null)&&a.append(g===!0?YG([s],h,d):g===null?s:s+"[]",_(u))}),!1}return xT(l)?!0:(a.append(YG(o,s,d),_(l)),!1)}const i=[],v=Object.assign(LPt,{defaultVisitor:m,convertValue:_,isVisitable:xT});function b(l,s){if(!qa.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),qa.forEach(l,function(o,c){(!(qa.isUndefined(o)||o===null)&&L.call(a,o,qa.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!qa.isObject(e))throw new TypeError("data must be an object");return b(e),a}function ZG(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function wT(e,a){this._pairs=[],e&&T4(e,this,a)}const JG=wT.prototype;JG.append=function(e,a){this._pairs.push([e,a])},JG.toString=function(e){const a=e?function(r){return e.call(this,r,ZG)}:ZG;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function FPt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function XG(e,a,r){if(!a)return e;const I=r&&r.encode||FPt,L=r&&r.serialize;let d;if(L?d=L(a,r):d=qa.isURLSearchParams(a)?a.toString():new wT(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class KG{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){qa.forEach(this.handlers,function(r){r!==null&&a(r)})}}const QG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DPt=typeof URLSearchParams<"u"?URLSearchParams:wT,VPt=typeof FormData<"u"?FormData:null,RPt=typeof Blob<"u"?Blob:null,$Pt={isBrowser:!0,classes:{URLSearchParams:DPt,FormData:VPt,Blob:RPt},protocols:["http","https","file","blob","url","data"]},kT=typeof window<"u"&&typeof document<"u",jPt=(e=>kT&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),UPt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HPt=kT&&window.location.href||"http://localhost",GPt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kT,hasStandardBrowserEnv:jPt,hasStandardBrowserWebWorkerEnv:UPt,origin:HPt},Symbol.toStringTag,{value:"Module"})),mh={...GPt,...$Pt};function WPt(e,a){return T4(e,new mh.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return mh.isNode&&qa.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function qPt(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function YPt(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function eW(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&qa.isArray(L)?L.length:g,_?(qa.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!qa.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&qa.isArray(L[g])&&(L[g]=YPt(L[g])),!n)}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const r={};return qa.forEachEntry(e,(I,L)=>{a(qPt(I),L,r,0)}),r}return null}function ZPt(e,a,r){if(qa.isString(e))try{return(a||JSON.parse)(e),qa.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const Wy={transitional:QG,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=qa.isObject(e);if(L&&qa.isHTMLForm(e)&&(e=new FormData(e)),qa.isFormData(e))return I?JSON.stringify(eW(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return WPt(e,this.formSerializer).toString();if((d=qa.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return T4(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),ZPt(e)):e}],transformResponse:[function(e){const a=this.transitional||Wy.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Xi.from(d,Xi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mh.classes.FormData,Blob:mh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{Wy.headers[e]={}});const JPt=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XPt=e=>{const a={};let r,I,L;return e&&e.split(`
3578
+ */const Xc={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},CG={itemsToShow:{default:Xc.itemsToShow,type:Number},itemsToScroll:{default:Xc.itemsToScroll,type:Number},wrapAround:{default:Xc.wrapAround,type:Boolean},throttle:{default:Xc.throttle,type:Number},snapAlign:{default:Xc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Xc.transition,type:Number},breakpoints:{default:Xc.breakpoints,type:Object},autoplay:{default:Xc.autoplay,type:Number},pauseAutoplayOnHover:{default:Xc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Xc.mouseDrag,type:Boolean},touchDrag:{default:Xc.touchDrag,type:Boolean},dir:{default:Xc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Xc.i18n,type:Object},settings:{default(){return{}},type:Object}};function aMt({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(a-1,0);let d;switch(r){case"start":d=a-L;break;case"end":d=a-1;break;case"center":case"center-odd":d=a-Math.ceil((L-.5)/2);break;case"center-even":d=a-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function rMt({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>a)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function hT({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function iMt({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=a;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:hT({val:g,max:r-d,min:0})}function TG(e){return e?e.reduce((a,r)=>{var I;return r.type===t.Fragment?[...a,...TG(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function pT({val:e,max:a,min:r=0}){return e>a?pT({val:e-(a+1),max:a,min:r}):e<r?pT({val:e+(a+1),max:a,min:r}):e}function oMt(e,a){let r;return a?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,a))}:e}function sMt(e,a){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},a)}}function lMt(e="",a={}){return Object.entries(a).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var cMt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Xc))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lMt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),dMt=t.defineComponent({name:"Carousel",props:CG,setup(e,{slots:a,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),n=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},Xc));let i=Object.assign({},Xc),v;const b=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),l=t.ref(0),s=t.ref(0),o=t.ref(0),c=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",b),t.provide("maxSlide",o),t.provide("minSlide",c),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},i);te.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),v[se])),de}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=sMt(()=>{f(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){_.value<=0||(s.value=Math.ceil((_.value-1)/2),o.value=aMt({config:m,slidesCount:_.value}),c.value=rMt({config:m,slidesCount:_.value}),m.wrapAround||(b.value=hT({val:b.value,max:o.value,min:c.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),R(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=oMt(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const de=he=>{he.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}q(b.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function R(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function V(){u&&(clearInterval(u),u=null),R()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:hT({val:te,max:o.value,min:c.value});b.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!0,l.value=b.value,b.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=pT({val:ee,max:o.value,min:0});se!==b.value&&(b.value=se,r("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}r("update:modelValue",b.value),r("slide-end",{currentSlideIndex:b.value,prevSlideIndex:l.value,slidesCount:_.value}),j.value=!1,V()},m.transition))}function $(){q(b.value+m.itemsToScroll)}function G(){q(b.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>iMt({config:m,currentSlide:b.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function J(){p(),f(),M(),x(),V()}Object.keys(CG).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],J)}),t.watch(()=>e.modelValue,te=>{te!==b.value&&q(Number(te))}),t.watch(_,M),r("before-init"),p();const le={config:m,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:b,maxSlide:o,minSlide:c,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:J,slideTo:q,next:$,prev:G,nav:Z,data:le});const re=a.default||a.slides,ae=a.addons,oe=t.reactive(le);return()=>{const te=TG(re==null?void 0:re(oe)),ee=(ae==null?void 0:ae(oe))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,xe)=>t.cloneVNode(ve,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),ge=te.map((ve,xe)=>t.cloneVNode(ve,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...fe,...te,...ge]}g.value=te,_.value=Math.max(te.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),he=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[he,ee,t.h(cMt)])}}}),SG;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(SG||(SG={}));var uMt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},Xc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=()=>e.index===I.value,n=()=>e.index===I.value-1,_=()=>e.index===I.value+1,m=()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v};return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":d.value},"aria-hidden":!m()},(i=a.default)===null||i===void 0?void 0:i.call(a))}}});const hMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},pMt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),fMt={class:"gsc-carousel"},mMt={key:0},gMt=pMt(()=>t.createElementVNode("div",null,"no hay",-1)),yMt=[gMt],vMt={class:"gsc-carousel__2d__slides"},_Mt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bMt=["fill"],xMt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wMt=["fill"],kMt={class:"gsc-carousel__2d__navigation"},CMt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TMt=["stroke"],SMt={key:1,class:"gsc-carousel__2d__navigation__pagination"},EMt=["onClick"],AMt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MMt=["stroke"],IMt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:r}){const I=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const L=t.ref(null),d=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,_(I.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>I.currentItemIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.defaultItemByIndex,o=>{g.value!==o&&b(o)}),t.watch(()=>I.items,o=>{L.value?_(o):n.value=!0},{immediate:!0});function _(o){o&&o.length&&L.value&&setTimeout(()=>{if(I.defaultItemByProp){const c=I.items.findIndex(u=>u[I.defaultItemByProp.propName]===I.defaultItemByProp.value);c!==-1?(g.value=c,d.value=o[c]):(g.value=0,d.value=o[0])}else g.value=I.defaultItemByIndex,d.value=o[I.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),d.value&&g.value===0&&r("input",{selectedItem:d.value,selectedItemIndex:g.value})},500)}function m(){L.value&&L.value.next()}function i(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function b(o){L.value&&L.value.slideTo(o)}function l(o){L.value.slideTo(o)}function s(o){const c=o.slidingToIndex<0?I.items.length-1:o.slidingToIndex===I.items.length?0:o.slidingToIndex;g.value=c,d.value=I.items[c],r("update:currentItemIndex",c),r("input",{selectedItem:d.value,selectedItemIndex:g.value})}return a({prev:i,next:m,updateSlideWidth:v,slideTo:b}),(o,c)=>(t.openBlock(),t.createElementBlock("div",fMt,[I.is3d?(t.openBlock(),t.createElementBlock("div",mMt,yMt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",vMt,[t.createVNode(t.unref(dMt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createBlock(t.unref(uMt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[0]||(c[0]=u=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",_Mt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,bMt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:c[1]||(c[1]=u=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",xMt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,wMt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",kMt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:c[2]||(c[2]=u=>i())},[(t.openBlock(),t.createElementBlock("svg",CMt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:I.arrowsColor},null,8,TMt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",SMt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${I.navigationHeight}px`,width:`${g.value===h?I.navigationActiveWidth:I.navigationActiveWidth/2}px`,borderRadius:`${I.navigationBorderRadius}px`,backgroundColor:`${g.value===h?I.navigationActiveColor:I.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>l(h)},null,12,EMt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:c[3]||(c[3]=u=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",AMt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:I.arrowsColor},null,8,MMt)]))])):t.createCommentVNode("",!0)])],2))]))}},PMt=hMt(IMt,[["__scopeId","data-v-54620d25"]]),nyn="",EG={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},ayn="",fT={components:{GSCCarousel:PMt,GSCLeaders:EAt,GSCRowTable:hG,GSCTableHeader:oG,GSCExpandedInfo:kG},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:Object,default:()=>{}},game:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Uy(e);return{myDivRef:e,elementSize:a}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season))}},typeData:{immediate:!1,async handler(e){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,a){e&&(JSON.stringify(e)!==JSON.stringify(a)||this.sonConjuntosDistintos(e.setNationalitiesIds,a.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},a={},r=[],I=[],L=[];return this.formatFilterStats.map(d=>{e[d.team_id]?e[d.team_id].total=e[d.team_id].total+d.total:(e[d.team_id]={},e[d.team_id].total=d.total,e[d.team_id].id=this.teamInfo[d.team_id].id,e[d.team_id].name=this.teamInfo[d.team_id].name.replace(" Femenil",""),e[d.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+d.team_id+".png",e[d.team_id].effectiveness=this.teamInfo[d.team_id].effectiveness,e[d.team_id].frecuency=this.teamInfo[d.team_id].frecuency,e[d.team_id].game_avg=this.teamInfo[d.team_id].game_avg,e[d.team_id].game_avg_last_season=this.teamInfo[d.team_id].game_avg_last_season,e[d.team_id].games_played_lastseason=this.teamInfo[d.team_id].games_played_lastseason,e[d.team_id].games_played=this.teamInfo[d.team_id].games_played,e[d.team_id].positiontable=this.teamInfo[d.team_id].positiontable,e[d.team_id].goals=this.teamInfo[d.team_id].goals,e[d.team_id].goalsrecived=this.teamInfo[d.team_id].goalsrecived,e[d.team_id].xg=this.teamInfo[d.team_id].xg),a[d.player_id]?d.player_id!=0&&d.player_id!=62117&&(a[d.player_id].total=a[d.player_id].total+d.total):d.player_id!=0&&d.player_id!=62117&&(a[d.player_id]={},a[d.player_id].total=d.total,d.player_id&&this.playersInfo[d.player_id]?(a[d.player_id].name=this.playersInfo[d.player_id].name,a[d.player_id].name_short=this.getnameshort(this.playersInfo[d.player_id].name),a[d.player_id].img=this.playersInfo[d.player_id].img,a[d.player_id].id=this.playersInfo[d.player_id].id,a[d.player_id].age=this.playersInfo[d.player_id].age,a[d.player_id].team=this.playersInfo[d.player_id].team,a[d.player_id].teamname=this.playersInfo[d.player_id].teamname,a[d.player_id].teamid=this.playersInfo[d.player_id].teamid,a[d.player_id].position=this.playersInfo[d.player_id].position,a[d.player_id].positionId=this.playersInfo[d.player_id].positionId,a[d.player_id].positionfull=this.playersInfo[d.player_id].positionfull,a[d.player_id].country=this.playersInfo[d.player_id].country,a[d.player_id].effectiveness=this.playersInfo[d.player_id].effectiveness,a[d.player_id].minutes=this.playersInfo[d.player_id].minutes_played,a[d.player_id].games=this.playersInfo[d.player_id].games_played,a[d.player_id].date=this.playersInfo[d.player_id].date,a[d.player_id].nationality=this.playersInfo[d.player_id].nationality,a[d.player_id].player_country_flag=this.playersInfo[d.player_id].player_country_flag,a[d.player_id].categoryName=this.categoryName):(a[d.player_id].id=d.player_id,a[d.player_id].name=d.player_id,a[d.player_id].img="SIN IMAGEN",a[d.player_id].age="",a[d.player_id].teamname="",a[d.player_id].team="",a[d.player_id].teamid=0,a[d.player_id].position="",a[d.player_id].positionId=0,a[d.player_id].positionfull="",a[d.player_id].country="",a[d.player_id].effectiveness="",a[d.player_id].minutes="",a[d.player_id].games="",a[d.player_id].date="00-00-0000",a[d.player_id].nationality="",a[d.player_id].player_country_flag="",a[d.player_id].categoryName=""))}),r.push(...Object.values(e)),I.push(...Object.values(a)),r=this.sortAndSlice(Object.values(e),60),I=I.sort(this.compareObjectsMinutes).slice(0,60),I=I.map((d,g)=>(d.top=g<9?"0"+(g+1):""+(g+1),d)),r=r.map((d,g)=>(d.top=g<9?"0"+(g+1):""+(g+1),d)),this.filterTeam!==0&&!this.isTeam&&(L=I.filter(d=>d.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(r):this.filterTeam!=0?this.formatArrayPaginate(L):this.formatArrayPaginate(I)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,a){return e.total>a.total?-1:e.total<a.total?1:e.minutes<a.minutes?-1:e.minutes>a.minutes?1:0},sonConjuntosDistintos(e,a){const r=Array.from(e),I=Array.from(a);if(r.length!==I.length)return!0;for(let L=0;L<r.length;L++)if(!a.has(r[L]))return!0;return!1},getnameshort(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";return L=L.replace(",",""),d+". "+L},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,a){return e.total<a.total?-1:e.total>a.total?1:e.name<a.name?-1:e.name>a.name?1:0},sortAndSlice(e,a){return e.sort((r,I)=>(r.name<I.name?1:-1)&&(r.total<I.total?1:-1)).slice(0,a)},getCategoryName(e){let a="";for(let r=0;r<this.categories.length;r++)e==this.categories[r].id&&(a=this.categories[r].name);return a},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,a,r){let I=this.filtersValues.matchResult,L=this.filtersValues.playingAs,d=this.filtersValues.sections,g=this.filtersValues.zone,n=this.translateTopCategories(a);Object.keys(this.filterEmitAux).length>0&&(I=this.filterEmitAux.matchResult,L=this.filterEmitAux.playingAs,d=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const _=1,m=2,i=3,v=this.isTeam?i:m,b=e.player_id;let l=[],s=this.isTeam?e.id:this.filterTeam;b?this.isTeam?s=b:(l=[b],n=n.filter(c=>!c.toString().includes("_r"))):this.isTeam?s=e.id:(l=[e.id],n=n.filter(c=>!c.toString().includes("_r")));const o={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:_,playListType:v,gameIds:null,playerIds:l,goalkeeperIds:[],categoryIds:this.translateTopCategories(a),teamId:s||0,matchResult:I,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:r,playingAs:L,timeSections:d,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(a)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,a,r){let I=this.filtersValues.matchResult,L=this.filtersValues.playingAs,d=this.filtersValues.sections,g=this.filtersValues.zone,n=this.translateTopCategories(a);Object.keys(this.filterEmitAux).length>0&&(I=this.filterEmitAux.matchResult,L=this.filterEmitAux.playingAs,d=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const _=1,m=2,i=3,v=this.isTeam?i:m;let b=[],l=this.isTeam?e.id:this.filterTeam;this.isTeam?l=e.id:(b=[e.id],n=n.filter(o=>!o.toString().includes("_r")));const s={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:_,playListType:v,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:n,teamId:l||0,matchResult:I,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:r,playingAs:L,timeSections:d,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(a)}};this.$emit("setopenmedia",s)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";L=L.replace(",","");var g=d+". "+L;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,a){this.$emit("clickprofile",{id:e,teamId:a,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let a=[],r={},I={};this.arePlaysEmpty=!1;const L=Il.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let d={};if(this.typeData==1?d=await L.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status==1?d=await L.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):d=await L.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),d&&d.data&&d.data.data&&d.data.data.length>0){a=d.data.data.map(n=>this.formatStatsData(n)),d.data.teams.forEach(n=>{r[n[0]]={},r[n[0]].id=n[0],r[n[0]].name=n[1],r[n[0]].abrv=n[2],r[n[0]].img=n[3],r[n[0]].effectiveness=n[4],r[n[0]].games_played=n[5],r[n[0]].games_played_lastseason=n[6],r[n[0]].positiontable=n[7],r[n[0]].goals=n[8],r[n[0]].goalsrecived=n[9],r[n[0]].xg=n[10],r[n[0]].frecuency=n[11],r[n[0]].game_avg=n[12],r[n[0]].game_avg_last_season=n[13]});const g=new Set;d.data.players.forEach(n=>{const _=this.getObjectPlayer(n);this.mapPlayers.set(_.numberId,_);const m=_.numberAge,i=_.teamName.length>0?_.teamName[0].acronym:"",v=_.teamName.length>0?r[_.teamName[0].team_id].name:"",b=_.teamName.length>0?_.teamName[0].team_id:"",l=this.positions[_.numberPositionId-1].fullname,s=this.positions[_.numberPositionId-1].name,o=_.countryId.length>0?_.countryId[0].nationality_id:"",c=_.effectiveness,u=_.min,h=_.games,p=_.date;_.arrayNationalities.forEach(f=>{g.add(f.numberId)}),I[n[0]]={id:n[0],name:n[1],img:n[2],age:m,team:i,teamname:v,teamid:b,position:l,positionfull:s,effectiveness:c,country:o,games_played:h,minutes_played:u,date:p,nationality:_.stringNationalityName,player_country_flag:_.player_country_flag,positionId:_.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[d.data.min_age,d.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=r,this.playersInfo=I,this.formatStats=a,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=d}catch(a){return Promise.reject(a)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(a=>{const r=e.playingAs.includes(a.playing_as),I=e.matchResult.includes(a.match_result),L=e.sections.includes(a.section),d=e.typeZone===1&&e.zone.includes(a.origen)||e.typeZone===2&&e.zone.includes(a.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(a.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(a.player_id))return!1}else{let n=!1;for(const _ of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(_)){n=!0;break}if(!n)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||r)&&(e.matchResult.length===0||I)&&(e.sections.length===0||L)&&(e.zone.length===0||d)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const a={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((r,I)=>{a[r]=e[I]}),a},getObjectPlayer(e){const a=[],r=e[7].map(L=>(a.push(L.nationality_id),{stringName:L.nationality,numberId:L.nationality_id})),I=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:EG[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:I.length>0?Number(I[0]):0,arrayNationalities:r,category:this.categoryName,arrayNationalitiesIds:a}},formatArrayPaginate(e){const a=Math.ceil(e.length/this.numRows);return Array.from({length:a},(r,I)=>{const L=I*this.numRows,d=L+this.numRows;return e.slice(L,d)})}},async created(){try{await this.getCategoryStats(this.season),this.game.is_live==1&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},3e5),this.$emit("intervalidtops",this.intervalIdtops))}catch(e){throw new Error(e)}},beforeDestroy(){clearInterval(this.intervalIdtops)}},AG=()=>{t.useCssVars(e=>({"71e1ce61":e.borderRadius,adc053d2:e.borderWidth,afee5098:e.borderColor}))},MG=fT.setup;fT.setup=MG?(e,a)=>(AG(),MG(e,a)):AG;const b4=e=>(t.pushScopeId("data-v-ecbc41a2"),e=e(),t.popScopeId(),e),NMt={ref:"myDivRef"},BMt={class:"btnViewFullList"},OMt={class:"text"},zMt={class:"groupsLeague"},LMt={class:"row-table-carrousel"},FMt={key:1,class:"container-no-search-result"},DMt={key:0,class:"overlay-loading-top"},VMt=[b4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),b4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],RMt=b4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),$Mt=b4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function jMt(e,a,r,I,L,d){const g=t.resolveComponent("GSCLeaders"),n=t.resolveComponent("GSCRowTable"),_=t.resolveComponent("GSCExpandedInfo"),m=t.resolveComponent("GSCCarousel"),i=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",NMt,[t.createElementVNode("div",BMt,[t.createElementVNode("div",OMt,[t.createElementVNode("div",zMt,t.toDisplayString(r.categoryName),1)])]),r.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[d.topData.length>0?(t.openBlock(),t.createBlock(m,{key:0,items:d.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:d.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",LMt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(b,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[b.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:a[0]||(a[0]=s=>d.emitEventMedia(s,r.category,r.categoryName)),type:r.typeTable,"can-play-videos":r.canPlayVideos,"is-expanded":e.playerexpand==b.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:r.typeTable==0?{top:"01",photo:b.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+b.teamid+".png",name:b.name,player_short:b.name_short,player_id:b.id,categoryId:r.category,total:b.total}:{top:"01",logo:b.img,total:b.total,name_team:b.name,player_id:b.id},"category-name":r.categoryName,buttonMaxWidth:r.typeTable!=0?I.elementSize.width>360?"210px":"130px":I.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:d.clickexpand,onMore:d.morestats},null,8,["type","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(n,{key:1,type:r.typeTable,"type-view":r.type,"is-expanded":e.playerexpand==b.id&&e.expand,onMediadata:a[1]||(a[1]=s=>d.emitEventMedia(s,r.category,r.categoryName)),data:r.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+b.teamid+".png",player_position:b.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+b.country+".jpg",player_games:b.minutes,player_min:b.games,league_name:"          Liga MX          "}:{position:b.top,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,teams_games:"-",category:r.category,total:b.total,id:b.id},height:"71px","can-play-videos":r.canPlayVideos,background:l%2===0?r.backgroundEven:r.backgroundOdd,onExpand:d.clickexpand},null,8,["type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(_,{key:2,type:r.typeTable,"view-effectiveness":b.positionId!==1,data:r.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.position,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:r.categoryName,id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:r.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,attendance:"-",id:b.id},onViewprofile:s=>d.viewprofile(s,b.teamid),background:l%2===0?r.backgroundEven:r.backgroundOdd},null,8,["type","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",FMt,[e.isloading?(t.openBlock(),t.createElementBlock("div",DMt,VMt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[RMt,$Mt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{background:"#183143",type:r.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.topData,(v,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(l,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[t.createVNode(n,{type:r.typeTable,"type-view":r.type,"can-play-videos":r.canPlayVideos,"is-expanded":e.playerexpand==l.id&&e.expand,onMediadata:a[2]||(a[2]=o=>d.emitEventMediaFullTable(o,r.category,r.categoryName)),data:r.typeTable==0?{position:l.top,player_name:l.name,player_short:l.name_short,player_photo:l.img,total:l.total,id:l.id,player_age:l.age,team_abrev:l.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+l.teamid+".png",player_position:l.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+l.country+".jpg",player_games:l.games,player_min:l.minutes,league_name:"          Liga MX          "}:{position:l.positiontable,team_logo:l.img,team_abrev:l.name,frequency:l.frecuency,promthistournament:l.game_avg,promlasttournament:l.game_avg_last_season,category:r.category,team_games:l.games_played,total:l.total,id:l.id},height:"71px",background:((b+1)*5+s)%2===0?r.backgroundOdd:r.backgroundEven,onExpand:d.clickexpand},null,8,["type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==l.id?(t.openBlock(),t.createBlock(_,{key:0,type:r.typeTable,additionalClass:"fullTable","view-effectiveness":l.positionId!==1,data:r.typeTable==0?{teams:l.teamname,age:l.age,dataofbirth:l.date,nationality:l.nationality,countryFlag:l.player_country_flag,position:l.positionfull,positionfull:l.positionfull,games:l.games,min:l.minutes,goals:l.total,effectiveness:l.effectiveness,category:d.getCategoryName(r.category),id:l.id}:{position:l.positiontable,goals:l.goals,goals_received:l.goalsrecived,games_played:l.games_played,category:r.categoryName,effectiveness:l.effectiveness,xg:l.xg,total:l.total,category:d.getCategoryName(r.category),attendance:"-",id:l.id},onViewprofile:o=>d.viewprofile(o,l.teamid),background:s%2===0?r.backgroundEven:r.backgroundOdd},null,8,["type","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const UMt=Jr(fT,[["render",jMt],["__scopeId","data-v-ecbc41a2"]]),HMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},GMt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},WMt=["src"],qMt=["src"];function YMt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",null,[r.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(d.customStyle),class:"gsc-label",onClick:a[0]||(a[0]=(...g)=>d.btnLabel&&d.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(r.numFilter)+" "+t.toDisplayString(r.textValue)+" ",1),r.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(d.customIcon),class:"icon",src:r.icon},null,12,WMt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(d.customStyle)},[t.createTextVNode(t.toDisplayString(r.numFilter)+" "+t.toDisplayString(r.textValue)+" ",1),r.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:a[1]||(a[1]=(...g)=>d.btnClose&&d.btnClose(...g)),style:t.normalizeStyle(d.customIcon),class:"icon",src:r.icon},null,12,qMt)):t.createCommentVNode("",!0)],4))])}const ZMt=HMt(GMt,[["render",YMt],["__scopeId","data-v-42ff544a"]]);function JMt(e){const a=t.ref({width:0,height:0});function r(){const I=e.value.getBoundingClientRect();a.value.width=I.width,a.value.height=I.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const XMt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},mT={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},IG=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},PG=mT.setup;mT.setup=PG?(e,a)=>(IG(),PG(e,a)):IG;const KMt={ref:"gscScrollableContainer",class:"scrollable-container"},QMt={class:"scrollable-arrows"},eIt=["width","height","viewBox"],tIt=["stroke"],nIt={class:"scrollable-wrapper"},aIt={class:"scrollable-arrows"},rIt=["width","height","viewBox"],iIt=["stroke"];function oIt(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",KMt,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",QMt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,tIt)],8,eIt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",nIt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:a[2]||(a[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",aIt,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,iIt)],8,rIt))])],2)):t.createCommentVNode("",!0)],512)}const sIt=XMt(mT,[["render",oIt],["__scopeId","data-v-b548a08d"]]),lIt=(e,a)=>{const r=e.__vccOpts||e;for(const[I,L]of a)r[I]=L;return r},gT={components:{GSCSlider:sIt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=JMt(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},NG=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},BG=gT.setup;gT.setup=BG?(e,a)=>(NG(),BG(e,a)):NG;const cIt={ref:"myDivRef"},dIt={key:0,class:"gs-switch-container"},uIt=["onClick"],hIt={key:1,class:"gs-switch-container-type"},pIt=["onClick"],fIt={key:2,class:"gs-switch-container-carousel"},mIt=["onClick"];function gIt(e,a,r,I,L,d){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cIt,[r.type==0?(t.openBlock(),t.createElementBlock("div",dIt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([d.customGrid(I.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,uIt))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",hIt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([d.customGrid(I.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:r.backgroundOptionDisable}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,pIt))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",fIt,[t.createVNode(g,{arrows:r.arrow,"background-color":r.background,"px-scroll":r.pxScroll,"scroll-color":r.scrollColor,"arrows-position":r.arrowsPosition,arrowsScrollHide:r.arrowsScrollHide,"arrows-background":r.arrowsBackground,"arrows-container-bg-l":r.arrowsContainerBgL,"arrows-container-bg-r":r.arrowsContainerBgR,"arrows-margin":r.arrowsMargin,"arrows-radius":r.arrowsRadius,"arrows-border":r.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:m=>(r.selectedOption=n,d.clickEmitEvent(n))},t.toDisplayString(n),13,mIt))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const yT=lIt(gT,[["render",gIt],["__scopeId","data-v-8a86dfaf"]]),oyn="",syn="";function yIt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const lyn="",vIt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},_It=t.ref(yIt()),bIt={components:{GSCTableHeader:oG,GscSwitchComponent:yT,GSCFilterperteam:mAt,GSCFilters:jH,GSCExpandedInfo:kG,GSCLabel:ZMt,GSCSeasonSelect:gM,GSCTopCategory:UMt,GSCTournamentSelect:pM,GSCRowTable:hG},computed:{...vEt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},a=JSON.stringify(e);if(JSON.stringify(this.filters)!=a)return a},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{..._It.value}}},props:{currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let a=0;a<e.teams.length;a++)this.teams.push({id:e.teams[a].team_id,team:e.teams[a].colloquial_name,logo:e.teams[a].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=Uy(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Ea,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";return L=L.replace(",",""),d+". "+L},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const a=e.id===this.selectedTournament.id;e.isSelected=a,e.isDefaultTournament=a})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let I=0;I<this.detaildProductivityCategories.offensive.categories.length;I++)this.detaildProductivityCategories.offensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.defensive.categories.length;I++)this.detaildProductivityCategories.defensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.possession.categories.length;I++)this.detaildProductivityCategories.possession.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.offensesConditions.length;I++)this.detaildProductivityCategories.offensesConditions[I]=!1;this.setUpTournamentsToFilter();const a=this.$refs.personalDataFilter;a.clearFilters(Yl.All),a.clearFilters(Yl.AGE_RANGE),a.clearFilters(Yl.YEAR),a.clearFilters(Yl.NATIONALITY),a.clearFilters(Yl.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(I,L)=>L+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let I=0;I<r.teams.length;I++)this.teamsscouting.push({id:r.teams[I].team_id,team:r.teams[I].colloquial_name,logo:r.teams[I].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let L=[e.id],d=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:L,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:d||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,a,r){this.$emit("openProfilePlayer",{playerId:e,teamId:r,seasonId:a||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var r=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let L=0;L<a.length;L++){a[L];let g=a[L].dob.split("T")[0].split("-");var I={position:L+1,player_name:this.abrevName(a[L].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+a[L].player_id+".png",total:a[L].total.toFixed(0),id:a[L].player_id,player_age:this.calcularEdad(a[L].dob),team_abrev:a[L].teams[0].acronym,team_name:a[L].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+a[L].teams[0].team_id+".png",player_position:a[L].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+a[L].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:a[L].team_id,nationality_name:EG[a[L].nationality_id],player_games:a[L].games_played,player_min:a[L].minutes_played,league_name:a[L].tournament_name,seasons:a[L].seasons,season_id:a[L].seasons[0]};this.rowScoutingData.push(I)}if(this.seasonsFilterSelected!=0){const L=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let d=0;d<L.teams.length;d++)this.teamsscouting.push({id:L.teams[d].team_id,team:L.teams[d].colloquial_name,logo:L.teams[d].logo})}this.loadingActive=!1},abrevName(e){var a=e.split(","),r=a[0].split(" "),I=a[1].trim().split(" "),L="";r.length==2||r.length==1?r[0].length<4?L=r[0]+" "+r[1]:L=r[0]:r.length==3?L=r[0]+" "+r[1]:r.length==4&&(L=r[1]+" "+r[2]+" "+r[3]);var d=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";L=L.replace(",","");var g=d+". "+L;return g},calcularEdad(e){var a=new Date(e),r=new Date,I=r-a,L=Math.floor(I/(1e3*60*60*24*365.25));return L},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var a=[];for(let r=0;r<e.length;r++)e[r].isSelected&&a.push(e[r].id);if(a.length==0&&(a=[1]),a.length==1)for(let r=0;r<e.length;r++)e[r].isSelected&&(this.nameLeagueSelected=e[r].name,this.seasonsFilterSelected=e[r].seasons[0].id);else this.seasonsFilterSelected=0,a.length>0&&(this.nameLeagueSelected=a.length+" Ligas");this.filterScounting.tournaments=a,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const I=e.ageByRange.min==0?10:e.ageByRange.min,L=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[I,L],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var a=[];if(e.hasOwnProperty("nationalities")){for(let I=0;I<e.nationalities.length;I++)e.nationalities[I].isSelected&&a.push(e.nationalities[I].id);a.length==0&&(a=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var r=[];for(let I=0;I<e.positions.length;I++)e.positions[I].isSelected&&r.push(e.positions[I].id);r.length==0&&(r=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=r,this.filterScounting.nationalities=a},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var a=[];for(let r=0;r<e.productivityFilters.length;r++)a[e.productivityFilters[r].priority-1]={name:e.productivityFilters[r].name,ids:e.productivityFilters[r].id};a.length==0&&(a=[]),this.filterScounting.categories=a,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");a!==-1?this.arrayFiltersPlays[a].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&r!==-1){this.filtersPredefinedF=this.filters;for(let L=0;L<this.FVfilterGolstats.length;L++)this.FVfilterGolstats[L].isSelected=!1;var r=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersPredefined");r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&a!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(a,1);var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");if(r!==-1){for(let I=0;I<this.FVfilterGolstats.length;I++)this.FVfilterGolstats[I].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var a=this.arrayFiltersPlays.findIndex(L=>L.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&a!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(a,1);for(let d=0;d<this.categoriesDefault.length;d++)this.categoriesDefault[d].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&r!==-1){for(let d=0;d<this.FVfilterGolstats.length;d++)this.FVfilterGolstats[d].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,a){return Math.floor(Math.random()*(a-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let r=0;r<this.categoriesPlaysTypes.offensive.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.defensive.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.possession.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r]);for(let r=0;r<this.categoriesPlaysTypes.offenses.categories.length;r++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[r].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[r])}else for(let r=0;r<e.playsCategories.length;r++)e.playsCategories[r].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[r].id),this.arrayCategoryFilterFull.push(e.playsCategories[r]));var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):a!==-1&&this.arrayFiltersPlays.splice(a,1)},async deleteLabelFilter(e){var a=this.arrayFiltersPlays.findIndex(I=>I.type===e);if(a!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let L=0;L<this.detaildProductivityCategories.offensive.categories.length;L++)this.detaildProductivityCategories.offensive.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.defensive.categories.length;L++)this.detaildProductivityCategories.defensive.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.possession.categories.length;L++)this.detaildProductivityCategories.possession.categories[L].isSelected=!1;for(let L=0;L<this.detaildProductivityCategories.offensesConditions.length;L++)this.detaildProductivityCategories.offensesConditions[L]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(L,d)=>d+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const I=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let L=0;L<I.teams.length;L++)this.teamsscouting.push({id:I.teams[L].team_id,team:I.teams[L].colloquial_name,logo:I.teams[L].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let I=0;I<this.categoriesPlaysTypes.offensive.categories.length;I++)this.categoriesPlaysTypes.offensive.categories[I].isSelected=!0;for(let I=0;I<this.categoriesPlaysTypes.defensive.categories.length;I++)this.categoriesPlaysTypes.defensive.categories[I].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[I]);for(let I=0;I<this.categoriesPlaysTypes.possession.categories.length;I++)this.categoriesPlaysTypes.possession.categories[I].isSelected=!0;for(let I=0;I<this.categoriesPlaysTypes.offenses.categories.length;I++)this.categoriesPlaysTypes.offenses.categories[I].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let I=0;I<this.FVfilterGolstats.length;I++)this.FVfilterGolstats[I].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var r=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersPredefined");r!==-1&&this.arrayFiltersPlays.splice(r,1);for(let I=0;I<this.categoriesDefault.length;I++)this.categoriesDefault[I].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Yl.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Yl.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Yl.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(a,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersField");a!=-1?this.arrayFiltersPlays[a].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(a!=-1?this.arrayFiltersPlays[a].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(a!=-1?this.arrayFiltersPlays[a].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(a!=-1?this.arrayFiltersPlays[a].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(a!=-1?this.arrayFiltersPlays[a].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(a!=-1?this.arrayFiltersPlays[a].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(a!=-1?this.arrayFiltersPlays[a].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(a,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var a=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var r=[];for(let d=0;d<e.playingAs.length;d++)if(e.playingAs[d].isSelected){const g=e.playingAs[d].name=="Local"?1:2;a.push(g)}for(let d=0;d<e.gameSections.length;d++)e.gameSections[d].isSelected&&r.push(e.gameSections[d].value);this.fVsections=r,this.fVplayingAs=a;var I=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersDetailsTime"),L="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(L+=", 0-15"),this.fVsections.includes(2)&&(L+=", 15-30"),this.fVsections.includes(3)&&(L+=", 30-45"),this.fVsections.includes(4)&&(L+=", 45-60"),this.fVsections.includes(5)&&(L+=", 60-75"),this.fVsections.includes(6)&&(L+=", 75-90"),I!=-1?this.arrayFiltersPlays[I].name=L:this.arrayFiltersPlays.push({name:L,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(I!=-1?this.arrayFiltersPlays[I].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(I!=-1?this.arrayFiltersPlays[I].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(I!=-1?this.arrayFiltersPlays[I].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):I!=-1&&this.arrayFiltersPlays.splice(I,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(I,L)=>L+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(Yl.All),e.clearFilters(Yl.AGE_RANGE),e.clearFilters(Yl.YEAR),e.clearFilters(Yl.NATIONALITY),e.clearFilters(Yl.POSITION),this.rowScoutingData=[];for(let I=0;I<this.detaildProductivityCategories.offensive.categories.length;I++)this.detaildProductivityCategories.offensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.defensive.categories.length;I++)this.detaildProductivityCategories.defensive.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.possession.categories.length;I++)this.detaildProductivityCategories.possession.categories[I].isSelected=!1;for(let I=0;I<this.detaildProductivityCategories.offensesConditions.length;I++)this.detaildProductivityCategories.offensesConditions[I]=!1;var a=this.arrayFiltersPlays.findIndex(I=>I.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(a,1),this.setUpTournamentsToFilter();const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let I=0;I<r.teams.length;I++)this.teamsscouting.push({id:r.teams[I].team_id,team:r.teams[I].colloquial_name,logo:r.teams[I].logo})},onFiltersData(e){var a=0,r=0;e.ageByRange&&(e.ageByRange.min==0?a=1:a=e.ageByRange.min,e.ageByRange.max==0?r=40:r=e.ageByRange.max,this.fVarrayAgeRange=[a,r]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let I="",L="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let b=0;b<e.nationalities.length;b++)e.nationalities[b].isSelected&&this.fVnationalities.add(e.nationalities[b].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let b=0;b<this.elegibilidadArray.length;b++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[b])}for(let b=0;b<e.positions.length;b++)e.positions[b].isSelected&&this.fVsetPositionsIds.push(e.positions[b].id);if(e.hasOwnProperty("nationalities"))var d=e.nationalities.filter(b=>b.isSelected===!0);var g=e.positions.filter(b=>b.isSelected===!0);if(g.length==1&&(I=g[0].name),e.hasOwnProperty("nationalities")&&d.length==1&&(L=d[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var _=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPosition");_!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[_].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+I:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+I,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var m=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersYear");m!=-1?this.arrayFiltersPlays[m].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var i=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");i!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[i].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(i,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersAge");i!=-1&&this.arrayFiltersPlays.splice(i,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+L:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+L,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let r=0;r<a.teams.length;r++)this.teamsscouting.push({id:a.teams[r].team_id,team:a.teams[r].colloquial_name,logo:a.teams[r].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a},async fetchTeams(){const e=Il.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.teamsUrl+this.seasonActive);return a},async fetchTeamsScouting(e){const a=Il.create({headers:{Authorization:`${this.token}`}}),{data:r}=await a.get(this.teamsUrl+e);return r},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var a="";e.id==1?a=this.urlFilter:a=this.urlFilter;const r=Il.create({headers:{Authorization:`${this.token}`}}),{data:I}=await r.get(a+e.id);if(Object.keys(I[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=I[0].match_lapse_combinations[v]}),Object.keys(I[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=I[0].playing_as_combinations[v]}),Object.keys(I[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=I[0].field_sections_combinations[v]}),I[0]){for(let v=0;v<I[0].filter_records.length;v++){var L=I[0].description;if(I[0].filter_records[v].field_sections!==void 0){const l=I[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[l]||this.predefinedFiltersSections[l]=="")&&(this.predefinedFiltersSections[l]==""?L=L.replace(" [en {field_sections}]",this.predefinedFiltersSections[l]):L=L.replace("{field_sections}",this.predefinedFiltersSections[l]))}if(I[0].filter_records[v].match_lapse!==void 0){const l=I[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[l]||this.predefinedFiltersMatchLapse[l]=="")&&(this.predefinedFiltersMatchLapse[l]==""?L=L.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[l]):L=L.replace("{match_lapse}",this.predefinedFiltersMatchLapse[l]))}if(I[0].filter_records[v].playing_as!==void 0){const l=I[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?L=L.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):L=L.replace("{playing_as}",this.predefinedFiltersPlayingAs[l]))}I[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?L=L.replace("{section_type}","Jugadores"):L=L.replace("{section_type}","Equipos")),L=L.replace(/\[/g,""),L=L.replace(/\]/g,""),L=L.replace("{category_name}",I[0].category_name);const b=L.split(": ");var d=b[1];d.length>129&&this.windowWidth>1358&&(d=d.substring(0,129),d=d+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||I[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:I[0].id,title:b[0]+":",text:b[1],textOrigin:I[0].description,titledots:d,filtersPredefined:{matchResult:I[0].filter_records[v].match_result,playingAs:I[0].filter_records[v].playing_as,sections:I[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:I[0].type_zone,zone:I[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var n=0,_=new Set,m={},i=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(i=i.replace(/\*/g,""),i=i.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?m.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?m.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?m.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:m.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(n+=1),m.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let b=0;b<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;b++)_.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[b]);m.setNationalitiesIds=_}else _.add(138),_.add(222),_.add(163),_.add(51),_.add(226),_.add(10),_.add(223),_.add(96),_.add(171),_.add(198),_.add(105),_.add(80),_.add(29),_.add(74),_.add(216),_.add(196),_.add(64),_.add(155),_.add(156),_.add(89),_.add(106),_.add(81),_.add(233),_.add(204),m.setNationalitiesIds=_;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(n+=1),m.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?m.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:m.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?m.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:m.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?m.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:m.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],m.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:i,isSelected:!1,value:n,filters:m})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const a=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((i,v)=>i-v).toString();this.predefinedFiltersSections[a]||this.predefinedFiltersSections[a]==""?this.predefinedFiltersSections[a]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var r=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(r=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(r||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const I=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[I]||this.predefinedFiltersMatchLapse[I]=="")this.predefinedFiltersMatchLapse[I]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[I]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[I]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var L="";I.includes(1)&&(L=L+"0-15, "),I.includes(2)&&(L=L+"16-30, "),I.includes(3)&&(L=L+"31-45, "),I.includes(4)&&(L=L+"46-60, "),I.includes(5)&&(L=L+"61-75, "),I.includes(6)&&(L=L+"76-90, "),L=L.slice(0,-2),L=L.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",L)}const d=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[d])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let n=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),_=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const m=_.match(/\*/g);if(m&&m.length)if(m.length%2===0)for(let i=1;i<=m.length;i++)i%2===0||(_=_.replace("*",'<span style="color: #ffff03" >'));else _=_.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=_},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=Il.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(r=>(delete r.headers.Authorization,r));const a=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=a.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},xIt={ref:"myDivRefTopsFull"},wIt={key:0,class:"overlay-loading"},kIt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],CIt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],TIt={key:0,class:"cont-leyemd-multipleleagues"},SIt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),EIt={key:0,style:{"margin-left":"10px"}},AIt=t.createElementVNode("span",null,"Tipo de Jugada",-1),MIt=t.createElementVNode("span",null,"Filtro GolStats",-1),IIt={key:3,style:{width:"100%",height:"295px"}};function PIt(e,a,r,I,L,d){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCFilterperteam"),_=t.resolveComponent("GSCFilters"),m=t.resolveComponent("GSCLabel"),i=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),b=t.resolveComponent("GSCRowTable"),l=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",xIt,[L.loadingActive?(t.openBlock(),t.createElementBlock("div",wIt,kIt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[L.optionSelected!="Scouting"&&L.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(n,{data:L.teams,"team-id":r.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:d.clickTeam,onClickAll:d.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(L.showfiltersPc?"":I.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[I.elementSize.width>760&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:a[1]||(a[1]=(...s)=>d.clickCloseFilters&&d.clickCloseFilters(...s))},CIt,2)):t.createCommentVNode("",!0),L.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":L.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:d.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(L.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:a[3]||(a[3]=(...s)=>d.openMenuFilters&&d.openMenuFilters(...s))},null,6),[[t.vShow,I.elementSize.width<760&&L.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[L.optionSelectedSubmenu=="Todas las jugadas"&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[I.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersPlays,filters:L.categoriesPlaysTypes,onApply:d.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!L.showFullTable]]),(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{key:L.updateFilterField,"filter-type":L.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersField,filters:L.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersDetails,filters:L.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),L.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(_,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:r.seasonActive,tournamentId:L.tournamentSelectedObj.value},token:L.token,"onUpdate:filters":d.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),L.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[I.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:L.tournamentsToFilter,key:L.keyTournamentValue,"onUpdate:filters":d.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:L.filterScounting.seasonId,tournamentId:L.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":d.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:L.universeData,"onUpdate:filters":d.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(_,t.mergeProps({"button-filter-props":d.filterButtonProps},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":d.onFiltersProductivity,filters:L.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:a[4]||(a[4]=(...s)=>d.getScoutingData&&d.getScoutingData(...s))},"Buscar",2)],64)):t.createCommentVNode("",!0),L.optionSelectedSubmenu=="Predeterminados"&&L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps,modalHeight:"300px"},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModePropsTypePlays,{"filter-type":L.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:L.updateFilterPlaytypesGolstats,"onUpdate:filters":d.onFiltersPlaysTypes,filters:L.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(_,t.mergeProps({"button-filter-props":d.filterButtonProps,modalHeight:"300px"},I.elementSize.width<420?L.expansionPanelModePropsMobil270:I.elementSize.width<760?L.expansionPanelModePropsMobil:L.expansionPanelModeProps,{"filter-type":L.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:L.updateFilterGolstats,"onUpdate:filters":d.onFiltersGolStats,filters:d.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,I.elementSize.width>760||L.openMenuMobil]]),L.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[L.filterScounting.tournaments.length>1&&L.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",TIt,[SIt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(n,{data:L.teamsscouting,"team-id":L.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:L.updateFilterTeamsScouting,onClickTeam:d.clickTeamScouting,onClickAll:d.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[L.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[L.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),L.optionSelected!="Scouting"&&L.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[L.showFullTable?(t.openBlock(),t.createElementBlock("div",EIt,[t.createVNode(m,{"text-value":"Categoría - "+L.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:d.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayFiltersPlays,(s,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(m,{"text-value":s.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:d.deleteLabelFilter,id:s.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:I.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),L.rowScoutingData.length!=0||L.optionSelectedSubmenu=="Predeterminados"&&L.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:a[5]||(a[5]=(...s)=>d.onClickDeleteFilter&&d.onClickDeleteFilter(...s))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),r.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(L.showFullTable?"gap: 0px!important;":"")},[L.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.categoriesDefault,(s,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!L.showOnlyCategories&&L.arrayCategoryFilter.includes(s.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,onMore:d.onShowFullTable,"border-width":0,onIntervalidtops:d.intervalidtops,"can-play-videos":r.canPlayVideos,"border-radius":"12px","game-id":r.gameId,game:r.game,typeData:r.typeData,"filters-prop":d.filterChange,category:s.id,"type-table":L.typeTable,categoryName:s.name,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTables,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia,onComponentLoaded:e.onComponentLoaded},null,8,["is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[t.vShow,!L.showOnlyCategories&&L.arrayCategoryFilter.includes(s.id)&&!L.showFullTable]])],4))),128)),L.showFullTable?(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,"border-width":0,"border-radius":"12px","game-id":r.gameId,onIntervalidtops:d.intervalidtops,game:r.game,typeData:r.typeData,category:L.showFullCategory,type:1,"type-table":L.typeTable,categoryName:"","filters-prop":d.filterChange,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTablesfull,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia},null,8,["is-team","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[L.categoryPredefinedActive?(t.openBlock(),t.createBlock(i,{"is-team":L.isTeam,onIntervalidtops:d.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":r.canPlayVideos,"game-id":r.gameId,game:r.game,typeData:r.typeData,category:L.categoryPredefined,type:1,"type-table":L.typeTable,categoryName:"","filters-prop":d.filterChangePredefined,season:r.seasonActive,"filter-team":r.teamselect,key:L.updateTables,onClickprofile:d.clickprofile,onSetopenmedia:d.setOpenMedia},null,8,["is-team","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[AIt,t.createTextVNode(" y un "),MIt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[L.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(L.rowScoutingData.length>0?"height: auto;":"")},[L.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.rowScoutingData,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[L.teamselectrec==0||L.teamselectrec==s.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(b,{type:2,"is-expanded":L.playerexpand==s.id&&L.expand,onMediadata:d.setMediaData,data:{position:s.position,player_name:s.player_name,player_photo:s.player_photo,total:s.total,id:s.id,player_age:s.player_age,team_abrev:s.team_abrev,team_logo:s.team_logo,player_position:L.positions[s.player_position-1].fullname,player_country_flag:s.player_country_flag,player_games:s.player_games,player_min:s.player_min,league_name:s.league_name,seasons:s.seasons,season_id:s.season_id},height:"71px",background:o%2===0?r.backgroundOdd:r.backgroundEven,onExpand:d.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),L.expand&&L.playerexpand==s.id?(t.openBlock(),t.createBlock(l,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:s.team_name,age:s.player_age,dataofbirth:s.date,nationality:s.nationality_name,countryFlag:s.player_country_flag,position:L.positions[s.player_position-1].name,games:s.player_games,min:s.player_min,goals:s.total,effectiveness:"-",category:"total",id:s.id},onViewprofile:c=>d.viewprofile(c,s.season_id,s.team_id),background:o%2===0?r.backgroundOdd:r.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),L.rowScoutingData.length==0&&!L.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),L.rowScoutingData.length==0&&!L.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:a[6]||(a[6]=(...s)=>d.onClickDeleteFilter&&d.onClickDeleteFilter(...s))}," Eliminar filtros aplicados ",2),L.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:a[7]||(a[7]=(...s)=>d.getScoutingData&&d.getScoutingData(...s))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),L.loadingActive?(t.openBlock(),t.createElementBlock("div",IIt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const NIt=Jr(bIt,[["render",PIt],["__cssModules",{$style:vIt}]]),r2n="";let OG=null;const BIt={components:{GSCDatosGSMain:yEt,GSCCheckbox:C0,GSCRadioToggle:MU,GSCTopFull:NIt},props:{game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)OG=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),OG.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData==1?(e.gameIds=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},OIt=e=>(t.pushScopeId("data-v-a785b0a2"),e=e(),t.popScopeId(),e),zIt={class:"container-comparative",ref:"comparative"},LIt={class:"container-btn"},FIt={class:"items-container-btn"},DIt={class:"container-sections"},VIt={class:"container-teams-menu"},RIt={class:"container-team-menu-home"},$It=["src"],jIt=OIt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),UIt={class:"container-team-menu-away"},HIt=["src"],GIt={key:0,class:"container-switch-menu"},WIt={class:"container-leyend"},qIt={class:"container-tops"};function YIt(e,a,r,I,L,d){const g=t.resolveComponent("GSCDatosGSMain"),n=t.resolveComponent("GSCCheckbox"),_=t.resolveComponent("GSCRadioToggle"),m=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",zIt,[t.createElementVNode("div",LIt,[t.createElementVNode("div",FIt,[t.createElementVNode("div",{class:t.normalizeClass([L.widthSection>480?"btn-destacados":"btn-destacados-movil",L.activeSection=="destacados"?"active":""]),onClick:a[0]||(a[0]=i=>d.clickOptSection("destacados"))},[r.game.status==1||r.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadores destacados")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([L.widthSection>480?"btn-avanced":"btn-avanced-movil",L.activeSection=="avanzado"?"active":""]),onClick:a[1]||(a[1]=i=>d.clickOptSection("avanzado"))},"Avanzado",2)])]),t.createElementVNode("div",DIt,[L.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,game:r.game,"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia},null,8,["game","play-videos-privileges","onOpenmedia"])):t.createCommentVNode("",!0),L.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",VIt,[t.createElementVNode("div",RIt,[(t.openBlock(),t.createBlock(n,{fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:L.updateHomeCheck,"model-value":L.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:r.game.homeTeam.logo},null,8,$It),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(r.game.homeTeam.colloquial_name),3)]),jIt,t.createElementVNode("div",UIt,[t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(r.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:r.game.awayTeam.logo},null,8,HIt),(t.openBlock(),t.createBlock(n,{fontFamily:"Poppins-Regular","onUpdate:modelValue":d.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:L.updateAwayCheck,"model-value":L.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])]),r.game.status==1?(t.openBlock(),t.createElementBlock("div",GIt,[t.createVNode(_,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":L.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:d.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",WIt,[L.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[r.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Jugadores destacados durante lo que va del torneo ")],64))],64))]),t.createElementVNode("div",qIt,[t.createVNode(m,{"can-play-videos":r.canPlayVideos,onOpenmedia:d.openmedia,onOpenProfileTeam:d.onOpenProfileTeam,onIntervalidtops:d.intervalidtops,onOpenProfilePlayer:d.onOpenProfilePlayer,"type-data":L.typeViewData,"game-id":r.game.gameId,game:r.game,"current-season-id":r.game.seasonId,"team-id":L.teamactive,"season-active":r.game.seasonId,teamselect:L.teamactive},null,8,["can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const ZIt=Jr(BIt,[["render",YIt],["__scopeId","data-v-a785b0a2"]]);function zG(e,a){return function(){return e.apply(a,arguments)}}const{toString:JIt}=Object.prototype,{getPrototypeOf:vT}=Object,x4=(e=>a=>{const r=JIt.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fh=e=>(e=e.toLowerCase(),a=>x4(a)===e),w4=e=>a=>typeof a===e,{isArray:A1}=Array,Hy=w4("undefined");function XIt(e){return e!==null&&!Hy(e)&&e.constructor!==null&&!Hy(e.constructor)&&Bu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LG=fh("ArrayBuffer");function KIt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&LG(e.buffer),a}const QIt=w4("string"),Bu=w4("function"),FG=w4("number"),k4=e=>e!==null&&typeof e=="object",ePt=e=>e===!0||e===!1,C4=e=>{if(x4(e)!=="object")return!1;const a=vT(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tPt=fh("Date"),nPt=fh("File"),aPt=fh("Blob"),rPt=fh("FileList"),iPt=e=>k4(e)&&Bu(e.pipe),oPt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Bu(e.append)&&((a=x4(e))==="formdata"||a==="object"&&Bu(e.toString)&&e.toString()==="[object FormData]"))},sPt=fh("URLSearchParams"),[lPt,cPt,dPt,uPt]=["ReadableStream","Request","Response","Headers"].map(fh),hPt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gy(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),A1(e))for(I=0,L=e.length;I<L;I++)a.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let n;for(I=0;I<g;I++)n=d[I],a.call(null,e[n],n,e)}}function DG(e,a){a=a.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],a===L.toLowerCase())return L;return null}const VG=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,RG=e=>!Hy(e)&&e!==VG;function _T(){const{caseless:e}=RG(this)&&this||{},a={},r=(I,L)=>{const d=e&&DG(a,L)||L;C4(a[d])&&C4(I)?a[d]=_T(a[d],I):C4(I)?a[d]=_T({},I):A1(I)?a[d]=I.slice():a[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Gy(arguments[I],r);return a}const pPt=(e,a,r,{allOwnKeys:I}={})=>(Gy(a,(L,d)=>{r&&Bu(L)?e[d]=zG(L,r):e[d]=L},{allOwnKeys:I}),e),fPt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mPt=(e,a,r,I)=>{e.prototype=Object.create(a.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},gPt=(e,a,r,I)=>{let L,d,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=r!==!1&&vT(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},yPt=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const I=e.indexOf(a,r);return I!==-1&&I===r},vPt=e=>{if(!e)return null;if(A1(e))return e;let a=e.length;if(!FG(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},_Pt=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&vT(Uint8Array)),bPt=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;a.call(e,L[0],L[1])}},xPt=(e,a)=>{let r;const I=[];for(;(r=e.exec(a))!==null;)I.push(r);return I},wPt=fh("HTMLFormElement"),kPt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,I){return r.toUpperCase()+I}),$G=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),CPt=fh("RegExp"),jG=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Gy(r,(L,d)=>{let g;(g=a(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},TPt=e=>{jG(e,(a,r)=>{if(Bu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(Bu(I)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},SPt=(e,a)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return A1(e)?I(e):I(String(e).split(a)),r},EPt=()=>{},APt=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,bT="abcdefghijklmnopqrstuvwxyz",UG="0123456789",HG={DIGIT:UG,ALPHA:bT,ALPHA_DIGIT:bT+bT.toUpperCase()+UG},MPt=(e=16,a=HG.ALPHA_DIGIT)=>{let r="";const{length:I}=a;for(;e--;)r+=a[Math.random()*I|0];return r};function IPt(e){return!!(e&&Bu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const PPt=e=>{const a=new Array(10),r=(I,L)=>{if(k4(I)){if(a.indexOf(I)>=0)return;if(!("toJSON"in I)){a[L]=I;const d=A1(I)?[]:{};return Gy(I,(g,n)=>{const _=r(g,L+1);!Hy(_)&&(d[n]=_)}),a[L]=void 0,d}}return I};return r(e,0)},NPt=fh("AsyncFunction"),BPt=e=>e&&(k4(e)||Bu(e))&&Bu(e.then)&&Bu(e.catch),qa={isArray:A1,isArrayBuffer:LG,isBuffer:XIt,isFormData:oPt,isArrayBufferView:KIt,isString:QIt,isNumber:FG,isBoolean:ePt,isObject:k4,isPlainObject:C4,isReadableStream:lPt,isRequest:cPt,isResponse:dPt,isHeaders:uPt,isUndefined:Hy,isDate:tPt,isFile:nPt,isBlob:aPt,isRegExp:CPt,isFunction:Bu,isStream:iPt,isURLSearchParams:sPt,isTypedArray:_Pt,isFileList:rPt,forEach:Gy,merge:_T,extend:pPt,trim:hPt,stripBOM:fPt,inherits:mPt,toFlatObject:gPt,kindOf:x4,kindOfTest:fh,endsWith:yPt,toArray:vPt,forEachEntry:bPt,matchAll:xPt,isHTMLForm:wPt,hasOwnProperty:$G,hasOwnProp:$G,reduceDescriptors:jG,freezeMethods:TPt,toObjectSet:SPt,toCamelCase:kPt,noop:EPt,toFiniteNumber:APt,findKey:DG,global:VG,isContextDefined:RG,ALPHABET:HG,generateString:MPt,isSpecCompliantForm:IPt,toJSONObject:PPt,isAsyncFn:NPt,isThenable:BPt};function Xi(e,a,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}qa.inherits(Xi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GG=Xi.prototype,WG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{WG[e]={value:e}}),Object.defineProperties(Xi,WG),Object.defineProperty(GG,"isAxiosError",{value:!0}),Xi.from=(e,a,r,I,L,d)=>{const g=Object.create(GG);return qa.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xi.call(g,e.message,a,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const OPt=null;function xT(e){return qa.isPlainObject(e)||qa.isArray(e)}function qG(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function YG(e,a,r){return e?e.concat(a).map(function(I,L){return I=qG(I),!r&&L?"["+I+"]":I}).join(r?".":""):a}function zPt(e){return qa.isArray(e)&&!e.some(xT)}const LPt=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function T4(e,a,r){if(!qa.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=qa.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,s){return!qa.isUndefined(s[l])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&qa.isSpecCompliantForm(a);if(!qa.isFunction(L))throw new TypeError("visitor must be a function");function _(l){if(l===null)return"";if(qa.isDate(l))return l.toISOString();if(!n&&qa.isBlob(l))throw new Xi("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(l)||qa.isTypedArray(l)?n&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function m(l,s,o){let c=l;if(l&&!o&&typeof l=="object"){if(qa.endsWith(s,"{}"))s=I?s:s.slice(0,-2),l=JSON.stringify(l);else if(qa.isArray(l)&&zPt(l)||(qa.isFileList(l)||qa.endsWith(s,"[]"))&&(c=qa.toArray(l)))return s=qG(s),c.forEach(function(u,h){!(qa.isUndefined(u)||u===null)&&a.append(g===!0?YG([s],h,d):g===null?s:s+"[]",_(u))}),!1}return xT(l)?!0:(a.append(YG(o,s,d),_(l)),!1)}const i=[],v=Object.assign(LPt,{defaultVisitor:m,convertValue:_,isVisitable:xT});function b(l,s){if(!qa.isUndefined(l)){if(i.indexOf(l)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(l),qa.forEach(l,function(o,c){(!(qa.isUndefined(o)||o===null)&&L.call(a,o,qa.isString(c)?c.trim():c,s,v))===!0&&b(o,s?s.concat(c):[c])}),i.pop()}}if(!qa.isObject(e))throw new TypeError("data must be an object");return b(e),a}function ZG(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function wT(e,a){this._pairs=[],e&&T4(e,this,a)}const JG=wT.prototype;JG.append=function(e,a){this._pairs.push([e,a])},JG.toString=function(e){const a=e?function(r){return e.call(this,r,ZG)}:ZG;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function FPt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function XG(e,a,r){if(!a)return e;const I=r&&r.encode||FPt,L=r&&r.serialize;let d;if(L?d=L(a,r):d=qa.isURLSearchParams(a)?a.toString():new wT(a,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class KG{constructor(){this.handlers=[]}use(a,r,I){return this.handlers.push({fulfilled:a,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){qa.forEach(this.handlers,function(r){r!==null&&a(r)})}}const QG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DPt=typeof URLSearchParams<"u"?URLSearchParams:wT,VPt=typeof FormData<"u"?FormData:null,RPt=typeof Blob<"u"?Blob:null,$Pt={isBrowser:!0,classes:{URLSearchParams:DPt,FormData:VPt,Blob:RPt},protocols:["http","https","file","blob","url","data"]},kT=typeof window<"u"&&typeof document<"u",jPt=(e=>kT&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),UPt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HPt=kT&&window.location.href||"http://localhost",GPt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kT,hasStandardBrowserEnv:jPt,hasStandardBrowserWebWorkerEnv:UPt,origin:HPt},Symbol.toStringTag,{value:"Module"})),mh={...GPt,...$Pt};function WPt(e,a){return T4(e,new mh.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return mh.isNode&&qa.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},a))}function qPt(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function YPt(e){const a={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],a[d]=e[d];return a}function eW(e){function a(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),_=d>=r.length;return g=!g&&qa.isArray(L)?L.length:g,_?(qa.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!n):((!L[g]||!qa.isObject(L[g]))&&(L[g]=[]),a(r,I,L[g],d)&&qa.isArray(L[g])&&(L[g]=YPt(L[g])),!n)}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const r={};return qa.forEachEntry(e,(I,L)=>{a(qPt(I),L,r,0)}),r}return null}function ZPt(e,a,r){if(qa.isString(e))try{return(a||JSON.parse)(e),qa.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const Wy={transitional:QG,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const r=a.getContentType()||"",I=r.indexOf("application/json")>-1,L=qa.isObject(e);if(L&&qa.isHTMLForm(e)&&(e=new FormData(e)),qa.isFormData(e))return I?JSON.stringify(eW(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return WPt(e,this.formSerializer).toString();if((d=qa.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return T4(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(a.setContentType("application/json",!1),ZPt(e)):e}],transformResponse:[function(e){const a=this.transitional||Wy.transitional,r=a&&a.forcedJSONParsing,I=this.responseType==="json";if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(r&&!this.responseType||I)){const L=!(a&&a.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Xi.from(d,Xi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mh.classes.FormData,Blob:mh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{Wy.headers[e]={}});const JPt=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XPt=e=>{const a={};let r,I,L;return e&&e.split(`
3579
3579
  `).forEach(function(d){L=d.indexOf(":"),r=d.substring(0,L).trim().toLowerCase(),I=d.substring(L+1).trim(),!(!r||a[r]&&JPt[r])&&(r==="set-cookie"?a[r]?a[r].push(I):a[r]=[I]:a[r]=a[r]?a[r]+", "+I:I)}),a},tW=Symbol("internals");function qy(e){return e&&String(e).trim().toLowerCase()}function S4(e){return e===!1||e==null?e:qa.isArray(e)?e.map(S4):String(e)}function KPt(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)a[I[1]]=I[2];return a}const QPt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function CT(e,a,r,I,L){if(qa.isFunction(I))return I.call(this,a,r);if(L&&(a=r),!!qa.isString(a)){if(qa.isString(I))return a.indexOf(I)!==-1;if(qa.isRegExp(I))return I.test(a)}}function eNt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,I)=>r.toUpperCase()+I)}function tNt(e,a){const r=qa.toCamelCase(" "+a);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(L,d,g){return this[I].call(this,a,L,d,g)},configurable:!0})})}class Dd{constructor(a){a&&this.set(a)}set(a,r,I){const L=this;function d(n,_,m){const i=qy(_);if(!i)throw new Error("header name must be a non-empty string");const v=qa.findKey(L,i);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||_]=S4(n))}const g=(n,_)=>qa.forEach(n,(m,i)=>d(m,i,_));if(qa.isPlainObject(a)||a instanceof this.constructor)g(a,r);else if(qa.isString(a)&&(a=a.trim())&&!QPt(a))g(XPt(a),r);else if(qa.isHeaders(a))for(const[n,_]of a.entries())d(_,n,I);else a!=null&&d(r,a,I);return this}get(a,r){if(a=qy(a),a){const I=qa.findKey(this,a);if(I){const L=this[I];if(!r)return L;if(r===!0)return KPt(L);if(qa.isFunction(r))return r.call(this,L,I);if(qa.isRegExp(r))return r.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=qy(a),a){const I=qa.findKey(this,a);return!!(I&&this[I]!==void 0&&(!r||CT(this,this[I],I,r)))}return!1}delete(a,r){const I=this;let L=!1;function d(g){if(g=qy(g),g){const n=qa.findKey(I,g);n&&(!r||CT(I,I[n],n,r))&&(delete I[n],L=!0)}}return qa.isArray(a)?a.forEach(d):d(a),L}clear(a){const r=Object.keys(this);let I=r.length,L=!1;for(;I--;){const d=r[I];(!a||CT(this,this[d],d,a,!0))&&(delete this[d],L=!0)}return L}normalize(a){const r=this,I={};return qa.forEach(this,(L,d)=>{const g=qa.findKey(I,d);if(g){r[g]=S4(L),delete r[d];return}const n=a?eNt(d):String(d).trim();n!==d&&delete r[d],r[n]=S4(L),I[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return qa.forEach(this,(I,L)=>{I!=null&&I!==!1&&(r[L]=a&&qa.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
3580
3580
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const I=new this(a);return r.forEach(L=>I.set(L)),I}static accessor(a){const r=(this[tW]=this[tW]={accessors:{}}).accessors,I=this.prototype;function L(d){const g=qy(d);r[g]||(tNt(I,d),r[g]=!0)}return qa.isArray(a)?a.forEach(L):L(a),this}}Dd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(Dd.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(I){this[r]=I}}}),qa.freezeMethods(Dd);function TT(e,a){const r=this||Wy,I=a||r,L=Dd.from(I.headers);let d=I.data;return qa.forEach(e,function(g){d=g.call(r,d,L.normalize(),a?a.status:void 0)}),L.normalize(),d}function nW(e){return!!(e&&e.__CANCEL__)}function M1(e,a,r){Xi.call(this,e??"canceled",Xi.ERR_CANCELED,a,r),this.name="CanceledError"}qa.inherits(M1,Xi,{__CANCEL__:!0});function aW(e,a,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):a(new Xi("Request failed with status code "+r.status,[Xi.ERR_BAD_REQUEST,Xi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function nNt(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function aNt(e,a){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),m=I[d];g||(g=_),r[L]=n,I[L]=_;let i=d,v=0;for(;i!==L;)v+=r[i++],i=i%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),_-g<a)return;const b=m&&_-m;return b?Math.round(v*1e3/b):void 0}}function rNt(e,a){let r=0;const I=1e3/a;let L=null;return function(){const d=this===!0,g=Date.now();if(d||g-r>I)return L&&(clearTimeout(L),L=null),r=g,e.apply(null,arguments);L||(L=setTimeout(()=>(L=null,r=Date.now(),e.apply(null,arguments)),I-(g-r)))}}const E4=(e,a,r=3)=>{let I=0;const L=aNt(50,250);return rNt(d=>{const g=d.loaded,n=d.lengthComputable?d.total:void 0,_=g-I,m=L(_),i=g<=n;I=g;const v={loaded:g,total:n,progress:n?g/n:void 0,bytes:_,rate:m||void 0,estimated:m&&n&&i?(n-g)/m:void 0,event:d,lengthComputable:n!=null};v[a?"download":"upload"]=!0,e(v)},r)},iNt=mh.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function I(L){let d=L;return e&&(a.setAttribute("href",d),d=a.href),a.setAttribute("href",d),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=I(window.location.href),function(L){const d=qa.isString(L)?I(L):L;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}(),oNt=mh.hasStandardBrowserEnv?{write(e,a,r,I,L,d){const g=[e+"="+encodeURIComponent(a)];qa.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),qa.isString(I)&&g.push("path="+I),qa.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sNt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lNt(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function rW(e,a){return e&&!sNt(a)?lNt(e,a):a}const iW=e=>e instanceof Dd?{...e}:e;function vm(e,a){a=a||{};const r={};function I(m,i,v){return qa.isPlainObject(m)&&qa.isPlainObject(i)?qa.merge.call({caseless:v},m,i):qa.isPlainObject(i)?qa.merge({},i):qa.isArray(i)?i.slice():i}function L(m,i,v){if(qa.isUndefined(i)){if(!qa.isUndefined(m))return I(void 0,m,v)}else return I(m,i,v)}function d(m,i){if(!qa.isUndefined(i))return I(void 0,i)}function g(m,i){if(qa.isUndefined(i)){if(!qa.isUndefined(m))return I(void 0,m)}else return I(void 0,i)}function n(m,i,v){if(v in a)return I(m,i);if(v in e)return I(void 0,m)}const _={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:n,headers:(m,i)=>L(iW(m),iW(i),!0)};return qa.forEach(Object.keys(Object.assign({},e,a)),function(m){const i=_[m]||L,v=i(e[m],a[m],m);qa.isUndefined(v)&&i!==n||(r[m]=v)}),r}const oW=e=>{const a=vm({},e);let{data:r,withXSRFToken:I,xsrfHeaderName:L,xsrfCookieName:d,headers:g,auth:n}=a;a.headers=g=Dd.from(g),a.url=XG(rW(a.baseURL,a.url),e.params,e.paramsSerializer),n&&g.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(qa.isFormData(r)){if(mh.hasStandardBrowserEnv||mh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((_=g.getContentType())!==!1){const[m,...i]=_?_.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...i].join("; "))}}if(mh.hasStandardBrowserEnv&&(I&&qa.isFunction(I)&&(I=I(a)),I||I!==!1&&iNt(a.url))){const m=L&&d&&oNt.read(d);m&&g.set(L,m)}return a},cNt=typeof XMLHttpRequest<"u",dNt=cNt&&function(e){return new Promise(function(a,r){const I=oW(e);let L=I.data;const d=Dd.from(I.headers).normalize();let{responseType:g}=I,n;function _(){I.cancelToken&&I.cancelToken.unsubscribe(n),I.signal&&I.signal.removeEventListener("abort",n)}let m=new XMLHttpRequest;m.open(I.method.toUpperCase(),I.url,!0),m.timeout=I.timeout;function i(){if(!m)return;const b=Dd.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),l={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};aW(function(s){a(s),_()},function(s){r(s),_()},l),m=null}"onloadend"in m?m.onloadend=i:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(i)},m.onabort=function(){m&&(r(new Xi("Request aborted",Xi.ECONNABORTED,I,m)),m=null)},m.onerror=function(){r(new Xi("Network Error",Xi.ERR_NETWORK,I,m)),m=null},m.ontimeout=function(){let b=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const l=I.transitional||QG;I.timeoutErrorMessage&&(b=I.timeoutErrorMessage),r(new Xi(b,l.clarifyTimeoutError?Xi.ETIMEDOUT:Xi.ECONNABORTED,I,m)),m=null},L===void 0&&d.setContentType(null),"setRequestHeader"in m&&qa.forEach(d.toJSON(),function(b,l){m.setRequestHeader(l,b)}),qa.isUndefined(I.withCredentials)||(m.withCredentials=!!I.withCredentials),g&&g!=="json"&&(m.responseType=I.responseType),typeof I.onDownloadProgress=="function"&&m.addEventListener("progress",E4(I.onDownloadProgress,!0)),typeof I.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",E4(I.onUploadProgress)),(I.cancelToken||I.signal)&&(n=b=>{m&&(r(!b||b.type?new M1(null,e,m):b),m.abort(),m=null)},I.cancelToken&&I.cancelToken.subscribe(n),I.signal&&(I.signal.aborted?n():I.signal.addEventListener("abort",n)));const v=nNt(I.url);if(v&&mh.protocols.indexOf(v)===-1){r(new Xi("Unsupported protocol "+v+":",Xi.ERR_BAD_REQUEST,e));return}m.send(L||null)})},uNt=(e,a)=>{let r=new AbortController,I;const L=function(_){if(!I){I=!0,g();const m=_ instanceof Error?_:this.reason;r.abort(m instanceof Xi?m:new M1(m instanceof Error?m.message:m))}};let d=a&&setTimeout(()=>{L(new Xi(`timeout ${a} of ms exceeded`,Xi.ETIMEDOUT))},a);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",L):_.unsubscribe(L))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",L));const{signal:n}=r;return n.unsubscribe=g,[n,()=>{d&&clearTimeout(d),d=null}]},hNt=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let I=0,L;for(;I<r;)L=I+a,yield e.slice(I,L),I=L},pNt=async function*(e,a,r){for await(const I of e)yield*hNt(ArrayBuffer.isView(I)?I:await r(String(I)),a)},sW=(e,a,r,I,L)=>{const d=pNt(e,a,L);let g=0;return new ReadableStream({type:"bytes",async pull(n){const{done:_,value:m}=await d.next();if(_){n.close(),I();return}let i=m.byteLength;r&&r(g+=i),n.enqueue(new Uint8Array(m))},cancel(n){return I(n),d.return()}},{highWaterMark:2})},lW=(e,a)=>{const r=e!=null;return I=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:I}))},A4=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cW=A4&&typeof ReadableStream=="function",ST=A4&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fNt=cW&&(()=>{let e=!1;const a=new Request(mh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a})(),dW=64*1024,ET=cW&&!!(()=>{try{return qa.isReadableStream(new Response("").body)}catch{}})(),M4={stream:ET&&(e=>e.body)};A4&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!M4[a]&&(M4[a]=qa.isFunction(e[a])?r=>r[a]():(r,I)=>{throw new Xi(`Response type '${a}' is not supported`,Xi.ERR_NOT_SUPPORT,I)})})})(new Response);const mNt=async e=>{if(e==null)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(qa.isArrayBufferView(e))return e.byteLength;if(qa.isURLSearchParams(e)&&(e=e+""),qa.isString(e))return(await ST(e)).byteLength},gNt=async(e,a)=>qa.toFiniteNumber(e.getContentLength())??mNt(a),yNt=A4&&(async e=>{let{url:a,method:r,data:I,signal:L,cancelToken:d,timeout:g,onDownloadProgress:n,onUploadProgress:_,responseType:m,headers:i,withCredentials:v="same-origin",fetchOptions:b}=oW(e);m=m?(m+"").toLowerCase():"text";let[l,s]=L||d||g?uNt([L,d],g):[],o,c;const u=()=>{!o&&setTimeout(()=>{l&&l.unsubscribe()}),o=!0};let h;try{if(_&&fNt&&r!=="get"&&r!=="head"&&(h=await gNt(i,I))!==0){let w=new Request(a,{method:"POST",body:I,duplex:"half"}),x;qa.isFormData(I)&&(x=w.headers.get("content-type"))&&i.setContentType(x),w.body&&(I=sW(w.body,dW,lW(h,E4(_)),null,ST))}qa.isString(v)||(v=v?"cors":"omit"),c=new Request(a,{...b,signal:l,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:I,duplex:"half",withCredentials:v});let p=await fetch(c);const f=ET&&(m==="stream"||m==="response");if(ET&&(n||f)){const w={};["status","statusText","headers"].forEach(M=>{w[M]=p[M]});const x=qa.toFiniteNumber(p.headers.get("content-length"));p=new Response(sW(p.body,dW,n&&lW(x,E4(n,!0)),f&&u,ST),w)}m=m||"text";let y=await M4[qa.findKey(M4,m)||"text"](p,e);return!f&&u(),s&&s(),await new Promise((w,x)=>{aW(w,x,{data:y,headers:Dd.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:c})})}catch(p){throw u(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new Xi("Network Error",Xi.ERR_NETWORK,e,c),{cause:p.cause||p}):Xi.from(p,p&&p.code,e,c)}}),AT={http:OPt,xhr:dNt,fetch:yNt};qa.forEach(AT,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const uW=e=>`- ${e}`,vNt=e=>qa.isFunction(e)||e===null||e===!1,hW={getAdapter:e=>{e=qa.isArray(e)?e:[e];const{length:a}=e;let r,I;const L={};for(let d=0;d<a;d++){r=e[d];let g;if(I=r,!vNt(r)&&(I=AT[(g=String(r)).toLowerCase()],I===void 0))throw new Xi(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let g=a?d.length>1?`since :
3581
3581
  `+d.map(uW).join(`
@@ -7040,5 +7040,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7040
7040
  * vuex v4.0.2
7041
7041
  * (c) 2021 Evan You
7042
7042
  * @license MIT
7043
- */var sin="store";function Em(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function KY(e){return e!==null&&typeof e=="object"}function lin(e){return e&&typeof e.then=="function"}function gh(e,a){if(!e)throw new Error("[vuex] "+a)}function cin(e,a){return function(){return e(a)}}function QY(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var I=a.indexOf(e);I>-1&&a.splice(I,1)}}function eZ(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;c5(e,r,[],e._modules.root,!0),RS(e,r,a)}function RS(e,a,r){var I=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,d={};Em(L,function(g,n){d[n]=cin(g,e),Object.defineProperty(e.getters,n,{get:function(){return d[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&fin(e),I&&r&&e._withCommit(function(){I.data=null})}function c5(e,a,r,I,L){var d=!r.length,g=e._modules.getNamespace(r);if(I.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[g]=I),!d&&!L){var n=$S(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in n&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),n[_]=I.state})}var m=I.context=din(e,g,r);I.forEachMutation(function(i,v){var b=g+v;uin(e,b,i,m)}),I.forEachAction(function(i,v){var b=i.root?v:g+v,l=i.handler||i;hin(e,b,l,m)}),I.forEachGetter(function(i,v){var b=g+v;pin(e,b,i,m)}),I.forEachChild(function(i,v){c5(e,a,r.concat(v),i,L)})}function din(e,a,r){var I=a==="",L={dispatch:I?e.dispatch:function(d,g,n){var _=d5(d,g,n),m=_.payload,i=_.options,v=_.type;if((!i||!i.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+v);return}return e.dispatch(v,m)},commit:I?e.commit:function(d,g,n){var _=d5(d,g,n),m=_.payload,i=_.options,v=_.type;if((!i||!i.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+v);return}e.commit(v,m,i)}};return Object.defineProperties(L,{getters:{get:I?function(){return e.getters}:function(){return tZ(e,a)}},state:{get:function(){return $S(e.state,r)}}}),L}function tZ(e,a){if(!e._makeLocalGettersCache[a]){var r={},I=a.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,I)===a){var d=L.slice(I);Object.defineProperty(r,d,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function uin(e,a,r,I){var L=e._mutations[a]||(e._mutations[a]=[]);L.push(function(d){r.call(e,I.state,d)})}function hin(e,a,r,I){var L=e._actions[a]||(e._actions[a]=[]);L.push(function(d){var g=r.call(e,{dispatch:I.dispatch,commit:I.commit,getters:I.getters,state:I.state,rootGetters:e.getters,rootState:e.state},d);return lin(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):g})}function pin(e,a,r,I){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(L){return r(I.state,I.getters,L.state,L.getters)}}function fin(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&gh(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function $S(e,a){return a.reduce(function(r,I){return r[I]},e)}function d5(e,a,r){return KY(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&gh(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var min="vuex bindings",nZ="vuex:mutations",jS="vuex:actions",R1="vuex",gin=0;function yin(e,a){oin({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[min]},function(r){r.addTimelineLayer({id:nZ,label:"Vuex Mutations",color:aZ}),r.addTimelineLayer({id:jS,label:"Vuex Actions",color:aZ}),r.addInspector({id:R1,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(I){if(I.app===e&&I.inspectorId===R1)if(I.filter){var L=[];sZ(L,a._modules.root,I.filter,""),I.rootNodes=L}else I.rootNodes=[oZ(a._modules.root,"")]}),r.on.getInspectorState(function(I){if(I.app===e&&I.inspectorId===R1){var L=I.nodeId;tZ(a,L),I.state=bin(win(a._modules,L),L==="root"?a.getters:a._makeLocalGettersCache,L)}}),r.on.editInspectorState(function(I){if(I.app===e&&I.inspectorId===R1){var L=I.nodeId,d=I.path;L!=="root"&&(d=L.split("/").filter(Boolean).concat(d)),a._withCommit(function(){I.set(a._state.data,d,I.state.value)})}}),a.subscribe(function(I,L){var d={};I.payload&&(d.payload=I.payload),d.state=L,r.notifyComponentUpdate(),r.sendInspectorTree(R1),r.sendInspectorState(R1),r.addTimelineEvent({layerId:nZ,event:{time:Date.now(),title:I.type,data:d}})}),a.subscribeAction({before:function(I,L){var d={};I.payload&&(d.payload=I.payload),I._id=gin++,I._time=Date.now(),d.state=L,r.addTimelineEvent({layerId:jS,event:{time:I._time,title:I.type,groupId:I._id,subtitle:"start",data:d}})},after:function(I,L){var d={},g=Date.now()-I._time;d.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},I.payload&&(d.payload=I.payload),d.state=L,r.addTimelineEvent({layerId:jS,event:{time:Date.now(),title:I.type,groupId:I._id,subtitle:"end",data:d}})}})})}var aZ=8702998,vin=6710886,_in=16777215,rZ={label:"namespaced",textColor:_in,backgroundColor:vin};function iZ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function oZ(e,a){return{id:a||"root",label:iZ(a),tags:e.namespaced?[rZ]:[],children:Object.keys(e._children).map(function(r){return oZ(e._children[r],a+r+"/")})}}function sZ(e,a,r,I){I.includes(r)&&e.push({id:I||"root",label:I.endsWith("/")?I.slice(0,I.length-1):I||"Root",tags:a.namespaced?[rZ]:[]}),Object.keys(a._children).forEach(function(L){sZ(e,a._children[L],r,I+L+"/")})}function bin(e,a,r){a=r==="root"?a:a[r];var I=Object.keys(a),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(I.length){var d=xin(a);L.getters=Object.keys(d).map(function(g){return{key:g.endsWith("/")?iZ(g):g,editable:!1,value:US(function(){return d[g]})}})}return L}function xin(e){var a={};return Object.keys(e).forEach(function(r){var I=r.split("/");if(I.length>1){var L=a,d=I.pop();I.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[d]=US(function(){return e[r]})}else a[r]=US(function(){return e[r]})}),a}function win(e,a){var r=a.split("/").filter(function(I){return I});return r.reduce(function(I,L,d){var g=I[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+a+'".');return d===r.length-1?g:g._children},a==="root"?e:e.root._children)}function US(e){try{return e()}catch(a){return a}}var yh=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},lZ={namespaced:{configurable:!0}};lZ.namespaced.get=function(){return!!this._rawModule.namespaced},yh.prototype.addChild=function(e,a){this._children[e]=a},yh.prototype.removeChild=function(e){delete this._children[e]},yh.prototype.getChild=function(e){return this._children[e]},yh.prototype.hasChild=function(e){return e in this._children},yh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},yh.prototype.forEachChild=function(e){Em(this._children,e)},yh.prototype.forEachGetter=function(e){this._rawModule.getters&&Em(this._rawModule.getters,e)},yh.prototype.forEachAction=function(e){this._rawModule.actions&&Em(this._rawModule.actions,e)},yh.prototype.forEachMutation=function(e){this._rawModule.mutations&&Em(this._rawModule.mutations,e)},Object.defineProperties(yh.prototype,lZ);var Am=function(e){this.register([],e,!1)};Am.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},Am.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,I){return a=a.getChild(I),r+(a.namespaced?I+"/":"")},"")},Am.prototype.update=function(e){cZ([],this.root,e)},Am.prototype.register=function(e,a,r){var I=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&hZ(e,a);var L=new yh(a,r);if(e.length===0)this.root=L;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],L)}a.modules&&Em(a.modules,function(g,n){I.register(e.concat(n),g,r)})},Am.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],I=a.getChild(r);if(!I){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}I.runtime&&a.removeChild(r)},Am.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function cZ(e,a,r){if(process.env.NODE_ENV!=="production"&&hZ(e,r),a.update(r),r.modules)for(var I in r.modules){if(!a.getChild(I)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+I+"' on hot reloading, manual reload is needed");return}cZ(e.concat(I),a.getChild(I),r.modules[I])}}var dZ={assert:function(e){return typeof e=="function"},expected:"function"},kin={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uZ={getters:dZ,mutations:dZ,actions:kin};function hZ(e,a){Object.keys(uZ).forEach(function(r){if(a[r]){var I=uZ[r];Em(a[r],function(L,d){gh(I.assert(L),Cin(e,r,d,L,I.expected))})}})}function Cin(e,a,r,I,L){var d=a+" should be "+L+' but "'+a+"."+r+'"';return e.length>0&&(d+=' in module "'+e.join(".")+'"'),d+=" is "+JSON.stringify(I)+".",d}var Ud=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(gh(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gh(this instanceof e,"store must be called with the new operator."));var I=a.plugins;I===void 0&&(I=[]);var L=a.strict;L===void 0&&(L=!1);var d=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Am(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=d;var g=this,n=this,_=n.dispatch,m=n.commit;this.dispatch=function(v,b){return _.call(g,v,b)},this.commit=function(v,b,l){return m.call(g,v,b,l)},this.strict=L;var i=this._modules.root.state;c5(this,i,[],this._modules.root),RS(this,i),I.forEach(function(v){return v(r)})},HS={state:{configurable:!0}};Ud.prototype.install=function(e,a){e.provide(a||sin,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&yin(e,this)},HS.state.get=function(){return this._state.data},HS.state.set=function(e){process.env.NODE_ENV!=="production"&&gh(!1,"use store.replaceState() to explicit replace store state.")},Ud.prototype.commit=function(e,a,r){var I=this,L=d5(e,a,r),d=L.type,g=L.payload,n=L.options,_={type:d,payload:g},m=this._mutations[d];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+d);return}this._withCommit(function(){m.forEach(function(i){i(g)})}),this._subscribers.slice().forEach(function(i){return i(_,I.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+d+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ud.prototype.dispatch=function(e,a){var r=this,I=d5(e,a),L=I.type,d=I.payload,g={type:L,payload:d},n=this._actions[L];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var _=n.length>1?Promise.all(n.map(function(m){return m(d)})):n[0](d);return new Promise(function(m,i){_.then(function(v){try{r._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(g,r.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}m(v)},function(v){try{r._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(g,r.state,v)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}i(v)})})},Ud.prototype.subscribe=function(e,a){return QY(e,this._subscribers,a)},Ud.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return QY(r,this._actionSubscribers,a)},Ud.prototype.watch=function(e,a,r){var I=this;return process.env.NODE_ENV!=="production"&&gh(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(I.state,I.getters)},a,Object.assign({},r))},Ud.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Ud.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(gh(Array.isArray(e),"module path must be a string or an Array."),gh(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),c5(this,this.state,e,this._modules.get(e),r.preserveState),RS(this,this.state)},Ud.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&gh(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=$S(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),eZ(this)},Ud.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&gh(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ud.prototype.hotUpdate=function(e){this._modules.update(e),eZ(this,!0)},Ud.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Ud.prototype,HS);var Tin=Ein(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!pZ(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Sin(a).forEach(function(I){var L=I.key,d=I.val;r[L]=function(){for(var g=[],n=arguments.length;n--;)g[n]=arguments[n];var _=this.$store.commit;if(e){var m=Ain(this.$store,"mapMutations",e);if(!m)return;_=m.context.commit}return typeof d=="function"?d.apply(this,[_].concat(g)):_.apply(this.$store,[d].concat(g))}}),r});function Sin(e){return pZ(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pZ(e){return Array.isArray(e)||KY(e)}function Ein(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function Ain(e,a,r){var I=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!I&&console.error("[vuex] module namespace not found in "+a+"(): "+r),I}const Min="/icn-play.svg",Iin="/icn-tiros-de-esquina.svg",Pin="/icn-tiro-a-porteria.svg",Nin="/icn-cambio.svg",Bin="/icn-falta.svg",Oin="/atajada.svg",zin="/fuera-de-lugar.svg",GS="/gol.svg",Lin="/var.png",Fin="/tiempo-agregado.svg",Din="/jugada-peligrosa.svg",Vin="/penal-marcado.svg",Rin="/penal-fallado.svg",$in="/inicia-el-partido.svg",jin="/fin-del-partido.svg",Uin="/icn-tarjeta-amarilla.svg",Hin="/icn-tarjeta-roja.svg",Gin=[1,2,3,4,6],Win={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return DS.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):DS.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):DS.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>Krn(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Gin.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Tin("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},qin=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),Yin={class:"time-line-event__details"},Zin={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Jin=["src"],Xin=qin(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Kin={class:"time-line-event__details__info"},Qin={key:0,class:"time-line-event__details__info__header__players"},eon={class:"time-line-event__details__info__header__players__div-img"},ton=["src"],non={class:"time-line-event__details__info__body"},aon={class:"time-line-event__details__info__body__comment"},ron={class:"time-line-event__minute__container"},ion={class:"time-line-event__minute__container__text"},oon={class:"time-line-event__minute__container__icon-container"},son={class:"time-line-event__minute__container__icon-container__icon"},lon={key:0,src:Iin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},con={key:1,src:Pin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},don={key:2,src:Nin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uon={key:3,src:Bin,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},hon={key:4,src:Oin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pon={key:5,src:zin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fon={key:6,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mon={key:7,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gon={key:8,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yon={key:9,src:Lin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},von={key:10,src:Fin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_on={key:11,src:Din,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bon={key:12,src:Vin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xon={key:13,src:Rin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},won={key:14,src:$in,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kon={key:15,src:jin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Con={key:16,src:Uin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ton={key:17,src:Hin,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Son={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Eon(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",d.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",Yin,[r.canPlayVideos&&r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",Zin,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Jin)]),Xin])):t.createCommentVNode("",!0),t.createElementVNode("div",Kin,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",d.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Qin,[d.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.srcImgPlayers,(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",eon,[t.createElementVNode("img",{src:g,alt:""},null,8,ton)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",d.nameClasses]),onClick:a[1]||(a[1]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:Min,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",non,[t.createElementVNode("div",aon,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",d.minuteClasses])},[t.createElementVNode("div",ron,[t.createElementVNode("div",ion,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",oon,[t.createElementVNode("div",son,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",lon)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",con)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",don)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",uon)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",hon)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",pon)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",fon)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",mon)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",gon)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",yon)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",von)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",_on)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",bon)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",xon)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",won)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",kon)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Con)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Ton)):(t.openBlock(),t.createElementBlock("img",Son))])])])],2)],6)}const Aon=sv(Win,[["render",Eon],["__scopeId","data-v-9943063a"]]),Mon={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},Ion={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let u5=null;const Pon={name:"TimeLine",components:{Tooltip:Yrn,TimeLineEvent:Aon},mixins:[Jrn],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":Mon[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await YY.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)u5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),u5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],I=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,L=e+12;r&&(r.style.height=`${L}px`),I&&(I.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(r=>r.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const r=Ion[a.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:a})}),this.timeLineStatuses.sort((a,r)=>r.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return Xrn(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){u5&&u5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},fZ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Non={ref:"timeLine",class:"time-line"},Bon={class:"time-line__header"},Oon={class:"time-line__header__dot"},zon={class:"time-line__header__dot__home-team team-logo"},Lon=["src"],Fon={class:"time-line__header__dot__away-team team-logo"},Don=["src"],Von={key:1,class:"start-line"},Ron=fZ(()=>t.createElementVNode("div",null,null,-1)),$on=fZ(()=>t.createElementVNode("div",null,null,-1)),jon=[Ron,$on],Uon={key:1,class:"noEventText"},Hon={class:"tooltip-data"},Gon=["src"];function Won(e,a,r,I,L,d){const g=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Non,[t.createElementVNode("div",Bon,[t.createElementVNode("div",Oon,[t.createElementVNode("div",zon,[t.createElementVNode("img",{src:d.getTeamLogoSrc("homeTeam"),alt:""},null,8,Lon)]),t.createElementVNode("div",Fon,[t.createElementVNode("img",{src:d.getTeamLogoSrc("awayTeam"),alt:""},null,8,Don)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.gameEventsToShow,(_,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:_.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(d.getGameEventClassAndSetIcon(_,m))},[t.createElementVNode("div",{class:t.normalizeClass(d.getEventContainerClass(_))},[t.createVNode(g,{"game-event":_,"is-mobile":d.isMobile,"time-line-width":L.timeLineWidth,width:d.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:i=>d.updateContainerHeight(i,m),onPlayerChanged:a[0]||(a[0]=i=>e.$emit("player-changed",i)),onThumbnailClick:d.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&m===d.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Von,jon)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Uon,"Aún no comienza el partido"))]))],512),t.createVNode(n,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Hon,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,Gon)])])]),_:1},8,["data"])],64)}const qon=sv(Pon,[["render",Won],["__scopeId","data-v-2574e576"]]),Yon={class:"game-time-line__options"},Zon={class:"game-time-line__timeline"},Jon={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){YY.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let I=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),d=t.ref("Todo"),g=t.ref({}),n=t.ref(null),_=t.ref(0),m=t.computed(()=>{let s="all";return d.value==="1er tiempo"||d.value==="1er"?s="firstHalf":(d.value==="2do tiempo"||d.value==="2do")&&(s="secondHalf"),s}),i=t.computed(()=>_.value<500);function v(s){d.value=s}function b(s){g.value=s}function l(){if(window.ResizeObserver)I=new ResizeObserver(()=>{_.value=n.value.clientWidth}),I.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{l()}),t.onBeforeUnmount(()=>{I&&I.unobserve(n.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",Yon,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,c=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"game-time-line__options__option"},[t.createVNode(Aan,t.mergeProps(_.value<390?r.value:a.value,{text:c=="Todo"?c:_.value<390?c.substring(0,3):c,"is-active":d.value===c,onClick:u=>v(c)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Zon,[t.createVNode(qon,{"game-data":e.game,"time-line-period":m.value,"is-mobile":i.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:b},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Xon=sv(Jon,[["__scopeId","data-v-f42d0c90"]]),l2n="",Kon={class:"game-data__header"},Qon={class:"game-data__header__tournament-season-dropdown"},esn={class:"game-data__header__teams-carousel"},tsn={class:"game-data__body"},nsn={class:"game-data__body__menu"},asn={class:"game-data__body__menu__contmenuswitch"};Il.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const rsn=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:tde,GSCGameTimeLine:Xon,GscSwitchComponent:yT,GSCLineupsMain:L4e,GSCDatosGSMain:ESe,GSCVideoGame:qDe,ModalEvents:zF,GSCSummaryMain:G0t,GSCTacticaFijaMain:San,GSCProminentMain:mEt,GSCComparative:ZIt}}),isn=Jr(Object.assign(rsn,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:a}){const r=e,I=w0();Pu.on("socket-connected",()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),d=t.ref({season:[]}),g=t.ref({}),n=t.ref(!1),_=t.ref({}),m=t.ref(1),i=t.ref(null),v=t.ref(null),b=t.ref([]),l=t.ref(!0),s=t.ref(new Set([1,2])),o=t.ref({}),c=t.ref({minute:"",score:{}}),u=t.ref(0),h=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),p=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),f=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),y=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const w=t.ref(0);let x=null;const M=t.ref(null),k=t.ref(0),T=t.ref(f.value[0]),S=t.ref([]);let A=t.ref("");const E={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},N=t.computed(()=>{const ke=[];return g.value&&g.value.id&&(ke.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(Ie=>{ke.push({id:Ie.id,type:Ie.type})})),ke}),C=t.computed(()=>{if(r.clientPrivilegesBySeasons){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)return ke.teamId}return 0});function z(){n.value=!1}function P(ke){const Ie=ke.split(",");return!(Ie.length<2||Ie[1].split(" ").length<2)}function O(ke){i.value=ke}function D(ke){b.value.push(ke)}function R(ke){v.value=ke}function V(ke){if(!P(ke))return"";const Ie=q(ke);return`${j(ke)}. ${Ie}`}function j(ke){return ke.split(",")[1].split(" ")[1][0]}function q(ke){const Ie=ke.split(",")[0].split(" ");return Ie[0].length<=3&&Ie.length>1?`${Ie[0]} ${Ie[1]}`:Ie[0]}async function $(ke){try{const Ie=Il.create({headers:{Authorization:`${L.value}`}});o.value={};const Oe=await Ie.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ke.game_id);o.value[ke.home_team.team_id]=[],o.value[ke.home_team.team_id].team={name:ke.home_team.acronym,logo:ke.home_team.logo},o.value[ke.home_team.team_id].goals=[],o.value[ke.home_team.team_id].red=[],o.value[ke.home_team.team_id].yellow=[],o.value[ke.visiting_team.team_id]=[],o.value[ke.visiting_team.team_id].team={name:ke.visiting_team.acronym,logo:ke.visiting_team.logo},o.value[ke.visiting_team.team_id].goals=[],o.value[ke.visiting_team.team_id].red=[],o.value[ke.visiting_team.team_id].yellow=[],Oe.data.minute!=null&&(c.value={minute:Oe.data.minute,score:Oe.data.score});for(let we=0;we<Oe.data.plays.length;we++)Oe.data.plays[we].category_name=="Roja"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].red||(o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].red||(o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute))),Oe.data.plays[we].category_name=="Amarilla"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].yellow||(o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].yellow||(o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute))),Oe.data.plays[we].event_type_name=="Gol"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].goals||(o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].goals||(o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)))}catch(Ie){return Promise.reject(Ie)}}function G(ke){n.value=!0,ke.is_live!=1&&(ke.game_status==4||Object.keys(ke.minutes).length>0)?(u.value=1,o.value={plays:ke.minutes,home_team:ke.home_team,visiting_team:ke.visiting_team}):(u.value=0,$(ke))}function Z(){x=new ResizeObserver(ke=>{for(const Ie of ke)k.value=Ie.contentRect.width}),x.observe(M.value)}const H=t.computed(()=>{let ke={};return _.value&&_.value.game_id&&(ke={gameId:_.value.game_id,id:_.value.game_id,seasonId:_.value.season_id,status:_.value.game_status,game_status:_.value.game_status==0?4:_.value.game_status,dateTimeUTC:_.value.date_time_utc,homeTeam:_.value.home_team,awayTeam:_.value.visiting_team,is_live:_.value.is_live,minutes:_.value.minutes}),ke});t.watch(()=>H,ke=>{Object.keys(ke.value).length>0&&(f.value=[],ke.value.is_live==1||ke.value.game_status==4?(f.value=[...p.value],T.value=p.value[0]):(f.value=[...y.value],T.value=y.value[0]),g.value.is_tactic_available==0&&f.value.pop(),w.value+=1,$({game_id:ke.value.gameId,home_team:ke.value.homeTeam,visiting_team:ke.value.awayTeam}),ke.value.is_live==1&&setInterval(()=>{u.value=0,$({game_id:ke.value.gameId,home_team:ke.value.homeTeam,visiting_team:ke.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>I.state.nextGeneral.gameForAnalysis,()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function Y(ke){m.value=ke.is_captured,l.value=ke.is_captured!==0,d.value.id!==ke.id&&(d.value=ke,I.commit("gameGlobal/setTournamentType",ke.tournament_type))}function J(ke){de.value&&!de.value.canPrivilegesTeamPlayVideos||a("openmedia",ke)}function le(ke){a("onOpenProfile",ke)}function re(ke){a("openProfileTeam",ke)}function ae(ke){a("openProfilePlayer",ke)}function oe(ke){ge(ke),ke=="Estadísticas"&&(A.value="Comparativa")}function te(){A.value=""}function ee(ke){g.value.id!==ke.id&&(g.value=ke,a("change-season-id",ke.id))}const se=t.computed(()=>f.value.reduce((ke,Ie)=>(r.disabledSectionsIds.includes(Ie.id)||de.value&&!de.value.canPrivilegesTeamPlayVideos&&Ie.id===2||r.clientPrivilegesBySeasons&&Ie.id===7||(l.value||Ie.id!==5&&Ie.id!==6)&&ke.push(Ie.name),ke),[])),de=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value&&_.value&&_.value.game_id){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)if(fe(ke.playingAs),_.value.game_status===1){const Ie=ke.playingAs.has(_.value.playingAs);return{seasonAndPrivileges:ke,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Ie,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:_.value.home_team.team_id===ke.teamId,homeTeamDetails:{canPlayVideos:Ie,team:_.value.home_team},awayTeamDetails:{canPlayVideos:Ie,team:_.value.visiting_team}}}else{const Ie=_.value.home_team.team_id===ke.teamId,Oe=he.value.filter(pe=>ke.playingAs.has(pe.playingAs));return{seasonAndPrivileges:ke,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Oe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:Ie,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Ie&&Oe.length>0,team:_.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!Ie&&Oe.length>0,team:_.value.visiting_team}}}fe(new Set)}return E}return null}),he=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)return S.value.filter(Ie=>Ie.game_status===1&&ke.playingAs.has(Ie.playingAs))}return[]}return[]});t.watch(se,()=>{de.value&&!de.value.canPrivilegesTeamPlayVideos&&T.value.id===2&&ge("Resumen")},{deep:!0,immediate:!0});function fe(ke){s.value=ke}function ge(ke){if(i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let Ie of b.value)clearInterval(Ie);b.value=[]}T.value=f.value.find(Ie=>Ie.name===ke)||f.value[0]}t.onMounted(()=>{Z(),t.nextTick(()=>{r.isSynchronization&&ge("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(x&&x.disconnect(),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let ke of b.value)clearInterval(ke);b.value=[]}});function ve(ke){if(ke.playingAs||(ke.playingAs=C.value?ke.home_team.team_id===C.value?1:2:0),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let Ie of b.value)clearInterval(Ie);b.value=[]}_.value=ke}function xe(ke){S.value=ke.map(Ie=>{const Oe={...Ie};return C.value&&(Oe.playingAs=Oe.home_team.team_id===C.value?1:2),Oe})}function Ce(ke){}return(ke,Ie)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:M},[t.createElementVNode("div",Kon,[t.withDirectives(t.createElementVNode("div",Qon,[t.createVNode(t.unref(pM),{"current-season-id":e.currentSeasonId,onInput:Y,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(gM),{"current-season-id":e.currentSeasonId,seasons:d.value.seasons,onInput:ee},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",esn,[t.createVNode(t.unref(sne),{"plays-live":o.value,"info-live":c.value,token:h.value,is_captured:m.value,"await-for-seasons":"",seasons:N.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":C.value,"only-games-team-id":C.value,"tournament-type":t.unref(I).state.gameGlobal.tournamentType,onChangeGameCarousel:ve,onOpenModalEvent:G,onChangeGamesByClientPrivileges:xe},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),n.value?(t.openBlock(),t.createBlock(zF,{key:0,width:k.value,onCloseModalEventsLive:z,plays:o.value,game:_.value,type:u.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",tsn,[t.createElementVNode("div",nsn,[t.createElementVNode("div",asn,[t.createVNode(t.unref(yT),{type:2,buttons:se.value,"font-family":"Poppins-Regular","font-size":"16px",width:k.value<400||k.value<700?"max-content":k.value<840||k.value<1050?"155px":"165px","selected-option":T.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:ge},null,8,["buttons","width","selected-option"])])]),H.value&&H.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(T.value.componentName),{key:w.value,game:H.value,onIntervalid:O,onIntervalidpossesion:R,onIntervalidtops:D,subsection:t.unref(A),seasonSelected:g.value,tournamentSelected:d.value,showLineups:l.value,socket:e.socket,is_captured:m.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":de.value?de.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":s.value,"client-privileges-team-id":C.value,"play-videos-privileges":de.value,token:h.value,onResetSubsection:te,onOpenmedia:J,onOnOpenProfile:le,onOpenProfileTeam:re,onOpenProfilePlayer:ae,onChangeToTab:oe,onOpenMediaPlayer:J,onClickPlayEvent:Ce},null,40,["game","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-44010619"]]);async function md({url:e,options:a={},retries:r=3}){return await Il.get(e,a).then(I=>I).catch(I=>r>0?md({url:e,options:a,retries:r-1}):I)}async function mZ({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(a)return mZ({seasonId:e},!1);throw new Error(r)}}async function osn({seasonId:e}){try{return(await md({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function ssn({seasonId:e}){try{return(await md({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function lsn(e,a,r,I,L,d,g=!1){const n=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const m=d&&_[L.teamId]?_[L.teamId]!==d:!1,i=a===1?2:1;return(g||I.includes(_[L.gameId]))&&(!a||(m?i:a)===_[L.playingAs])&&(r.includes(_[L.matchResult])&&_[L.teamId]===d||n.includes(_[L.matchResult])&&_[L.teamId]!==d)})}function gZ(e,a,r,I,L){return a.length===2&&r.length===3&&I.length===6?e:e.filter(d=>a.includes(d[L.playingAs])&&r.includes(d[L.matchResult])&&I.includes(d[L.section]))}async function yZ({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function csn({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:I}=await md({url:r});return I}catch(r){return Promise.reject(r)}}async function dsn({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await md({url:a})).data.data}catch(a){return Promise.reject(a)}}async function usn({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await md({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const hsn=["categoryId","matchLapse","section","matchResult","playingAs","total"];let WS=null;function vZ(){return WS||(WS=Q1(hsn)),WS}async function psn(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function _Z({seasonId:e,teamId:a}){try{return await md({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(r){return Promise.reject(r)}}async function fsn(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await md({url:a})}catch(a){return Promise.reject(a)}}async function msn(e){try{return await md({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const gsn={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,I){return lsn(e.seasonPlays,I["filterGeneral/getPlayingAs"],I["filterGeneral/getResults"],I["filterGeneral/getSelectedGamesIds"],vZ(),I["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,I)=>{const L={...I};return L.home_team=e.currentSeasonTeams.find(d=>d.team_id===I.home_team),L.visiting_team=e.currentSeasonTeams.find(d=>d.team_id===I.visiting_team),r[I.matchday_abbreviation]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date].push(L):r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]=[L]:r[I.matchday_abbreviation]={[I.game_status===3?"canceled":I.date]:[L]},r},{});for(let[r,I]of Object.entries(a))a[r]=Object.entries(I).map(([L,d])=>({date:L,games:d})),a[r].sort((L,d)=>L.date<d.date?-1:L.date>d.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let I=Object.keys(a.nextGamesSchedule);for(let L of I){let d=Number(L.replace("M","")),g=a.nextGamesSchedule[L].map(n=>({matchday:d,date:new Date(n.date)}));r=r.concat(g)}}return r},closestMatchDay(e,a){let r=new Date,I=0,L=-new Date(0,0,0).valueOf(),d=a.matchdaysDates,g=d.length;for(let n=0;n<d.length;n++)I=Math.abs(d[n].date-r),I<L&&(g=n,L=I);return d[g]?d[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},r=!1){try{const I=await mZ({seasonId:a["filterGeneral/getSeasonId"]});if(r)return I;e("updateSeasonPlays",I)}catch(I){return Promise.reject(I)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await yZ({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await psn({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:a,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const I=[void 0,void 0];return e.currentSeasonGames.length===0&&(I[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(I[1]=a("getCurrentSeasonTeams")),await Promise.all(I),!1}catch(I){throw new Error(I)}}}}};async function ysn({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await md({url:a});return r}catch(a){return Promise.reject(a)}}const vsn=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let qS=null;function _sn(){return qS||(qS=Q1(vsn)),qS}class h5{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,r,I){I&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,r)}increaseReceivedByOne(a,r,I){I&&(this.setMaximumLiveSection(a),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,r)}increaseTrendLiveAccumulatedByOne(a,r,I){for(let L=r-1;L<a.accumulated.length;L++)a.accumulated[L]+=I}decreaseAccomplishedLiveByOne(a,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r))}decreaseReceivedLiveByOne(a,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,r,I){for(let L=a.accumulated.length-1;L>=r-1;L--)a.accumulated[L]-=I}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,r){return a.map(I=>I/r)}calculateRanking(a,r,I,L,d,g,n,_){let m=[];L===3&&a&&a.length&&(I.playingAs.length!==2||I.matchResult.length!==3)?m=Array.from(a.reduce((v,b)=>{const l=b[r.playingAs]===1,s=l?"1":"2",o=v.get(b[r.gameId]);if(o)o[s]?o[s].arrayPlays.push(b):o[s]={numberTeamId:b[r.teamId],arrayPlays:[b]};else{const c={numberMatchResult:b[r.matchResult]};l&&(c[1]={numberTeamId:b[r.teamId],arrayPlays:[b]}),v.set(b[r.gameId],c)}return v},new Map).values()).reduce((v,b)=>{const l=I.playingAs.length===2?"both":I.playingAs[0].toString();return(l==="both"&&(b[1].numberTeamId===I.teamId||b[2].numberTeamId===I.teamId)||l!=="both"&&b[l].numberTeamId===I.teamId)&&I.matchResult.includes(b.numberMatchResult)&&v.push(...b[1].arrayPlays,...b[2].arrayPlays),v},[]).filter(v=>I.sections.includes(v[r.section])):(m=a?[...a]:[],n&&a&&(m=a.filter(i=>I.playingAs.includes(i[r.playingAs])&&I.matchResult.includes(i[r.matchResult])&&I.sections.includes(i[r.section])))),this.setTeamRanking(m,L,r,I.teamId,g,"accomplished",_)}setTeamRanking(a,r,I,L,d,g,n){let _=null,m=null;r===3&&(_=new Map,m={},a.forEach(b=>{const l=_.get(b[I.gameId]);l?l[b[I.teamId.toString()]]?l[b[I.teamId.toString()]]+=b[I.total]:l[b[I.teamId.toString()]]=b[I.total]:_.set(b[I.gameId],{[b[I.teamId.toString()]]:b[I.total]})}),Array.from(_.values()).forEach(b=>{const[l,s]=Object.keys(b).map(c=>c),o=b[l]+b[s];this.addPassesAvgByTeam(m,l,o?b[l]/o:0),this.addPassesAvgByTeam(m,s,o?b[s]/o:0)}));const i=d.sort((b,l)=>b.team_id-l.team_id).map(b=>{if(r===3){const l=m[b.team_id.toString()];return{teamId:b.team_id,points:l?l.numberTotalPassesAvg/l.numberGamesCount:0,total:l?l.numberTotalPassesAvg:0}}else{const l=a.reduce((s,o)=>o[I.teamId]===b.team_id&&r===o[I.categoryId]?s+o[I.total]:s,0);return{teamId:b.team_id,points:b[`${n}FilterGames`]?l/b[`${n}FilterGames`]:0,total:l}}}).sort((b,l)=>l.points-b.points);this.accomplished.arrayRankings=i;const v=i.findIndex(b=>b.teamId===L);r===3&&(this.accomplished.avgPreGame=i[v].points),this[g].ranking=v+1,this[g].leader=i[0]}addPassesAvgByTeam(a,r,I){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=I):a[r]={numberGamesCount:1,numberTotalPassesAvg:I}}}class ho{constructor(a,r,I,L,d,g,n,_,m,i){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new h5);ll(this,"visitingTeam",new h5);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${I.accomplished}-${I.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=I||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=d||"",this.names["0-1"]=g||"",this.names["1-0"]=n||"",this.generalId=_||0,this.betOnly=m||!1,this.isPercent=i||!1}addLeaguePlays(a,r,I){a.length===0||!I||this.isLeagueDataCalculated||(a.forEach(L=>{this.isAccomplishedLeaguePlay(L[r.categoryId])&&(this.leagueAccomplishedAccumulator+=L[r.total]),this.isReceivedLeaguePlay(L[r.categoryId])&&(this.leagueReceivedAccumulator+=L[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*I)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*I)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,I){let L="-";for(const[d,g]of Object.entries(this.generalCategoriesIds))a===g&&(L=`${d==="accomplished"?"0":"1"}${L}`),r===g&&(L=`${L}${d==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=I)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,I,L,d){!I||!d||a!==this.homeTeamType&&a!==this.visitingTeamType||(I.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[a].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[a].increaseReceivedByOne(g[L.section],g[L.total])}),this[a].calculateAvg(d))}addLivePlay(a,r,I,L,d=!1,g=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&I[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(I[L.section],I[L.total],!0)}subtractLivePlay(a,r,I,L,d){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(I[L.categoryId])&&!d?this[a].decreaseAccomplishedLiveByOne(I[L.section],I[L.total]):this.isReceivedPlay(I[L.categoryId])&&d&&this[a].decreaseReceivedLiveByOne(I[L.section],I[L.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(I=>a===I||`${a}_r`===I)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(r=>a===r)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,r,I,L,d,g=!1){this[this.homeTeamType].calculateRanking(a,r,I,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.visitingTeamType)}resetData(){this.homeTeam=new h5,this.visitingTeam=new h5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const bsn={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new ho([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new ho([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new ho([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new ho([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new ho([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new ho([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new ho([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new ho([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new ho([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new ho([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new ho([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new ho([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new ho([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new ho([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new ho([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new ho([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new ho([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new ho([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new ho([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new ho([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new ho([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new ho([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new ho([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new ho([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new ho([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new ho([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new ho([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new ho([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new ho([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new ho([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new ho([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new ho([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new ho([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new ho([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new ho([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new ho([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new ho([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new ho([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},xsn=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],wsn=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let YS=null;function ksn(){return YS||(YS=Q1(wsn)),YS}const Csn=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let ZS=null;function Tsn(){return ZS||(ZS=Q1(Csn)),ZS}function p5(e,a,r){return[r.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function bZ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function JS(e,a,r){let I=[...a];return e[r.categoryId]===2&&(I[0]=14),e[r.categoryId]===20&&(I[0]=15),[14,15].includes(I[0])?I:null}var XS={exports:{}},Ssn=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Esn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xZ=function(a){var r=a,I=a.indexOf("["),L=a.indexOf("]");I!=-1&&L!=-1&&(a=a.substring(0,I)+a.substring(I,L).replace(/:/g,";")+a.substring(L,a.length));for(var d=Ssn.exec(a||""),g={},n=14;n--;)g[Esn[n]]=d[n]||"";return I!=-1&&L!=-1&&(g.source=r,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=Asn(g,g.path),g.queryKey=Msn(g,g.query),g};function Asn(e,a){var r=/\/{2,9}/g,I=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&I.splice(0,1),a.substr(a.length-1,1)=="/"&&I.splice(I.length-1,1),I}function Msn(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(I,L,d){L&&(r[L]=d)}),r}var KS={exports:{}},QS={exports:{}},pv=1e3,fv=pv*60,mv=fv*60,gv=mv*24,Isn=gv*365.25,Psn=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return Nsn(e);if(r==="number"&&isNaN(e)===!1)return a.long?Osn(e):Bsn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Nsn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*Isn;case"days":case"day":case"d":return r*gv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mv;case"minutes":case"minute":case"mins":case"min":case"m":return r*fv;case"seconds":case"second":case"secs":case"sec":case"s":return r*pv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Bsn(e){return e>=gv?Math.round(e/gv)+"d":e>=mv?Math.round(e/mv)+"h":e>=fv?Math.round(e/fv)+"m":e>=pv?Math.round(e/pv)+"s":e+"ms"}function Osn(e){return f5(e,gv,"day")||f5(e,mv,"hour")||f5(e,fv,"minute")||f5(e,pv,"second")||e+" ms"}function f5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=Psn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(QS,QS.exports);var zsn=QS.exports;(function(e,a){a=e.exports=zsn,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(KS,KS.exports);var m5=KS.exports,Lsn=xZ,wZ=m5("socket.io-client:url"),Fsn=Dsn;function Dsn(e,a){var r=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(wZ("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),wZ("parse %s",e),r=Lsn(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var I=r.host.indexOf(":")!==-1,L=I?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+L+":"+r.port,r.href=r.protocol+"://"+L+(a&&a.port===r.port?"":":"+r.port),r}var g5={},eE={exports:{}},tE={exports:{}},yv=1e3,vv=yv*60,_v=vv*60,bv=_v*24,Vsn=bv*365.25,Rsn=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return $sn(e);if(r==="number"&&isNaN(e)===!1)return a.long?Usn(e):jsn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $sn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*Vsn;case"days":case"day":case"d":return r*bv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_v;case"minutes":case"minute":case"mins":case"min":case"m":return r*vv;case"seconds":case"second":case"secs":case"sec":case"s":return r*yv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function jsn(e){return e>=bv?Math.round(e/bv)+"d":e>=_v?Math.round(e/_v)+"h":e>=vv?Math.round(e/vv)+"m":e>=yv?Math.round(e/yv)+"s":e+"ms"}function Usn(e){return y5(e,bv,"day")||y5(e,_v,"hour")||y5(e,vv,"minute")||y5(e,yv,"second")||e+" ms"}function y5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=Rsn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(tE,tE.exports);var Hsn=tE.exports;(function(e,a){a=e.exports=Hsn,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(eE,eE.exports);var Gsn=eE.exports,kZ={exports:{}};(function(e){e.exports=a;function a(I){if(I)return r(I)}function r(I){for(var L in a.prototype)I[L]=a.prototype[L];return I}a.prototype.on=a.prototype.addEventListener=function(I,L){return this._callbacks=this._callbacks||{},(this._callbacks["$"+I]=this._callbacks["$"+I]||[]).push(L),this},a.prototype.once=function(I,L){function d(){this.off(I,d),L.apply(this,arguments)}return d.fn=L,this.on(I,d),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(I,L){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks["$"+I];if(!d)return this;if(arguments.length==1)return delete this._callbacks["$"+I],this;for(var g,n=0;n<d.length;n++)if(g=d[n],g===L||g.fn===L){d.splice(n,1);break}return d.length===0&&delete this._callbacks["$"+I],this},a.prototype.emit=function(I){this._callbacks=this._callbacks||{};for(var L=new Array(arguments.length-1),d=this._callbacks["$"+I],g=1;g<arguments.length;g++)L[g-1]=arguments[g];if(d){d=d.slice(0);for(var g=0,n=d.length;g<n;++g)d[g].apply(this,L)}return this},a.prototype.listeners=function(I){return this._callbacks=this._callbacks||{},this._callbacks["$"+I]||[]},a.prototype.hasListeners=function(I){return!!this.listeners(I).length}})(kZ);var $1=kZ.exports,v5={},Wsn={}.toString,nE=Array.isArray||function(e){return Wsn.call(e)=="[object Array]"},CZ=Jsn,qsn=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",Ysn=typeof ArrayBuffer=="function",Zsn=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function Jsn(e){return qsn&&Buffer.isBuffer(e)||Ysn&&(e instanceof ArrayBuffer||Zsn(e))}var aE=nE,TZ=CZ,SZ=Object.prototype.toString,Xsn=typeof Blob=="function"||typeof Blob<"u"&&SZ.call(Blob)==="[object BlobConstructor]",Ksn=typeof File=="function"||typeof File<"u"&&SZ.call(File)==="[object FileConstructor]";v5.deconstructPacket=function(e){var a=[],r=e.data,I=e;return I.data=rE(r,a),I.attachments=a.length,{packet:I,buffers:a}};function rE(e,a){if(!e)return e;if(TZ(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(aE(e)){for(var I=new Array(e.length),L=0;L<e.length;L++)I[L]=rE(e[L],a);return I}else if(typeof e=="object"&&!(e instanceof Date)){var I={};for(var d in e)I[d]=rE(e[d],a);return I}return e}v5.reconstructPacket=function(e,a){return e.data=iE(e.data,a),e.attachments=void 0,e};function iE(e,a){if(!e)return e;if(e&&e._placeholder===!0){var r=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(r)return a[e.num];throw new Error("illegal attachments")}else if(aE(e))for(var I=0;I<e.length;I++)e[I]=iE(e[I],a);else if(typeof e=="object")for(var L in e)e[L]=iE(e[L],a);return e}v5.removeBlobs=function(e,a){function r(d,g,n){if(!d)return d;if(Xsn&&d instanceof Blob||Ksn&&d instanceof File){I++;var _=new FileReader;_.onload=function(){n?n[g]=this.result:L=this.result,--I||a(L)},_.readAsArrayBuffer(d)}else if(aE(d))for(var m=0;m<d.length;m++)r(d[m],m,d);else if(typeof d=="object"&&!TZ(d))for(var i in d)r(d[i],i,d)}var I=0,L=e;r(L),I||a(L)},function(e){var a=Gsn("socket.io-parser"),r=$1,I=v5,L=nE,d=CZ;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=g,e.Decoder=v;function g(){}var n=e.ERROR+'"encode error"';g.prototype.encode=function(u,h){if(a("encoding packet %j",u),e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)i(u,h);else{var p=_(u);h([p])}};function _(u){var h=""+u.type;if((e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)&&(h+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(h+=u.nsp+","),u.id!=null&&(h+=u.id),u.data!=null){var p=m(u.data);if(p!==!1)h+=p;else return n}return a("encoded %j as %s",u,h),h}function m(u){try{return JSON.stringify(u)}catch{return!1}}function i(u,h){function p(f){var y=I.deconstructPacket(f),w=_(y.packet),x=y.buffers;x.unshift(w),h(x)}I.removeBlobs(u,p)}function v(){this.reconstructor=null}r(v.prototype),v.prototype.add=function(u){var h;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=l(u),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new o(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(d(u)||u.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(u),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+u)};function b(u,h){switch(u){case 0:return typeof h=="object";case 1:return h===void 0;case 4:return typeof h=="string"||typeof h=="object";case 2:case 5:return L(h)&&(typeof h[0]=="string"||typeof h[0]=="number");case 3:case 6:return L(h)}}function l(u){var h=0,p={type:Number(u.charAt(0))};if(e.types[p.type]==null)return c("unknown packet type "+p.type);if(e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type){for(var f=h+1;u.charAt(++h)!=="-"&&h!=u.length;);var y=u.substring(f,h);if(y!=Number(y)||u.charAt(h)!=="-")throw new Error("Illegal attachments");p.attachments=Number(y)}if(u.charAt(h+1)==="/"){for(var f=h+1;++h;){var w=u.charAt(h);if(w===","||h===u.length)break}p.nsp=u.substring(f,h)}else p.nsp="/";var x=u.charAt(h+1);if(x!==""&&Number(x)==x){for(var f=h+1;++h;){var w=u.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===u.length)break}p.id=Number(u.substring(f,h+1))}if(u.charAt(++h)){var M=s(u.substr(h));if(b(p.type,M))p.data=M;else throw new Error("invalid payload")}return a("decoded %s as %j",u,p),p}function s(u){try{return JSON.parse(u)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(u){this.reconPack=u,this.buffers=[]}o.prototype.takeBinaryData=function(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){var h=I.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function c(u){return{type:e.ERROR,data:"parser error: "+u}}}(g5);var oE={exports:{}},_5={},sE={exports:{}};try{sE.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{sE.exports=!1}var Qsn=sE.exports,lE=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),eln=Qsn,tln=lE,cE=function(e){var a=e.xdomain,r=e.xscheme,I=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||eln))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&I)return new XDomainRequest}catch{}if(!a)try{return new tln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},dE={exports:{}},Mm={},nln=Object.keys||function(a){var r=[],I=Object.prototype.hasOwnProperty;for(var L in a)I.call(a,L)&&r.push(L);return r},aln=nE,EZ=Object.prototype.toString,rln=typeof Blob=="function"||typeof Blob<"u"&&EZ.call(Blob)==="[object BlobConstructor]",iln=typeof File=="function"||typeof File<"u"&&EZ.call(File)==="[object FileConstructor]",AZ=b5;function b5(e){if(!e||typeof e!="object")return!1;if(aln(e)){for(var a=0,r=e.length;a<r;a++)if(b5(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||rln&&e instanceof Blob||iln&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return b5(e.toJSON(),!0);for(var I in e)if(Object.prototype.hasOwnProperty.call(e,I)&&b5(e[I]))return!0;return!1}var oln=function(e,a,r){var I=e.byteLength;if(a=a||0,r=r||I,e.slice)return e.slice(a,r);if(a<0&&(a+=I),r<0&&(r+=I),r>I&&(r=I),a>=I||a>=r||I===0)return new ArrayBuffer(0);for(var L=new Uint8Array(e),d=new Uint8Array(r-a),g=a,n=0;g<r;g++,n++)d[n]=L[g];return d.buffer},sln=lln;function lln(e,a,r){var I=!1;return r=r||cln,L.count=e,e===0?a():L;function L(d,g){if(L.count<=0)throw new Error("after called too many times");--L.count,d?(I=!0,a(d),a=r):L.count===0&&!I&&a(null,g)}}function cln(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Yf=String.fromCharCode;function MZ(e){for(var a=[],r=0,I=e.length,L,d;r<I;)L=e.charCodeAt(r++),L>=55296&&L<=56319&&r<I?(d=e.charCodeAt(r++),(d&64512)==56320?a.push(((L&1023)<<10)+(d&1023)+65536):(a.push(L),r--)):a.push(L);return a}function dln(e){for(var a=e.length,r=-1,I,L="";++r<a;)I=e[r],I>65535&&(I-=65536,L+=Yf(I>>>10&1023|55296),I=56320|I&1023),L+=Yf(I);return L}function IZ(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function uE(e,a){return Yf(e>>a&63|128)}function uln(e,a){if(!(e&4294967168))return Yf(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=Yf(e>>18&7|240),r+=uE(e,12),r+=uE(e,6)):(IZ(e,a)||(e=65533),r=Yf(e>>12&15|224),r+=uE(e,6)):r=Yf(e>>6&31|192),r+=Yf(e&63|128),r}function hln(e,a){a=a||{};for(var r=a.strict!==!1,I=MZ(e),L=I.length,d=-1,g,n="";++d<L;)g=I[d],n+=uln(g,r);return n}function j1(){if(Zf>=w5)throw Error("Invalid byte index");var e=x5[Zf]&255;if(Zf++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function pln(e){var a,r,I,L,d;if(Zf>w5)throw Error("Invalid byte index");if(Zf==w5)return!1;if(a=x5[Zf]&255,Zf++,!(a&128))return a;if((a&224)==192){if(r=j1(),d=(a&31)<<6|r,d>=128)return d;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=j1(),I=j1(),d=(a&15)<<12|r<<6|I,d>=2048)return IZ(d,e)?d:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=j1(),I=j1(),L=j1(),d=(a&7)<<18|r<<12|I<<6|L,d>=65536&&d<=1114111))return d;throw Error("Invalid UTF-8 detected")}var x5,w5,Zf;function fln(e,a){a=a||{};var r=a.strict!==!1;x5=MZ(e),w5=x5.length,Zf=0;for(var I=[],L;(L=pln(r))!==!1;)I.push(L);return dln(I)}var mln={version:"2.1.2",encode:hln,decode:fln},k5={},PZ;function gln(){return PZ||(PZ=1,function(e){k5.encode=function(a){var r=new Uint8Array(a),I,L=r.length,d="";for(I=0;I<L;I+=3)d+=e[r[I]>>2],d+=e[(r[I]&3)<<4|r[I+1]>>4],d+=e[(r[I+1]&15)<<2|r[I+2]>>6],d+=e[r[I+2]&63];return L%3===2?d=d.substring(0,d.length-1)+"=":L%3===1&&(d=d.substring(0,d.length-2)+"=="),d},k5.decode=function(a){var r=a.length*.75,I=a.length,L,d=0,g,n,_,m;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var i=new ArrayBuffer(r),v=new Uint8Array(i);for(L=0;L<I;L+=4)g=e.indexOf(a[L]),n=e.indexOf(a[L+1]),_=e.indexOf(a[L+2]),m=e.indexOf(a[L+3]),v[d++]=g<<2|n>>4,v[d++]=(n&15)<<4|_>>2,v[d++]=(_&3)<<6|m&63;return i}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),k5}var hE,NZ;function yln(){if(NZ)return hE;NZ=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),r=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),I=e&&e.prototype.append&&e.prototype.getBlob;function L(n){return n.map(function(_){if(_.buffer instanceof ArrayBuffer){var m=_.buffer;if(_.byteLength!==m.byteLength){var i=new Uint8Array(_.byteLength);i.set(new Uint8Array(m,_.byteOffset,_.byteLength)),m=i.buffer}return m}return _})}function d(n,_){_=_||{};var m=new e;return L(n).forEach(function(i){m.append(i)}),_.type?m.getBlob(_.type):m.getBlob()}function g(n,_){return new Blob(L(n),_||{})}return typeof Blob<"u"&&(d.prototype=Blob.prototype,g.prototype=Blob.prototype),hE=function(){return a?r?Blob:g:I?d:void 0}(),hE}(function(e){var a=nln,r=AZ,I=oln,L=sln,d=mln,g;typeof ArrayBuffer<"u"&&(g=gln());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),m=n||_;e.protocol=3;var i=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=a(i),b={type:"error",data:"parser error"},l=yln();e.encodePacket=function(f,y,w,x){typeof y=="function"&&(x=y,y=!1),typeof w=="function"&&(x=w,w=null);var M=f.data===void 0?void 0:f.data.buffer||f.data;if(typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer)return o(f,y,x);if(typeof l<"u"&&M instanceof l)return u(f,y,x);if(M&&M.base64)return s(f,x);var k=i[f.type];return f.data!==void 0&&(k+=w?d.encode(String(f.data),{strict:!1}):String(f.data)),x(""+k)};function s(f,y){var w="b"+e.packets[f.type]+f.data.data;return y(w)}function o(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=f.data,M=new Uint8Array(x),k=new Uint8Array(1+x.byteLength);k[0]=i[f.type];for(var T=0;T<M.length;T++)k[T+1]=M[T];return w(k.buffer)}function c(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:f.type,data:x.result},y,!0,w)},x.readAsArrayBuffer(f.data)}function u(f,y,w){if(!y)return e.encodeBase64Packet(f,w);if(m)return c(f,y,w);var x=new Uint8Array(1);x[0]=i[f.type];var M=new l([x.buffer,f.data]);return w(M)}e.encodeBase64Packet=function(f,y){var w="b"+e.packets[f.type];if(typeof l<"u"&&f.data instanceof l){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];y(w+A)},x.readAsDataURL(f.data)}var M;try{M=String.fromCharCode.apply(null,new Uint8Array(f.data))}catch{for(var k=new Uint8Array(f.data),T=new Array(k.length),S=0;S<k.length;S++)T[S]=k[S];M=String.fromCharCode.apply(null,T)}return w+=btoa(M),y(w)},e.decodePacket=function(f,y,w){if(f===void 0)return b;if(typeof f=="string"){if(f.charAt(0)==="b")return e.decodeBase64Packet(f.substr(1),y);if(w&&(f=h(f),f===!1))return b;var M=f.charAt(0);return Number(M)!=M||!v[M]?b:f.length>1?{type:v[M],data:f.substring(1)}:{type:v[M]}}var x=new Uint8Array(f),M=x[0],k=I(f,1);return l&&y==="blob"&&(k=new l([k])),{type:v[M],data:k}};function h(f){try{f=d.decode(f,{strict:!1})}catch{return!1}return f}e.decodeBase64Packet=function(f,y){var w=v[f.charAt(0)];if(!g)return{type:w,data:{base64:!0,data:f.substr(1)}};var x=g.decode(f.substr(1));return y==="blob"&&l&&(x=new l([x])),{type:w,data:x}},e.encodePayload=function(f,y,w){typeof y=="function"&&(w=y,y=null);var x=r(f);if(y&&x)return l&&!m?e.encodePayloadAsBlob(f,w):e.encodePayloadAsArrayBuffer(f,w);if(!f.length)return w("0:");function M(T){return T.length+":"+T}function k(T,S){e.encodePacket(T,x?y:!1,!1,function(A){S(null,M(A))})}p(f,k,function(T,S){return w(S.join(""))})};function p(f,y,w){for(var x=new Array(f.length),M=L(f.length,w),k=function(S,A,E){y(A,function(N,C){x[S]=C,E(N,x)})},T=0;T<f.length;T++)k(T,f[T],M)}e.decodePayload=function(f,y,w){if(typeof f!="string")return e.decodePayloadAsBinary(f,y,w);typeof y=="function"&&(w=y,y=null);var x;if(f==="")return w(b,0,1);for(var M="",k,T,S=0,A=f.length;S<A;S++){var E=f.charAt(S);if(E!==":"){M+=E;continue}if(M===""||M!=(k=Number(M))||(T=f.substr(S+1,k),M!=T.length))return w(b,0,1);if(T.length){if(x=e.decodePacket(T,y,!1),b.type===x.type&&b.data===x.data)return w(b,0,1);var N=w(x,S+k,A);if(N===!1)return}S+=k,M=""}if(M!=="")return w(b,0,1)},e.encodePayloadAsArrayBuffer=function(f,y){if(!f.length)return y(new ArrayBuffer(0));function w(x,M){e.encodePacket(x,!0,!0,function(k){return M(null,k)})}p(f,w,function(x,M){var k=M.reduce(function(A,E){var N;return typeof E=="string"?N=E.length:N=E.byteLength,A+N.toString().length+N+2},0),T=new Uint8Array(k),S=0;return M.forEach(function(A){var E=typeof A=="string",N=A;if(E){for(var P=new Uint8Array(A.length),C=0;C<A.length;C++)P[C]=A.charCodeAt(C);N=P.buffer}E?T[S++]=0:T[S++]=1;for(var z=N.byteLength.toString(),C=0;C<z.length;C++)T[S++]=parseInt(z[C]);T[S++]=255;for(var P=new Uint8Array(N),C=0;C<P.length;C++)T[S++]=P[C]}),y(T.buffer)})},e.encodePayloadAsBlob=function(f,y){function w(x,M){e.encodePacket(x,!0,!0,function(k){var T=new Uint8Array(1);if(T[0]=1,typeof k=="string"){for(var S=new Uint8Array(k.length),A=0;A<k.length;A++)S[A]=k.charCodeAt(A);k=S.buffer,T[0]=0}for(var E=k instanceof ArrayBuffer?k.byteLength:k.size,N=E.toString(),C=new Uint8Array(N.length+1),A=0;A<N.length;A++)C[A]=parseInt(N[A]);if(C[N.length]=255,l){var z=new l([T.buffer,C.buffer,k]);M(null,z)}})}p(f,w,function(x,M){return y(new l(M))})},e.decodePayloadAsBinary=function(f,y,w){typeof y=="function"&&(w=y,y=null);for(var x=f,M=[];x.byteLength>0;){for(var k=new Uint8Array(x),T=k[0]===0,S="",A=1;k[A]!==255;A++){if(S.length>310)return w(b,0,1);S+=k[A]}x=I(x,2+S.length),S=parseInt(S);var E=I(x,0,S);if(T)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var N=new Uint8Array(E);E="";for(var A=0;A<N.length;A++)E+=String.fromCharCode(N[A])}M.push(E),x=I(x,S)}var C=M.length;M.forEach(function(z,P){w(e.decodePacket(z,y,!0),P,C)})}})(Mm);var pE,BZ;function fE(){if(BZ)return pE;BZ=1;var e=Mm,a=$1;pE=r;function r(I){this.path=I.path,this.hostname=I.hostname,this.port=I.port,this.secure=I.secure,this.query=I.query,this.timestampParam=I.timestampParam,this.timestampRequests=I.timestampRequests,this.readyState="",this.agent=I.agent||!1,this.socket=I.socket,this.enablesXDR=I.enablesXDR,this.withCredentials=I.withCredentials,this.pfx=I.pfx,this.key=I.key,this.passphrase=I.passphrase,this.cert=I.cert,this.ca=I.ca,this.ciphers=I.ciphers,this.rejectUnauthorized=I.rejectUnauthorized,this.forceNode=I.forceNode,this.isReactNative=I.isReactNative,this.extraHeaders=I.extraHeaders,this.localAddress=I.localAddress}return a(r.prototype),r.prototype.onError=function(I,L){var d=new Error(I);return d.type="TransportError",d.description=L,this.emit("error",d),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(I){if(this.readyState==="open")this.write(I);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(I){var L=e.decodePacket(I,this.socket.binaryType);this.onPacket(L)},r.prototype.onPacket=function(I){this.emit("packet",I)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},pE}var U1={};U1.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},U1.decode=function(e){for(var a={},r=e.split("&"),I=0,L=r.length;I<L;I++){var d=r[I].split("=");a[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return a};var C5=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},OZ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),T5=64,zZ={},LZ=0,Jf=0,FZ;function mE(e){var a="";do a=OZ[e%T5]+a,e=Math.floor(e/T5);while(e>0);return a}function vln(e){var a=0;for(Jf=0;Jf<e.length;Jf++)a=a*T5+zZ[e.charAt(Jf)];return a}function gE(){var e=mE(+new Date);return e!==FZ?(LZ=0,FZ=e):e+"."+mE(LZ++)}for(;Jf<T5;Jf++)zZ[OZ[Jf]]=Jf;gE.encode=mE,gE.decode=vln;var DZ=gE,yE={exports:{}},vE={exports:{}},xv=1e3,wv=xv*60,kv=wv*60,Cv=kv*24,_ln=Cv*365.25,bln=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return xln(e);if(r==="number"&&isNaN(e)===!1)return a.long?kln(e):wln(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xln(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*_ln;case"days":case"day":case"d":return r*Cv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*kv;case"minutes":case"minute":case"mins":case"min":case"m":return r*wv;case"seconds":case"second":case"secs":case"sec":case"s":return r*xv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wln(e){return e>=Cv?Math.round(e/Cv)+"d":e>=kv?Math.round(e/kv)+"h":e>=wv?Math.round(e/wv)+"m":e>=xv?Math.round(e/xv)+"s":e+"ms"}function kln(e){return S5(e,Cv,"day")||S5(e,kv,"hour")||S5(e,wv,"minute")||S5(e,xv,"second")||e+" ms"}function S5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=bln,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(vE,vE.exports);var Cln=vE.exports;(function(e,a){a=e.exports=Cln,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(yE,yE.exports);var E5=yE.exports,VZ=fE(),Tln=U1,RZ=Mm,Sln=C5,Eln=DZ,vh=E5("engine.io-client:polling"),$Z=pp,Aln=function(){var e=cE,a=new e({xdomain:!1});return a.responseType!=null}();function pp(e){var a=e&&e.forceBase64;(!Aln||a)&&(this.supportsBinary=!1),VZ.call(this,e)}Sln(pp,VZ),pp.prototype.name="polling",pp.prototype.doOpen=function(){this.poll()},pp.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){vh("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var I=0;this.polling&&(vh("we are currently polling - waiting to pause"),I++,this.once("pollComplete",function(){vh("pre-pause polling complete"),--I||r()})),this.writable||(vh("we are currently writing - waiting to pause"),I++,this.once("drain",function(){vh("pre-pause writing complete"),--I||r()}))}else r()},pp.prototype.poll=function(){vh("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},pp.prototype.onData=function(e){var a=this;vh("polling got data %s",e);var r=function(I,L,d){if(a.readyState==="opening"&&I.type==="open"&&a.onOpen(),I.type==="close")return a.onClose(),!1;a.onPacket(I)};RZ.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():vh('ignoring poll - transport state "%s"',this.readyState))},pp.prototype.doClose=function(){var e=this;function a(){vh("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(vh("transport open - closing"),a()):(vh("transport not open - deferring close"),this.once("open",a))},pp.prototype.write=function(e){var a=this;this.writable=!1;var r=function(){a.writable=!0,a.emit("drain")};RZ.encodePayload(e,this.supportsBinary,function(I){a.doWrite(I,r)})},pp.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=Eln()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Tln.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var I=this.hostname.indexOf(":")!==-1;return a+"://"+(I?"["+this.hostname+"]":this.hostname)+r+this.path+e};var Mln=cE,jZ=$Z,Iln=$1,Pln=C5,_E=E5("engine.io-client:polling-xhr"),Nln=lE;dE.exports=H1,dE.exports.Request=Nc;function UZ(){}function H1(e){if(jZ.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",r=location.port;r||(r=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==a}}Pln(H1,jZ),H1.prototype.supportsBinary=!0,H1.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Nc(e)},H1.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,I=this.request({method:"POST",data:e,isBinary:r}),L=this;I.on("success",a),I.on("error",function(d){L.onError("xhr post error",d)}),this.sendXhr=I},H1.prototype.doPoll=function(){_E("xhr poll");var e=this.request(),a=this;e.on("data",function(r){a.onData(r)}),e.on("error",function(r){a.onError("xhr poll error",r)}),this.pollXhr=e};function Nc(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(Iln(Nc.prototype),Nc.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new Mln(e),r=this;try{_E("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var I in this.extraHeaders)this.extraHeaders.hasOwnProperty(I)&&a.setRequestHeader(I,this.extraHeaders[I])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){r.onLoad()},a.onerror=function(){r.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var L=a.getResponseHeader("Content-Type");(r.supportsBinary&&L==="application/octet-stream"||L==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof a.status=="number"?a.status:0)},0))},_E("xhr data %s",this.data),a.send(this.data)}catch(L){setTimeout(function(){r.onError(L)},0);return}typeof document<"u"&&(this.index=Nc.requestsCount++,Nc.requests[this.index]=this)},Nc.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Nc.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Nc.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Nc.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=UZ:this.xhr.onreadystatechange=UZ,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Nc.requests[this.index],this.xhr=null}},Nc.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)},Nc.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Nc.prototype.abort=function(){this.cleanup()},Nc.requestsCount=0,Nc.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",HZ);else if(typeof addEventListener=="function"){var Bln="onpagehide"in Nln?"pagehide":"unload";addEventListener(Bln,HZ,!1)}}function HZ(){for(var e in Nc.requests)Nc.requests.hasOwnProperty(e)&&Nc.requests[e].abort()}var Oln=dE.exports,bE=$Z,zln=C5,GZ=lE,Lln=G1,Fln=/\n/g,Dln=/\\n/g,A5;function Vln(){}function G1(e){bE.call(this,e),this.query=this.query||{},A5||(A5=GZ.___eio=GZ.___eio||[]),this.index=A5.length;var a=this;A5.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=Vln)},!1)}zln(G1,bE),G1.prototype.supportsBinary=!1,G1.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),bE.prototype.doClose.call(this)},G1.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(L){e.onError("jsonp poll error",L)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var I=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);I&&setTimeout(function(){var L=document.createElement("iframe");document.body.appendChild(L),document.body.removeChild(L)},100)},G1.prototype.doWrite=function(e,a){var r=this;if(!this.form){var I=document.createElement("form"),L=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index,g;I.className="socketio",I.style.position="absolute",I.style.top="-1000px",I.style.left="-1000px",I.target=d,I.method="POST",I.setAttribute("accept-charset","utf-8"),L.name="d",I.appendChild(L),document.body.appendChild(I),this.form=I,this.area=L}this.form.action=this.uri();function n(){_(),a()}function _(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(i){r.onError("jsonp polling iframe removal error",i)}try{var m='<iframe src="javascript:0" name="'+r.iframeId+'">';g=document.createElement(m)}catch{g=document.createElement("iframe"),g.name=r.iframeId,g.src="javascript:0"}g.id=r.iframeId,r.form.appendChild(g),r.iframe=g}_(),e=e.replace(Dln,`\\
7043
+ */var sin="store";function Em(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function KY(e){return e!==null&&typeof e=="object"}function lin(e){return e&&typeof e.then=="function"}function gh(e,a){if(!e)throw new Error("[vuex] "+a)}function cin(e,a){return function(){return e(a)}}function QY(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var I=a.indexOf(e);I>-1&&a.splice(I,1)}}function eZ(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;c5(e,r,[],e._modules.root,!0),RS(e,r,a)}function RS(e,a,r){var I=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,d={};Em(L,function(g,n){d[n]=cin(g,e),Object.defineProperty(e.getters,n,{get:function(){return d[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&fin(e),I&&r&&e._withCommit(function(){I.data=null})}function c5(e,a,r,I,L){var d=!r.length,g=e._modules.getNamespace(r);if(I.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[g]=I),!d&&!L){var n=$S(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in n&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),n[_]=I.state})}var m=I.context=din(e,g,r);I.forEachMutation(function(i,v){var b=g+v;uin(e,b,i,m)}),I.forEachAction(function(i,v){var b=i.root?v:g+v,l=i.handler||i;hin(e,b,l,m)}),I.forEachGetter(function(i,v){var b=g+v;pin(e,b,i,m)}),I.forEachChild(function(i,v){c5(e,a,r.concat(v),i,L)})}function din(e,a,r){var I=a==="",L={dispatch:I?e.dispatch:function(d,g,n){var _=d5(d,g,n),m=_.payload,i=_.options,v=_.type;if((!i||!i.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+v);return}return e.dispatch(v,m)},commit:I?e.commit:function(d,g,n){var _=d5(d,g,n),m=_.payload,i=_.options,v=_.type;if((!i||!i.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+v);return}e.commit(v,m,i)}};return Object.defineProperties(L,{getters:{get:I?function(){return e.getters}:function(){return tZ(e,a)}},state:{get:function(){return $S(e.state,r)}}}),L}function tZ(e,a){if(!e._makeLocalGettersCache[a]){var r={},I=a.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,I)===a){var d=L.slice(I);Object.defineProperty(r,d,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function uin(e,a,r,I){var L=e._mutations[a]||(e._mutations[a]=[]);L.push(function(d){r.call(e,I.state,d)})}function hin(e,a,r,I){var L=e._actions[a]||(e._actions[a]=[]);L.push(function(d){var g=r.call(e,{dispatch:I.dispatch,commit:I.commit,getters:I.getters,state:I.state,rootGetters:e.getters,rootState:e.state},d);return lin(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):g})}function pin(e,a,r,I){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(L){return r(I.state,I.getters,L.state,L.getters)}}function fin(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&gh(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function $S(e,a){return a.reduce(function(r,I){return r[I]},e)}function d5(e,a,r){return KY(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&gh(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var min="vuex bindings",nZ="vuex:mutations",jS="vuex:actions",R1="vuex",gin=0;function yin(e,a){oin({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[min]},function(r){r.addTimelineLayer({id:nZ,label:"Vuex Mutations",color:aZ}),r.addTimelineLayer({id:jS,label:"Vuex Actions",color:aZ}),r.addInspector({id:R1,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(I){if(I.app===e&&I.inspectorId===R1)if(I.filter){var L=[];sZ(L,a._modules.root,I.filter,""),I.rootNodes=L}else I.rootNodes=[oZ(a._modules.root,"")]}),r.on.getInspectorState(function(I){if(I.app===e&&I.inspectorId===R1){var L=I.nodeId;tZ(a,L),I.state=bin(win(a._modules,L),L==="root"?a.getters:a._makeLocalGettersCache,L)}}),r.on.editInspectorState(function(I){if(I.app===e&&I.inspectorId===R1){var L=I.nodeId,d=I.path;L!=="root"&&(d=L.split("/").filter(Boolean).concat(d)),a._withCommit(function(){I.set(a._state.data,d,I.state.value)})}}),a.subscribe(function(I,L){var d={};I.payload&&(d.payload=I.payload),d.state=L,r.notifyComponentUpdate(),r.sendInspectorTree(R1),r.sendInspectorState(R1),r.addTimelineEvent({layerId:nZ,event:{time:Date.now(),title:I.type,data:d}})}),a.subscribeAction({before:function(I,L){var d={};I.payload&&(d.payload=I.payload),I._id=gin++,I._time=Date.now(),d.state=L,r.addTimelineEvent({layerId:jS,event:{time:I._time,title:I.type,groupId:I._id,subtitle:"start",data:d}})},after:function(I,L){var d={},g=Date.now()-I._time;d.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},I.payload&&(d.payload=I.payload),d.state=L,r.addTimelineEvent({layerId:jS,event:{time:Date.now(),title:I.type,groupId:I._id,subtitle:"end",data:d}})}})})}var aZ=8702998,vin=6710886,_in=16777215,rZ={label:"namespaced",textColor:_in,backgroundColor:vin};function iZ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function oZ(e,a){return{id:a||"root",label:iZ(a),tags:e.namespaced?[rZ]:[],children:Object.keys(e._children).map(function(r){return oZ(e._children[r],a+r+"/")})}}function sZ(e,a,r,I){I.includes(r)&&e.push({id:I||"root",label:I.endsWith("/")?I.slice(0,I.length-1):I||"Root",tags:a.namespaced?[rZ]:[]}),Object.keys(a._children).forEach(function(L){sZ(e,a._children[L],r,I+L+"/")})}function bin(e,a,r){a=r==="root"?a:a[r];var I=Object.keys(a),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(I.length){var d=xin(a);L.getters=Object.keys(d).map(function(g){return{key:g.endsWith("/")?iZ(g):g,editable:!1,value:US(function(){return d[g]})}})}return L}function xin(e){var a={};return Object.keys(e).forEach(function(r){var I=r.split("/");if(I.length>1){var L=a,d=I.pop();I.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[d]=US(function(){return e[r]})}else a[r]=US(function(){return e[r]})}),a}function win(e,a){var r=a.split("/").filter(function(I){return I});return r.reduce(function(I,L,d){var g=I[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+a+'".');return d===r.length-1?g:g._children},a==="root"?e:e.root._children)}function US(e){try{return e()}catch(a){return a}}var yh=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},lZ={namespaced:{configurable:!0}};lZ.namespaced.get=function(){return!!this._rawModule.namespaced},yh.prototype.addChild=function(e,a){this._children[e]=a},yh.prototype.removeChild=function(e){delete this._children[e]},yh.prototype.getChild=function(e){return this._children[e]},yh.prototype.hasChild=function(e){return e in this._children},yh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},yh.prototype.forEachChild=function(e){Em(this._children,e)},yh.prototype.forEachGetter=function(e){this._rawModule.getters&&Em(this._rawModule.getters,e)},yh.prototype.forEachAction=function(e){this._rawModule.actions&&Em(this._rawModule.actions,e)},yh.prototype.forEachMutation=function(e){this._rawModule.mutations&&Em(this._rawModule.mutations,e)},Object.defineProperties(yh.prototype,lZ);var Am=function(e){this.register([],e,!1)};Am.prototype.get=function(e){return e.reduce(function(a,r){return a.getChild(r)},this.root)},Am.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(r,I){return a=a.getChild(I),r+(a.namespaced?I+"/":"")},"")},Am.prototype.update=function(e){cZ([],this.root,e)},Am.prototype.register=function(e,a,r){var I=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&hZ(e,a);var L=new yh(a,r);if(e.length===0)this.root=L;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],L)}a.modules&&Em(a.modules,function(g,n){I.register(e.concat(n),g,r)})},Am.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1],I=a.getChild(r);if(!I){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}I.runtime&&a.removeChild(r)},Am.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),r=e[e.length-1];return a?a.hasChild(r):!1};function cZ(e,a,r){if(process.env.NODE_ENV!=="production"&&hZ(e,r),a.update(r),r.modules)for(var I in r.modules){if(!a.getChild(I)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+I+"' on hot reloading, manual reload is needed");return}cZ(e.concat(I),a.getChild(I),r.modules[I])}}var dZ={assert:function(e){return typeof e=="function"},expected:"function"},kin={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uZ={getters:dZ,mutations:dZ,actions:kin};function hZ(e,a){Object.keys(uZ).forEach(function(r){if(a[r]){var I=uZ[r];Em(a[r],function(L,d){gh(I.assert(L),Cin(e,r,d,L,I.expected))})}})}function Cin(e,a,r,I,L){var d=a+" should be "+L+' but "'+a+"."+r+'"';return e.length>0&&(d+=' in module "'+e.join(".")+'"'),d+=" is "+JSON.stringify(I)+".",d}var Ud=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(gh(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gh(this instanceof e,"store must be called with the new operator."));var I=a.plugins;I===void 0&&(I=[]);var L=a.strict;L===void 0&&(L=!1);var d=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Am(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=d;var g=this,n=this,_=n.dispatch,m=n.commit;this.dispatch=function(v,b){return _.call(g,v,b)},this.commit=function(v,b,l){return m.call(g,v,b,l)},this.strict=L;var i=this._modules.root.state;c5(this,i,[],this._modules.root),RS(this,i),I.forEach(function(v){return v(r)})},HS={state:{configurable:!0}};Ud.prototype.install=function(e,a){e.provide(a||sin,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&yin(e,this)},HS.state.get=function(){return this._state.data},HS.state.set=function(e){process.env.NODE_ENV!=="production"&&gh(!1,"use store.replaceState() to explicit replace store state.")},Ud.prototype.commit=function(e,a,r){var I=this,L=d5(e,a,r),d=L.type,g=L.payload,n=L.options,_={type:d,payload:g},m=this._mutations[d];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+d);return}this._withCommit(function(){m.forEach(function(i){i(g)})}),this._subscribers.slice().forEach(function(i){return i(_,I.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+d+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ud.prototype.dispatch=function(e,a){var r=this,I=d5(e,a),L=I.type,d=I.payload,g={type:L,payload:d},n=this._actions[L];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var _=n.length>1?Promise.all(n.map(function(m){return m(d)})):n[0](d);return new Promise(function(m,i){_.then(function(v){try{r._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(g,r.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}m(v)},function(v){try{r._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(g,r.state,v)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}i(v)})})},Ud.prototype.subscribe=function(e,a){return QY(e,this._subscribers,a)},Ud.prototype.subscribeAction=function(e,a){var r=typeof e=="function"?{before:e}:e;return QY(r,this._actionSubscribers,a)},Ud.prototype.watch=function(e,a,r){var I=this;return process.env.NODE_ENV!=="production"&&gh(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(I.state,I.getters)},a,Object.assign({},r))},Ud.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Ud.prototype.registerModule=function(e,a,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(gh(Array.isArray(e),"module path must be a string or an Array."),gh(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),c5(this,this.state,e,this._modules.get(e),r.preserveState),RS(this,this.state)},Ud.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&gh(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=$S(a.state,e.slice(0,-1));delete r[e[e.length-1]]}),eZ(this)},Ud.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&gh(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ud.prototype.hotUpdate=function(e){this._modules.update(e),eZ(this,!0)},Ud.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Ud.prototype,HS);var Tin=Ein(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!pZ(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Sin(a).forEach(function(I){var L=I.key,d=I.val;r[L]=function(){for(var g=[],n=arguments.length;n--;)g[n]=arguments[n];var _=this.$store.commit;if(e){var m=Ain(this.$store,"mapMutations",e);if(!m)return;_=m.context.commit}return typeof d=="function"?d.apply(this,[_].concat(g)):_.apply(this.$store,[d].concat(g))}}),r});function Sin(e){return pZ(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pZ(e){return Array.isArray(e)||KY(e)}function Ein(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function Ain(e,a,r){var I=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!I&&console.error("[vuex] module namespace not found in "+a+"(): "+r),I}const Min="/icn-play.svg",Iin="/icn-tiros-de-esquina.svg",Pin="/icn-tiro-a-porteria.svg",Nin="/icn-cambio.svg",Bin="/icn-falta.svg",Oin="/atajada.svg",zin="/fuera-de-lugar.svg",GS="/gol.svg",Lin="/var.png",Fin="/tiempo-agregado.svg",Din="/jugada-peligrosa.svg",Vin="/penal-marcado.svg",Rin="/penal-fallado.svg",$in="/inicia-el-partido.svg",jin="/fin-del-partido.svg",Uin="/icn-tarjeta-amarilla.svg",Hin="/icn-tarjeta-roja.svg",Gin=[1,2,3,4,6],Win={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return DS.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):DS.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):DS.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>Krn(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Gin.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Tin("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},qin=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),Yin={class:"time-line-event__details"},Zin={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Jin=["src"],Xin=qin(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Kin={class:"time-line-event__details__info"},Qin={key:0,class:"time-line-event__details__info__header__players"},eon={class:"time-line-event__details__info__header__players__div-img"},ton=["src"],non={class:"time-line-event__details__info__body"},aon={class:"time-line-event__details__info__body__comment"},ron={class:"time-line-event__minute__container"},ion={class:"time-line-event__minute__container__text"},oon={class:"time-line-event__minute__container__icon-container"},son={class:"time-line-event__minute__container__icon-container__icon"},lon={key:0,src:Iin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},con={key:1,src:Pin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},don={key:2,src:Nin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uon={key:3,src:Bin,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},hon={key:4,src:Oin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pon={key:5,src:zin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fon={key:6,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mon={key:7,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gon={key:8,src:GS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yon={key:9,src:Lin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},von={key:10,src:Fin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_on={key:11,src:Din,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bon={key:12,src:Vin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xon={key:13,src:Rin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},won={key:14,src:$in,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kon={key:15,src:jin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Con={key:16,src:Uin,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ton={key:17,src:Hin,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Son={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Eon(e,a,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",d.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",Yin,[r.canPlayVideos&&r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",Zin,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Jin)]),Xin])):t.createCommentVNode("",!0),t.createElementVNode("div",Kin,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",d.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Qin,[d.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.srcImgPlayers,(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",eon,[t.createElementVNode("img",{src:g,alt:""},null,8,ton)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",d.nameClasses]),onClick:a[1]||(a[1]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:Min,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",non,[t.createElementVNode("div",aon,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",d.minuteClasses])},[t.createElementVNode("div",ron,[t.createElementVNode("div",ion,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",oon,[t.createElementVNode("div",son,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",lon)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",con)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",don)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",uon)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",hon)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",pon)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",fon)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",mon)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",gon)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",yon)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",von)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",_on)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",bon)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",xon)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",won)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",kon)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Con)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Ton)):(t.openBlock(),t.createElementBlock("img",Son))])])])],2)],6)}const Aon=sv(Win,[["render",Eon],["__scopeId","data-v-9943063a"]]),Mon={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},Ion={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let u5=null;const Pon={name:"TimeLine",components:{Tooltip:Yrn,TimeLineEvent:Aon},mixins:[Jrn],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":Mon[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await YY.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)u5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),u5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const r=this.$refs[`gameEventDiv${a}`][0],I=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,L=e+12;r&&(r.style.height=`${L}px`),I&&(I.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(r=>r.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const r=Ion[a.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:a})}),this.timeLineStatuses.sort((a,r)=>r.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return Xrn(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){u5&&u5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},fZ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Non={ref:"timeLine",class:"time-line"},Bon={class:"time-line__header"},Oon={class:"time-line__header__dot"},zon={class:"time-line__header__dot__home-team team-logo"},Lon=["src"],Fon={class:"time-line__header__dot__away-team team-logo"},Don=["src"],Von={key:1,class:"start-line"},Ron=fZ(()=>t.createElementVNode("div",null,null,-1)),$on=fZ(()=>t.createElementVNode("div",null,null,-1)),jon=[Ron,$on],Uon={key:1,class:"noEventText"},Hon={class:"tooltip-data"},Gon=["src"];function Won(e,a,r,I,L,d){const g=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Non,[t.createElementVNode("div",Bon,[t.createElementVNode("div",Oon,[t.createElementVNode("div",zon,[t.createElementVNode("img",{src:d.getTeamLogoSrc("homeTeam"),alt:""},null,8,Lon)]),t.createElementVNode("div",Fon,[t.createElementVNode("img",{src:d.getTeamLogoSrc("awayTeam"),alt:""},null,8,Don)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.gameEventsToShow,(_,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:_.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(d.getGameEventClassAndSetIcon(_,m))},[t.createElementVNode("div",{class:t.normalizeClass(d.getEventContainerClass(_))},[t.createVNode(g,{"game-event":_,"is-mobile":d.isMobile,"time-line-width":L.timeLineWidth,width:d.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:i=>d.updateContainerHeight(i,m),onPlayerChanged:a[0]||(a[0]=i=>e.$emit("player-changed",i)),onThumbnailClick:d.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&m===d.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Von,jon)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Uon,"Aún no comienza el partido"))]))],512),t.createVNode(n,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Hon,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,Gon)])])]),_:1},8,["data"])],64)}const qon=sv(Pon,[["render",Won],["__scopeId","data-v-2574e576"]]),Yon={class:"game-time-line__options"},Zon={class:"game-time-line__timeline"},Jon={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){YY.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let I=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),d=t.ref("Todo"),g=t.ref({}),n=t.ref(null),_=t.ref(0),m=t.computed(()=>{let s="all";return d.value==="1er tiempo"||d.value==="1er"?s="firstHalf":(d.value==="2do tiempo"||d.value==="2do")&&(s="secondHalf"),s}),i=t.computed(()=>_.value<500);function v(s){d.value=s}function b(s){g.value=s}function l(){if(window.ResizeObserver)I=new ResizeObserver(()=>{_.value=n.value.clientWidth}),I.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{l()}),t.onBeforeUnmount(()=>{I&&I.unobserve(n.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",Yon,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,c=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"game-time-line__options__option"},[t.createVNode(Aan,t.mergeProps(_.value<390?r.value:a.value,{text:c=="Todo"?c:_.value<390?c.substring(0,3):c,"is-active":d.value===c,onClick:u=>v(c)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Zon,[t.createVNode(qon,{"game-data":e.game,"time-line-period":m.value,"is-mobile":i.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:b},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Xon=sv(Jon,[["__scopeId","data-v-f42d0c90"]]),l2n="",Kon={class:"game-data__header"},Qon={class:"game-data__header__tournament-season-dropdown"},esn={class:"game-data__header__teams-carousel"},tsn={class:"game-data__body"},nsn={class:"game-data__body__menu"},asn={class:"game-data__body__menu__contmenuswitch"};Il.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const rsn=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:tde,GSCGameTimeLine:Xon,GscSwitchComponent:yT,GSCLineupsMain:L4e,GSCDatosGSMain:ESe,GSCVideoGame:qDe,ModalEvents:zF,GSCSummaryMain:G0t,GSCTacticaFijaMain:San,GSCProminentMain:mEt,GSCComparative:ZIt}}),isn=Jr(Object.assign(rsn,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:a}){const r=e,I=w0();Pu.on("socket-connected",()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),d=t.ref({season:[]}),g=t.ref({}),n=t.ref(!1),_=t.ref({}),m=t.ref(1),i=t.ref(null),v=t.ref(null),b=t.ref([]),l=t.ref(!0),s=t.ref(new Set([1,2])),o=t.ref({}),c=t.ref({minute:"",score:{}}),u=t.ref(0),h=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),p=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),f=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),y=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const w=t.ref(0);let x=null;const M=t.ref(null),k=t.ref(0),T=t.ref(f.value[0]),S=t.ref([]);let A=t.ref("");const E={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},N=t.computed(()=>{const ke=[];return g.value&&g.value.id&&(ke.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(Ie=>{ke.push({id:Ie.id,type:Ie.type})})),ke}),C=t.computed(()=>{if(r.clientPrivilegesBySeasons){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)return ke.teamId}return 0});function z(){n.value=!1}function P(ke){const Ie=ke.split(",");return!(Ie.length<2||Ie[1].split(" ").length<2)}function O(ke){i.value=ke}function D(ke){b.value.push(ke)}function R(ke){v.value=ke}function V(ke){if(!P(ke))return"";const Ie=q(ke);return`${j(ke)}. ${Ie}`}function j(ke){return ke.split(",")[1].split(" ")[1][0]}function q(ke){const Ie=ke.split(",")[0].split(" ");return Ie[0].length<=3&&Ie.length>1?`${Ie[0]} ${Ie[1]}`:Ie[0]}async function $(ke){try{const Ie=Il.create({headers:{Authorization:`${L.value}`}});o.value={};const Oe=await Ie.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ke.game_id);o.value[ke.home_team.team_id]=[],o.value[ke.home_team.team_id].team={name:ke.home_team.acronym,logo:ke.home_team.logo},o.value[ke.home_team.team_id].goals=[],o.value[ke.home_team.team_id].red=[],o.value[ke.home_team.team_id].yellow=[],o.value[ke.visiting_team.team_id]=[],o.value[ke.visiting_team.team_id].team={name:ke.visiting_team.acronym,logo:ke.visiting_team.logo},o.value[ke.visiting_team.team_id].goals=[],o.value[ke.visiting_team.team_id].red=[],o.value[ke.visiting_team.team_id].yellow=[],Oe.data.minute!=null&&(c.value={minute:Oe.data.minute,score:Oe.data.score});for(let we=0;we<Oe.data.plays.length;we++)Oe.data.plays[we].category_name=="Roja"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].red||(o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].red[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].red||(o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].red[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute))),Oe.data.plays[we].category_name=="Amarilla"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].yellow||(o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].yellow||(o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].yellow[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute))),Oe.data.plays[we].event_type_name=="Gol"&&Oe.data.plays[we].status==1&&(ke.home_team.team_id==Oe.data.plays[we].team_id?(V(Oe.data.plays[we].player_name)in o.value[ke.home_team.team_id].goals||(o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)]={},o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.home_team.team_id].goals[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)):(V(Oe.data.plays[we].player_name)in o.value[ke.visiting_team.team_id].goals||(o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)]={},o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].event=[],o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].name=V(Oe.data.plays[we].player_name)),o.value[ke.visiting_team.team_id].goals[V(Oe.data.plays[we].player_name)].event.push(Oe.data.plays[we].minute)))}catch(Ie){return Promise.reject(Ie)}}function G(ke){n.value=!0,ke.is_live!=1&&(ke.game_status==4||Object.keys(ke.minutes).length>0)?(u.value=1,o.value={plays:ke.minutes,home_team:ke.home_team,visiting_team:ke.visiting_team}):(u.value=0,$(ke))}function Z(){x=new ResizeObserver(ke=>{for(const Ie of ke)k.value=Ie.contentRect.width}),x.observe(M.value)}const H=t.computed(()=>{let ke={};return _.value&&_.value.game_id&&(ke={gameId:_.value.game_id,id:_.value.game_id,seasonId:_.value.season_id,status:_.value.game_status,game_status:_.value.game_status==0?4:_.value.game_status,dateTimeUTC:_.value.date_time_utc,homeTeam:_.value.home_team,awayTeam:_.value.visiting_team,is_live:_.value.is_live,minutes:_.value.minutes}),ke});t.watch(()=>H,ke=>{Object.keys(ke.value).length>0&&(f.value=[],ke.value.is_live==1||ke.value.game_status==4?(f.value=[...p.value],T.value=p.value[0]):(f.value=[...y.value],T.value=y.value[0]),g.value.is_tactic_available==0&&f.value.pop(),w.value+=1,$({game_id:ke.value.gameId,home_team:ke.value.homeTeam,visiting_team:ke.value.awayTeam}),ke.value.is_live==1&&setInterval(()=>{u.value=0,$({game_id:ke.value.gameId,home_team:ke.value.homeTeam,visiting_team:ke.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>I.state.nextGeneral.gameForAnalysis,()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function Y(ke){m.value=ke.is_captured,l.value=ke.is_captured!==0,d.value.id!==ke.id&&(d.value=ke,I.commit("gameGlobal/setTournamentType",ke.tournament_type))}function J(ke){de.value&&!de.value.canPrivilegesTeamPlayVideos||((_.value.is_live||_.value.game_status===0)&&(ke.liveGameConfig={gameId:_.value.game_id}),a("openmedia",ke))}function le(ke){a("onOpenProfile",ke)}function re(ke){a("openProfileTeam",ke)}function ae(ke){a("openProfilePlayer",ke)}function oe(ke){ge(ke),ke=="Estadísticas"&&(A.value="Comparativa")}function te(){A.value=""}function ee(ke){g.value.id!==ke.id&&(g.value=ke,a("change-season-id",ke.id))}const se=t.computed(()=>f.value.reduce((ke,Ie)=>(r.disabledSectionsIds.includes(Ie.id)||de.value&&!de.value.canPrivilegesTeamPlayVideos&&Ie.id===2||r.clientPrivilegesBySeasons&&Ie.id===7||(l.value||Ie.id!==5&&Ie.id!==6)&&ke.push(Ie.name),ke),[])),de=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value&&_.value&&_.value.game_id){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)if(fe(ke.playingAs),_.value.game_status===1){const Ie=ke.playingAs.has(_.value.playingAs);return{seasonAndPrivileges:ke,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Ie,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:_.value.home_team.team_id===ke.teamId,homeTeamDetails:{canPlayVideos:Ie,team:_.value.home_team},awayTeamDetails:{canPlayVideos:Ie,team:_.value.visiting_team}}}else{const Ie=_.value.home_team.team_id===ke.teamId,Oe=he.value.filter(pe=>ke.playingAs.has(pe.playingAs));return{seasonAndPrivileges:ke,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Oe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:Ie,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&Ie&&Oe.length>0,team:_.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!Ie&&Oe.length>0,team:_.value.visiting_team}}}fe(new Set)}return E}return null}),he=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value){const ke=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ke)return S.value.filter(Ie=>Ie.game_status===1&&ke.playingAs.has(Ie.playingAs))}return[]}return[]});t.watch(se,()=>{de.value&&!de.value.canPrivilegesTeamPlayVideos&&T.value.id===2&&ge("Resumen")},{deep:!0,immediate:!0});function fe(ke){s.value=ke}function ge(ke){if(i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let Ie of b.value)clearInterval(Ie);b.value=[]}T.value=f.value.find(Ie=>Ie.name===ke)||f.value[0]}t.onMounted(()=>{Z(),t.nextTick(()=>{r.isSynchronization&&ge("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(x&&x.disconnect(),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let ke of b.value)clearInterval(ke);b.value=[]}});function ve(ke){if(ke.playingAs||(ke.playingAs=C.value?ke.home_team.team_id===C.value?1:2:0),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),b.value.length>0){for(let Ie of b.value)clearInterval(Ie);b.value=[]}_.value=ke}function xe(ke){S.value=ke.map(Ie=>{const Oe={...Ie};return C.value&&(Oe.playingAs=Oe.home_team.team_id===C.value?1:2),Oe})}function Ce(ke){}return(ke,Ie)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:M},[t.createElementVNode("div",Kon,[t.withDirectives(t.createElementVNode("div",Qon,[t.createVNode(t.unref(pM),{"current-season-id":e.currentSeasonId,onInput:Y,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(gM),{"current-season-id":e.currentSeasonId,seasons:d.value.seasons,onInput:ee},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",esn,[t.createVNode(t.unref(sne),{"plays-live":o.value,"info-live":c.value,token:h.value,is_captured:m.value,"await-for-seasons":"",seasons:N.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":C.value,"only-games-team-id":C.value,"tournament-type":t.unref(I).state.gameGlobal.tournamentType,onChangeGameCarousel:ve,onOpenModalEvent:G,onChangeGamesByClientPrivileges:xe},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),n.value?(t.openBlock(),t.createBlock(zF,{key:0,width:k.value,onCloseModalEventsLive:z,plays:o.value,game:_.value,type:u.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",tsn,[t.createElementVNode("div",nsn,[t.createElementVNode("div",asn,[t.createVNode(t.unref(yT),{type:2,buttons:se.value,"font-family":"Poppins-Regular","font-size":"16px",width:k.value<400||k.value<700?"max-content":k.value<840||k.value<1050?"155px":"165px","selected-option":T.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:ge},null,8,["buttons","width","selected-option"])])]),H.value&&H.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(T.value.componentName),{key:w.value,game:H.value,onIntervalid:O,onIntervalidpossesion:R,onIntervalidtops:D,subsection:t.unref(A),seasonSelected:g.value,tournamentSelected:d.value,showLineups:l.value,socket:e.socket,is_captured:m.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":de.value?de.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":s.value,"client-privileges-team-id":C.value,"play-videos-privileges":de.value,token:h.value,onResetSubsection:te,onOpenmedia:J,onOnOpenProfile:le,onOpenProfileTeam:re,onOpenProfilePlayer:ae,onChangeToTab:oe,onOpenMediaPlayer:J,onClickPlayEvent:Ce},null,40,["game","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-e6999574"]]);async function md({url:e,options:a={},retries:r=3}){return await Il.get(e,a).then(I=>I).catch(I=>r>0?md({url:e,options:a,retries:r-1}):I)}async function mZ({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(a)return mZ({seasonId:e},!1);throw new Error(r)}}async function osn({seasonId:e}){try{return(await md({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function ssn({seasonId:e}){try{return(await md({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function lsn(e,a,r,I,L,d,g=!1){const n=r.map(_=>_===1?2:_===2?1:3);return e.filter(_=>{const m=d&&_[L.teamId]?_[L.teamId]!==d:!1,i=a===1?2:1;return(g||I.includes(_[L.gameId]))&&(!a||(m?i:a)===_[L.playingAs])&&(r.includes(_[L.matchResult])&&_[L.teamId]===d||n.includes(_[L.matchResult])&&_[L.teamId]!==d)})}function gZ(e,a,r,I,L){return a.length===2&&r.length===3&&I.length===6?e:e.filter(d=>a.includes(d[L.playingAs])&&r.includes(d[L.matchResult])&&I.includes(d[L.section]))}async function yZ({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function csn({seasonId:e,gameId:a}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:I}=await md({url:r});return I}catch(r){return Promise.reject(r)}}async function dsn({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await md({url:a})).data.data}catch(a){return Promise.reject(a)}}async function usn({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await md({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const hsn=["categoryId","matchLapse","section","matchResult","playingAs","total"];let WS=null;function vZ(){return WS||(WS=Q1(hsn)),WS}async function psn(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function _Z({seasonId:e,teamId:a}){try{return await md({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(r){return Promise.reject(r)}}async function fsn(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await md({url:a})}catch(a){return Promise.reject(a)}}async function msn(e){try{return await md({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const gsn={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,r,I){return lsn(e.seasonPlays,I["filterGeneral/getPlayingAs"],I["filterGeneral/getResults"],I["filterGeneral/getSelectedGamesIds"],vZ(),I["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((r,I)=>{const L={...I};return L.home_team=e.currentSeasonTeams.find(d=>d.team_id===I.home_team),L.visiting_team=e.currentSeasonTeams.find(d=>d.team_id===I.visiting_team),r[I.matchday_abbreviation]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date].push(L):r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]=[L]:r[I.matchday_abbreviation]={[I.game_status===3?"canceled":I.date]:[L]},r},{});for(let[r,I]of Object.entries(a))a[r]=Object.entries(I).map(([L,d])=>({date:L,games:d})),a[r].sort((L,d)=>L.date<d.date?-1:L.date>d.date?1:0);return a},matchdaysDates(e,a){let r=[];if(a.nextGamesSchedule){let I=Object.keys(a.nextGamesSchedule);for(let L of I){let d=Number(L.replace("M","")),g=a.nextGamesSchedule[L].map(n=>({matchday:d,date:new Date(n.date)}));r=r.concat(g)}}return r},closestMatchDay(e,a){let r=new Date,I=0,L=-new Date(0,0,0).valueOf(),d=a.matchdaysDates,g=d.length;for(let n=0;n<d.length;n++)I=Math.abs(d[n].date-r),I<L&&(g=n,L=I);return d[g]?d[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},r=!1){try{const I=await mZ({seasonId:a["filterGeneral/getSeasonId"]});if(r)return I;e("updateSeasonPlays",I)}catch(I){return Promise.reject(I)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const r=await yZ({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const r=await psn({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:a,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const I=[void 0,void 0];return e.currentSeasonGames.length===0&&(I[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(I[1]=a("getCurrentSeasonTeams")),await Promise.all(I),!1}catch(I){throw new Error(I)}}}}};async function ysn({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await md({url:a});return r}catch(a){return Promise.reject(a)}}const vsn=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let qS=null;function _sn(){return qS||(qS=Q1(vsn)),qS}class h5{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,r,I){I&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,r)}increaseReceivedByOne(a,r,I){I&&(this.setMaximumLiveSection(a),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[a-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,r)}increaseTrendLiveAccumulatedByOne(a,r,I){for(let L=r-1;L<a.accumulated.length;L++)a.accumulated[L]+=I}decreaseAccomplishedLiveByOne(a,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,r))}decreaseReceivedLiveByOne(a,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,r,I){for(let L=a.accumulated.length-1;L>=r-1;L--)a.accumulated[L]-=I}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,r){return a.map(I=>I/r)}calculateRanking(a,r,I,L,d,g,n,_){let m=[];L===3&&a&&a.length&&(I.playingAs.length!==2||I.matchResult.length!==3)?m=Array.from(a.reduce((v,b)=>{const l=b[r.playingAs]===1,s=l?"1":"2",o=v.get(b[r.gameId]);if(o)o[s]?o[s].arrayPlays.push(b):o[s]={numberTeamId:b[r.teamId],arrayPlays:[b]};else{const c={numberMatchResult:b[r.matchResult]};l&&(c[1]={numberTeamId:b[r.teamId],arrayPlays:[b]}),v.set(b[r.gameId],c)}return v},new Map).values()).reduce((v,b)=>{const l=I.playingAs.length===2?"both":I.playingAs[0].toString();return(l==="both"&&(b[1].numberTeamId===I.teamId||b[2].numberTeamId===I.teamId)||l!=="both"&&b[l].numberTeamId===I.teamId)&&I.matchResult.includes(b.numberMatchResult)&&v.push(...b[1].arrayPlays,...b[2].arrayPlays),v},[]).filter(v=>I.sections.includes(v[r.section])):(m=a?[...a]:[],n&&a&&(m=a.filter(i=>I.playingAs.includes(i[r.playingAs])&&I.matchResult.includes(i[r.matchResult])&&I.sections.includes(i[r.section])))),this.setTeamRanking(m,L,r,I.teamId,g,"accomplished",_)}setTeamRanking(a,r,I,L,d,g,n){let _=null,m=null;r===3&&(_=new Map,m={},a.forEach(b=>{const l=_.get(b[I.gameId]);l?l[b[I.teamId.toString()]]?l[b[I.teamId.toString()]]+=b[I.total]:l[b[I.teamId.toString()]]=b[I.total]:_.set(b[I.gameId],{[b[I.teamId.toString()]]:b[I.total]})}),Array.from(_.values()).forEach(b=>{const[l,s]=Object.keys(b).map(c=>c),o=b[l]+b[s];this.addPassesAvgByTeam(m,l,o?b[l]/o:0),this.addPassesAvgByTeam(m,s,o?b[s]/o:0)}));const i=d.sort((b,l)=>b.team_id-l.team_id).map(b=>{if(r===3){const l=m[b.team_id.toString()];return{teamId:b.team_id,points:l?l.numberTotalPassesAvg/l.numberGamesCount:0,total:l?l.numberTotalPassesAvg:0}}else{const l=a.reduce((s,o)=>o[I.teamId]===b.team_id&&r===o[I.categoryId]?s+o[I.total]:s,0);return{teamId:b.team_id,points:b[`${n}FilterGames`]?l/b[`${n}FilterGames`]:0,total:l}}}).sort((b,l)=>l.points-b.points);this.accomplished.arrayRankings=i;const v=i.findIndex(b=>b.teamId===L);r===3&&(this.accomplished.avgPreGame=i[v].points),this[g].ranking=v+1,this[g].leader=i[0]}addPassesAvgByTeam(a,r,I){a[r]?(a[r].numberGamesCount+=1,a[r].numberTotalPassesAvg+=I):a[r]={numberGamesCount:1,numberTotalPassesAvg:I}}}class ho{constructor(a,r,I,L,d,g,n,_,m,i){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new h5);ll(this,"visitingTeam",new h5);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${I.accomplished}-${I.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=I||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=d||"",this.names["0-1"]=g||"",this.names["1-0"]=n||"",this.generalId=_||0,this.betOnly=m||!1,this.isPercent=i||!1}addLeaguePlays(a,r,I){a.length===0||!I||this.isLeagueDataCalculated||(a.forEach(L=>{this.isAccomplishedLeaguePlay(L[r.categoryId])&&(this.leagueAccomplishedAccumulator+=L[r.total]),this.isReceivedLeaguePlay(L[r.categoryId])&&(this.leagueReceivedAccumulator+=L[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*I)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*I)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,r,I){let L="-";for(const[d,g]of Object.entries(this.generalCategoriesIds))a===g&&(L=`${d==="accomplished"?"0":"1"}${L}`),r===g&&(L=`${L}${d==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=I)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,r,I,L,d){!I||!d||a!==this.homeTeamType&&a!==this.visitingTeamType||(I.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[a].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[a].increaseReceivedByOne(g[L.section],g[L.total])}),this[a].calculateAvg(d))}addLivePlay(a,r,I,L,d=!1,g=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&I[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(I[L.section],I[L.total],!0)}subtractLivePlay(a,r,I,L,d){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(I[L.categoryId])&&!d?this[a].decreaseAccomplishedLiveByOne(I[L.section],I[L.total]):this.isReceivedPlay(I[L.categoryId])&&d&&this[a].decreaseReceivedLiveByOne(I[L.section],I[L.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(I=>a===I||`${a}_r`===I)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(r=>a===r)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,r,I,L,d,g=!1){this[this.homeTeamType].calculateRanking(a,r,I,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,r,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.visitingTeamType)}resetData(){this.homeTeam=new h5,this.visitingTeam=new h5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const bsn={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new ho([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new ho([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new ho([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new ho([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new ho([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new ho([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new ho([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new ho([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new ho([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new ho([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new ho([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new ho([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new ho([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new ho([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new ho([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new ho([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new ho([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new ho([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new ho([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new ho([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new ho([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new ho([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new ho([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new ho([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new ho([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new ho([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new ho([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new ho([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new ho([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new ho([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new ho([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new ho([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new ho([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new ho([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new ho([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new ho([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new ho([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new ho([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},xsn=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],wsn=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let YS=null;function ksn(){return YS||(YS=Q1(wsn)),YS}const Csn=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let ZS=null;function Tsn(){return ZS||(ZS=Q1(Csn)),ZS}function p5(e,a,r){return[r.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function bZ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function JS(e,a,r){let I=[...a];return e[r.categoryId]===2&&(I[0]=14),e[r.categoryId]===20&&(I[0]=15),[14,15].includes(I[0])?I:null}var XS={exports:{}},Ssn=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Esn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xZ=function(a){var r=a,I=a.indexOf("["),L=a.indexOf("]");I!=-1&&L!=-1&&(a=a.substring(0,I)+a.substring(I,L).replace(/:/g,";")+a.substring(L,a.length));for(var d=Ssn.exec(a||""),g={},n=14;n--;)g[Esn[n]]=d[n]||"";return I!=-1&&L!=-1&&(g.source=r,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=Asn(g,g.path),g.queryKey=Msn(g,g.query),g};function Asn(e,a){var r=/\/{2,9}/g,I=a.replace(r,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&I.splice(0,1),a.substr(a.length-1,1)=="/"&&I.splice(I.length-1,1),I}function Msn(e,a){var r={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(I,L,d){L&&(r[L]=d)}),r}var KS={exports:{}},QS={exports:{}},pv=1e3,fv=pv*60,mv=fv*60,gv=mv*24,Isn=gv*365.25,Psn=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return Nsn(e);if(r==="number"&&isNaN(e)===!1)return a.long?Osn(e):Bsn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Nsn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*Isn;case"days":case"day":case"d":return r*gv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mv;case"minutes":case"minute":case"mins":case"min":case"m":return r*fv;case"seconds":case"second":case"secs":case"sec":case"s":return r*pv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Bsn(e){return e>=gv?Math.round(e/gv)+"d":e>=mv?Math.round(e/mv)+"h":e>=fv?Math.round(e/fv)+"m":e>=pv?Math.round(e/pv)+"s":e+"ms"}function Osn(e){return f5(e,gv,"day")||f5(e,mv,"hour")||f5(e,fv,"minute")||f5(e,pv,"second")||e+" ms"}function f5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=Psn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(QS,QS.exports);var zsn=QS.exports;(function(e,a){a=e.exports=zsn,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(KS,KS.exports);var m5=KS.exports,Lsn=xZ,wZ=m5("socket.io-client:url"),Fsn=Dsn;function Dsn(e,a){var r=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(wZ("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),wZ("parse %s",e),r=Lsn(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var I=r.host.indexOf(":")!==-1,L=I?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+L+":"+r.port,r.href=r.protocol+"://"+L+(a&&a.port===r.port?"":":"+r.port),r}var g5={},eE={exports:{}},tE={exports:{}},yv=1e3,vv=yv*60,_v=vv*60,bv=_v*24,Vsn=bv*365.25,Rsn=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return $sn(e);if(r==="number"&&isNaN(e)===!1)return a.long?Usn(e):jsn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $sn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*Vsn;case"days":case"day":case"d":return r*bv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_v;case"minutes":case"minute":case"mins":case"min":case"m":return r*vv;case"seconds":case"second":case"secs":case"sec":case"s":return r*yv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function jsn(e){return e>=bv?Math.round(e/bv)+"d":e>=_v?Math.round(e/_v)+"h":e>=vv?Math.round(e/vv)+"m":e>=yv?Math.round(e/yv)+"s":e+"ms"}function Usn(e){return y5(e,bv,"day")||y5(e,_v,"hour")||y5(e,vv,"minute")||y5(e,yv,"second")||e+" ms"}function y5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=Rsn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(tE,tE.exports);var Hsn=tE.exports;(function(e,a){a=e.exports=Hsn,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(eE,eE.exports);var Gsn=eE.exports,kZ={exports:{}};(function(e){e.exports=a;function a(I){if(I)return r(I)}function r(I){for(var L in a.prototype)I[L]=a.prototype[L];return I}a.prototype.on=a.prototype.addEventListener=function(I,L){return this._callbacks=this._callbacks||{},(this._callbacks["$"+I]=this._callbacks["$"+I]||[]).push(L),this},a.prototype.once=function(I,L){function d(){this.off(I,d),L.apply(this,arguments)}return d.fn=L,this.on(I,d),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(I,L){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var d=this._callbacks["$"+I];if(!d)return this;if(arguments.length==1)return delete this._callbacks["$"+I],this;for(var g,n=0;n<d.length;n++)if(g=d[n],g===L||g.fn===L){d.splice(n,1);break}return d.length===0&&delete this._callbacks["$"+I],this},a.prototype.emit=function(I){this._callbacks=this._callbacks||{};for(var L=new Array(arguments.length-1),d=this._callbacks["$"+I],g=1;g<arguments.length;g++)L[g-1]=arguments[g];if(d){d=d.slice(0);for(var g=0,n=d.length;g<n;++g)d[g].apply(this,L)}return this},a.prototype.listeners=function(I){return this._callbacks=this._callbacks||{},this._callbacks["$"+I]||[]},a.prototype.hasListeners=function(I){return!!this.listeners(I).length}})(kZ);var $1=kZ.exports,v5={},Wsn={}.toString,nE=Array.isArray||function(e){return Wsn.call(e)=="[object Array]"},CZ=Jsn,qsn=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",Ysn=typeof ArrayBuffer=="function",Zsn=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function Jsn(e){return qsn&&Buffer.isBuffer(e)||Ysn&&(e instanceof ArrayBuffer||Zsn(e))}var aE=nE,TZ=CZ,SZ=Object.prototype.toString,Xsn=typeof Blob=="function"||typeof Blob<"u"&&SZ.call(Blob)==="[object BlobConstructor]",Ksn=typeof File=="function"||typeof File<"u"&&SZ.call(File)==="[object FileConstructor]";v5.deconstructPacket=function(e){var a=[],r=e.data,I=e;return I.data=rE(r,a),I.attachments=a.length,{packet:I,buffers:a}};function rE(e,a){if(!e)return e;if(TZ(e)){var r={_placeholder:!0,num:a.length};return a.push(e),r}else if(aE(e)){for(var I=new Array(e.length),L=0;L<e.length;L++)I[L]=rE(e[L],a);return I}else if(typeof e=="object"&&!(e instanceof Date)){var I={};for(var d in e)I[d]=rE(e[d],a);return I}return e}v5.reconstructPacket=function(e,a){return e.data=iE(e.data,a),e.attachments=void 0,e};function iE(e,a){if(!e)return e;if(e&&e._placeholder===!0){var r=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(r)return a[e.num];throw new Error("illegal attachments")}else if(aE(e))for(var I=0;I<e.length;I++)e[I]=iE(e[I],a);else if(typeof e=="object")for(var L in e)e[L]=iE(e[L],a);return e}v5.removeBlobs=function(e,a){function r(d,g,n){if(!d)return d;if(Xsn&&d instanceof Blob||Ksn&&d instanceof File){I++;var _=new FileReader;_.onload=function(){n?n[g]=this.result:L=this.result,--I||a(L)},_.readAsArrayBuffer(d)}else if(aE(d))for(var m=0;m<d.length;m++)r(d[m],m,d);else if(typeof d=="object"&&!TZ(d))for(var i in d)r(d[i],i,d)}var I=0,L=e;r(L),I||a(L)},function(e){var a=Gsn("socket.io-parser"),r=$1,I=v5,L=nE,d=CZ;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=g,e.Decoder=v;function g(){}var n=e.ERROR+'"encode error"';g.prototype.encode=function(u,h){if(a("encoding packet %j",u),e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)i(u,h);else{var p=_(u);h([p])}};function _(u){var h=""+u.type;if((e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)&&(h+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(h+=u.nsp+","),u.id!=null&&(h+=u.id),u.data!=null){var p=m(u.data);if(p!==!1)h+=p;else return n}return a("encoded %j as %s",u,h),h}function m(u){try{return JSON.stringify(u)}catch{return!1}}function i(u,h){function p(f){var y=I.deconstructPacket(f),w=_(y.packet),x=y.buffers;x.unshift(w),h(x)}I.removeBlobs(u,p)}function v(){this.reconstructor=null}r(v.prototype),v.prototype.add=function(u){var h;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=l(u),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new o(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(d(u)||u.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(u),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+u)};function b(u,h){switch(u){case 0:return typeof h=="object";case 1:return h===void 0;case 4:return typeof h=="string"||typeof h=="object";case 2:case 5:return L(h)&&(typeof h[0]=="string"||typeof h[0]=="number");case 3:case 6:return L(h)}}function l(u){var h=0,p={type:Number(u.charAt(0))};if(e.types[p.type]==null)return c("unknown packet type "+p.type);if(e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type){for(var f=h+1;u.charAt(++h)!=="-"&&h!=u.length;);var y=u.substring(f,h);if(y!=Number(y)||u.charAt(h)!=="-")throw new Error("Illegal attachments");p.attachments=Number(y)}if(u.charAt(h+1)==="/"){for(var f=h+1;++h;){var w=u.charAt(h);if(w===","||h===u.length)break}p.nsp=u.substring(f,h)}else p.nsp="/";var x=u.charAt(h+1);if(x!==""&&Number(x)==x){for(var f=h+1;++h;){var w=u.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===u.length)break}p.id=Number(u.substring(f,h+1))}if(u.charAt(++h)){var M=s(u.substr(h));if(b(p.type,M))p.data=M;else throw new Error("invalid payload")}return a("decoded %s as %j",u,p),p}function s(u){try{return JSON.parse(u)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(u){this.reconPack=u,this.buffers=[]}o.prototype.takeBinaryData=function(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){var h=I.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function c(u){return{type:e.ERROR,data:"parser error: "+u}}}(g5);var oE={exports:{}},_5={},sE={exports:{}};try{sE.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{sE.exports=!1}var Qsn=sE.exports,lE=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),eln=Qsn,tln=lE,cE=function(e){var a=e.xdomain,r=e.xscheme,I=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||eln))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!r&&I)return new XDomainRequest}catch{}if(!a)try{return new tln[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},dE={exports:{}},Mm={},nln=Object.keys||function(a){var r=[],I=Object.prototype.hasOwnProperty;for(var L in a)I.call(a,L)&&r.push(L);return r},aln=nE,EZ=Object.prototype.toString,rln=typeof Blob=="function"||typeof Blob<"u"&&EZ.call(Blob)==="[object BlobConstructor]",iln=typeof File=="function"||typeof File<"u"&&EZ.call(File)==="[object FileConstructor]",AZ=b5;function b5(e){if(!e||typeof e!="object")return!1;if(aln(e)){for(var a=0,r=e.length;a<r;a++)if(b5(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||rln&&e instanceof Blob||iln&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return b5(e.toJSON(),!0);for(var I in e)if(Object.prototype.hasOwnProperty.call(e,I)&&b5(e[I]))return!0;return!1}var oln=function(e,a,r){var I=e.byteLength;if(a=a||0,r=r||I,e.slice)return e.slice(a,r);if(a<0&&(a+=I),r<0&&(r+=I),r>I&&(r=I),a>=I||a>=r||I===0)return new ArrayBuffer(0);for(var L=new Uint8Array(e),d=new Uint8Array(r-a),g=a,n=0;g<r;g++,n++)d[n]=L[g];return d.buffer},sln=lln;function lln(e,a,r){var I=!1;return r=r||cln,L.count=e,e===0?a():L;function L(d,g){if(L.count<=0)throw new Error("after called too many times");--L.count,d?(I=!0,a(d),a=r):L.count===0&&!I&&a(null,g)}}function cln(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Yf=String.fromCharCode;function MZ(e){for(var a=[],r=0,I=e.length,L,d;r<I;)L=e.charCodeAt(r++),L>=55296&&L<=56319&&r<I?(d=e.charCodeAt(r++),(d&64512)==56320?a.push(((L&1023)<<10)+(d&1023)+65536):(a.push(L),r--)):a.push(L);return a}function dln(e){for(var a=e.length,r=-1,I,L="";++r<a;)I=e[r],I>65535&&(I-=65536,L+=Yf(I>>>10&1023|55296),I=56320|I&1023),L+=Yf(I);return L}function IZ(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function uE(e,a){return Yf(e>>a&63|128)}function uln(e,a){if(!(e&4294967168))return Yf(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=Yf(e>>18&7|240),r+=uE(e,12),r+=uE(e,6)):(IZ(e,a)||(e=65533),r=Yf(e>>12&15|224),r+=uE(e,6)):r=Yf(e>>6&31|192),r+=Yf(e&63|128),r}function hln(e,a){a=a||{};for(var r=a.strict!==!1,I=MZ(e),L=I.length,d=-1,g,n="";++d<L;)g=I[d],n+=uln(g,r);return n}function j1(){if(Zf>=w5)throw Error("Invalid byte index");var e=x5[Zf]&255;if(Zf++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function pln(e){var a,r,I,L,d;if(Zf>w5)throw Error("Invalid byte index");if(Zf==w5)return!1;if(a=x5[Zf]&255,Zf++,!(a&128))return a;if((a&224)==192){if(r=j1(),d=(a&31)<<6|r,d>=128)return d;throw Error("Invalid continuation byte")}if((a&240)==224){if(r=j1(),I=j1(),d=(a&15)<<12|r<<6|I,d>=2048)return IZ(d,e)?d:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(r=j1(),I=j1(),L=j1(),d=(a&7)<<18|r<<12|I<<6|L,d>=65536&&d<=1114111))return d;throw Error("Invalid UTF-8 detected")}var x5,w5,Zf;function fln(e,a){a=a||{};var r=a.strict!==!1;x5=MZ(e),w5=x5.length,Zf=0;for(var I=[],L;(L=pln(r))!==!1;)I.push(L);return dln(I)}var mln={version:"2.1.2",encode:hln,decode:fln},k5={},PZ;function gln(){return PZ||(PZ=1,function(e){k5.encode=function(a){var r=new Uint8Array(a),I,L=r.length,d="";for(I=0;I<L;I+=3)d+=e[r[I]>>2],d+=e[(r[I]&3)<<4|r[I+1]>>4],d+=e[(r[I+1]&15)<<2|r[I+2]>>6],d+=e[r[I+2]&63];return L%3===2?d=d.substring(0,d.length-1)+"=":L%3===1&&(d=d.substring(0,d.length-2)+"=="),d},k5.decode=function(a){var r=a.length*.75,I=a.length,L,d=0,g,n,_,m;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);var i=new ArrayBuffer(r),v=new Uint8Array(i);for(L=0;L<I;L+=4)g=e.indexOf(a[L]),n=e.indexOf(a[L+1]),_=e.indexOf(a[L+2]),m=e.indexOf(a[L+3]),v[d++]=g<<2|n>>4,v[d++]=(n&15)<<4|_>>2,v[d++]=(_&3)<<6|m&63;return i}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),k5}var hE,NZ;function yln(){if(NZ)return hE;NZ=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),r=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),I=e&&e.prototype.append&&e.prototype.getBlob;function L(n){return n.map(function(_){if(_.buffer instanceof ArrayBuffer){var m=_.buffer;if(_.byteLength!==m.byteLength){var i=new Uint8Array(_.byteLength);i.set(new Uint8Array(m,_.byteOffset,_.byteLength)),m=i.buffer}return m}return _})}function d(n,_){_=_||{};var m=new e;return L(n).forEach(function(i){m.append(i)}),_.type?m.getBlob(_.type):m.getBlob()}function g(n,_){return new Blob(L(n),_||{})}return typeof Blob<"u"&&(d.prototype=Blob.prototype,g.prototype=Blob.prototype),hE=function(){return a?r?Blob:g:I?d:void 0}(),hE}(function(e){var a=nln,r=AZ,I=oln,L=sln,d=mln,g;typeof ArrayBuffer<"u"&&(g=gln());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),_=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),m=n||_;e.protocol=3;var i=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=a(i),b={type:"error",data:"parser error"},l=yln();e.encodePacket=function(f,y,w,x){typeof y=="function"&&(x=y,y=!1),typeof w=="function"&&(x=w,w=null);var M=f.data===void 0?void 0:f.data.buffer||f.data;if(typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer)return o(f,y,x);if(typeof l<"u"&&M instanceof l)return u(f,y,x);if(M&&M.base64)return s(f,x);var k=i[f.type];return f.data!==void 0&&(k+=w?d.encode(String(f.data),{strict:!1}):String(f.data)),x(""+k)};function s(f,y){var w="b"+e.packets[f.type]+f.data.data;return y(w)}function o(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=f.data,M=new Uint8Array(x),k=new Uint8Array(1+x.byteLength);k[0]=i[f.type];for(var T=0;T<M.length;T++)k[T+1]=M[T];return w(k.buffer)}function c(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:f.type,data:x.result},y,!0,w)},x.readAsArrayBuffer(f.data)}function u(f,y,w){if(!y)return e.encodeBase64Packet(f,w);if(m)return c(f,y,w);var x=new Uint8Array(1);x[0]=i[f.type];var M=new l([x.buffer,f.data]);return w(M)}e.encodeBase64Packet=function(f,y){var w="b"+e.packets[f.type];if(typeof l<"u"&&f.data instanceof l){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];y(w+A)},x.readAsDataURL(f.data)}var M;try{M=String.fromCharCode.apply(null,new Uint8Array(f.data))}catch{for(var k=new Uint8Array(f.data),T=new Array(k.length),S=0;S<k.length;S++)T[S]=k[S];M=String.fromCharCode.apply(null,T)}return w+=btoa(M),y(w)},e.decodePacket=function(f,y,w){if(f===void 0)return b;if(typeof f=="string"){if(f.charAt(0)==="b")return e.decodeBase64Packet(f.substr(1),y);if(w&&(f=h(f),f===!1))return b;var M=f.charAt(0);return Number(M)!=M||!v[M]?b:f.length>1?{type:v[M],data:f.substring(1)}:{type:v[M]}}var x=new Uint8Array(f),M=x[0],k=I(f,1);return l&&y==="blob"&&(k=new l([k])),{type:v[M],data:k}};function h(f){try{f=d.decode(f,{strict:!1})}catch{return!1}return f}e.decodeBase64Packet=function(f,y){var w=v[f.charAt(0)];if(!g)return{type:w,data:{base64:!0,data:f.substr(1)}};var x=g.decode(f.substr(1));return y==="blob"&&l&&(x=new l([x])),{type:w,data:x}},e.encodePayload=function(f,y,w){typeof y=="function"&&(w=y,y=null);var x=r(f);if(y&&x)return l&&!m?e.encodePayloadAsBlob(f,w):e.encodePayloadAsArrayBuffer(f,w);if(!f.length)return w("0:");function M(T){return T.length+":"+T}function k(T,S){e.encodePacket(T,x?y:!1,!1,function(A){S(null,M(A))})}p(f,k,function(T,S){return w(S.join(""))})};function p(f,y,w){for(var x=new Array(f.length),M=L(f.length,w),k=function(S,A,E){y(A,function(N,C){x[S]=C,E(N,x)})},T=0;T<f.length;T++)k(T,f[T],M)}e.decodePayload=function(f,y,w){if(typeof f!="string")return e.decodePayloadAsBinary(f,y,w);typeof y=="function"&&(w=y,y=null);var x;if(f==="")return w(b,0,1);for(var M="",k,T,S=0,A=f.length;S<A;S++){var E=f.charAt(S);if(E!==":"){M+=E;continue}if(M===""||M!=(k=Number(M))||(T=f.substr(S+1,k),M!=T.length))return w(b,0,1);if(T.length){if(x=e.decodePacket(T,y,!1),b.type===x.type&&b.data===x.data)return w(b,0,1);var N=w(x,S+k,A);if(N===!1)return}S+=k,M=""}if(M!=="")return w(b,0,1)},e.encodePayloadAsArrayBuffer=function(f,y){if(!f.length)return y(new ArrayBuffer(0));function w(x,M){e.encodePacket(x,!0,!0,function(k){return M(null,k)})}p(f,w,function(x,M){var k=M.reduce(function(A,E){var N;return typeof E=="string"?N=E.length:N=E.byteLength,A+N.toString().length+N+2},0),T=new Uint8Array(k),S=0;return M.forEach(function(A){var E=typeof A=="string",N=A;if(E){for(var P=new Uint8Array(A.length),C=0;C<A.length;C++)P[C]=A.charCodeAt(C);N=P.buffer}E?T[S++]=0:T[S++]=1;for(var z=N.byteLength.toString(),C=0;C<z.length;C++)T[S++]=parseInt(z[C]);T[S++]=255;for(var P=new Uint8Array(N),C=0;C<P.length;C++)T[S++]=P[C]}),y(T.buffer)})},e.encodePayloadAsBlob=function(f,y){function w(x,M){e.encodePacket(x,!0,!0,function(k){var T=new Uint8Array(1);if(T[0]=1,typeof k=="string"){for(var S=new Uint8Array(k.length),A=0;A<k.length;A++)S[A]=k.charCodeAt(A);k=S.buffer,T[0]=0}for(var E=k instanceof ArrayBuffer?k.byteLength:k.size,N=E.toString(),C=new Uint8Array(N.length+1),A=0;A<N.length;A++)C[A]=parseInt(N[A]);if(C[N.length]=255,l){var z=new l([T.buffer,C.buffer,k]);M(null,z)}})}p(f,w,function(x,M){return y(new l(M))})},e.decodePayloadAsBinary=function(f,y,w){typeof y=="function"&&(w=y,y=null);for(var x=f,M=[];x.byteLength>0;){for(var k=new Uint8Array(x),T=k[0]===0,S="",A=1;k[A]!==255;A++){if(S.length>310)return w(b,0,1);S+=k[A]}x=I(x,2+S.length),S=parseInt(S);var E=I(x,0,S);if(T)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var N=new Uint8Array(E);E="";for(var A=0;A<N.length;A++)E+=String.fromCharCode(N[A])}M.push(E),x=I(x,S)}var C=M.length;M.forEach(function(z,P){w(e.decodePacket(z,y,!0),P,C)})}})(Mm);var pE,BZ;function fE(){if(BZ)return pE;BZ=1;var e=Mm,a=$1;pE=r;function r(I){this.path=I.path,this.hostname=I.hostname,this.port=I.port,this.secure=I.secure,this.query=I.query,this.timestampParam=I.timestampParam,this.timestampRequests=I.timestampRequests,this.readyState="",this.agent=I.agent||!1,this.socket=I.socket,this.enablesXDR=I.enablesXDR,this.withCredentials=I.withCredentials,this.pfx=I.pfx,this.key=I.key,this.passphrase=I.passphrase,this.cert=I.cert,this.ca=I.ca,this.ciphers=I.ciphers,this.rejectUnauthorized=I.rejectUnauthorized,this.forceNode=I.forceNode,this.isReactNative=I.isReactNative,this.extraHeaders=I.extraHeaders,this.localAddress=I.localAddress}return a(r.prototype),r.prototype.onError=function(I,L){var d=new Error(I);return d.type="TransportError",d.description=L,this.emit("error",d),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(I){if(this.readyState==="open")this.write(I);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(I){var L=e.decodePacket(I,this.socket.binaryType);this.onPacket(L)},r.prototype.onPacket=function(I){this.emit("packet",I)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},pE}var U1={};U1.encode=function(e){var a="";for(var r in e)e.hasOwnProperty(r)&&(a.length&&(a+="&"),a+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return a},U1.decode=function(e){for(var a={},r=e.split("&"),I=0,L=r.length;I<L;I++){var d=r[I].split("=");a[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return a};var C5=function(e,a){var r=function(){};r.prototype=a.prototype,e.prototype=new r,e.prototype.constructor=e},OZ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),T5=64,zZ={},LZ=0,Jf=0,FZ;function mE(e){var a="";do a=OZ[e%T5]+a,e=Math.floor(e/T5);while(e>0);return a}function vln(e){var a=0;for(Jf=0;Jf<e.length;Jf++)a=a*T5+zZ[e.charAt(Jf)];return a}function gE(){var e=mE(+new Date);return e!==FZ?(LZ=0,FZ=e):e+"."+mE(LZ++)}for(;Jf<T5;Jf++)zZ[OZ[Jf]]=Jf;gE.encode=mE,gE.decode=vln;var DZ=gE,yE={exports:{}},vE={exports:{}},xv=1e3,wv=xv*60,kv=wv*60,Cv=kv*24,_ln=Cv*365.25,bln=function(e,a){a=a||{};var r=typeof e;if(r==="string"&&e.length>0)return xln(e);if(r==="number"&&isNaN(e)===!1)return a.long?kln(e):wln(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xln(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var r=parseFloat(a[1]),I=(a[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return r*_ln;case"days":case"day":case"d":return r*Cv;case"hours":case"hour":case"hrs":case"hr":case"h":return r*kv;case"minutes":case"minute":case"mins":case"min":case"m":return r*wv;case"seconds":case"second":case"secs":case"sec":case"s":return r*xv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wln(e){return e>=Cv?Math.round(e/Cv)+"d":e>=kv?Math.round(e/kv)+"h":e>=wv?Math.round(e/wv)+"m":e>=xv?Math.round(e/xv)+"s":e+"ms"}function kln(e){return S5(e,Cv,"day")||S5(e,kv,"hour")||S5(e,wv,"minute")||S5(e,xv,"second")||e+" ms"}function S5(e,a,r){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+r:Math.ceil(e/a)+" "+r+"s"}(function(e,a){a=e.exports=I.debug=I.default=I,a.coerce=_,a.disable=g,a.enable=d,a.enabled=n,a.humanize=bln,a.instances=[],a.names=[],a.skips=[],a.formatters={};function r(m){var i=0,v;for(v in m)i=(i<<5)-i+m.charCodeAt(v),i|=0;return a.colors[Math.abs(i)%a.colors.length]}function I(m){var i;function v(){if(v.enabled){var b=v,l=+new Date,s=l-(i||l);b.diff=s,b.prev=i,b.curr=l,i=l;for(var o=new Array(arguments.length),c=0;c<o.length;c++)o[c]=arguments[c];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;u++;var y=a.formatters[f];if(typeof y=="function"){var w=o[u];p=y.call(b,w),o.splice(u,1),u--}return p}),a.formatArgs.call(b,o);var h=v.log||a.log||console.log.bind(console);h.apply(b,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=r(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function d(m){a.save(m),a.names=[],a.skips=[];var i,v=(typeof m=="string"?m:"").split(/[\s,]+/),b=v.length;for(i=0;i<b;i++)v[i]&&(m=v[i].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(i=0;i<a.instances.length;i++){var l=a.instances[i];l.enabled=a.enabled(l.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var i,v;for(i=0,v=a.skips.length;i<v;i++)if(a.skips[i].test(m))return!1;for(i=0,v=a.names.length;i<v;i++)if(a.names[i].test(m))return!0;return!1}function _(m){return m instanceof Error?m.stack||m.message:m}})(vE,vE.exports);var Cln=vE.exports;(function(e,a){a=e.exports=Cln,a.log=L,a.formatArgs=I,a.save=d,a.load=g,a.useColors=r,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(_){try{return JSON.stringify(_)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function I(_){var m=this.useColors;if(_[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+_[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var i="color: "+this.color;_.splice(1,0,i,"color: inherit");var v=0,b=0;_[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(v++,l==="%c"&&(b=v))}),_.splice(b,0,i)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(_){try{_==null?a.storage.removeItem("debug"):a.storage.debug=_}catch{}}function g(){var _;try{_=a.storage.debug}catch{}return!_&&typeof process<"u"&&"env"in process&&(_=process.env.DEBUG),_}a.enable(g());function n(){try{return window.localStorage}catch{}}})(yE,yE.exports);var E5=yE.exports,VZ=fE(),Tln=U1,RZ=Mm,Sln=C5,Eln=DZ,vh=E5("engine.io-client:polling"),$Z=pp,Aln=function(){var e=cE,a=new e({xdomain:!1});return a.responseType!=null}();function pp(e){var a=e&&e.forceBase64;(!Aln||a)&&(this.supportsBinary=!1),VZ.call(this,e)}Sln(pp,VZ),pp.prototype.name="polling",pp.prototype.doOpen=function(){this.poll()},pp.prototype.pause=function(e){var a=this;this.readyState="pausing";function r(){vh("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var I=0;this.polling&&(vh("we are currently polling - waiting to pause"),I++,this.once("pollComplete",function(){vh("pre-pause polling complete"),--I||r()})),this.writable||(vh("we are currently writing - waiting to pause"),I++,this.once("drain",function(){vh("pre-pause writing complete"),--I||r()}))}else r()},pp.prototype.poll=function(){vh("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},pp.prototype.onData=function(e){var a=this;vh("polling got data %s",e);var r=function(I,L,d){if(a.readyState==="opening"&&I.type==="open"&&a.onOpen(),I.type==="close")return a.onClose(),!1;a.onPacket(I)};RZ.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():vh('ignoring poll - transport state "%s"',this.readyState))},pp.prototype.doClose=function(){var e=this;function a(){vh("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(vh("transport open - closing"),a()):(vh("transport not open - deferring close"),this.once("open",a))},pp.prototype.write=function(e){var a=this;this.writable=!1;var r=function(){a.writable=!0,a.emit("drain")};RZ.encodePayload(e,this.supportsBinary,function(I){a.doWrite(I,r)})},pp.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=Eln()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Tln.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var I=this.hostname.indexOf(":")!==-1;return a+"://"+(I?"["+this.hostname+"]":this.hostname)+r+this.path+e};var Mln=cE,jZ=$Z,Iln=$1,Pln=C5,_E=E5("engine.io-client:polling-xhr"),Nln=lE;dE.exports=H1,dE.exports.Request=Nc;function UZ(){}function H1(e){if(jZ.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",r=location.port;r||(r=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==a}}Pln(H1,jZ),H1.prototype.supportsBinary=!0,H1.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Nc(e)},H1.prototype.doWrite=function(e,a){var r=typeof e!="string"&&e!==void 0,I=this.request({method:"POST",data:e,isBinary:r}),L=this;I.on("success",a),I.on("error",function(d){L.onError("xhr post error",d)}),this.sendXhr=I},H1.prototype.doPoll=function(){_E("xhr poll");var e=this.request(),a=this;e.on("data",function(r){a.onData(r)}),e.on("error",function(r){a.onError("xhr poll error",r)}),this.pollXhr=e};function Nc(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(Iln(Nc.prototype),Nc.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new Mln(e),r=this;try{_E("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var I in this.extraHeaders)this.extraHeaders.hasOwnProperty(I)&&a.setRequestHeader(I,this.extraHeaders[I])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){r.onLoad()},a.onerror=function(){r.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var L=a.getResponseHeader("Content-Type");(r.supportsBinary&&L==="application/octet-stream"||L==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof a.status=="number"?a.status:0)},0))},_E("xhr data %s",this.data),a.send(this.data)}catch(L){setTimeout(function(){r.onError(L)},0);return}typeof document<"u"&&(this.index=Nc.requestsCount++,Nc.requests[this.index]=this)},Nc.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Nc.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Nc.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Nc.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=UZ:this.xhr.onreadystatechange=UZ,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Nc.requests[this.index],this.xhr=null}},Nc.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)},Nc.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Nc.prototype.abort=function(){this.cleanup()},Nc.requestsCount=0,Nc.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",HZ);else if(typeof addEventListener=="function"){var Bln="onpagehide"in Nln?"pagehide":"unload";addEventListener(Bln,HZ,!1)}}function HZ(){for(var e in Nc.requests)Nc.requests.hasOwnProperty(e)&&Nc.requests[e].abort()}var Oln=dE.exports,bE=$Z,zln=C5,GZ=lE,Lln=G1,Fln=/\n/g,Dln=/\\n/g,A5;function Vln(){}function G1(e){bE.call(this,e),this.query=this.query||{},A5||(A5=GZ.___eio=GZ.___eio||[]),this.index=A5.length;var a=this;A5.push(function(r){a.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=Vln)},!1)}zln(G1,bE),G1.prototype.supportsBinary=!1,G1.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),bE.prototype.doClose.call(this)},G1.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(L){e.onError("jsonp poll error",L)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(a,r):(document.head||document.body).appendChild(a),this.script=a;var I=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);I&&setTimeout(function(){var L=document.createElement("iframe");document.body.appendChild(L),document.body.removeChild(L)},100)},G1.prototype.doWrite=function(e,a){var r=this;if(!this.form){var I=document.createElement("form"),L=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index,g;I.className="socketio",I.style.position="absolute",I.style.top="-1000px",I.style.left="-1000px",I.target=d,I.method="POST",I.setAttribute("accept-charset","utf-8"),L.name="d",I.appendChild(L),document.body.appendChild(I),this.form=I,this.area=L}this.form.action=this.uri();function n(){_(),a()}function _(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(i){r.onError("jsonp polling iframe removal error",i)}try{var m='<iframe src="javascript:0" name="'+r.iframeId+'">';g=document.createElement(m)}catch{g=document.createElement("iframe"),g.name=r.iframeId,g.src="javascript:0"}g.id=r.iframeId,r.form.appendChild(g),r.iframe=g}_(),e=e.replace(Dln,`\\
7044
7044
  `),this.area.value=e.replace(Fln,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&n()}:this.iframe.onload=n};const Rln=U2t(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xE=fE(),$ln=Mm,jln=U1,Uln=C5,Hln=DZ,Gln=E5("engine.io-client:websocket"),M5,wE;if(typeof WebSocket<"u"?M5=WebSocket:typeof self<"u"&&(M5=self.WebSocket||self.MozWebSocket),typeof window>"u")try{wE=Rln}catch{}var W1=M5||wE,Wln=Lu;function Lu(e){var a=e&&e.forceBase64;a&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=M5&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(W1=wE),xE.call(this,e)}Uln(Lu,xE),Lu.prototype.name="websocket",Lu.prototype.supportsBinary=!0,Lu.prototype.doOpen=function(){if(this.check()){var e=this.uri(),a=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?a?new W1(e,a):new W1(e):new W1(e,a,r)}catch(I){return this.emit("error",I)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},Lu.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(a){e.onData(a.data)},this.ws.onerror=function(a){e.onError("websocket error",a)}},Lu.prototype.write=function(e){var a=this;this.writable=!1;for(var r=e.length,I=0,L=r;I<L;I++)(function(g){$ln.encodePacket(g,a.supportsBinary,function(n){if(!a.usingBrowserWebSocket){var _={};if(g.options&&(_.compress=g.options.compress),a.perMessageDeflate){var m=typeof n=="string"?Buffer.byteLength(n):n.length;m<a.perMessageDeflate.threshold&&(_.compress=!1)}}try{a.usingBrowserWebSocket?a.ws.send(n):a.ws.send(n,_)}catch{Gln("websocket closed before onclose event")}--r||d()})})(e[I]);function d(){a.emit("flush"),setTimeout(function(){a.writable=!0,a.emit("drain")},0)}},Lu.prototype.onClose=function(){xE.prototype.onClose.call(this)},Lu.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},Lu.prototype.uri=function(){var e=this.query||{},a=this.secure?"wss":"ws",r="";this.port&&(a==="wss"&&Number(this.port)!==443||a==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Hln()),this.supportsBinary||(e.b64=1),e=jln.encode(e),e.length&&(e="?"+e);var I=this.hostname.indexOf(":")!==-1;return a+"://"+(I?"["+this.hostname+"]":this.hostname)+r+this.path+e},Lu.prototype.check=function(){return!!W1&&!("__initialize"in W1&&this.name===Lu.prototype.name)};var qln=cE,Yln=Oln,Zln=Lln,Jln=Wln;_5.polling=Xln,_5.websocket=Jln;function Xln(e){var a,r=!1,I=!1,L=e.jsonp!==!1;if(typeof location<"u"){var d=location.protocol==="https:",g=location.port;g||(g=d?443:80),r=e.hostname!==location.hostname||g!==e.port,I=e.secure!==d}if(e.xdomain=r,e.xscheme=I,a=new qln(e),"open"in a&&!e.forceJSONP)return new Yln(e);if(!L)throw new Error("JSONP disabled");return new Zln(e)}var Kln=[].indexOf,WZ=function(e,a){if(Kln)return e.indexOf(a);for(var r=0;r<e.length;++r)if(e[r]===a)return r;return-1},Qln=_5,ecn=$1,Ac=E5("engine.io-client:socket"),tcn=WZ,qZ=Mm,YZ=xZ,ncn=U1,acn=Ao;function Ao(e,a){if(!(this instanceof Ao))return new Ao(e,a);a=a||{},e&&typeof e=="object"&&(a=e,e=null),e?(e=YZ(e),a.hostname=e.host,a.secure=e.protocol==="https"||e.protocol==="wss",a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=YZ(a.host).host),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.agent=a.agent||!1,this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=a.query||{},typeof this.query=="string"&&(this.query=ncn.decode(this.query)),this.upgrade=a.upgrade!==!1,this.path=(a.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!a.forceJSONP,this.jsonp=a.jsonp!==!1,this.forceBase64=!!a.forceBase64,this.enablesXDR=!!a.enablesXDR,this.withCredentials=a.withCredentials!==!1,this.timestampParam=a.timestampParam||"t",this.timestampRequests=a.timestampRequests,this.transports=a.transports||["polling","websocket"],this.transportOptions=a.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=a.policyPort||843,this.rememberUpgrade=a.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=a.onlyBinaryUpgrades,this.perMessageDeflate=a.perMessageDeflate!==!1?a.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=a.pfx||void 0,this.key=a.key||void 0,this.passphrase=a.passphrase||void 0,this.cert=a.cert||void 0,this.ca=a.ca||void 0,this.ciphers=a.ciphers||void 0,this.rejectUnauthorized=a.rejectUnauthorized===void 0?!0:a.rejectUnauthorized,this.forceNode=!!a.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(a.extraHeaders&&Object.keys(a.extraHeaders).length>0&&(this.extraHeaders=a.extraHeaders),a.localAddress&&(this.localAddress=a.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Ao.priorWebsocketSuccess=!1,ecn(Ao.prototype),Ao.protocol=qZ.protocol,Ao.Socket=Ao,Ao.Transport=fE(),Ao.transports=_5,Ao.parser=Mm,Ao.prototype.createTransport=function(e){Ac('creating transport "%s"',e);var a=rcn(this.query);a.EIO=qZ.protocol,a.transport=e;var r=this.transportOptions[e]||{};this.id&&(a.sid=this.id);var I=new Qln[e]({query:a,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return I};function rcn(e){var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);return a}Ao.prototype.open=function(){var e;if(this.rememberUpgrade&&Ao.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var a=this;setTimeout(function(){a.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},Ao.prototype.setTransport=function(e){Ac("setting transport %s",e.name);var a=this;this.transport&&(Ac("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){a.onDrain()}).on("packet",function(r){a.onPacket(r)}).on("error",function(r){a.onError(r)}).on("close",function(){a.onClose("transport close")})},Ao.prototype.probe=function(e){Ac('probing transport "%s"',e);var a=this.createTransport(e,{probe:1}),r=!1,I=this;Ao.priorWebsocketSuccess=!1;function L(){if(I.onlyBinaryUpgrades){var v=!this.supportsBinary&&I.transport.supportsBinary;r=r||v}r||(Ac('probe transport "%s" opened',e),a.send([{type:"ping",data:"probe"}]),a.once("packet",function(b){if(!r)if(b.type==="pong"&&b.data==="probe"){if(Ac('probe transport "%s" pong',e),I.upgrading=!0,I.emit("upgrading",a),!a)return;Ao.priorWebsocketSuccess=a.name==="websocket",Ac('pausing current transport "%s"',I.transport.name),I.transport.pause(function(){r||I.readyState!=="closed"&&(Ac("changing transport and sending upgrade packet"),i(),I.setTransport(a),a.send([{type:"upgrade"}]),I.emit("upgrade",a),a=null,I.upgrading=!1,I.flush())})}else{Ac('probe transport "%s" failed',e);var l=new Error("probe error");l.transport=a.name,I.emit("upgradeError",l)}}))}function d(){r||(r=!0,i(),a.close(),a=null)}function g(v){var b=new Error("probe error: "+v);b.transport=a.name,d(),Ac('probe transport "%s" failed because of error: %s',e,v),I.emit("upgradeError",b)}function n(){g("transport closed")}function _(){g("socket closed")}function m(v){a&&v.name!==a.name&&(Ac('"%s" works - aborting "%s"',v.name,a.name),d())}function i(){a.removeListener("open",L),a.removeListener("error",g),a.removeListener("close",n),I.removeListener("close",_),I.removeListener("upgrading",m)}a.once("open",L),a.once("error",g),a.once("close",n),this.once("close",_),this.once("upgrading",m),a.open()},Ao.prototype.onOpen=function(){if(Ac("socket open"),this.readyState="open",Ao.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Ac("starting upgrade probes");for(var e=0,a=this.upgrades.length;e<a;e++)this.probe(this.upgrades[e])}},Ao.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Ac('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var a=new Error("server error");a.code=e.data,this.onError(a);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Ac('packet received with socket readyState "%s"',this.readyState)},Ao.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},Ao.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var a=this;a.pingTimeoutTimer=setTimeout(function(){a.readyState!=="closed"&&a.onClose("ping timeout")},e||a.pingInterval+a.pingTimeout)},Ao.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Ac("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},Ao.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},Ao.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},Ao.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Ac("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},Ao.prototype.write=Ao.prototype.send=function(e,a,r){return this.sendPacket("message",e,a,r),this},Ao.prototype.sendPacket=function(e,a,r,I){if(typeof a=="function"&&(I=a,a=void 0),typeof r=="function"&&(I=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var L={type:e,data:a,options:r};this.emit("packetCreate",L),this.writeBuffer.push(L),I&&this.once("flush",I),this.flush()}},Ao.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?I():a()}):this.upgrading?I():a()}function a(){e.onClose("forced close"),Ac("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),a()}function I(){e.once("upgrade",r),e.once("upgradeError",r)}return this},Ao.prototype.onError=function(e){Ac("socket error %j",e),Ao.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},Ao.prototype.onClose=function(e,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Ac('socket close with reason: "%s"',e);var r=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,a),r.writeBuffer=[],r.prevBufferLen=0}},Ao.prototype.filterUpgrades=function(e){for(var a=[],r=0,I=e.length;r<I;r++)~tcn(this.transports,e[r])&&a.push(e[r]);return a},oE.exports=acn,oE.exports.parser=Mm;var icn=oE.exports,ZZ={exports:{}},ocn=scn;function scn(e,a){var r=[];a=a||0;for(var I=a||0;I<e.length;I++)r[I-a]=e[I];return r}var JZ=lcn;function lcn(e,a,r){return e.on(a,r),{destroy:function(){e.removeListener(a,r)}}}var XZ=[].slice,KZ=function(e,a){if(typeof a=="string"&&(a=e[a]),typeof a!="function")throw new Error("bind() requires a function");var r=XZ.call(arguments,2);return function(){return a.apply(e,r.concat(XZ.call(arguments)))}};(function(e,a){var r=g5,I=$1,L=ocn,d=JZ,g=KZ,n=m5("socket.io-client:socket"),_=U1,m=AZ;e.exports=b;var i={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=I.prototype.emit;function b(l,s,o){this.io=l,this.nsp=s,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}I(b.prototype),b.prototype.subEvents=function(){if(!this.subs){var l=this.io;this.subs=[d(l,"open",g(this,"onopen")),d(l,"packet",g(this,"onpacket")),d(l,"close",g(this,"onclose"))]}},b.prototype.open=b.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},b.prototype.send=function(){var l=L(arguments);return l.unshift("message"),this.emit.apply(this,l),this},b.prototype.emit=function(l){if(i.hasOwnProperty(l))return v.apply(this,arguments),this;var s=L(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:m(s))?r.BINARY_EVENT:r.EVENT,data:s};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof s[s.length-1]=="function"&&(n("emitting packet with ack id %d",this.ids),this.acks[this.ids]=s.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},b.prototype.packet=function(l){l.nsp=this.nsp,this.io.packet(l)},b.prototype.onopen=function(){if(n("transport is open - connecting"),this.nsp!=="/")if(this.query){var l=typeof this.query=="object"?_.encode(this.query):this.query;n("sending connect packet with query %s",l),this.packet({type:r.CONNECT,query:l})}else this.packet({type:r.CONNECT})},b.prototype.onclose=function(l){n("close (%s)",l),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",l)},b.prototype.onpacket=function(l){var s=l.nsp===this.nsp,o=l.type===r.ERROR&&l.nsp==="/";if(!(!s&&!o))switch(l.type){case r.CONNECT:this.onconnect();break;case r.EVENT:this.onevent(l);break;case r.BINARY_EVENT:this.onevent(l);break;case r.ACK:this.onack(l);break;case r.BINARY_ACK:this.onack(l);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",l.data);break}},b.prototype.onevent=function(l){var s=l.data||[];n("emitting event %j",s),l.id!=null&&(n("attaching ack callback to event"),s.push(this.ack(l.id))),this.connected?v.apply(this,s):this.receiveBuffer.push(s)},b.prototype.ack=function(l){var s=this,o=!1;return function(){if(!o){o=!0;var c=L(arguments);n("sending ack %j",c),s.packet({type:m(c)?r.BINARY_ACK:r.ACK,id:l,data:c})}}},b.prototype.onack=function(l){var s=this.acks[l.id];typeof s=="function"?(n("calling ack %s with %j",l.id,l.data),s.apply(this,l.data),delete this.acks[l.id]):n("bad ack %s",l.id)},b.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},b.prototype.emitBuffered=function(){var l;for(l=0;l<this.receiveBuffer.length;l++)v.apply(this,this.receiveBuffer[l]);for(this.receiveBuffer=[],l=0;l<this.sendBuffer.length;l++)this.packet(this.sendBuffer[l]);this.sendBuffer=[]},b.prototype.ondisconnect=function(){n("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},b.prototype.destroy=function(){if(this.subs){for(var l=0;l<this.subs.length;l++)this.subs[l].destroy();this.subs=null}this.io.destroy(this)},b.prototype.close=b.prototype.disconnect=function(){return this.connected&&(n("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},b.prototype.compress=function(l){return this.flags.compress=l,this},b.prototype.binary=function(l){return this.flags.binary=l,this}})(ZZ);var QZ=ZZ.exports,ccn=q1;function q1(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}q1.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),r=Math.floor(a*this.jitter*e);e=Math.floor(a*10)&1?e+r:e-r}return Math.min(e,this.max)|0},q1.prototype.reset=function(){this.attempts=0},q1.prototype.setMin=function(e){this.ms=e},q1.prototype.setMax=function(e){this.max=e},q1.prototype.setJitter=function(e){this.jitter=e};var dcn=icn,ucn=QZ,hcn=$1,pcn=g5,Xf=JZ,Y1=KZ,fd=m5("socket.io-client:manager"),eJ=WZ,fcn=ccn,tJ=Object.prototype.hasOwnProperty,nJ=us;function us(e,a){if(!(this instanceof us))return new us(e,a);e&&typeof e=="object"&&(a=e,e=void 0),a=a||{},a.path=a.path||"/socket.io",this.nsps={},this.subs=[],this.opts=a,this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor(a.randomizationFactor||.5),this.backoff=new fcn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=a.parser||pcn;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=a.autoConnect!==!1,this.autoConnect&&this.open()}us.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)tJ.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},us.prototype.updateSocketIds=function(){for(var e in this.nsps)tJ.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},us.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},hcn(us.prototype),us.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},us.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},us.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},us.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},us.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},us.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},us.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},us.prototype.open=us.prototype.connect=function(e,a){if(fd("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;fd("opening %s",this.uri),this.engine=dcn(this.uri,this.opts);var r=this.engine,I=this;this.readyState="opening",this.skipReconnect=!1;var L=Xf(r,"open",function(){I.onopen(),e&&e()}),d=Xf(r,"error",function(_){if(fd("connect_error"),I.cleanup(),I.readyState="closed",I.emitAll("connect_error",_),e){var m=new Error("Connection error");m.data=_,e(m)}else I.maybeReconnectOnOpen()});if(this._timeout!==!1){var g=this._timeout;fd("connect attempt will timeout after %d",g),g===0&&L.destroy();var n=setTimeout(function(){fd("connect attempt timed out after %d",g),L.destroy(),r.close(),r.emit("error","timeout"),I.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(n)}})}return this.subs.push(L),this.subs.push(d),this},us.prototype.onopen=function(){fd("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Xf(e,"data",Y1(this,"ondata"))),this.subs.push(Xf(e,"ping",Y1(this,"onping"))),this.subs.push(Xf(e,"pong",Y1(this,"onpong"))),this.subs.push(Xf(e,"error",Y1(this,"onerror"))),this.subs.push(Xf(e,"close",Y1(this,"onclose"))),this.subs.push(Xf(this.decoder,"decoded",Y1(this,"ondecoded")))},us.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},us.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},us.prototype.ondata=function(e){this.decoder.add(e)},us.prototype.ondecoded=function(e){this.emit("packet",e)},us.prototype.onerror=function(e){fd("error",e),this.emitAll("error",e)},us.prototype.socket=function(e,a){var r=this.nsps[e];if(!r){r=new ucn(this,e,a),this.nsps[e]=r;var I=this;r.on("connecting",L),r.on("connect",function(){r.id=I.generateId(e)}),this.autoConnect&&L()}function L(){~eJ(I.connecting,r)||I.connecting.push(r)}return r},us.prototype.destroy=function(e){var a=eJ(this.connecting,e);~a&&this.connecting.splice(a,1),!this.connecting.length&&this.close()},us.prototype.packet=function(e){fd("writing packet %j",e);var a=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),a.encoding?a.packetBuffer.push(e):(a.encoding=!0,this.encoder.encode(e,function(r){for(var I=0;I<r.length;I++)a.engine.write(r[I],e.options);a.encoding=!1,a.processPacketQueue()}))},us.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},us.prototype.cleanup=function(){fd("cleanup");for(var e=this.subs.length,a=0;a<e;a++){var r=this.subs.shift();r.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},us.prototype.close=us.prototype.disconnect=function(){fd("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},us.prototype.onclose=function(e){fd("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},us.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)fd("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var a=this.backoff.duration();fd("will wait %dms before reconnect attempt",a),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(fd("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(I){I?(fd("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",I.data)):(fd("reconnect success"),e.onreconnect())}))},a);this.subs.push({destroy:function(){clearTimeout(r)}})}},us.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,a){var r=Fsn,I=g5,L=nJ,d=m5("socket.io-client");e.exports=a=n;var g=a.managers={};function n(_,m){typeof _=="object"&&(m=_,_=void 0),m=m||{};var i=r(_),v=i.source,b=i.id,l=i.path,s=g[b]&&l in g[b].nsps,o=m.forceNew||m["force new connection"]||m.multiplex===!1||s,c;return o?(d("ignoring socket cache for %s",v),c=L(v,m)):(g[b]||(d("new io instance for %s",v),g[b]=L(v,m)),c=g[b]),i.query&&!m.query&&(m.query=i.query),c.socket(i.path,m)}a.protocol=I.protocol,a.connect=n,a.Manager=nJ,a.Socket=QZ}(XS,XS.exports);var mcn=XS.exports;const I5=CC(mcn)("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function gcn(){return I5}I5.on("connect",()=>{Pu.emit("socket-connected")}),I5.on("disconnect",()=>{Pu.emit("socket-disconnected")}),I5.on("reconnect",()=>{Pu.emit("socket-reconnected")});const kE=gcn(),ycn=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],vcn={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:vZ(),indexesTSP:_sn(),indexesLS:ksn(),indexesTLP:Tsn(),nextGamesDataStructure:bsn,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return xsn.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return gZ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return gZ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,r)=>a+r[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,r)=>a+r[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&I.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&I.visitingTeam.resetTotals(),I.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),I.addTeamPlays(I.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),I.addTeamPlays(I.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((r,I)=>r.priority-I.priority)},statisticData(e,a){for(const r of Object.values(a.filledDataStructure))if(r.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&r.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return r.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,a&&kE.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(r=>{r.playedGames=e.currentSeasonGames.reduce((I,L)=>{if(L.game_status===1&&(L.home_team===r.team_id||L.visiting_team===r.team_id)){const d=L.score[0]-L.score[1],g=L.home_team===r.team_id;I.push({playingAs:g?1:2,matchResult:d===0?3:g?d>0?1:2:d<0?1:2})}return I},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&kE.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:r=!1}){if(r){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=PI(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=PI(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const r=Object.values(e.nextGamesDataStructure);r.forEach(I=>{for(const L of Object.values(I.subcategories))L.resetMentions()}),r.forEach(I=>{for(const L of a)for(const d of Object.values(I.subcategories))d.addSpecialMention(L[0],L[1],L[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const I=p5(a,e.indexesTLP,e.categoriesMap);for(const L of Object.values(e.nextGamesDataStructure))for(const d of Object.values(L.subcategories))d.addLivePlay(e.gameForAnalysis.home_team===I[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",I[e.indexesTSP.teamId],I,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const r=!!a[e.indexesTLP.length],I=e.livePlays.get(a[e.indexesTLP.playId]);if(Aae(I,a))return;let L="";const d=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";I&&(L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=p5(I,e.indexesTLP,e.categoriesMap),n=JS(I,g,e.indexesTLP),_=p5(a,e.indexesTLP,e.categoriesMap),m=JS(a,_,e.indexesTLP);for(const i of Object.values(e.nextGamesDataStructure))for(const v of Object.values(i.subcategories))I&&(v.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r),n&&v.subtractLivePlay(L,n[e.indexesTSP.teamId],n,e.indexesTSP,r)),v.addLivePlay(d,_[e.indexesTSP.teamId],_,e.indexesTSP,e.isLive,r),m&&v.addLivePlay(d,m[e.indexesTSP.teamId],m,e.indexesTSP,e.isLive,r);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const r=!!a[e.indexesTLP.length],I=e.livePlays.get(a[e.indexesTLP.playId]);let L="";if(I){L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(I[e.indexesTLP.playId]);const d=p5(I,e.indexesTLP,e.categoriesMap),g=JS(a,d,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(n.subcategories))_.subtractLivePlay(L,d[e.indexesTSP.teamId],d,e.indexesTSP,r),g&&_.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.homeTeam.resetTotalsLive(),r.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:r}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(d=>{d.homeTeamFilterGames=d.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,d.visitingTeamFilterGames=d.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const I=[],L=new Map;for(const d of Object.values(e.nextGamesDataStructure))for(const g of Object.values(d.subcategories))I.push(g);a.rankingData.forEach(d=>{for(const g of I)if(g.isInGeneralCategory(d[e.indexesLS.categoryId])){L.has(g.id)?L.get(g.id).push(d):L.set(g.id,[d]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=bZ(a)},setVisitingGames(e,a){e.visitingGames=bZ(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.accomplishedCategoryIds.forEach(I=>{const L=e.categoriesMap.get(I);L?L.push(r.generalCategoriesIds.accomplished):e.categoriesMap.set(I,[r.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const r of Object.values(a.subcategories))r.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:r}){r==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const g=await msn({gameId:a.gameId});if(g){var r=[],I=[],L={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},d={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(r=g.data.data.filter(n=>n[1]==a.homeTeam),I=g.data.data.filter(n=>n[1]==a.awayTeam),L=g.data.games,d=g.data.games),e("updateHomeTeamPlays",r),e("updateVisitingTeamPlays",I),e("setHomeGames",L),e("setVisitingGames",d)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},r){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let I=[];e("updateGameForAnalysis",r.gameInfo),I.push(a("setAndGetStatsPostMatch",{gameId:r.game,homeTeam:r.homeTeam,awayTeam:r.awayTeam})),await Promise.all(I)}catch(I){throw new Error(I)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:r},{gameId:I,isTeamsAnalysis:L,currentSeasonId:d,isLoginChanged:g=!1,defaultFilter:n=null,gameInfo:_=null,isCupGame:m=!1}){try{let i={},v=e.seasonId!==Number(d);const b=[];r("setIsSectionLoading",!0,{root:!0}),r("setUsePastSeasonId",!1),v&&r("setSeasonId",d),r("updateGameId",Number(I)),e.oldSeasonId!==e.seasonId&&r("resetNextGamesDataStructure");const l=await a("getCurrentSeasonGames",Number(I));if(r("leagueGeneral/updateCurrentSeasonGames",l,{root:!0}),i=l.find(s=>s.game_id===Number(I)),!i&&_&&(i=_),i&&r("updateGameForAnalysis",i),i.game_status!==1&&(m||await a("checkTeamsData",{gameId:I,isFromBet:!!n}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&b.push(a("getSeasonStatistics")),(g||e.categoriesMap.size===0)&&r("generateCategoriesMap")),e.usePastSeasonId){const s=await a("getCurrentSeasonGamesLast");r("leagueGeneral/updateCurrentSeasonGames",s,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(s=>i.home_team===s.team_id))&&b.push(a("getCurrentSeasonTeams")),r("setHomeResultGame",i.score[0]),r("setAwayResultGame",i.score[1]),L?i.game_status!==1?(await a("fillStatisticData",{gameId:I,gameinfo:i,promises:b,defaultFilter:n}),r("updateShowPostMatchData",!1)):(r("updateStats",[]),r("updateShowPostMatchData",!0),b.push(a("fillStatisticDataPostMatch",{game:I,homeTeam:i.home_team,awayTeam:i.visiting_team,gameInfo:i})),await Promise.all(b)):r("setIsSectionLoading",!1,{root:!0})}catch(i){return Promise.reject(i)}},async fillStatisticData({commit:e,dispatch:a,getters:r,rootGetters:I,state:L},{gameId:d,gameinfo:g,promises:n=[],defaultFilter:_=null}){let m=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),g.is_live&&n.push(a("getCurrentLiveGamePlays",d)),n.push(a("getSpecialMentionsByGame",d)),n.push(a("getHomeTeamPlays")),n.push(a("getVisitingTeamPlays")),n.push(a("getCurrentSeasonPlays")),_&&n.push(ysn(_)),m=await Promise.all(n)}catch(i){throw new Error(i)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]}),_){const[i]=m.pop();i&&(e("setBetSubcategories",i.categories),e("setBetDescription",i.sectionDescription),e("setDefaultFilter",i.params),e("updateFilterAux"),e("updateFilters",{filters:L.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:r,commit:I},{gameId:L,isFromBet:d}){try{const g=Number(L);if(r.general.tournaments&&r.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const n=r.general.tournaments.find(_=>{for(const m of _.seasons)if(m.id===e.seasonId)return!0;return!1});I("general/setTournamentSelected",n||{},{root:!0})}if(e.pastSeasonId){I("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const n=r.leagueGeneral.currentSeasonGames.find(_=>_.game_id===g);n&&I("updateGameForAnalysis",n),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),I("setUsePastSeasonId",d||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else I("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},a){try{const r=await usn({gameId:a});e("addSpecialMentions",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonGames({commit:e,state:a},r){try{const{teams:I,games:L,past_season_id:d,tournament_id:g}=await csn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:r}),n=ycn.find(_=>_.id===g);return n&&e("setCurrentTournamentName",n.name),e("setHome",I[0]),e("setAway",I[1]),a.usePastSeasonId||e("setPastSeasonId",d),await e("updateCurrentSeasonGames",L),L&&Array.isArray(L)&&e("updateFinishedGames",L.reduce((_,m)=>(m.game_status===1&&(_+=1),_),0)),L}catch(I){return Promise.reject(I)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:r,past_season_id:I}=await yZ({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",I),await e("updateCurrentSeasonGames",r),r&&Array.isArray(r)&&e("updateFinishedGames",r.reduce((L,d)=>(d.game_status===1&&(L+=1),L),0)),r}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const r=await fsn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",r.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const r=a.usePastSeasonId?a.pastSeasonId:a.seasonId,I=await ssn({seasonId:r});e("updateSeasonStatistics",I),e("updateOldSeasonId",r)}catch(r){return Promise.reject(r)}},updateRankingInSubcategories({state:e,commit:a,getters:r,rootGetters:I}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const r=await _Z({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});r.data&&(e("updateHomeTeamPlays",r.data.data),e("setHomeGames",r.data.games))}catch(r){return Promise.reject(r)}},async getVisitingTeamPlays({commit:e,state:a}){try{const r=await _Z({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});r.data&&(e("updateVisitingTeamPlays",r.data.data),e("setVisitingGames",r.data.games))}catch(r){return Promise.reject(r)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const r=await osn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",r)}catch(r){return Promise.reject(new Error(r))}},async getCurrentLiveGamePlays({state:e,commit:a},r){try{const I=await dsn({gameId:r});e.livePlays=new Map,I.forEach(L=>{e.gameForAnalysis.game_id===L[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===L[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===L[e.indexesTLP.teamId])&&a("addLiveGamePlay",L)})}catch(I){throw new Error(I)}},socket_new({state:e,commit:a},r){const I=r[1];(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&a("addLiveGamePlay",I)},socket_update({state:e,commit:a},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===I[e.indexesTLP.teamId])&&a("updateLiveGamePlay",I)},socket_delete({state:e,commit:a},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",I)},exitChannel({state:e,getters:a,rootState:r,rootGetters:I,commit:L}){const d=I["loginGeneral/getPremiumAccount"];a.isLive&&d&&(L("updateShowLiveData",!1),L("clearLiveTotals"),e.livePlays.clear(),kE.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.homeTeam.resetTotalsLive(),I.visitingTeam.resetTotalsLive(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function _cn(){try{const{data:e}=await md({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const bcn={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setTournamentType(e,a){e.tournamentType=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(r=>({...r.tournament,seasons:r.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const r=await _cn();a("setTournaments",r)}}catch(r){throw new Error(r)}}}}};async function xcn({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${r}`;return(await md({url:I})).data}catch(I){return Promise.reject(I)}}async function wcn({seasonId:e,localTeamId:a,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${r}`;return(await md({url:I})).data}catch(I){return Promise.reject(I)}}const aJ=(e,a)=>{let r={};return e.forEach((I,L)=>{L==3&&(a[0]==35||a[0]==54)&&(a[L]==2?a[L]=1:a[L]=2),L==2&&(a[0]==35||a[0]==54)&&(a[L]==1?a[L]=2:a[L]==2&&(a[L]=1)),r[I]=a[L]}),r},rJ=(e,a)=>e.filter(I=>{const L=a.playingAs.includes(I.playing_as),d=a.matchResult.includes(I.match_result),g=a.sections.includes(I.section);return L&&d&&g}),iJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,r,I){return typeof I>"u"||+I==0?Math[a](r):(r=+r,I=+I,isNaN(r)||!(typeof I=="number"&&I%1===0)?NaN:(r=r.toString().split("e"),r=Math[a](+(r[0]+"e"+(r[1]?+r[1]-I:-I))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+I:I))))}Math.ceil10||(Math.ceil10=function(a,r){return e("ceil",a,r)})})();function oJ(e,a){let r=a*-1;return Math.ceil10(e,r)}const kcn={...bcn,...gsn,...vcn,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,r)=>{const I=e.xGLocalPlays,L="homeTeamFilter",d=r.nextGeneral[L];return rJ(I,d)},playsAway:(e,a,r)=>{const I=e.xGVisitingPlays,L="visitingTeamFilter",d=r.nextGeneral[L];return rJ(I,d)},goalsQtyLocal:(e,a)=>{const r=iJ.find(I=>I.name==="Goles");return a.playsLocal.filter(I=>r.categories.includes(I.category_id)).length},goalsQtyAway:(e,a)=>{const r=iJ.find(I=>I.name==="Goles");return a.playsAway.filter(I=>r.categories.includes(I.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(r=>r.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(r=>r.category_id===510).length,xGLocal:(e,a)=>{const r=new Set;let I=a.playsLocal.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return oJ(I,2)},xGAway:(e,a)=>{const r=new Set;let I=a.playsAway.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return oJ(I,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(r=>aJ(a.data_headers,r)),e.xGVisitingPlays=a.visiting_team.map(r=>aJ(a.data_headers,r))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:r,visitingTeamId:I,postMatch:L=!1}){try{var d={};L?d=await wcn({seasonId:a,localTeamId:r,visitingTeamId:I}):d=await xcn({seasonId:a,localTeamId:r,visitingTeamId:I}),e("setPlays",d)}catch(g){return Promise.reject(g)}}}}}};function Ccn(e){for(const[a,r]of Object.entries(kcn))e.hasModule(a)||e.registerModule(a,r)}const Tcn={class:"subcategory-group"},Scn={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",Tcn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(co),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Ecn=So(Scn,[["__scopeId","data-v-ae6f3d72"]]),Acn={class:"filter-subcategories"},Mcn=Object.freeze(Object.defineProperty({__proto__:null,default:So({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",Acn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Ecn,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),P5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Icn={class:"details__header"},Pcn=P5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Ncn={class:"details__header__checkbox"},Bcn={class:"details__body"},Ocn={class:"details__body__playing-as"},zcn=["onClick"],Lcn={class:"details__header"},Fcn=P5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Dcn={class:"details__header__checkbox"},Vcn={class:"details__body"},Rcn=P5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),$cn={class:"details__body__game-section"},jcn=["onClick"],Ucn={class:"details__body"},Hcn=P5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Gcn={class:"details__body__game-section"},Wcn=["onClick"],qcn=Object.freeze(Object.defineProperty({__proto__:null,default:So({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(i=>i.isSelected)),I=t.computed(()=>a.gameSections.every(i=>i.isSelected)),L=t.computed(()=>a.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(i){i?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,b)=>{v.isSelected=b===0})}function n(i){a.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function _(i){a.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,b)=>{v.isSelected=b===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",Icn,[Pcn,t.createElementVNode("div",Ncn,[t.createVNode(t.unref(co),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",Bcn,[t.createElementVNode("div",Ocn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>n(b)},t.toDisplayString(b.name),11,zcn))),128))])]),t.createElementVNode("div",Lcn,[Fcn,t.createElementVNode("div",Dcn,[t.createVNode(t.unref(co),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Vcn,[Rcn,t.createElementVNode("div",$cn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,jcn))),128))])]),t.createElementVNode("div",Ucn,[Hcn,t.createElementVNode("div",Gcn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,Wcn))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Ycn={class:"filter-field"},Zcn=Object.freeze(Object.defineProperty({__proto__:null,default:So({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",Ycn,[t.createVNode(t.unref(QU),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Jcn={class:"subcategory-group"},Xcn={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",Jcn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(uo),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Kcn=Eo(Xcn,[["__scopeId","data-v-ae6f3d72"]]),Qcn={class:"filter-subcategories"},edn=Object.freeze(Object.defineProperty({__proto__:null,default:Eo({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,r)=>(t.openBlock(),t.createElementBlock("div",Qcn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Kcn,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),N5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),tdn={class:"details__header"},ndn=N5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),adn={class:"details__header__checkbox"},rdn={class:"details__body"},idn={class:"details__body__playing-as"},odn=["onClick"],sdn={class:"details__header"},ldn=N5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),cdn={class:"details__header__checkbox"},ddn={class:"details__body"},udn=N5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),hdn={class:"details__body__game-section"},pdn=["onClick"],fdn={class:"details__body"},mdn=N5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),gdn={class:"details__body__game-section"},ydn=["onClick"],vdn=Object.freeze(Object.defineProperty({__proto__:null,default:Eo({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(i=>i.isSelected)),I=t.computed(()=>a.gameSections.every(i=>i.isSelected)),L=t.computed(()=>a.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(i){i?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,b)=>{v.isSelected=b===0})}function n(i){a.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function _(i){a.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,b)=>{v.isSelected=b===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",tdn,[ndn,t.createElementVNode("div",adn,[t.createVNode(t.unref(uo),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",rdn,[t.createElementVNode("div",idn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>n(b)},t.toDisplayString(b.name),11,odn))),128))])]),t.createElementVNode("div",sdn,[ldn,t.createElementVNode("div",cdn,[t.createVNode(t.unref(uo),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",ddn,[udn,t.createElementVNode("div",hdn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,pdn))),128))])]),t.createElementVNode("div",fdn,[mdn,t.createElementVNode("div",gdn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(b,l)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${l}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:s=>_(b)},t.toDisplayString(b.text),11,ydn))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),_dn={class:"filter-field"},bdn=Object.freeze(Object.defineProperty({__proto__:null,default:Eo({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",_dn,[t.createVNode(t.unref($W),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Nd.GSCGameData=isn,Nd.registerStoreModules=Ccn,Object.defineProperty(Nd,Symbol.toStringTag,{value:"Module"})});