@golstats/gsc-player-team-profile 1.0.97 → 1.0.98

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.
@@ -6969,4 +6969,4 @@ __p += '`),ws&&(ga+=`' +
6969
6969
  function print() { __p += __j.call(arguments, '') }
6970
6970
  `:`;
6971
6971
  `)+ga+`return __p
6972
- }`;var Lo=qd(function(){return ei(tn,_i+"return "+ga).apply(B,bn)});if(Lo.source=ga,Er(Lo))throw Lo;return Lo}function bp(He){return Da(He).toLowerCase()}function Bf(He){return Da(He).toUpperCase()}function e1(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return Rc(He);if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Ko(lt),tn=Xc(mr,zr),bn=Zc(mr,zr)+1;return yu(mr,tn,bn).join("")}function _d(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return He.slice(0,zc(He)+1);if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Zc(mr,Ko(lt))+1;return yu(mr,0,zr).join("")}function t1(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return He.replace(Ut,"");if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Xc(mr,Ko(lt));return yu(mr,zr).join("")}function r1(He,lt){var Bt=m,mr=g;if(cn(lt)){var zr="separator"in lt?lt.separator:zr;Bt="length"in lt?Fa(lt.length):Bt,mr="omission"in lt?iu(lt.omission):mr}He=Da(He);var tn=He.length;if(As(He)){var bn=Ko(He);tn=bn.length}if(Bt>=tn)return He;var On=Bt-Tl(mr);if(On<1)return mr;var zn=bn?yu(bn,0,On).join(""):He.slice(0,On);if(zr===B)return zn+mr;if(bn&&(On+=zn.length-On),ma(zr)){if(He.slice(On).search(zr)){var ia,pa=zn;for(zr.global||(zr=hl(zr.source,Da(qe.exec(zr))+"g")),zr.lastIndex=0;ia=zr.exec(pa);)var ga=ia.index;zn=zn.slice(0,ga===B?On:ga)}}else if(He.indexOf(iu(zr),On)!=On){var Wa=zn.lastIndexOf(zr);Wa>-1&&(zn=zn.slice(0,Wa))}return zn+mr}function n1(He){return He=Da(He),He&&Ze.test(He)?He.replace(Ie,ru):He}var a1=Kp(function(He,lt,Bt){return He+(Bt?" ":"")+lt.toUpperCase()}),Df=im("toUpperCase");function Ys(He,lt,Bt){return He=Da(He),lt=Bt?B:lt,lt===B?Wo(He)?el(He):Qa(He):He.match(lt)||[]}var qd=Yi(function(He,lt){try{return Ba(He,B,lt)}catch(Bt){return Er(Bt)?Bt:new ci(Bt)}}),i1=ou(function(He,lt){return ha(lt,function(Bt){Bt=Ka(Bt),ze(He,Bt,hi(He[Bt],He))}),He});function uc(He){var lt=He==null?0:He.length,Bt=Mi();return He=lt?Ya(He,function(mr){if(typeof mr[1]!="function")throw new Bo(M);return[Bt(mr[0]),mr[1]]}):[],Yi(function(mr){for(var zr=-1;++zr<lt;){var tn=He[zr];if(Ba(tn[0],this,mr))return Ba(tn[1],this,mr)}})}function py(He){return ot(Je(He,_))}function qf(He){return function(){return He}}function fu(He,lt){return He==null||He!==He?lt:He}var Iu=xu(),Fu=xu(!0);function El(He){return He}function hu(He){return ni(typeof He=="function"?He:Je(He,_))}function o1(He){return ui(Je(He,_))}function s1(He,lt){return fi(He,Je(lt,_))}var l1=Yi(function(He,lt){return function(Bt){return _n(Bt,He,lt)}}),c1=Yi(function(He,lt){return function(Bt){return _n(He,Bt,lt)}});function _p(He,lt,Bt){var mr=Kl(lt),zr=Zr(lt,mr);Bt==null&&!(cn(lt)&&(zr.length||!mr.length))&&(Bt=lt,lt=He,He=this,zr=Zr(lt,Kl(lt)));var tn=!(cn(Bt)&&"chain"in Bt)||!!Bt.chain,bn=jr(He);return ha(zr,function(On){var zn=lt[On];He[On]=zn,bn&&(He.prototype[On]=function(){var ia=this.__chain__;if(tn||ia){var pa=He(this.__wrapped__),ga=pa.__actions__=Hc(this.__actions__);return ga.push({func:zn,args:arguments,thisArg:He}),pa.__chain__=ia,pa}return zn.apply(He,vo([this.value()],arguments))})}),He}function jf(){return rn._===this&&(rn._=So),this}function dc(){}function u1(He){return He=Fa(He),Yi(function(lt){return Cl(lt,He)})}var Wf=gf(Ya),Kf=gf(ro),d1=gf(To);function gm(He){return h0(He)?Rs(Ka(He)):Bs(He)}function Gf(He){return function(lt){return He==null?B:pn(He,lt)}}var p1=Hu(),f1=Hu(!0);function wp(){return[]}function Xf(){return!1}function wd(){return{}}function h1(){return""}function Tp(){return!0}function fy(He,lt){if(He=Fa(He),He<1||He>N)return[];var Bt=z,mr=Ma(He,z);lt=Mi(lt),He-=z;for(var zr=Zl(mr,lt);++Bt<He;)lt(Bt);return zr}function m1(He){return We(He)?Ya(He,Ka):Ia(He)?[He]:Hc(Id(Da(He)))}function hy(He){var lt=++Zi;return Da(He)+lt}var my=Xu(function(He,lt){return He+lt},0),gy=ku("ceil"),yy=Xu(function(He,lt){return He/lt},1),vy=ku("floor");function xy(He){return He&&He.length?Vt(He,El,vn):B}function by(He,lt){return He&&He.length?Vt(He,Mi(lt,2),vn):B}function _y(He){return ns(He,El)}function pc(He,lt){return ns(He,Mi(lt,2))}function kp(He){return He&&He.length?Vt(He,El,Va):B}function g1(He,lt){return He&&He.length?Vt(He,Mi(lt,2),Va):B}var Td=Xu(function(He,lt){return He*lt},1),y1=ku("round"),aLe=Xu(function(He,lt){return He-lt},0);function iLe(He){return He&&He.length?ac(He,El):0}function oLe(He,lt){return He&&He.length?ac(He,Mi(lt,2)):0}return Kr.after=W0,Kr.ary=Ki,Kr.assign=ya,Kr.assignIn=Na,Kr.assignInWith=Si,Kr.assignWith=ai,Kr.at=Ai,Kr.before=Ah,Kr.bind=hi,Kr.bindAll=i1,Kr.bindKey=Oh,Kr.castArray=cy,Kr.chain=hm,Kr.chunk=wc,Kr.compact=Qp,Kr.concat=b0,Kr.cond=uc,Kr.conforms=py,Kr.constant=qf,Kr.countBy=$g,Kr.create=vi,Kr.curry=Nh,Kr.curryRight=Lh,Kr.debounce=Ph,Kr.defaults=Ua,Kr.defaultsDeep=Vi,Kr.defer=K0,Kr.delay=Pf,Kr.difference=Vg,Kr.differenceBy=Ig,Kr.differenceWith=Fg,Kr.drop=Ug,Kr.dropRight=Bg,Kr.dropRightWhile=Dg,Kr.dropWhile=qg,Kr.fill=jg,Kr.filter=ty,Kr.flatMap=ry,Kr.flatMapDeep=Lu,Kr.flatMapDepth=cd,Kr.flatten=bu,Kr.flattenDeep=_0,Kr.flattenDepth=wf,Kr.flip=lu,Kr.flow=Iu,Kr.flowRight=Fu,Kr.fromPairs=Wg,Kr.functions=$l,Kr.functionsIn=Vl,Kr.groupBy=Nf,Kr.initial=w0,Kr.intersection=T0,Kr.intersectionBy=Ds,Kr.intersectionWith=rp,Kr.invert=uu,Kr.invertBy=pp,Kr.invokeMap=ny,Kr.iteratee=hu,Kr.keyBy=ay,Kr.keys=Kl,Kr.keysIn=nc,Kr.map=Mh,Kr.mapKeys=zu,Kr.mapValues=fp,Kr.matches=o1,Kr.matchesProperty=s1,Kr.memoize=Uc,Kr.merge=hp,Kr.mergeWith=Yu,Kr.method=l1,Kr.methodOf=c1,Kr.mixin=_p,Kr.negate=$p,Kr.nthArg=u1,Kr.omit=zf,Kr.omitBy=fd,Kr.once=Qi,Kr.orderBy=iy,Kr.over=Wf,Kr.overArgs=ud,Kr.overEvery=Kf,Kr.overSome=d1,Kr.partial=lc,Kr.partialRight=Ud,Kr.partition=oy,Kr.pick=du,Kr.pickBy=wu,Kr.property=gm,Kr.propertyOf=Gf,Kr.pull=Mu,Kr.pullAll=No,Kr.pullAllBy=np,Kr.pullAllWith=ap,Kr.pullAt=qs,Kr.range=p1,Kr.rangeRight=f1,Kr.rearg=dp,Kr.reject=B0,Kr.remove=k0,Kr.rest=Rf,Kr.reverse=Tf,Kr.sampleSize=q0,Kr.set=gp,Kr.setWith=Vu,Kr.shuffle=j0,Kr.slice=Gg,Kr.sortBy=Lf,Kr.sortedUniq=Au,Kr.sortedUniqBy=Yl,Kr.split=cc,Kr.spread=Ru,Kr.tail=Cf,Kr.take=M0,Kr.takeRight=A0,Kr.takeRightWhile=Zg,Kr.takeWhile=O0,Kr.tap=Qg,Kr.throttle=Tc,Kr.thru=Yc,Kr.toArray=wo,Kr.toPairs=Bd,Kr.toPairsIn=Dd,Kr.toPath=m1,Kr.toPlainObject=fo,Kr.transform=hd,Kr.unary=G0,Kr.union=N0,Kr.unionBy=L0,Kr.unionWith=P0,Kr.uniq=Hg,Kr.uniqBy=Jg,Kr.uniqWith=R0,Kr.unset=md,Kr.unzip=Ef,Kr.unzipWith=_u,Kr.update=pu,Kr.updateWith=gd,Kr.values=hc,Kr.valuesIn=yd,Kr.without=z0,Kr.words=Ys,Kr.wrap=X0,Kr.xor=ip,Kr.xorBy=V0,Kr.xorWith=op,Kr.zip=sp,Kr.zipObject=lp,Kr.zipObjectDeep=Ou,Kr.zipWith=Yg,Kr.entries=Bd,Kr.entriesIn=Dd,Kr.extend=Na,Kr.extendWith=Si,_p(Kr,Kr),Kr.add=my,Kr.attempt=qd,Kr.camelCase=J0,Kr.capitalize=ef,Kr.ceil=gy,Kr.clamp=vd,Kr.clone=oo,Kr.cloneDeep=Z0,Kr.cloneDeepWith=A,Kr.cloneWith=Kc,Kr.conformsTo=F,Kr.deburr=tf,Kr.defaultTo=fu,Kr.divide=yy,Kr.endsWith=Y0,Kr.eq=Q,Kr.escape=If,Kr.escapeRegExp=Q0,Kr.every=ey,Kr.find=cp,Kr.findIndex=pm,Kr.findKey=Yo,Kr.findLast=Of,Kr.findLastIndex=Fd,Kr.findLastKey=js,Kr.floor=vy,Kr.forEach=$a,Kr.forEachRight=mm,Kr.forIn=zo,Kr.forInRight=Ql,Kr.forOwn=kc,Kr.forOwnRight=co,Kr.get=_l,Kr.gt=fe,Kr.gte=Oe,Kr.has=cu,Kr.hasIn=dd,Kr.head=fm,Kr.identity=El,Kr.includes=Pu,Kr.indexOf=Kg,Kr.inRange=H0,Kr.invoke=pd,Kr.isArguments=Ve,Kr.isArray=We,Kr.isArrayBuffer=nt,Kr.isArrayLike=mt,Kr.isArrayLikeObject=St,Kr.isBoolean=Mt,Kr.isBuffer=qt,Kr.isDate=Jt,Kr.isElement=Gt,Kr.isEmpty=dr,Kr.isEqual=gr,Kr.isEqualWith=Ar,Kr.isError=Er,Kr.isFinite=qr,Kr.isFunction=jr,Kr.isInteger=$r,Kr.isLength=an,Kr.isMap=kn,Kr.isMatch=Rn,Kr.isMatchWith=Un,Kr.isNaN=aa,Kr.isNative=Zn,Kr.isNil=Jn,Kr.isNull=ra,Kr.isNumber=Gn,Kr.isObject=cn,Kr.isObjectLike=En,Kr.isPlainObject=Ca,Kr.isRegExp=ma,Kr.isSafeInteger=si,Kr.isSet=ta,Kr.isString=Ga,Kr.isSymbol=Ia,Kr.isTypedArray=ii,Kr.isUndefined=mi,Kr.isWeakMap=li,Kr.isWeakSet=$i,Kr.join=od,Kr.kebabCase=Ff,Kr.last=rc,Kr.lastIndexOf=al,Kr.lowerCase=uy,Kr.lowerFirst=xd,Kr.lt=Ti,Kr.lte=so,Kr.max=xy,Kr.maxBy=by,Kr.mean=_y,Kr.meanBy=pc,Kr.min=kp,Kr.minBy=g1,Kr.stubArray=wp,Kr.stubFalse=Xf,Kr.stubObject=wd,Kr.stubString=h1,Kr.stubTrue=Tp,Kr.multiply=Td,Kr.nth=sd,Kr.noConflict=jf,Kr.noop=dc,Kr.now=Qc,Kr.pad=Fi,Kr.padEnd=ec,Kr.padStart=dy,Kr.parseInt=Gc,Kr.random=Vf,Kr.reduce=sy,Kr.reduceRight=ly,Kr.repeat=Uf,Kr.replace=$0,Kr.result=mp,Kr.round=y1,Kr.runInContext=Mn,Kr.sample=D0,Kr.size=up,Kr.snakeCase=yp,Kr.some=su,Kr.sortedIndex=S0,Kr.sortedIndexBy=C0,Kr.sortedIndexOf=kf,Kr.sortedLastIndex=Sf,Kr.sortedLastIndexBy=Xg,Kr.sortedLastIndexOf=E0,Kr.startCase=vp,Kr.startsWith=bd,Kr.subtract=aLe,Kr.sum=iLe,Kr.sumBy=oLe,Kr.template=xp,Kr.times=fy,Kr.toFinite=Di,Kr.toInteger=Fa,Kr.toLength=po,Kr.toLower=bp,Kr.toNumber=ki,Kr.toSafeInteger=lo,Kr.toString=Da,Kr.toUpper=Bf,Kr.trim=e1,Kr.trimEnd=_d,Kr.trimStart=t1,Kr.truncate=r1,Kr.unescape=n1,Kr.uniqueId=hy,Kr.upperCase=a1,Kr.upperFirst=Df,Kr.each=$a,Kr.eachRight=mm,Kr.first=fm,_p(Kr,function(){var He={};return Pr(Kr,function(lt,Bt){wi.call(Kr.prototype,Bt)||(He[Bt]=lt)}),He}(),{chain:!1}),Kr.VERSION=ie,ha(["bind","bindKey","curry","curryRight","partial","partialRight"],function(He){Kr[He].placeholder=Kr}),ha(["drop","take"],function(He,lt){ri.prototype[He]=function(Bt){Bt=Bt===B?1:Ei(Fa(Bt),0);var mr=this.__filtered__&&!lt?new ri(this):this.clone();return mr.__filtered__?mr.__takeCount__=Ma(Bt,mr.__takeCount__):mr.__views__.push({size:Ma(Bt,z),type:He+(mr.__dir__<0?"Right":"")}),mr},ri.prototype[He+"Right"]=function(Bt){return this.reverse()[He](Bt).reverse()}}),ha(["filter","map","takeWhile"],function(He,lt){var Bt=lt+1,mr=Bt==S||Bt==O;ri.prototype[He]=function(zr){var tn=this.clone();return tn.__iteratees__.push({iteratee:Mi(zr,3),type:Bt}),tn.__filtered__=tn.__filtered__||mr,tn}}),ha(["head","last"],function(He,lt){var Bt="take"+(lt?"Right":"");ri.prototype[He]=function(){return this[Bt](1).value()[0]}}),ha(["initial","tail"],function(He,lt){var Bt="drop"+(lt?"":"Right");ri.prototype[He]=function(){return this.__filtered__?new ri(this):this[Bt](1)}}),ri.prototype.compact=function(){return this.filter(El)},ri.prototype.find=function(He){return this.filter(He).head()},ri.prototype.findLast=function(He){return this.reverse().find(He)},ri.prototype.invokeMap=Yi(function(He,lt){return typeof He=="function"?new ri(this):this.map(function(Bt){return _n(Bt,He,lt)})}),ri.prototype.reject=function(He){return this.filter($p(Mi(He)))},ri.prototype.slice=function(He,lt){He=Fa(He);var Bt=this;return Bt.__filtered__&&(He>0||lt<0)?new ri(Bt):(He<0?Bt=Bt.takeRight(-He):He&&(Bt=Bt.drop(He)),lt!==B&&(lt=Fa(lt),Bt=lt<0?Bt.dropRight(-lt):Bt.take(lt-He)),Bt)},ri.prototype.takeRightWhile=function(He){return this.reverse().takeWhile(He).reverse()},ri.prototype.toArray=function(){return this.take(z)},Pr(ri.prototype,function(He,lt){var Bt=/^(?:filter|find|map|reject)|While$/.test(lt),mr=/^(?:head|last)$/.test(lt),zr=Kr[mr?"take"+(lt=="last"?"Right":""):lt],tn=mr||/^find/.test(lt);zr&&(Kr.prototype[lt]=function(){var bn=this.__wrapped__,On=mr?[1]:arguments,zn=bn instanceof ri,ia=On[0],pa=zn||We(bn),ga=function(Qo){var ws=zr.apply(Kr,vo([Qo],On));return mr&&Wa?ws[0]:ws};pa&&Bt&&typeof ia=="function"&&ia.length!=1&&(zn=pa=!1);var Wa=this.__chain__,_i=!!this.__actions__.length,Gi=tn&&!Wa,Lo=zn&&!_i;if(!tn&&pa){bn=Lo?bn:new ri(this);var Xi=He.apply(bn,On);return Xi.__actions__.push({func:Yc,args:[ga],thisArg:B}),new Pi(Xi,Wa)}return Gi&&Lo?He.apply(this,On):(Xi=this.thru(ga),Gi?mr?Xi.value()[0]:Xi.value():Xi)})}),ha(["pop","push","shift","sort","splice","unshift"],function(He){var lt=Gs[He],Bt=/^(?:push|sort|unshift)$/.test(He)?"tap":"thru",mr=/^(?:pop|shift)$/.test(He);Kr.prototype[He]=function(){var zr=arguments;if(mr&&!this.__chain__){var tn=this.value();return lt.apply(We(tn)?tn:[],zr)}return this[Bt](function(bn){return lt.apply(We(bn)?bn:[],zr)})}}),Pr(ri.prototype,function(He,lt){var Bt=Kr[lt];if(Bt){var mr=Bt.name+"";wi.call(xi,mr)||(xi[mr]=[]),xi[mr].push({name:lt,func:Bt})}}),xi[_h(B,a).name]=[{name:"wrapper",func:B}],ri.prototype.clone=io,ri.prototype.reverse=Nl,ri.prototype.value=Ll,Kr.prototype.at=Nu,Kr.prototype.chain=Mf,Kr.prototype.commit=I0,Kr.prototype.next=Af,Kr.prototype.plant=Wc,Kr.prototype.reverse=F0,Kr.prototype.toJSON=Kr.prototype.valueOf=Kr.prototype.value=U0,Kr.prototype.first=Kr.prototype.head,ho&&(Kr.prototype[ho]=ld),Kr},Uo=fl();Pn?((Pn.exports=Uo)._=Uo,Tn._=Uo):rn._=Uo}).call(vg)}(M2,M2.exports);var V_=M2.exports;const gze="",aMe=["x","y"],iMe=k.createElementVNode("path",{opacity:"0.8",d:"M19.0921 9.65161C19.0921 4.54754 14.838 0.406006 9.59065 0.406006C4.34332 0.406006 0.09375 4.54754 0.09375 9.65161C0.09375 14.7557 4.34785 18.8972 9.59065 18.8972C14.8334 18.8972 19.0875 14.7557 19.0875 9.65161H19.0921Z",fill:"white"},null,-1),oMe=["fill"],sMe=k.createElementVNode("path",{style:{"mix-blend-mode":"multiply"},opacity:"1",d:"M18.2312 20.0011C18.2312 21.4228 14.2719 22.5708 9.38741 22.5708C4.50291 22.5708 0.539062 21.4184 0.539062 20.0011C0.539062 18.5838 4.49837 17.4314 9.38288 17.4314C14.2674 17.4314 18.2267 18.5838 18.2267 20.0011H18.2312Z",fill:"url(#paint0_radial_249_64014)"},null,-1),lMe={fill:"white","font-size":"8",x:"9.5",y:"10","font-family":"Montserrat-Regular","dominant-baseline":"middle","text-anchor":"middle"},cMe=k.createElementVNode("defs",null,[k.createElementVNode("radialGradient",{id:"paint0_radial_249_64014",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(9.76498 20.0631) scale(8.68186 2.33162)"},[k.createElementVNode("stop",{"stop-color":"#808080"}),k.createElementVNode("stop",{offset:"1","stop-color":"#CCCBCB","stop-opacity":"0"})])],-1),A2={__name:"ChalkboardMarker",props:{x:Number,y:Number,color:String,jersey:Number,orientation:{type:String,default:"vertical"}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("svg",{width:"20",height:"23",viewBox:"0 0 20 23",fill:"none",x:`${E.x}%`,y:`${E.y}%`,class:k.normalizeClass(E.orientation)},[iMe,k.createElementVNode("path",{d:"M9.58983 17.4931C14.0383 17.4931 17.6445 13.9824 17.6445 9.6516C17.6445 5.32084 14.0383 1.81006 9.58983 1.81006C5.14136 1.81006 1.53516 5.32084 1.53516 9.6516C1.53516 13.9824 5.14136 17.4931 9.58983 17.4931Z",fill:E.color},null,8,oMe),sMe,k.createElementVNode("text",lMe,k.toDisplayString(E.jersey),1),cMe],10,aMe))}},uMe=["id"],dMe=[k.createElementVNode("rect",{opacity:"1",height:"411",width:"256",fill:"url(#fieldBackground)"},null,-1),k.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="256" height="411" viewBox="0 0 256 411" fill="none"><rect x="0.53125" y="0.5" width="254.03" height="410" stroke="#fff"></rect><rect x="15.5312" y="14.5" width="224" height="382" stroke="#fff"></rect><rect x="69.5312" y="14.5" width="116" height="53" stroke="#fff"></rect><rect x="96.5312" y="14.5" width="62" height="29" stroke="#fff"></rect><rect x="69.5312" y="343.5" width="116" height="53" stroke="#fff"></rect><rect x="96.5312" y="367.5" width="62" height="29" stroke="#fff"></rect><path d="M15.5312 205.5H240.031" stroke="#fff"></path><circle cx="128.031" cy="206" r="36.5" stroke="#fff"></circle></svg>',1)],Yk={__name:"ChalkboardGraphic",props:{orientation:{type:String,required:!0},id:{type:String,required:!0}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("g",{id:E.id,class:k.normalizeClass(E.orientation)},dMe,10,uMe))}},xze="",J1=E=>(k.pushScopeId("data-v-f6dd152f"),E=E(),k.popScopeId(),E),pMe=["viewBox"],fMe=["viewBox"],hMe=J1(()=>k.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[k.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),mMe=["id"],gMe=["fill"],yMe=J1(()=>k.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[k.createElementVNode("image",{"xlink:href":tMe,width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),vMe=["id","onMouseover","onClick"],xMe=["x1","y1","x2","y2","stroke"],bMe=["x1","y1","x2","y2","stroke","marker-end"],_Me={class:"is-pointer",transform:"translate(-11, -11)"},wMe=["id","onMouseover","onClick"],TMe=["x1","y1","x2","y2","stroke","marker-end"],kMe={class:"is-pointer",transform:"translate(-11, -11)"},SMe=["id","onMouseover","onClick"],CMe={class:"tooltip-data__title"},EMe={class:"tooltip-data__player"},MMe={class:"tooltip-data__content"},AMe={class:"tooltip-data__content"},OMe=["src"],NMe={key:0,class:"tooltip-data__content"},LMe=J1(()=>k.createElementVNode("span",{class:"bold"},"xGi:",-1)),PMe={key:1,class:"tooltip-data__content"},RMe=J1(()=>k.createElementVNode("span",{class:"bold"},"xGf:",-1)),zMe={class:"tooltip-data__button-play-container"},VMe={class:"tooltip-data__button-play"},IMe=["onClick"],FMe=[J1(()=>k.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[k.createElementVNode("path",{d:"M3.0492 8.92004C2.9831 8.88243 2.92785 8.82624 2.88941 8.75753C2.85097 8.68882 2.83079 8.61018 2.83106 8.53011V1.46888C2.83115 1.38908 2.85146 1.3108 2.88982 1.24236C2.92819 1.17392 2.98318 1.11788 3.04895 1.08019C3.11472 1.0425 3.18881 1.02458 3.26334 1.02832C3.33788 1.03206 3.41007 1.05733 3.47225 1.10145L8.4249 4.63248C8.48147 4.67271 8.52786 4.72726 8.55995 4.79129C8.59204 4.85533 8.60883 4.92685 8.60883 4.9995C8.60883 5.07214 8.59204 5.14367 8.55995 5.2077C8.52786 5.27173 8.48147 5.32629 8.4249 5.36651L3.47225 8.89838C3.41016 8.94259 3.33803 8.96796 3.26352 8.97177C3.18902 8.97559 3.11495 8.95771 3.0492 8.92004ZM3.24397 8.53095L8.19663 4.99991L3.24397 8.53095Z",fill:"#CBEE6B"})],-1))],UMe=J1(()=>k.createElementVNode("div",null,"Ver video",-1)),Y1=250/2,BMe=$o({__name:"XgChalkboard",props:{plays:{type:Array,require:!0},categories:{type:Array,required:!0},players:{type:Array,required:!0},games:{type:Array,required:!1},team:{type:Number,default:0},playValuesIndex:{type:Object,required:!0},analysisType:{type:String,required:!1},sectionType:{type:String,required:!1,default:"team"},orientation:{type:String,required:!1,default:"horizontal"},canPlayVideos:{type:Boolean,default:!0}},emits:["openmedia","change-xg","change-total-plays"],setup(E,{emit:j}){const B=E;let ie=null;const xe=Bc(),L=k.ref(null),M=k.ref(null);k.defineComponent({Tooltip:Jk,ChalkboardMarker:A2,ChalkboardGraphic:Yk});const e=k.ref(!1),w=k.ref("red"),b=k.ref({x:0,y:0,visible:!1}),r=k.ref({playerName:"",minute:0,rivalLogo:"",categoryName:"",category:"",xGi:0,xGf:0,isOwnGoal:!1}),_=k.ref(!1),v=k.computed(()=>G.value<565),l=k.computed(()=>B.orientation==="horizontal"?G.value>384?"0 0 411 256":"0 0 784 490":G.value>384?"0 0 256 411":"0 0 490 784"),i=k.computed(()=>G.value<384),t=k.computed(()=>B.sectionType==="team"?[0,1,2]:z.value.position_id===1?[]:[0,3,4]),n=k.computed(()=>B.plays.map(oe=>({playId:oe[B.playValuesIndex.playId],gameId:oe[B.playValuesIndex.gameId],teamId:oe[B.playValuesIndex.teamId],playerId:oe[B.playValuesIndex.playerId],momentOfPlay:oe[B.playValuesIndex.momentOfPlay],categoryId:oe[B.playValuesIndex.categoryId],categoryType:oe[B.playValuesIndex.categoryType],matchLapse:oe[B.playValuesIndex.matchLapse],section:oe[B.playValuesIndex.section],matchResult:oe[B.playValuesIndex.matchResult],playingAs:oe[B.playValuesIndex.playingAs],total:oe[B.playValuesIndex.total],x1:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate1Y]*100:oe[B.playValuesIndex.coordinate1X]*100,y1:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate1X]*100:oe[B.playValuesIndex.coordinate1Y]*100,x2:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate2Y]*100:oe[B.playValuesIndex.coordinate2X]*100,y2:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate2X]*100:oe[B.playValuesIndex.coordinate2Y]*100,x3:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate3Y]*100:oe[B.playValuesIndex.coordinate3X]*100,y3:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate3X]*100:oe[B.playValuesIndex.coordinate3Y]*100,xGi:oe[B.playValuesIndex.xGi],xGf:oe[B.playValuesIndex.xGf]}))),a=k.computed(()=>B.categories.map((oe,ne)=>({id:ne,name:oe.name,singleName:oe.singleName,negative:oe.negative||!1,color:oe.color,points:oe.points,numPoints:oe.points.length,categories:oe.categories,invert:oe.invert||[]}))),o=k.computed(()=>{const ne=a.value.filter(({numPoints:ee})=>ee===1).map(ee=>ee.categories).flat();return[...new Set(ne)]}),s=k.computed(()=>{const ne=a.value.filter(ee=>ee.numPoints===2).map(ee=>ee.categories).flat();return[...new Set(ne)]}),c=k.computed(()=>{const ne=a.value.filter(ee=>ee.numPoints===3).map(ee=>ee.categories).flat();return[...new Set(ne)]}),u=k.computed(()=>{let oe=o.value;return n.value.filter(ne=>g(oe,ne)).reduce((ne,ee)=>{let te=a.value.find(se=>g(se.categories,ee)),re=B.players.find(se=>se.player_id===ee.playerId),$=B.games.find(se=>se?se.gameId===ee.gameId:void 0);if(te&&re&&$){let se={category:te.id,categoryName:te.name,categorySingleName:te.singleName,color:te.color,playId:ee.playId,player:ee.playerId,playerName:re?re.player_name||re.name:"",playerImage:re?re.player_photo||re.photo:"",jersey:re&&(re.jersey||re.jersey_number)||"",matchlapse:ee.matchLapse,x1:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[0]}`]:ee[`x${te.points[0]}`],y1:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[0]}`]:ee[`y${te.points[0]}`],momentOfPlay:ee.momentOfPlay,rivalLogo:x($,ee)};B.analysisType==="offensive"&&t.value.includes(te.id)&&(se.xGi=ee.xGi,se.xGf=ee.xGf),ne.push(se)}return ne},[])}),f=k.computed(()=>{let oe=s.value;return n.value.filter(ne=>g(oe,ne)).reduce((ne,ee)=>{let te=a.value.find(se=>g(se.categories,ee)),re=B.players.find(se=>se.player_id===ee.playerId),$=B.games.find(se=>se?se.gameId===ee.gameId:void 0);if(te&&re&&$){let se={category:te.id,categoryName:te.name,categorySingleName:te.singleName,arrowColor:te.negative?w.value:te.color,arrowMarkerColor:te.negative?"url(#arrow-negative)":`url(#arrow-${te.id})`,markerColor:te.color,playId:ee.playId,player:ee.playerId,playerName:re?re.player_name||re.name:"",playerImage:re?re.player_photo||re.photo:"",jersey:re&&(re.jersey||re.jersey_number)||"",matchlapse:ee.matchLapse,x1:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[0]}`]:ee[`x${te.points[0]}`],y1:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[0]}`]:ee[`y${te.points[0]}`],x2:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[1]}`]:ee[`x${te.points[1]}`],y2:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[1]}`]:ee[`y${te.points[1]}`],momentOfPlay:ee.momentOfPlay,rivalLogo:x($,ee)};B.analysisType==="offensive"&&t.value.includes(te.id)&&(se.xGi=ee.xGi,se.xGf=ee.xGf),ne.push(se)}return ne},[])}),d=k.computed(()=>{let oe=c.value;return n.value.filter(ee=>g(oe,ee)).reduce((ee,te)=>{let re=a.value.find(ce=>g(ce.categories,te)),$=B.players.find(ce=>ce.player_id===te.playerId),se=B.games.find(ce=>ce?ce.gameId===te.gameId:void 0);if(re&&$&&se){let ce={category:re.id,categoryName:re.name,categorySingleName:re.singleName,arrowColor:re.negative?w.value:re.color,arrowMarkerColor:re.negative?"url(#arrow-negative)":`url(#arrow-${re.id})`,markerColor:re.color,playId:te.playId,player:te.playerId,playerName:$?$.player_name||$.name:"",playerImage:$?$.player_photo||$.photo:"",jersey:$&&($.jersey||$.jersey_number)||"",matchlapse:te.matchLapse,x1:re.invert.includes(te.categoryId)?100-te[`x${re.points[0]}`]:te[`x${re.points[0]}`],y1:re.invert.includes(te.categoryId)?100-te[`y${re.points[0]}`]:te[`y${re.points[0]}`],x2:re.invert.includes(te.categoryId)?100-te[`x${re.points[1]}`]:te[`x${re.points[1]}`],y2:re.invert.includes(te.categoryId)?100-te[`y${re.points[1]}`]:te[`y${re.points[1]}`],x3:re.invert.includes(te.categoryId)?100-te[`x${re.points[2]}`]:te[`x${re.points[2]}`],y3:re.invert.includes(te.categoryId)?100-te[`y${re.points[2]}`]:te[`y${re.points[2]}`],momentOfPlay:te.momentOfPlay,rivalLogo:x(se,te)};re.id===0&&B.analysisType==="offensive"&&te.teamId?ce.isOwnGoal=B.team!==te.teamId:re.id===0&&B.analysisType==="defensive"&&te.teamId?ce.isOwnGoal=B.team===te.teamId:ce.isOwnGoal=!1,B.analysisType==="offensive"&&t.value.includes(re.id)&&(ce.xGi=te.xGi,ce.xGf=te.xGf),ee.push(ce)}return ee},[])}),T=()=>{!M.value||M.value.contains(event.target)||(i.value&&(e.value||h()),e.value=!1)},h=()=>{b.value.visible=!1},m=(oe,ne,ee=null)=>{const te=n.value.find(ce=>ce.playId===oe.playId),re=ee!==null?B.categories[ee].name:oe.categoryName;let $={};const se=B.categories[oe.category].categories;if(ne===2&&!i.value){const ce=B.sectionType==="team"&&B.analysisType==="defensive"&&re.includes("recibidos");$={seasonId:J.value,categoryIds:se,categorySingleName:"",mainSectionType:1,playListType:B.sectionType==="team"?3:2,matchResult:U.value,playData:te||null,gameIds:q.value,isRivalSubject:ce,avoidCategorySingleName:ce,advancedFilter:{playListTitle:re,mainCategoryId:{},playingAs:I.value?[I.value]:[1,2],timeSections:K.value,fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}}}if(ne===1){const ce=B.sectionType==="team"&&re.includes("recibidos");$={seasonId:J.value,categoryIds:se,categorySingleName:"",mainSectionType:1,playListType:B.sectionType==="team"?3:2,gameIds:q.value,matchResult:U.value,playData:te||null,isRivalSubject:ce,avoidCategorySingleName:ce,advancedFilter:{playListTitle:re,mainCategoryId:{},playingAs:I.value?[I.value]:[1,2],timeSections:K.value,fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}}}ne===1?D.value?($.playerIds=[],$.teamId=D.value):($.playerIds=te?[te.playerId]:null,$.teamId=0):i.value||(D.value?($.playerIds=[],$.teamId=D.value):($.playerIds=te?[te.playerId]:null,$.teamId=0)),ne===1?j("openmedia",$):i.value||j("openmedia",$)},g=(oe,ne)=>oe.find(ee=>{let te=0;if(typeof ee=="string"){if(ne.teamId)return te=Number(ee.split("_").shift()),te===ne.categoryId&&ne.teamId!==B.team}else return ne.teamId?ee===ne.categoryId&&B.team===ne.teamId:ee===ne.categoryId;return!1}),x=(oe,ne)=>B.sectionType==="team"?oe.homeTeamId===B.team?oe.visitingTeamLogo:oe.homeTeamLogo:ne.playingAs===1?oe.visitingTeamLogo:oe.homeTeamLogo,y=()=>{if(window.ResizeObserver)ie=new ResizeObserver(()=>{_.value=L.value&&L.value.clientWidth>524}),ie.observe(L.value);else throw new Error("Resize observer not supported!")};function S(){v.value&&m(p.value.play,p.value.type)}const p=k.ref({play:null,type:null}),O=(oe,ne,ee)=>{e.value=!0,v.value?(p.value={play:ne,type:ee},r.value.category=ne.category,r.value.playerName=ne.playerName||"",r.value.playerImage=ne.playerImage||"",r.value.minute=parseInt(ne.momentOfPlay.split(":")[0])||"",r.value.rivalLogo=ne.rivalLogo||"",r.value.categoryName=ne.categoryName||"",r.value.xGi=String(ne.xGi),r.value.xGf=String(ne.xGf),r.value.isOwnGoal=ne.isOwnGoal,b.value.x=oe.layerX<Y1+5?5:oe.layerX+Y1>L.value.clientWidth?L.value.clientWidth-Y1*2-5:oe.layerX,b.value.y=oe.layerY+20,b.value.visible=!0):m(ne,ee)},C=(oe,ne,ee)=>{p.value={play:ne,type:ee},v.value||(r.value.category=ne.category,r.value.playerName=ne.playerName||"",r.value.playerImage=ne.playerImage||"",r.value.minute=parseInt(ne.momentOfPlay.split(":")[0])||"",r.value.rivalLogo=ne.rivalLogo||"",r.value.categoryName=ne.categoryName||"",r.value.xGi=String(ne.xGi),r.value.xGf=String(ne.xGf),r.value.isOwnGoal=ne.isOwnGoal,b.value.x=oe.layerX<Y1+5?5:oe.layerX+Y1>L.value.clientWidth?L.value.clientWidth-Y1*2-5:oe.layerX,b.value.y=oe.layerY+20,b.value.visible=!0)},N=()=>{i.value||(b.value.visible=!1)},V=()=>{i.value&&(b.value.visible=!1)},R=oe=>xe.commit("playersGeneral/updatePlayer",oe),z=k.computed(()=>xe.getters["playersGeneral/player"]),U=k.computed(()=>xe.getters["filterGeneral/getResults"]),K=k.computed(()=>xe.getters["filterGeneral/getSections"]),I=k.computed(()=>xe.getters["filterGeneral/getPlayingAs"]),q=k.computed(()=>xe.getters["filterGeneral/getSelectedGamesIds"]),J=k.computed(()=>xe.getters["filterGeneral/getSeasonId"]),D=k.computed(()=>xe.getters["teamsGeneral/teamId"]);k.computed(()=>xe.getters["playersGeneral/playerId"]);const G=k.computed(()=>xe.state.windowWidth),X=k.computed(()=>{const oe=V_.groupBy(u.value,"momentOfPlay"),ne=V_.groupBy(f.value,"momentOfPlay"),ee=V_.groupBy(d.value,"momentOfPlay");return{playsByMoment1:oe,playsByMoment2:ne,playsByMoment3:ee}});return k.watch(()=>X.value,oe=>{const ne={...oe.playsByMoment1,...oe.playsByMoment2,...oe.playsByMoment3};let ee=0;Object.entries(ne).forEach(ce=>{t.value.includes(ce[1][0].category)&&!ce.isOwnGoal&&(ee+=Number(ce[1][0].xGf))});let te=Object.keys(oe.playsByMoment1).length,re=Object.keys(oe.playsByMoment2).length,$=Object.keys(oe.playsByMoment3).length;const se=te+re+$;j("change-xg",ee),j("change-total-plays",se)},{immediate:!0}),k.onMounted(()=>{document.addEventListener("click",T),B.sectionType==="team"&&R({}),y()}),k.onBeforeUnmount(()=>{document.removeEventListener("click",T),ie&&(ie.disconnect(),ie=null)}),(oe,ne)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"soccerChalkboard",ref:L,class:k.normalizeClass(["chalkboard__container",E.orientation]),onMouseleave:V},[(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l.value,"xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},[(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:E.orientation==="horizontal"?"0 0 411 256":"0 0 256 411","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"svg-soccer-chalkboard"},[k.createElementVNode("defs",null,[hMe,(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.value,ee=>(k.openBlock(),k.createElementBlock("marker",{key:`arrow-color-${ee.id}`,id:`arrow-${ee.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[k.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:ee.color},null,8,gMe)],8,mMe))),128)),yMe]),k.createVNode(Yk,{id:"soccer-field",orientation:E.orientation},null,8,["orientation"]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(d.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2)},[k.createElementVNode("line",{x1:`${ee.x1}%`,y1:`${ee.y1}%`,x2:`${ee.x2}%`,y2:`${ee.y2}%`,stroke:ee.arrowColor,"stroke-width":"2"},null,8,xMe),k.createElementVNode("line",{x1:`${ee.x2}%`,y1:`${ee.y2}%`,x2:`${ee.x3}%`,y2:`${ee.y3}%`,stroke:ee.arrowColor,"stroke-width":"2","marker-end":ee.arrowMarkerColor},null,8,bMe),k.createElementVNode("g",_Me,[k.createVNode(A2,{jersey:ee.jersey,color:ee.markerColor,x:ee.x1,y:ee.y1,orientation:E.orientation},null,8,["jersey","color","x","y","orientation"])])],40,vMe))),128)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(f.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2)},[k.createElementVNode("line",{x1:`${ee.x1}%`,y1:`${ee.y1}%`,x2:`${ee.x2}%`,y2:`${ee.y2}%`,"stroke-width":"2",stroke:ee.arrowColor,"marker-end":ee.arrowMarkerColor},null,8,TMe),k.createElementVNode("g",kMe,[k.createVNode(A2,{jersey:ee.jersey,color:ee.markerColor,x:ee.x1,y:ee.y1},null,8,["jersey","color","x","y"])])],40,wMe))),128)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(u.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,class:"is-pointer",onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2),transform:"translate(-11, -11)"},[k.createVNode(A2,{x:ee.x1,y:ee.y1,jersey:ee.jersey,color:ee.color},null,8,["x","y","jersey","color"])],40,SMe))),128))],8,fMe))],8,pMe)),k.createVNode(Jk,{"play-data":b.value,"is-mobile-device":v.value},{default:k.withCtx(()=>[k.createElementVNode("div",{class:k.normalizeClass(["tooltip-data",E.orientation])},[k.createElementVNode("p",CMe,k.toDisplayString(r.value.isOwnGoal?"Autogol":r.value.categoryName),1),k.createElementVNode("div",EMe,[k.createElementVNode("span",null,k.toDisplayString(r.value.playerName),1),k.createElementVNode("div",{class:"tooltip-data__player-image",style:k.normalizeStyle(`background-image: url(${r.value.playerImage})`)},null,4)]),k.createElementVNode("div",MMe,[k.createElementVNode("span",null,"Minuto: "+k.toDisplayString(r.value.minute),1)]),k.createElementVNode("div",AMe,[k.createElementVNode("span",null,"Rival: "+k.toDisplayString(r.value.rivalName),1),k.createElementVNode("img",{src:r.value.rivalLogo,width:"25",style:{"vertical-align":"middle"}},null,8,OMe)]),/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(r.value.xGi)&&r.value.xGi<=1&&!r.value.isOwnGoal?(k.openBlock(),k.createElementBlock("div",NMe,[LMe,k.createTextVNode(" "+k.toDisplayString(k.unref(z_)(Number(r.value.xGi),4)),1)])):k.createCommentVNode("",!0),/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(r.value.xGf)&&r.value.xGf<=1&&!r.value.isOwnGoal?(k.openBlock(),k.createElementBlock("div",PMe,[RMe,k.createTextVNode(" "+k.toDisplayString(k.unref(z_)(Number(r.value.xGf),4)),1)])):k.createCommentVNode("",!0),k.withDirectives(k.createElementVNode("div",zMe,[k.createElementVNode("div",VMe,[k.createElementVNode("div",{role:"button",class:"tooltip-data__button-play__button",onClick:k.withModifiers(S,["stop","prevent"])},FMe,8,IMe),UMe])],512),[[k.vShow,v.value]])],2)]),_:1},8,["play-data","is-mobile-device"])],34))}},[["__scopeId","data-v-f6dd152f"]]),wze="",I_=E=>(k.pushScopeId("data-v-5a1c2b50"),E=E(),k.popScopeId(),E),DMe={class:"chalkboard-profile__field"},qMe={class:"chalkboard-profile__field__events"},jMe=I_(()=>k.createElementVNode("span",{class:"chalkboard-profile__field__events__separator"}," | ",-1)),WMe={class:"chalkboard-profile__categories"},KMe={class:"chalkboard-profile__categories__header"},GMe=I_(()=>k.createElementVNode("div",{class:"chalkboard-profile__categories__header__title"},"Categorías",-1)),XMe={class:"chalkboard-profile__categories__header__all"},ZMe={class:"chalkboard-profile__categories__list"},HMe={class:"chalkboard-profile__categories__list__category__checkbox"},JMe=["onClick"],YMe=[I_(()=>k.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5",height:"8",viewBox:"0 0 5 8",fill:"none"},[k.createElementVNode("path",{d:"M0.188781 7.9474C0.131578 7.90953 0.0837666 7.85295 0.0505 7.78375C0.0172333 7.71456 -0.000226673 7.63538 2.22194e-06 7.55474V0.444134C8.08686e-05 0.363779 0.0176551 0.284951 0.0508567 0.216032C0.0840582 0.147113 0.131646 0.090677 0.188562 0.0527243C0.245478 0.0147716 0.309594 -0.00327964 0.374094 0.000489552C0.438595 0.00425874 0.50107 0.0297075 0.554877 0.0741304L4.84083 3.62986C4.88978 3.67036 4.92993 3.7253 4.9577 3.78978C4.98547 3.85426 5 3.92628 5 3.99944C5 4.0726 4.98547 4.14462 4.9577 4.2091C4.92993 4.27358 4.88978 4.32852 4.84083 4.36902L0.554877 7.92559C0.501152 7.97011 0.438726 7.99565 0.374253 7.99949C0.30978 8.00333 0.245678 7.98533 0.188781 7.9474ZM0.357334 7.55558L4.64329 3.99986L0.357334 7.55558Z",fill:"#CBEE6B"})],-1))],Qk=$o({__name:"ChalkboardProfile",props:{plays:{type:Array,require:!0},categories:{type:Array,required:!0},players:{type:Array,required:!0},games:{type:Array,required:!1},team:{type:Number,default:0},playValuesIndex:{type:Object,required:!0},analysisType:{type:String,required:!1},sectionType:{type:String,required:!1,default:"team"},orientation:{type:String,required:!1,default:"horizontal"},isFull:{type:Boolean,default:!1},isTotalXgfVisible:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},emits:["openmedia"],setup(E,{emit:j}){const B=E;let ie=null;const xe=Bc(),L=k.ref(!0),M=k.ref([]),e=k.ref(null),w=k.ref(1200),b=k.ref(0),r=k.ref("vertical"),_=k.ref({}),v=k.ref(0),l=k.ref(0),i=k.computed(()=>M.value.reduce((g,x)=>(x.isSelected&&g.push(x),g),[])),t=k.computed(()=>xe.getters["filterGeneral/getResults"]),n=k.computed(()=>xe.getters["filterGeneral/getSections"]),a=k.computed(()=>xe.getters["filterGeneral/getPlayingAs"]),o=k.computed(()=>xe.getters["filterGeneral/getSelectedGamesIds"]),s=k.computed(()=>xe.getters["filterGeneral/getSeasonId"]);k.watch(w,m=>{_.value={},b.value+=1,B.isFull?(r.value="horizontal",_.value["--grid-template-columns"]="2fr 1fr",_.value["--list-width"]="268px",m<800&&(_.value["--grid-template-columns"]="1fr 1fr",r.value="vertical",_.value["--list-width"]="100%",m<500&&(r.value="horizontal",_.value["--grid-template-columns"]="1fr"))):(r.value="vertical",_.value["--list-width"]="100%",m>400?_.value["--grid-template-columns"]="1fr 1fr":(r.value="horizontal",_.value["--grid-template-columns"]="1fr"))},{immediate:!0}),k.watch(i,m=>{L.value=m.length===M.value.length},{immediate:!0}),k.watch(()=>B.categories,()=>{M.value=B.categories.map((m,g)=>({id:g,name:m.name,singleName:m.singleName,negative:m.negative||!1,color:m.color,points:m.points||[],numPoints:m.points.length,categories:m.categories,invert:m.invert||[],isSelected:!!m.isDefaultSelected}))},{immediate:!0});function c(m){M.value.forEach(g=>{g.isSelected=m})}function u(){ie=new ResizeObserver(m=>{for(const g of m)w.value=g.contentRect.width}),ie.observe(e.value)}function f(m){v.value=m}function d(m){l.value=m}k.onMounted(()=>{u()});function T(m){j("openmedia",m)}function h(m){let g={};g.playerIds=[],g.teamId=0;const x=B.players.length===1,y=B.sectionType==="team"&&B.analysisType==="defensive"&&m.name.includes("recibidos");g.seasonId=s.value,g.categoryIds=m.categories,g.categorySingleName="",g.isRivalSubject=y,g.mainSectionType=1,g.playListType=B.sectionType==="team"?3:2,g.matchResult=t.value,g.playData=null,g.gameIds=o.value,g.avoidCategorySingleName=y,g.advancedFilter={},g.advancedFilter.playingAs=a.value,g.advancedFilter.playListTitle=m.name,g.advancedFilter.timeSections=n.value,x?g.playerIds=[B.players[0].player_id]:g.teamId=B.team,j("openmedia",g)}return(m,g)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"chalkboardProfile",ref:e,class:"chalkboard-profile",style:k.normalizeStyle(_.value)},[k.createElementVNode("div",DMe,[(k.openBlock(),k.createBlock(BMe,{plays:E.plays,categories:i.value,players:E.players,games:E.games,team:E.team,"play-values-index":E.playValuesIndex,"analysis-type":E.analysisType,"section-type":E.sectionType,orientation:r.value,key:b.value,"can-play-videos":E.canPlayVideos,onOpenmedia:T,onChangeTotalPlays:f,onChangeXg:d},null,8,["plays","categories","players","games","team","play-values-index","analysis-type","section-type","orientation","can-play-videos"])),k.createElementVNode("div",qMe,[E.isTotalXgfVisible?(k.openBlock(),k.createElementBlock(k.Fragment,{key:0},[k.createTextVNode(" xG: "+k.toDisplayString(l.value.toFixed(2))+" ",1),jMe],64)):k.createCommentVNode("",!0),k.createTextVNode(" Eventos totales: "+k.toDisplayString(v.value),1)])]),k.createElementVNode("div",WMe,[k.createElementVNode("div",KMe,[GMe,k.createElementVNode("div",XMe,[k.createVNode(k.unref(R_),{"model-value":L.value,label:"Todos","box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])])]),k.createElementVNode("div",ZMe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(M.value,(x,y)=>(k.openBlock(),k.createElementBlock("div",{key:y,class:"chalkboard-profile__categories__list__category"},[k.createElementVNode("div",HMe,[k.createVNode(k.unref(R_),{modelValue:x.isSelected,"onUpdate:modelValue":S=>x.isSelected=S,label:x.name},null,8,["modelValue","onUpdate:modelValue","label"])]),k.withDirectives(k.createElementVNode("div",{class:"chalkboard-profile__categories__list__category__button-play",onClick:S=>h(x)},YMe,8,JMe),[[k.vShow,E.canPlayVideos]])]))),128))])])],4))}},[["__scopeId","data-v-5a1c2b50"]]),Sze="",O2=E=>(k.pushScopeId("data-v-7f071573"),E=E(),k.popScopeId(),E),QMe={class:"container"},$Me={class:"local-vs-away"},eAe={class:"local-vs-away__statistic__title"},tAe={class:"local-vs-away__statistic__donut"},rAe={class:"local-vs-away__statistic__buttons"},nAe=["onClick"],aAe={xmlns:"http://www.w3.org/2000/svg",width:"6",height:"9",viewBox:"0 0 6 9",fill:"none"},iAe=[O2(()=>k.createElementVNode("path",{d:"M0.800634 8.50206C0.742977 8.46225 0.694785 8.40278 0.661253 8.33005C0.627722 8.25732 0.610123 8.1741 0.610354 8.08934V0.615503C0.610433 0.531043 0.628147 0.448189 0.661613 0.375749C0.695078 0.303309 0.743045 0.243991 0.800414 0.204099C0.857782 0.164208 0.922408 0.145234 0.987422 0.149196C1.05244 0.153158 1.11541 0.179907 1.16964 0.226599L5.48969 3.96396C5.53903 4.00654 5.5795 4.06428 5.60749 4.13206C5.63548 4.19983 5.65013 4.27553 5.65013 4.35242C5.65013 4.42932 5.63548 4.50502 5.60749 4.57279C5.5795 4.64057 5.53903 4.69831 5.48969 4.74089L1.16964 8.47913C1.11549 8.52593 1.05257 8.55277 0.987582 8.55681C0.922596 8.56085 0.857984 8.54193 0.800634 8.50206ZM0.970528 8.09023L5.29058 4.35287L0.970528 8.09023Z",fill:"#CBEE6B"},null,-1))],oAe=O2(()=>k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button__label"},"Local",-1)),sAe=["onClick"],lAe={xmlns:"http://www.w3.org/2000/svg",width:"6",height:"9",viewBox:"0 0 6 9",fill:"none"},cAe=[O2(()=>k.createElementVNode("path",{d:"M0.800634 8.50206C0.742977 8.46225 0.694785 8.40278 0.661253 8.33005C0.627722 8.25732 0.610123 8.1741 0.610354 8.08934V0.615503C0.610433 0.531043 0.628147 0.448189 0.661613 0.375749C0.695078 0.303309 0.743045 0.243991 0.800414 0.204099C0.857782 0.164208 0.922408 0.145234 0.987422 0.149196C1.05244 0.153158 1.11541 0.179907 1.16964 0.226599L5.48969 3.96396C5.53903 4.00654 5.5795 4.06428 5.60749 4.13206C5.63548 4.19983 5.65013 4.27553 5.65013 4.35242C5.65013 4.42932 5.63548 4.50502 5.60749 4.57279C5.5795 4.64057 5.53903 4.69831 5.48969 4.74089L1.16964 8.47913C1.11549 8.52593 1.05257 8.55277 0.987582 8.55681C0.922596 8.56085 0.857984 8.54193 0.800634 8.50206ZM0.970528 8.09023L5.29058 4.35287L0.970528 8.09023Z",fill:"#3865E4"},null,-1))],uAe=O2(()=>k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button__label"},"Visitante",-1)),$k=$o({__name:"CardLocalVSAway",props:{dataByCategories:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmedia"],setup(E,{emit:j}){const B=E,ie={enabled:!0,formatter:function(M,e){return e.w.config.series[e.seriesIndex]},style:{fontSize:"14px",fontFamily:"sans-serif",fontWeight:"bold",colors:["#0D1D29","#fff"]},background:{enabled:!1},dropShadow:{enabled:!1}},xe=Bc();function L(M,e){if(B.videoPrivilegesPlayingAs.has(M)&&e[M-1]!==0){let w={seasonId:xe.getters["filterGeneral/getSeasonId"],tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,categoryIds:e.categoryIds,categorySingleName:e.singleName||"",mainSectionType:1,playListType:3,gameIds:xe.getters["filterGeneral/getSelectedGamesIds"],teamId:e.teamId,playerIds:[],matchResult:xe.getters["filterGeneral/getResults"],playData:{},advancedFilter:{mainCategoryId:{},playingAs:[M],timeSections:xe.getters["filterGeneral/getSections"],fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},stringMediaPlayerTitle:"Resumen de equipo"};j("openmedia",w)}}return(M,e)=>(k.openBlock(),k.createElementBlock("div",QMe,[k.createElementVNode("h1",null,"video privileges playing as : "+k.toDisplayString(E.videoPrivilegesPlayingAs),1),k.createVNode(k.unref(X3),{arrows:!0,pxScroll:226,scrollColor:"none",arrowsScrollHide:!0,arrowsPosition:"absolute",arrowsHideOnNoScroll:!0,arrowsMargin:"0",arrowsRadius:"50%",arrowsBorder:"#ddd",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsBackground:"rgba(255,255,255,.16)","background-color":"#1d2a35"},{default:k.withCtx(()=>[k.createElementVNode("div",$Me,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.dataByCategories,(w,b)=>(k.openBlock(),k.createElementBlock("div",{key:b,class:"local-vs-away__statistic"},[k.createElementVNode("div",eAe,k.toDisplayString(w.generalName),1),k.createElementVNode("div",tAe,[w.data&&w.data.length?(k.openBlock(),k.createBlock(k.unref(wT),{key:0,series:w.data,colors:w.colors,legends:["Local","Visitante"],"show-total":!0,"hide-legends-footer":!0,"font-family":"Arial","border-stroke-color":"#172531","center-font-family":"Arial","data-labels":ie,"is-tooltip-enabled":!1},null,8,["series","colors"])):k.createCommentVNode("",!0)]),k.createElementVNode("div",rAe,[k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button",onClick:r=>L(1,w)},[k.createElementVNode("div",null,[k.withDirectives((k.openBlock(),k.createElementBlock("svg",aAe,iAe,512)),[[k.vShow,E.videoPrivilegesPlayingAs.has(1)]])]),oAe],8,nAe),k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button",onClick:r=>L(2,w)},[k.createElementVNode("div",null,[k.withDirectives((k.openBlock(),k.createElementBlock("svg",lAe,cAe,512)),[[k.vShow,E.videoPrivilegesPlayingAs.has(2)]])]),uAe],8,sAe)])]))),128))])]),_:1})]))}},[["__scopeId","data-v-7f071573"]]),Aze="",eS=E=>(k.pushScopeId("data-v-b9503c1a"),E=E(),k.popScopeId(),E),dAe={class:"offensive__chalkboard-and-goal__chalkboard"},pAe={key:0,class:"offensive__chalkboard-and-goal__goal"},fAe={key:0,class:"offensive__featured-players"},hAe={key:1,class:"offensive__local-vs-away"},mAe=eS(()=>k.createElementVNode("div",{class:"offensive__local-vs-away__title"},"Estadística total (local vs visitante)",-1)),gAe={class:"offensive__table-pie"},yAe=eS(()=>k.createElementVNode("div",{class:"offensive__table-pie__title-and-buttons"},[k.createElementVNode("div",{class:"offensive__table-pie__title-and-buttons__title"},"Categorías Ofensivas")],-1)),vAe=$o({__name:"ProfileOffensive",props:{isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe=k.computed(()=>({"--chalkboard-and-goal-grid-template-columns":B.mainComponentWidth>1010?"repeat(2, 1fr)":"1fr"})),L=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/getBasePlaysStack"]:ie.getters["teamsOffensive/getPlaysStack"]),M=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/filteredPlaysStack"]:ie.getters["teamsOffensive/filteredPlaysStack"]),e=k.computed(()=>B.isPlayerProfile?"player":"team"),w=k.computed(()=>B.isPlayerProfile?td():fc()),b=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/chalkboardGames"]:ie.getters["teamsOffensive/chalkboardGames"]),r=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.team_id:ie.state.teamsGeneral.team.team_id),_=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/goalPlays"]:ie.getters["teamsOffensive/goalPlays"]),v=k.computed(()=>B.isPlayerProfile?[ie.getters["playersGeneral/player"]]:ie.getters["playersGeneral/seasonPlayers"]),l=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.position_id===1?Hk:Zk:eMe),i=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/chalkboardPlays"]:ie.getters["teamsOffensive/chalkboardPlays"]),t=k.computed(()=>{let c=[];return B.isPlayerProfile?c=ie.getters["playersOffensive/tableData"]:c=ie.getters["teamsOffensive/tableData"],c.map(u=>Sy(u))}),n=k.computed(()=>ie.getters["playersGeneral/player"].position_id===1),a=k.computed(()=>ie.getters["filterGeneral/getGamesPlayedByTeam"]);k.watch(L,c=>{ie.commit("filterGeneral/setPlaysForGames",c)},{immediate:!0});function o(c){j("openmedia",c)}function s(c){j("partialMediaData",c)}return(c,u)=>(k.openBlock(),k.createElementBlock("div",{class:"offensive",style:k.normalizeStyle(xe.value)},[k.createElementVNode("div",{class:k.normalizeClass(["offensive__chalkboard-and-goal",{horizontal:n.value}])},[k.createElementVNode("div",dAe,[k.createVNode(Qk,{"analysis-type":"offensive","section-type":e.value,plays:i.value,"play-values-index":w.value,players:v.value,categories:l.value,games:b.value,team:r.value,"is-full":n.value,"can-play-videos":E.canPlayVideos,"is-total-xgf-visible":"",onOpenmedia:o},null,8,["section-type","plays","play-values-index","players","categories","games","team","is-full","can-play-videos"])]),n.value?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",pAe,[k.createVNode(Xk,{plays:_.value,teams:k.unref(ie).getters["teamsGeneral/teamsForAnalysis"],players:v.value,"section-type":E.isPlayerProfile?"player":"team",type:"offensive",onOpenmedia:o},null,8,["plays","teams","players","section-type"])]))],2),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",fAe,[k.createVNode(Y3,{"team-players":k.unref(ie).state.playersGeneral.currentTeamPlayers,"featured-players-categories":k.unref(ie).state.teamsOffensive.featuredPlayersCategories,plays:M.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["team-players","featured-players-categories","plays","can-play-videos"])])),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",hAe,[mAe,k.createVNode($k,{"data-by-categories":k.unref(ie).getters["teamsOffensive/localVsVisitorData"],"can-play-videos":E.canPlayVideos,"video-privileges-playing-as":E.videoPrivilegesPlayingAs,onOpenmedia:o},null,8,["data-by-categories","can-play-videos","video-privileges-playing-as"])])),k.createElementVNode("div",gAe,[yAe,k.createVNode(k.unref(Q3),{data:t.value,"games-for-avg":a.value,"is-player-table":E.isPlayerProfile,"can-play-videos":E.canPlayVideos,onPartialMediaData:s},null,8,["data","games-for-avg","is-player-table","can-play-videos"])])],4))}},[["__scopeId","data-v-b9503c1a"]]),tS=[{name:"Balones recuperados (en disputa)",color:"#FF3399",points:[1,2],categories:[483],translationKey:"chalkboard.defensive.player.balls_recovered_in_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"Balones recuperados (sin disputa)",color:"#B4005A",points:[1,2],categories:[484],translationKey:"chalkboard.defensive.player.balls_recovered_without_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"1 vs 1 exitosos defensivos",color:"#3A3838",points:[1],categories:[5],translationKey:"chalkboard.defensive.player.successful_1_on_1",singleName:"1 vs 1 exitoso defensivo",isDefaultSelected:!0},{name:"1 vs 1 no exitosos defensivos",color:"#008B31",points:[1],categories:[209],translationKey:"chalkboard.defensive.player.unsuccessful_1_on_1",singleName:"1 vs 1 no exitoso defensivo",isDefaultSelected:!0},{name:"Balones ganados en área propia",color:"#305496",points:[1,2],categories:[23],translationKey:"chalkboard.defensive.player.balls_won_own_penalty_box",singleName:"Balón ganado",isDefaultSelected:!0},{name:"Centros permitidos",color:"#FF8A4C",points:[1,2,3],categories:[517],translationKey:"chalkboard.defensive.player.allowed_crosses",singleName:"Centros permitidos",isDefaultSelected:!0},{name:"Rechaces",color:"#CC0000",points:[1],categories:[34],translationKey:"chalkboard.defensive.player.clearances",singleName:"Rechace",isDefaultSelected:!0},{name:"Barridas",color:"#700000",points:[1],categories:[518],translationKey:"chalkboard.defensive.player.slide_tackles",singleName:"Barrida",isDefaultSelected:!0}],rS=[{name:"Goles recibidos",color:"#336DFF",points:[1,2,3],categories:[40],translationKey:"chalkboard.defensive.goalkeeper.goals_received",singleName:"Gol recibido"},{name:"Atajadas",color:"#FF0092",points:[1,2],categories:[39],translationKey:"chalkboard.defensive.goalkeeper.saves",singleName:"Atajada",isDefaultSelected:!0},{name:"Juego aéreo exitoso",color:"#455A64",points:[1,2],categories:[42],translationKey:"chalkboard.defensive.goalkeeper.successful_aerial_game",singleName:"Juego aéreo exitoso"},{name:"Juego aéreo no exitoso",color:"#008B31",points:[1,2,3],categories:[43],translationKey:"chalkboard.defensive.goalkeeper.unsuccessful_aerial_game",singleName:"Juego aéreo no exitoso"},{name:"1 vs 1",color:"#D49F40",points:[1],categories:[41],translationKey:"chalkboard.defensive.goalkeeper.1_on_1",singleName:"1 vs 1"},{name:"Balón recuperado",color:"#FF9226",points:[1],categories:[312],translationKey:"chalkboard.defensive.goalkeeper.recovered_balls",singleName:"Balón recuperado"}];[...tS,...rS];const xAe=[{name:"Goles recibidos",color:"#336DFF",points:[1,2,3],categories:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],invert:[57,326,56,60,59,55],negative:!1,translationKey:"chalkboard.defensive.team.goals_received",singleName:"Gol recibido"},{name:"Tiros a gol recibidos (portería)",color:"#7ED321",points:[1,2,3],categories:["510_r"],invert:[510],negative:!1,translationKey:"chalkboard.defensive.team.shots_on_goal_received",singleName:"Tiro a gol recibido"},{name:"Tiros a gol recibidos (portería)",color:"#990BFF",points:[1,2,3],categories:["537_r","540_r","544_r","547_r"],invert:[537,540,544,547],translationKey:"chalkboard.defensive.team.shots_on_goal_received",singleName:"Tiro a gol recibido"},{name:"Centros totales recibidos",color:"#FF9226",points:[1,2,3],categories:["13_r","25_r"],invert:[13,25],translationKey:"chalkboard.defensive.team.total_centers_received",singleName:"Centro recibido"},{name:"Centros acertados por el rival",color:"#28A3B2",points:[1,2,3],categories:["98_r","101_r","104_r","105_r","109_r","112_r","115_r","116_r"],invert:[98,101,104,105,109,112,115,116],translationKey:"chalkboard.defensive.team.successful_centers_by_opponent",singleName:"Centro acertado"},{name:"Fuera de lugar provocados",color:"#00DD00",points:[1,2,3],categories:["33_r"],invert:[33],translationKey:"chalkboard.defensive.team.offsides_caused",singleName:"Fuera de lugar"},{name:"Balones recuperados (en disputa)",color:"#FF3399",points:[1,2],categories:[483],translationKey:"chalkboard.defensive.team.balls_recovered_in_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"Balones recuperados (sin disputa)",color:"#B4005A",points:[1,2],categories:[484],translationKey:"chalkboard.defensive.team.balls_recovered_without_challenge",singleName:"Balón recuperado"},{name:"1 vs 1 exitosos defensivos",color:"#3A3838",points:[1],categories:[5],translationKey:"chalkboard.defensive.team.successful_1_on_1",singleName:"1 vs 1 defensivo"},{name:"1 vs 1 no exitosos defensivos",color:"#008B31",points:[1],categories:[209],translationKey:"chalkboard.defensive.team.unsuccessful_1_on_1",singleName:"1 vs 1 defensivo"},{name:"Balones ganados en área propia",color:"#305496",points:[1,2],categories:[23],translationKey:"chalkboard.defensive.team.balls_won_own_penalty_box",singleName:"Balón ganado"},{name:"Juego aéreo resto del campo",color:"#FF8A4C",points:[1,2,3],categories:[24],translationKey:"chalkboard.defensive.team.arial_game_rest_pitch",singleName:"Juego aéreo"},{name:"Barridas",color:"#700000",points:[1],categories:[518],translationKey:"chalkboard.defensive.team.slide_tackles",singleName:"Barrida"},{name:"Rechaces",color:"#CC0000",points:[1],categories:[34],translationKey:"chalkboard.defensive.team.clearances",singleName:"Rechace"}],Nze="",nS=E=>(k.pushScopeId("data-v-621d63a7"),E=E(),k.popScopeId(),E),bAe={class:"defensive__chalkboard-and-goal__chalkboard"},_Ae={key:0,class:"defensive__chalkboard-and-goal__goal"},wAe={key:0,class:"defensive__featured-players"},TAe={key:1,class:"defensive__local-vs-away"},kAe=nS(()=>k.createElementVNode("div",{class:"defensive__local-vs-away__title"},"Estadística total (local vs visitante)",-1)),SAe={class:"defensive__table-pie"},CAe=nS(()=>k.createElementVNode("div",{class:"defensive__table-pie__title-and-buttons"},[k.createElementVNode("div",{class:"defensive__table-pie__title-and-buttons__title"},"Categorías Defensivas")],-1)),EAe=$o({__name:"ProfileDefensive",props:{isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","categoryplay","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe=k.computed(()=>({"--chalkboard-and-goal-grid-template-columns":B.mainComponentWidth>1010?"repeat(2, 1fr)":"1fr"})),L=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.position_id===1?rS:tS:xAe),M=k.computed(()=>B.isPlayerProfile?"player":"team"),e=k.computed(()=>B.isPlayerProfile?td():fc()),w=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/chalkboardPlays"]:ie.getters["teamsDefensive/chalkboardPlays"]),b=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/chalkboardGames"]:ie.getters["teamsDefensive/chalkboardGames"]),r=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.team_id:ie.state.teamsGeneral.team.team_id),_=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/getBasePlaysStack"]:ie.getters["teamsDefensive/getPlaysStack"]),v=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/filteredPlaysStack"]:ie.getters["teamsDefensive/filteredPlaysStack"]),l=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/goalPlays"]:ie.getters["teamsDefensive/goalPlays"]),i=k.computed(()=>B.isPlayerProfile?[ie.getters["playersGeneral/player"]]:ie.getters["playersGeneral/seasonPlayers"]),t=k.computed(()=>{let c=[];return B.isPlayerProfile?c=ie.getters["playersDefensive/tableData"]:c=ie.getters["teamsDefensive/tableData"],c.map(u=>Sy(u))}),n=k.computed(()=>ie.getters["playersGeneral/player"].position_id===1),a=k.computed(()=>ie.getters["filterGeneral/getGamesPlayedByTeam"]);k.watch(_,c=>{ie.commit("filterGeneral/setPlaysForGames",c)},{immediate:!0});function o(c){j("openmedia",c)}function s(c){j("partialMediaData",c)}return(c,u)=>(k.openBlock(),k.createElementBlock("div",{class:"defensive",style:k.normalizeStyle(xe.value)},[k.createElementVNode("div",{class:k.normalizeClass(["defensive__chalkboard-and-goal",{horizontal:E.isPlayerProfile&&!n.value}])},[k.createElementVNode("div",bAe,[k.createVNode(Qk,{"analysis-type":"defensive","section-type":M.value,plays:w.value,"play-values-index":e.value,players:i.value,categories:L.value,games:b.value,team:r.value,"is-full":!n.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["section-type","plays","play-values-index","players","categories","games","team","is-full","can-play-videos"])]),!E.isPlayerProfile||n.value?(k.openBlock(),k.createElementBlock("div",_Ae,[k.createVNode(Xk,{plays:l.value,teams:k.unref(ie).getters["teamsGeneral/teamsForAnalysis"],players:i.value,"section-type":E.isPlayerProfile?"player":"team",type:"defensive",onOpenmedia:o},null,8,["plays","teams","players","section-type"])])):k.createCommentVNode("",!0)],2),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",wAe,[k.createVNode(Y3,{"team-players":k.unref(ie).state.playersGeneral.currentTeamPlayers,"featured-players-categories":k.unref(ie).state.teamsDefensive.featuredPlayersCategories,plays:v.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["team-players","featured-players-categories","plays","can-play-videos"])])),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",TAe,[kAe,k.createVNode($k,{"video-privileges-playing-as":E.videoPrivilegesPlayingAs,"data-by-categories":k.unref(ie).getters["teamsDefensive/localVsVisitorData"],onOpenmedia:o},null,8,["video-privileges-playing-as","data-by-categories"])])),k.createElementVNode("div",SAe,[CAe,k.createVNode(k.unref(Q3),{data:t.value,"games-for-avg":a.value,"is-player-table":E.isPlayerProfile,"can-play-videos":E.canPlayVideos,onPartialMediaData:s},null,8,["data","games-for-avg","is-player-table","can-play-videos"])])],4))}},[["__scopeId","data-v-621d63a7"]]),Pze="",e0=E=>(k.pushScopeId("data-v-5b8c7cd0"),E=E(),k.popScopeId(),E),MAe=[k.createStaticVNode('<div class="button-filters__icon" data-v-5b8c7cd0><svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-5b8c7cd0><g clip-path="url(#clip0_3355_32121)" data-v-5b8c7cd0><path opacity="0.7" d="M16.3633 5.90771H2.86328C2.55578 5.90771 2.30078 5.65271 2.30078 5.34521C2.30078 5.03771 2.55578 4.78271 2.86328 4.78271H16.3633C16.6708 4.78271 16.9258 5.03771 16.9258 5.34521C16.9258 5.65271 16.6708 5.90771 16.3633 5.90771Z" fill="white" data-v-5b8c7cd0></path><path opacity="0.7" d="M14.1133 9.65771H5.11328C4.80578 9.65771 4.55078 9.40271 4.55078 9.09521C4.55078 8.78771 4.80578 8.53271 5.11328 8.53271H14.1133C14.4208 8.53271 14.6758 8.78771 14.6758 9.09521C14.6758 9.40271 14.4208 9.65771 14.1133 9.65771Z" fill="white" data-v-5b8c7cd0></path><path opacity="0.7" d="M11.1133 13.4077H8.11328C7.80578 13.4077 7.55078 13.1527 7.55078 12.8452C7.55078 12.5377 7.80578 12.2827 8.11328 12.2827H11.1133C11.4208 12.2827 11.6758 12.5377 11.6758 12.8452C11.6758 13.1527 11.4208 13.4077 11.1133 13.4077Z" fill="white" data-v-5b8c7cd0></path></g><defs data-v-5b8c7cd0><clipPath id="clip0_3355_32121" data-v-5b8c7cd0><rect width="18" height="18" fill="white" transform="translate(0.613281 0.0952148)" data-v-5b8c7cd0></rect></clipPath></defs></svg></div><div data-v-5b8c7cd0>Filtros</div>',2)],AAe={class:"container__header"},OAe={class:"container__header__filters"},NAe={class:"container__header__filters__filter"},LAe={class:"container__header__filters__filter"},PAe={class:"container__header__filters__filter"},RAe=e0(()=>k.createElementVNode("div",{class:"container__header__v-separator"},null,-1)),zAe={class:"container__header__switch"},VAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Total",-1)),IAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Promedio",-1)),FAe={class:"container__header__mobile"},UAe=[e0(()=>k.createElementVNode("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k.createElementVNode("path",{id:"Vector",d:"M13 1.30929L11.6907 0L6.5 5.19071L1.30929 0L0 1.30929L5.19071 6.5L0 11.6907L1.30929 13L6.5 7.80929L11.6907 13L13 11.6907L7.80929 6.5L13 1.30929Z",fill:"#A3A3A3"})],-1))],BAe={class:"container__header__mobile__filters"},DAe={class:"container__header__mobile__filters__menus"},qAe={class:"container__header__mobile__filters__menus__menu"},jAe={class:"container__header__mobile__filters__menus__menu"},WAe={class:"container__header__mobile__filters__menus__menu"},KAe=e0(()=>k.createElementVNode("div",{class:"container__header__mobile__filters__v-separator"},null,-1)),GAe={class:"container__header__mobile__filters__switch"},XAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Total",-1)),ZAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Promedio",-1)),HAe={class:"container__header__mobile__actions"},JAe={class:"container__body"},YAe=$o({__name:"PossessionOffensiveDefensiveContainer",props:{childComponent:{type:String,default:""},isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},clientPrivilegesBySeasons:{type:Object,default:()=>null},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe={ProfilePossession:dEe,ProfileOffensive:vAe,ProfileDefensive:EAe},L=k.ref([]),M=k.computed(()=>ie.getters["filterGeneral/getResults"]),e=k.computed(()=>ie.getters["filterGeneral/getSections"]),w=k.computed(()=>ie.getters["filterGeneral/getSeasonId"]),b=k.computed(()=>ie.getters["filterGeneral/getPlayingAs"]),r=k.computed(()=>ie.getters["filterGeneral/getSelectedGamesIds"]),_=k.computed(()=>ie.getters["teamsGeneral/teamId"]),v=k.computed(()=>ie.getters["playersGeneral/player"]),l=k.computed(()=>{if(B.canPlayVideos&&B.clientPrivilegesBySeasons){if(ie.state.filterGeneral.seasonId){const g=B.clientPrivilegesBySeasons.seasonsAndPrivileges.get(ie.state.filterGeneral.seasonId);if(g)return L.value.filter(y=>y.isSelected&&g.playingAs.has(y.playingAs)).length>0}return!1}return B.canPlayVideos}),i=k.ref(!1),t=k.ref(Fk()),n=k.ref({isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"100%",height:"40px"},fieldComponentProps:{widthContainer:"100%"}}),a=k.ref(!1);k.watch(()=>B.isPlayerProfile,g=>{ie.commit("filterGeneral/setIsPlayerAnalysis",g)},{immediate:!0}),k.watch(i,g=>{ie.commit("filterGeneral/setStadisticId",g?0:1)},{immediate:!0}),k.watch(()=>ie.state.filterGeneral.stadisticId,()=>{i.value=ie.state.filterGeneral.stadisticId===0},{immediate:!0});const o=k.computed(()=>{const g={...t.value};return B.mainComponentWidth<520&&(g.width="100%"),g}),s=k.computed(()=>{const g={"--header-flex-direction":"row","--header-v-separator-height":"16px","--header-v-separator-width":"1px","--container-background-color":"#172531"};return B.mainComponentWidth<520?g["--container-background-color"]="#0D1D29":B.mainComponentWidth<750&&(g["--header-flex-direction"]="column",g["--header-v-separator-height"]="1px",g["--header-v-separator-width"]="400px"),g}),c=k.computed(()=>ie.getters["filterGeneral/availableGames"].map(g=>({...g,label:`${g.roundAbbreviation} ${g.team.acronym} vs ${g.rivalTeam.acronym}`,teamsIds:[g.team.team_id,g.rivalTeam.team_id]})));function u(g){const x=g.results.reduce((y,S)=>(S.isSelected&&y.push(S.value),y),[]);ie.commit("filterGeneral/setResults",x)}function f(g){const x=g.gameSections.reduce((S,p)=>(p.isSelected&&S.push(p.value),S),[]),y=g.playingAs.reduce((S,p)=>(p.isSelected&&S.push(p.value),S),[]);ie.commit("filterGeneral/setSections",x),ie.commit("filterGeneral/setPlayingAs",y.length>0&&y.length<2?y[0]:null)}function d(g){const x=g.reduce((y,S)=>(S.isSelected&&y.push(S.id),y),[]);L.value=g,ie.commit("filterGeneral/setSelectedGamesIds",x)}function T(){ie.commit("filterGeneral/setAnalysisType",B.isPlayerProfile?1:2)}function h(g){j("openmediachalkboard",g)}function m(g){g.match_result=M.value,g.playing_as=b.value,g.periods=e.value,g.games=r.value,g.seasonId=w.value,g.teamId=_.value,g.playerId=v.value.player_id,j("partialMediaData",g)}return T(),(g,x)=>(k.openBlock(),k.createElementBlock("div",{ref:"container",class:"container",style:k.normalizeStyle(s.value)},[k.createElementVNode("h1",null,"canPlayVideosFilter: "+k.toDisplayString(l.value),1),k.withDirectives(k.createElementVNode("div",{role:"button",class:"container__button-filters",onClick:x[0]||(x[0]=y=>a.value=!a.value)},MAe,512),[[k.vShow,E.mainComponentWidth<520]]),k.withDirectives(k.createElementVNode("div",AAe,[k.createElementVNode("div",OAe,[k.createElementVNode("div",NAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).RESULTS,"button-filter-props":o.value,"onUpdate:filters":u},null,8,["filter-type","button-filter-props"])]),k.createElementVNode("div",LAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).DETAILS,"button-filter-props":o.value,"onUpdate:filters":f},null,8,["filter-type","button-filter-props"])]),k.createElementVNode("div",PAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).GAMES,filters:c.value,"button-filter-props":o.value,"onUpdate:filters":d},null,8,["filter-type","filters","button-filter-props"])])]),RAe,k.createElementVNode("div",zAe,[VAe,k.createVNode(j2,{modelValue:i.value,"onUpdate:modelValue":x[1]||(x[1]=y=>i.value=y)},null,8,["modelValue"]),IAe])],512),[[k.vShow,E.mainComponentWidth>520]]),k.withDirectives(k.createElementVNode("div",FAe,[k.createElementVNode("div",{role:"button",class:"container__header__mobile__button-close",onClick:x[2]||(x[2]=y=>a.value=!1)},UAe),k.createElementVNode("div",BAe,[k.createElementVNode("div",DAe,[k.createElementVNode("div",qAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).RESULTS,width:"100%","button-filter-props":o.value,"onUpdate:filters":u}),null,16,["filter-type","button-filter-props"])]),k.createElementVNode("div",jAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).DETAILS,"button-filter-props":o.value,width:"100%","onUpdate:filters":f}),null,16,["filter-type","button-filter-props"])]),k.createElementVNode("div",WAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).GAMES,filters:c.value,"button-filter-props":o.value,width:"100%","onUpdate:filters":d}),null,16,["filter-type","filters","button-filter-props"])])]),KAe,k.createElementVNode("div",GAe,[XAe,k.createVNode(j2,{modelValue:i.value,"onUpdate:modelValue":x[3]||(x[3]=y=>i.value=y)},null,8,["modelValue"]),ZAe])]),k.createElementVNode("div",HAe,[k.createElementVNode("div",{role:"button",class:"container__header__mobile__actions__apply",onClick:x[4]||(x[4]=y=>a.value=!1)}," Aplicar filtros ")])],512),[[k.vShow,!(E.mainComponentWidth>520)&&a.value]]),k.createElementVNode("div",JAe,[k.createElementVNode("h1",null,"video privileges playing as : "+k.toDisplayString(E.videoPrivilegesPlayingAs),1),k.createElementVNode("h1",null,"childComponent: "+k.toDisplayString(E.childComponent),1),(k.openBlock(),k.createBlock(k.resolveDynamicComponent(xe[E.childComponent]),{"is-player-profile":E.isPlayerProfile,"main-component-width":E.mainComponentWidth,"can-play-videos":l.value,"video-privileges-playing-as":E.videoPrivilegesPlayingAs,onOpenmedia:h,onPartialMediaData:m},null,40,["is-player-profile","main-component-width","can-play-videos","video-privileges-playing-as"]))])],4))}},[["__scopeId","data-v-5b8c7cd0"]]),Ize="",QAe={class:"profile__carousel-profile"},$Ae={class:"container-section"},eOe={class:"profile__sections"},tOe={class:"profile__sections__menu"},rOe={class:"profile__sections__menu__contmenuswitch"},nOe={key:0,class:"profile__sections__content"},aOe=$o({__name:"GSC-PlayerTeamProfile",props:{seasonId:{type:Number,default:1772},playerId:{type:Number,default:35240},teamId:{type:Number,default:14},isPlayerProfile:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},clientPrivilegesBySeasons:{type:Object,default:()=>null},isOneProfile:{type:Boolean,default:!1}},emits:["openmedia"],setup(E,{emit:j}){const B=E,ie={PossessionOffensiveDefensiveContainer:YAe,AllSectionsProfilePlayer:cG,SummaryContainer:dG,XRayContainer:sZ,GSCSetPieceContainer:Ove,VideosPlayersContainer:dZ},xe=Bc();Yf.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";let L=null;const M=k.ref(0),e=k.ref(null),w=k.ref([{}]),b=k.ref(0),r=k.ref({}),_=k.ref(!0),v=k.ref(null),l=k.ref(null),i=k.ref(new Set([1,2])),t=k.computed(()=>n.value?[{id:0,name:"Resumen",mainComponent:"SummaryContainer"},{id:5,name:"Radiografía",mainComponent:"XRayContainer"},{id:1,name:"Posesión",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfilePossession"},{id:2,name:"Ofensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileOffensive"},{id:3,name:"Defensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileDefensive"},{id:4,name:"Videos",mainComponent:"VideosPlayersContainer"},{id:6,name:"Tactica Fija",mainComponent:"GSCSetPieceContainer"}]:[{id:0,name:"Resumen",mainComponent:"SummaryContainer"},{id:5,name:"Radiografía",mainComponent:"XRayContainer"},{id:1,name:"Posesión",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfilePossession"},{id:2,name:"Ofensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileOffensive"},{id:3,name:"Defensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileDefensive"},{id:6,name:"Tactica Fija",mainComponent:"GSCSetPieceContainer"}]),n=k.computed(()=>{if(B.canPlayVideos&&B.clientPrivilegesBySeasons){if(l.value){const R=B.isPlayerProfile?xe.getters["playersGeneral/gamesPlayed"]:xe.getters["teamsGeneral/gamesPlayed"],z=B.clientPrivilegesBySeasons.seasonsAndPrivileges.get(l.value.id);if(z)return c(z.playingAs),R.filter(K=>z.playingAs.has(K.playingAs)).length>0;c(new Set)}return!1}else B.canPlayVideos&&c(new Set([1,2]));return B.canPlayVideos}),a=k.computed(()=>{const R={club:"",nationalTeam:""};if(xe.state.playersGeneral.player){const z=xe.state.playersGeneral.player;R.club=z.team_logo,R.nationalTeam=z.national_team?z.national_team.team_logo:""}return R}),o=k.computed(()=>t.value.map(R=>R.name)),s=k.computed(()=>{let R=null;return l.value&&(r.value.player_id||r.value.team_id)&&(B.isPlayerProfile?R={player:r.value.player_id,season:l.value.id,type:1,team:B.teamId}:R={player:null,season:l.value.id,type:2,team:r.value.team_id}),R});k.watch(()=>t.value,()=>{v.value||(v.value=t.value[0])}),k.watch(()=>xe.state.playersGeneral.player,R=>{r.value.profileInfo=R},{deep:!0}),k.watch(()=>xe.getters["playersGeneral/player"],()=>{B.isPlayerProfile&&(r.value.profileInfo=xe.getters["playersGeneral/player"])});function c(R){i.value=R}function u(R){_.value=R}async function f(R,z){try{u(!0);const[U]=await Promise.all([T(R,z),xe.dispatch("playersGeneral/checkState",{seasonId:Number(B.seasonId),playerId:Number(B.playerId)})]),K=xe.getters["playersGeneral/player"];let I=null;U.forEach(q=>{const J=new Date(q.dob),D=AR(J),G=OR({start:J,end:new Date});q.yearOfBirth=D,q.age=G.years,q.season=l.value,q.player_id===K.player_id&&(I=q)}),K&&(I.profileInfo=K,b.value=I.player_id,r.value=I),w.value=B.isOneProfile?U.filter(q=>q.player_id===B.playerId):U}catch(U){throw new Error(U)}finally{u(!1)}}async function d(R){try{u(!0);const[z,U,K]=await Promise.all([Dy({seasonId:R}),zx({seasonId:R}),Yf.get(`https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/${R}`),xe.dispatch("teamsGeneral/checkState",{teamId:B.teamId,seasonId:R})]),I=K.data.table_type?K.data.groups.reduce((X,oe)=>(X.push(...oe.data),X),[]):K.data.data,q=new Date().getTime(),J=z.teams,D=U.games.filter(X=>{const oe=`${X.date}T${X.schedule}Z`,ne=new Date(oe).getTime();return X.dateTimeMillis=ne,X.game_status===4&&ne>q});D.sort((X,oe)=>X.dateTimeMillis-oe.dateTimeMillis);let G=null;J.forEach(X=>{X.nextGames=[],X.currentSeason=l.value,X.tableData=I?I.find(oe=>oe.team_id===X.team_id):null,D.forEach(oe=>{(oe.home_team===X.team_id||oe.visiting_team===X.team_id)&&X.nextGames.push(oe)}),X.team_id===(xe.state.filterGeneral.teamId||B.teamId)&&(G=X)}),G&&(G.profileInfo={...G},b.value=G.team_id,r.value=G),w.value=B.isOneProfile?J.filter(X=>X.team_id===B.teamId):J}catch(z){throw new Error(z)}finally{u(!1)}}async function T(R,z){try{const U=await Yf.get(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${z}/${R}`);return(U.data&&U.data.length?U.data[0]:{players:[]}).players}catch(U){return Promise.reject(U)}}function h(){L=new ResizeObserver(R=>{for(const z of R)M.value=z.contentRect.width}),L.observe(e.value)}async function m(R){try{R.player_id&&(u(!0),await xe.dispatch("playersGeneral/cleanData"),await xe.dispatch("playersGeneral/checkState",{seasonId:Number(l.value.id||B.seasonId),playerId:Number(R.player_id)}),R.profileInfo||(R.profileInfo=xe.getters["playersGeneral/player"]))}catch(z){return Promise.reject(z)}finally{u(!1)}}async function g(R){try{R.team_id&&(u(!0),xe.commit("teamsGeneral/updateTeam",{}),xe.commit("filterGeneral/setTeamId",R.team_id),await xe.dispatch("teamsGeneral/cleanData"),await xe.dispatch("teamsGeneral/checkState",{teamId:R.team_id,seasonId:Number(xe.state.filterGeneral.seasonId||B.seasonId)}),R.profileInfo||(R.profileInfo=xe.getters["teamsGeneral/team"]))}catch(z){return Promise.reject(z)}finally{u(!1)}}function x(R){if(B.isPlayerProfile){const z=R.selectedItem;if(b.value===z.player_id)return;b.value=z.player_id,r.value=z,m(z)}else{const z=R.selectedItem;if(b.value===z.team_id)return;b.value=z.team_id,r.value=z,g(z)}}function y(R){v.value=t.value.find(z=>z.name===R)||t.value[0]}function S(R){(!l.value||l.value.id!==R.id)&&(l.value=R,B.isPlayerProfile?m(r.value):d(R.id))}k.onMounted(()=>{h()});async function p(){try{xe.commit("filterGeneral/setSeasonId",B.seasonId),xe.commit("filterGeneral/setTeamId",B.teamId),await xe.dispatch("playersGeneral/cleanData"),await xe.dispatch("teamsGeneral/cleanData"),B.isPlayerProfile?await f(B.teamId,B.seasonId):(xe.commit("teamsGeneral/updateTeam",{}),await d(B.seasonId))}catch(R){console.error(R)}}function O(R){if(!n.value)return;let z=[],U=0,K=R.seasonId,I=[],q=0;const J=2,D=3;if(R.id||R.rId){const X=R.id?Array.isArray(R.id)?R.id:[R.id]:[],oe=R.rId?Array.isArray(R.rId)?R.rId.map(ne=>`${ne}_r`):[`${R.rId}_r`]:[];I=[...X,...oe]}B.isPlayerProfile?(z=[xe.state.playersGeneral.player.player_id],q=J):(U=xe.state.filterGeneral.teamId,q=D);const G={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:q,gameIds:null,playerIds:z,goalkeeperIds:[],categoryIds:I,teamId:U,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.name},objectPlaySync:null};j("openmedia",G)}function C(R){if(!n.value)return;let z=[],U=0,K=B.seasonId,I=[],q=0;const J=2,D=3;if(R.id||R.rId){const X=R.id?Array.isArray(R.id)?R.id:[R.id]:[],oe=R.rId?Array.isArray(R.rId)?R.rId.map(ne=>`${ne}_r`):[`${R.rId}_r`]:[];I=[...X,...oe]}B.isPlayerProfile?(z=[B.playerId],q=J):(U=B.teamId,q=D);const G={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:q,gameIds:null,playerIds:z,goalkeeperIds:[],categoryIds:I,teamId:U,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.name},objectPlaySync:null};j("openmedia",G)}function N(R){n.value&&(R.tournaments=xe.state.filterGeneral.tournamentsForMediaPlayer,j("openmedia",R))}function V(R){if(!n.value)return;let z=[],U=0,K=R.seasonId,I=0;const q=2,J=3;B.isPlayerProfile?(z=[R.playerId],I=q):(U=R.teamId,I=J);const D={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:I,gameIds:R.games,playerIds:z,goalkeeperIds:[],categoryIds:R.categories.filter(G=>G),teamId:U,matchResult:R.match_result,categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.description,timeSections:R.timeSection===6?periods:R.timeSection,playingAs:R.playing_as?[R.playing_as]:[1,2]},objectPlaySync:null};j("openmedia",D)}return p(),(R,z)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"profile",ref:e,class:"profile"},[k.withDirectives(k.createVNode(DA,null,null,512),[[k.vShow,_.value]]),k.createVNode(jC,{"switch-logos-urls":a.value,"current-season-id":E.seasonId,"is-player-profile":E.isPlayerProfile,onChangeSeason:S},null,8,["switch-logos-urls","current-season-id","is-player-profile"]),k.createElementVNode("div",QAe,[k.createVNode(zA,{items:w.value,"component-width":M.value,"current-profile-id":b.value,"is-player-profile":E.isPlayerProfile,"can-play-videos":n.value,"onUpdate:profile":x,onOpenmedia:N},null,8,["items","component-width","current-profile-id","is-player-profile","can-play-videos"])]),k.createElementVNode("div",$Ae,[s.value?(k.openBlock(),k.createBlock(k.unref(uR),{key:0,type:E.isPlayerProfile?"player":"team",data:s.value,"can-play-videos":n.value,onOpenmedia:N},null,8,["type","data","can-play-videos"])):k.createCommentVNode("",!0)]),k.createElementVNode("div",eOe,[k.createElementVNode("div",tOe,[k.createElementVNode("div",rOe,[v.value?(k.openBlock(),k.createBlock(k.unref(RN),{key:0,type:2,buttons:o.value,"font-family":"Poppins-Regular","selected-option":v.value.name,"font-size":"16px",width:M.value<400||M.value<700||M.value<840?"110px":M.value<1050?"130px":"165px",borderWidth:"1px",arrow:!1,height:"30px",onInput:y},null,8,["buttons","selected-option","width"])):k.createCommentVNode("",!0)])]),v.value?(k.openBlock(),k.createElementBlock("div",nOe,[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(ie[v.value.mainComponent]),{"child-component":v.value.childComponent,"team-id":E.teamId,"player-id":E.playerId,"is-player-profile":E.isPlayerProfile,"main-component-width":M.value,"is-synchronization":E.isSynchronization,"is-tactic-visible":l.value&&l.value.showTactic,"can-play-videos":n.value,"client-privileges-by-seasons":E.clientPrivilegesBySeasons,"video-privileges-playing-as":i.value,onOpenmedia:C,onOpenmediaXR:O,onOpenmediachalkboard:N,onPartialMediaData:V,onOpenMediaPlayer:N},null,40,["child-component","team-id","player-id","is-player-profile","main-component-width","is-synchronization","is-tactic-visible","can-play-videos","client-privileges-by-seasons","video-privileges-playing-as"]))])):k.createCommentVNode("",!0)])],512))}},[["__scopeId","data-v-23e8d459"]]);async function aS({seasonId:E},j=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${E}.json`)).json()).data}catch(B){if(j)return aS({seasonId:E},!1);throw new Error(B)}}function F_(E,j){return E.reduce((B,ie)=>{switch(ie[j.categoryType]){case 1:B.possession.push(ie);break;case 2:B.offensive.push(ie);break;case 3:B.defensive.push(ie);break}return B},{possession:[],offensive:[],defensive:[]})}function t0(E,j,B,ie,xe,L,M=!1){const e=B.map(w=>w===1?2:w===2?1:3);return E.filter(w=>{const b=L&&w[xe.teamId]?w[xe.teamId]!==L:!1,r=j===1?2:1;return(M||ie.includes(w[xe.gameId]))&&(!j||(b?r:j)===w[xe.playingAs])&&(B.includes(w[xe.matchResult])&&w[xe.teamId]===L||e.includes(w[xe.matchResult])&&w[xe.teamId]!==L)})}function iOe(E,j,B,ie,xe,L){const M=B.map(e=>e===1?2:e===2?1:3);return E.filter(e=>{const w=L&&e[xe.teamId]?e[xe.teamId]!==L:!1,b=j===1?2:1;return w&&ie.includes(e[xe.gameId])&&(!j||b===e[xe.playingAs])&&M.includes(e[xe.matchResult])})}const oOe=["categoryId","matchLapse","section","matchResult","playingAs","total"];let U_=null;function B_(){return U_||(U_=ym(oOe)),U_}const sOe={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:E=>E.seasonPlays,filteredPlaysStack(E,j,B,ie){return t0(E.seasonPlays,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],B_(),ie["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(E){const j=E.currentSeasonGames.reduce((B,ie)=>{const xe={...ie};return xe.home_team=E.currentSeasonTeams.find(L=>L.team_id===ie.home_team),xe.visiting_team=E.currentSeasonTeams.find(L=>L.team_id===ie.visiting_team),B[ie.matchday_abbreviation]?B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date]?B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date].push(xe):B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date]=[xe]:B[ie.matchday_abbreviation]={[ie.game_status===3?"canceled":ie.date]:[xe]},B},{});for(let[B,ie]of Object.entries(j))j[B]=Object.entries(ie).map(([xe,L])=>({date:xe,games:L})),j[B].sort((xe,L)=>xe.date<L.date?-1:xe.date>L.date?1:0);return j},matchdaysDates(E,j){let B=[];if(j.nextGamesSchedule){let ie=Object.keys(j.nextGamesSchedule);for(let xe of ie){let L=Number(xe.replace("M","")),M=j.nextGamesSchedule[xe].map(e=>({matchday:L,date:new Date(e.date)}));B=B.concat(M)}}return B},closestMatchDay(E,j){let B=new Date,ie=0,xe=-new Date(0,0,0).valueOf(),L=j.matchdaysDates,M=L.length;for(let e=0;e<L.length;e++)ie=Math.abs(L[e].date-B),ie<xe&&(M=e,xe=ie);return L[M]?L[M].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(E,j){E.booleanIsLiveGamesModalOpen=j},setBooleanAreLiveGames(E,j){E.booleanAreLiveGames=j},updateSeasonPlays(E,j){E.seasonPlays=j},updateCurrentSeasonTeams(E,j){E.currentSeasonTeams=j},updateCurrentSeasonGames(E,j){E.currentSeasonGames=j},updateSelectedRound(E,j){E.selectedRound=j}},actions:{async getSeasonPlays({commit:E,rootGetters:j},B=!1){try{const ie=await aS({seasonId:j["filterGeneral/getSeasonId"]});if(B)return ie;E("updateSeasonPlays",ie)}catch(ie){return Promise.reject(ie)}},async getCurrentSeasonGames({commit:E,rootGetters:j}){try{const B=await zx({seasonId:j["loginGeneral/seasonId"]});E("updateCurrentSeasonGames",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonTeams({commit:E,rootGetters:j}){try{const B=await Dy({seasonId:j["loginGeneral/seasonId"]});E("updateCurrentSeasonTeams",B.teams)}catch(B){return Promise.reject(B)}},async isDataFilled({state:E,dispatch:j,commit:B}){try{if(E.currentSeasonGames.length>0&&E.currentSeasonTeams.length>0)return B("setIsSectionLoading",!1,{root:!0}),!0;const ie=[void 0,void 0];return E.currentSeasonGames.length===0&&(ie[0]=j("getCurrentSeasonGames")),E.currentSeasonTeams.length===0&&(ie[1]=j("getCurrentSeasonTeams")),await Promise.all(ie),!1}catch(ie){throw new Error(ie)}}}}},iS={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},oS={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},sS={4:"OF",5:"Cf",6:"S",7:"F"},Q1=td(),lS=fc(),cS=[1784,1741,1512,881];function lOe(E,j){if(E.size!==j.length)return!0;for(let B=0;B<j.length;B++)if(!E.has(j[B].id))return!0;return!1}const cOe={filterGeneral:{namespaced:!0,state:{sections:[],results:[],playingAs:null,seasonId:null,seasonType:0,categoryType:null,seasons:[],seasonsIds:new Set,stadisticId:1,playsForGames:[],seasonTeamsMap:new Map,seasonGamesMap:new Map,selectedGamesIds:[],analysisType:1,teamId:0,tournamentsForMediaPlayer:new Map,hasPlayerNationalTeam:!1,hasPlayerClubSeasons:!0,isPlayerNationalTeam:!1,isPlayerAnalysis:!1},getters:{getSections:E=>E.sections,getResults:E=>E.results,getPlayingAs:E=>E.playingAs,getCategoryType:E=>E.categoryType,getSeasons:E=>E.seasons,getSeasonId(E,j,B,ie){let xe=window.localStorage.getItem("seasonSelected");xe&&(xe=Number(xe));const L=xe||ie["loginGeneral/seasonId"];return E.seasonId||L},isPlayersAnalysis:E=>E.isPlayerAnalysis,getGamesPlayed(E,j,B,ie){const xe=j.getStadisticId,L=ie["playersGeneral/player"],M=1,e=L?L.position_id:null,w=ie["playersGeneral/seasonPlayers"].filter(r=>{let _=e===null?r.position_id!==M:!1;return e&&(_=e===M?r.position_id===M:r.position_id!==M),_}).length,b=ie["teamsGeneral/teamsForAnalysis"].length;return xe===0?ie["gamesGeneral/seasonGamesPlayed"].filter(_=>_.game_status!==0).length*w/b:w},getGamesPlayedByTeam(E,j,B,ie){if(j.getStadisticId===0){if(j.isPlayersAnalysis)return Object.keys([...ie["playersPossession/getBasePlaysStack"],...ie["playersOffensive/getBasePlaysStack"],...ie["playersDefensive/getBasePlaysStack"]].filter(e=>E.playingAs===null?!0:e[Q1.playingAs]===E.playingAs).filter(e=>E.results.includes(e[Q1.matchResult])).reduce((e,w)=>(e[w[Q1.gameId]]=[...e[w[Q1.gameId]]||[],w],e),{})).length;const L=ie["gamesGeneral/seasonGamesPlayed"],M=ie["teamsGeneral/team"].team_id;return L.filter(e=>e.game_status!==0).filter(e=>{let w;return E.playingAs===null?w=e.home_team===M||e.visiting_team===M:E.playingAs===1?w=e.home_team===M:w=e.visiting_team===M,w}).filter(e=>{const w=e.home_team===M;let b=1;return e.score[0]>e.score[1]&&!w||e.score[0]<e.score[1]&&w?b=2:e.score[0]===e.score[1]&&(b=3),E.results.includes(b)}).length}else return 1},getGamesPlayedByPlayer:(E,j)=>(B,ie=!1)=>{if(j.getStadisticId===0){if(B){const xe=ie?Q1:lS;return Object.keys(B.reduce((L,M)=>((E.playingAs===null||M[xe.playingAs]===E.playingAs)&&E.results.includes(M[xe.matchResult])&&(L[M[xe.gameId]]=[...L[M[xe.gameId]]||[],M]),L),{})).length}return 0}return 1},getStadisticId:E=>E.stadisticId,getCategoryTypeName(E){let j;switch(E.categoryType){case 1:j="posesion";break;case 2:j="ofensivo";break;case 3:j="defensivo";break}return j},getSelectedGamesIds(E){return E.selectedGamesIds},isCup(E,j){return cS.includes(j.getSeasonId)},availableGames(E,j){const B=E.analysisType===1?Q1:lS,ie=E.playsForGames.reduce((L,M)=>{if(!L.has(M[B.gameId])){const e=M[B.teamId]===E.teamId;if(E.results.includes(M[B.matchResult])&&(E.analysisType===1||e)&&(!E.playingAs||E.playingAs===M[B.playingAs])){const w=E.seasonGamesMap.get(M[B.gameId]);if(w){let b=!(E.analysisType===2&&M[B.teamId]!==E.teamId);const r=w.home_team===E.teamId?1:2,_=b?M[B.playingAs]===1?w.visiting_team:w.home_team:M[B.playingAs]===1?w.home_team:w.visiting_team,v=E.seasonTeamsMap.get(_),l=E.seasonTeamsMap.get(E.teamId);let i="";const t=w.matchday_abbreviation.replace("M",""),n=`J${t}`;w.seasonType===0?j.isCup?j.getSeasonId===881?i=sS[t]||n:i=oS[w.matchday_abbreviation]?w.matchday_abbreviation:n:i=n:w.seasonType===1?i=iS[w.matchday_abbreviation]:i=w.matchday_abbreviation.replace("PO","R"),L.set(M[B.gameId],{id:M[B.gameId],isSelected:!0,dateTimeMillis:w.dateTimeMillis,team:l,rivalTeam:v,roundAbbreviation:i,playingAs:r})}}}return L},new Map),xe=Array.from(ie.values());return xe.sort((L,M)=>L.dateTimeMillis-M.dateTimeMillis),xe}},mutations:{setIsPlayerAnalysis(E,j=!1){E.isPlayerAnalysis=j},setIsPlayerNationalTeam(E,j=!1){E.isPlayerNationalTeam=j},setHasPlayerNationalTeam(E,j=!1){E.hasPlayerNationalTeam=j},setHasPlayerClubSeasons(E,j=!0){E.hasPlayerClubSeasons=j},setTournamentsForMediaPlayer(E,j){E.tournamentsForMediaPlayer=j},setAnalysisType(E,j){E.analysisType=j},setTeamId(E,j){E.teamId=j},setSelectedGamesIds(E,j){E.selectedGamesIds=j},setSeasonTeamsMap(E,j){E.seasonTeamsMap=j},setSeasonGamesMap(E,j){E.seasonGamesMap=j},setSections:(E,j)=>{E.sections=j},setResults:(E,j)=>{E.results=j},setPlayingAs:(E,j)=>{E.playingAs=j},setSeasonId:(E,j)=>{E.seasonId=Number(j)},setCategoryType:(E,j)=>{E.categoryType=j},setSeasons(E,j){lOe(E.seasonsIds,j)&&(E.seasons=j,E.seasonsIds=new Set(j.map(B=>B.id)))},setStadisticId:(E,j)=>{E.stadisticId=j},setSeasonType(E,j){E.seasonType=j},setPlaysForGames(E,j){E.playsForGames=j}},actions:{updateSeasons({state:E,commit:j},{seasons:B}){if(B){const ie=new Map,xe=Object.entries(B).reduce((L,[M,e])=>{const w=Number(M),b={_id:w,id:w,name:e.name,tournament:{tournament_type:cS.includes(w)},seasons:[{id:w,related_seasons:[],type:0}]};return ie.set(w,b),L.push({id:w,name:e.name,type:e.type,showTactic:e.show_tactic}),L},[]);j("setTournamentsForMediaPlayer",ie),j("setSeasons",xe.sort((L,M)=>M.id-L.id)),xe.length&&((!E.seasonId||!xe.find(L=>L.id===E.seasonId))&&j("setSeasonId",xe[0].id),j("setSeasonType",xe.find(L=>L.id===E.seasonId).type))}}}}},D_={playsGoal:[[124234234,53e3,2002,"054:00.001",12e3,2,1,4,1,2,1,.412,.085],[124234235,53010,16226,"025:00.001",59800,2,1,2,2,1,1,.381,.07],[124234236,53e3,18010,"038:00.001",53800,2,1,3,3,2,1,.12,.16],[124234237,53010,39038,"044:00.001",6e4,2,1,3,1,1,1,.4,.12],[124234238,53e3,11760,"088:00.001",12e3,2,1,6,2,2,1,.52,.01],[124234239,53010,18870,"012:00.001",59800,2,1,1,3,1,1,.52,.15],[124234240,53e3,27695,"028:00.001",53800,2,1,2,1,2,1,.55,.21],[124234255,53010,2002,"057:00.001",6e4,2,1,4,2,1,1,.83,.13],[124234234,53e3,11556,"054:00.001",12e3,3,1,4,1,2,1,.512,.075],[124234235,53010,16226,"025:00.001",59800,3,1,2,2,1,1,.381,.07],[124234236,53e3,2002,"038:00.001",53800,3,1,3,3,2,1,.12,.16],[124234237,53010,39038,"044:00.001",6e4,3,1,3,1,1,1,.4,.12],[124234238,53e3,11760,"088:00.001",12e3,3,1,6,2,2,1,.52,.01],[124234239,53010,2002,"012:00.001",59800,3,1,1,3,1,1,.52,.15],[124234240,53e3,27695,"028:00.001",53800,3,1,2,1,2,1,.55,.21],[124234255,53010,344,"057:00.001",6e4,3,1,4,2,1,1,.83,.13]],plays:[[22147985,53010,27164,"061:15.865",12,2,2,4,1,2,1,1,10,.5393,.7039,.5813,.8112,.4645,.9573],[22148143,53010,16155,"061:15.865",12,2,2,6,1,2,1,1,10,.2597,.2854,.3201,.1908,.3411,.1615],[22148451,53010,2002,"092:30.708",547,2,2,5,1,2,1,1,10,.2283,.2195,.3149,.202,.4986,.0439],[22146832,53010,2002,"031:50.331",208,2,1,3,1,2,1,1,10,.9239,.8715,.9239,.8715,.9225,.8834],[21144941,53e3,427,"047:39.957",12,2,1,3,2,1,1,1,10,.4855,.8659,.4855,.8659,.5275,.9557],[21144995,53e3,427,"047:39.957",547,2,1,3,2,1,1,1,10,.4855,.8659,.4855,.8659,.5275,.9557],[22147985,53010,2002,"061:15.865",12,3,2,4,1,1,1,1,10,.5393,.7039,.5813,.8112,.4645,.9573],[22148143,53010,16155,"061:15.865",12,3,2,6,1,1,1,1,10,.2597,.2854,.3201,.1908,.3411,.1615],[22148451,53010,27164,"092:30.708",547,3,2,5,1,1,1,1,10,.2283,.2195,.3149,.202,.4986,.0439],[22146832,53010,2002,"031:50.331",547,3,1,3,1,1,1,1,10,.9239,.8715,.9239,.8715,.9225,.8834]]};async function uOe({seasonId:E,playerId:j}){try{const B=`https://0b6i026nwg.execute-api.us-west-2.amazonaws.com/prod/playerInfo/${E}/${j}`;return(await Du({url:B})).data}catch(B){return Promise.reject(B)}}async function uS({seasonId:E,playerId:j}){try{const{data:B}=await Du({url:`https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/${E}/${j}`});return B}catch(B){throw new Error(B)}}async function q_({seasonId:E,playerId:j}){try{const B=`https://fn0z0dd0u3.execute-api.us-west-2.amazonaws.com/prod/statsPlayerBySeason/${E}/${j}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}async function dS({seasonId:E,teamId:j}){try{const B=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${E}/${j||""}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}async function pS({seasonId:E,playerId:j}){try{const B=`https://lktcjrffmb.execute-api.us-west-2.amazonaws.com/prod/goalsPlayerBySeason/${E}/${j}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}const dOe=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinateX","coordinateY"];let j_=null;function N2(){return j_||(j_=ym(dOe)),j_}const pOe=new Map([[1,{ids:new Set([39]),position:"portero",name:"Atajadas"}],[2,{ids:new Set([482]),position:"defensa central",name:"Balones recuperados"}],[3,{ids:new Set([5]),position:"lateral por izquierda",name:"1vs1 exitosos defensivos"}],[4,{ids:new Set([5]),position:"lateral por derecha",name:"1vs1 exitosos defensivos"}],[5,{ids:new Set([4]),position:"volante por izquierda",name:"1vs1 exitosos ofensivos"}],[6,{ids:new Set([4]),position:"volante por derecha",name:"1vs1 exitosos ofensivos"}],[7,{ids:new Set([483,484]),position:"volante defensivo",name:"Balones recuperados"}],[8,{ids:new Set([510]),position:"volante ofensivo",name:"Tiros a gol"}],[9,{ids:new Set([12]),position:"delantero",name:"Goles"}]]);function fS(E){return Object.entries(E).reduce((j,[B,ie])=>(ie.show_videos&&(j[B]={name:ie.name}),j),{})}const W_={player:{},seasonPlayers:[],seasonPlayersMap:new Map,currentTeamPlayers:[],playerSeasons:{0:{},1:{}},playsGoal:D_.playsGoal,plays:D_.plays,playerTeamClass:null,lastPlayersForPlayersView:[],lastTeamForPlayersView:0,lastTeamNameForPlayersView:"",lastSeasonForSeasonPlayers:0,lastSeasonPlayers:[],loadCount:0,playerGames:[]},fOe={namespaced:!0,state:W_,mutations:{setPlayerGames(E,j){E.playerGames=j},setLoadCount(E,j){E.loadCount=j},updateSeasonPlayers(E,j){E.lastSeasonPlayers=j,E.seasonPlayersMap.clear(),E.seasonPlayers=j.reduce((B,ie)=>(ie.players.forEach(xe=>{E.seasonPlayersMap.set(xe.player_id,xe),B.push(xe)}),B),[])},updatePlayerSeasons(E,{teamClass:j=0,seasons:B={}}){E.playerSeasons[j]=B},updatePlayer(E,j){E.player=j},updateCurrentTeamPlayers(E,j){E.currentTeamPlayers=j},updatePlayerTeamClass(E,j){E.playerTeamClass=j},updateTeamForPlayersView(E,j){E.lastTeamForPlayersView=j},updateTeamNameForPlayersView(E,j){E.lastTeamNameForPlayersView=j},updatePlayersForPlayersView(E,j){E.lastPlayersForPlayersView=j},updateLastSeasonForSeasonPlayers(E,j){E.lastSeasonForSeasonPlayers=j}},actions:{cleanData({commit:E}){E("playersPossession/updatePlaysStack",[],{root:!0})},async checkState({commit:E,dispatch:j,rootGetters:B},{seasonId:ie,playerId:xe}){try{E("updatePlayerTeamClass",null),E("updatePlayer",{player_id:xe}),E("filterGeneral/setSeasonId",ie||B["loginGeneral/seasonId"],{root:!0});const L=[uS({seasonId:ie||B["loginGeneral/seasonId"],playerId:xe})];await j("fillStatisticData",{teamClass:0,promises:L})}catch(L){throw new Error(L)}},async checkStateSummary({commit:E,dispatch:j},{seasonNumber:B,playerId:ie}){try{E("updatePlayerTeamClass",null),E("updatePlayer",{player_id:ie});const xe=[uS({seasonId:B,playerId:ie})];await j("fillStatisticDataSummary",{teamClass:0,promises:xe})}catch(xe){throw new Error(xe)}},async fillStatisticDataSummary({dispatch:E,commit:j,state:B,rootGetters:ie,rootState:xe},L={teamClass:0,promises:[void 0]}){try{B.loadCount+=1,L.promises.push(E("getPlayersBySeason",!0)),L.promises.push(E("teamsGeneral/getTeamsBySeasonForAnalysis",!0,{root:!0})),L.promises.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),L.promises.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),L.promises.push(pS({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id})),L.promises.push(q_({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id}));const[M,e,w,b,r,{data:{data_combination:_}},{data:{data:{posession:v,offensive:l,defensive:i}}}]=await Promise.all(L.promises),t=b.games||[];if(M&&j("updatePlayer",M),w){const a=w.reduce((o,s)=>(o.set(s.team_id,s),o),new Map);xe.teamsGeneral.seasonTeams.length===0&&j("teamsGeneral/updateTeams",w,{root:!0}),j("filterGeneral/setSeasonTeamsMap",a,{root:!0}),j("teamsGeneral/updateTeamsForAnalysis",w,{root:!0})}if(t){const a=t.reduce((o,s)=>(s.seasonType=b.season_type||0,s.dateTimeMillis=new Date(s.date_time_utc).valueOf(),o.set(s.game_id,s),o),new Map);j("filterGeneral/setSeasonGamesMap",a,{root:!0}),j("gamesGeneral/updateSeasonGames",t,{root:!0})}j("leagueGeneral/updateSeasonPlays",r,{root:!0});const n=F_(_,N2());j("playersOffensive/updateGoalPlaysStack",n.offensive,{root:!0}),j("playersDefensive/updateGoalPlaysStack",n.defensive,{root:!0}),j("playersPossession/updatePlaysStack",v,{root:!0}),j("playersOffensive/updatePlaysStack",l,{root:!0}),j("playersDefensive/updatePlaysStack",i,{root:!0}),j("setIsSectionLoading",!1,{root:!0})}catch(M){return Promise.reject(M)}},async fillStatisticData({dispatch:E,commit:j,state:B,rootGetters:ie,rootState:xe},L={teamClass:0,promises:[void 0]}){try{B.loadCount+=1,L.promises.push(E("getPlayersBySeason",!0)),L.promises.push(E("teamsGeneral/getTeamsBySeasonForAnalysis",!0,{root:!0})),L.promises.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),L.promises.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),L.promises.push(pS({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id})),L.promises.push(q_({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id}));const[M,e,w,b,r,{data:{data_combination:_}},{data:{data:{posession:v,offensive:l,defensive:i}}}]=await Promise.all(L.promises),t=b.games||[];if(M){const a=td(),o=[...v,...l,...i],s=pOe.get(M.position_id),c=o.filter(f=>s.ids.has(f[a.categoryId])).reduce((f,d)=>(f.add(d[0]),f),new Set);M.mainCategoryData={name:s.name,total:c?c.size:0,ids:Array.from(s.ids.values())},M.seasons=Object.entries(M.seasons).reduce((f,[d,T])=>(T.show_videos&&(f[d]=T),f),{}),M.national_seasons=Object.entries(M.national_seasons).reduce((f,[d,T])=>(T.show_videos&&(f[d]=T),f),{}),M.hasPlayerClubSeasons=!!Object.keys(M.seasons).length,j("filterGeneral/setHasPlayerClubSeasons",M.hasPlayerClubSeasons,{root:!0}),j("filterGeneral/setHasPlayerNationalTeam",!!M.is_national_team,{root:!0}),j("filterGeneral/setIsPlayerNationalTeam",!1,{root:!0}),j("filterGeneral/setTeamId",M.team_id,{root:!0}),j("updatePlayerSeasons",{teamClass:0,seasons:fS({...M.seasons})}),j("updatePlayerSeasons",{teamClass:1,seasons:fS({...M.national_seasons})});const u=w.find(f=>f.team_id===M.team_id);if(u&&(M.teamName=u.colloquial_name||u.team_name),j("updatePlayer",M),!B.player.hasPlayerClubSeasons)L.teamClass=1,j("filterGeneral/setIsPlayerNationalTeam",!0,{root:!0});else{const f=window.localStorage.getItem("seasonSelected");Object.keys(M.seasons).includes(f)?L.teamClass=0:Object.keys(M.national_seasons).includes(f)&&(L.teamClass=1,j("filterGeneral/setIsPlayerNationalTeam",!0,{root:!0}))}B.playerTeamClass!==L.teamClass&&j("updatePlayerTeamClass",L.teamClass),await E("filterGeneral/updateSeasons",{seasons:B.playerSeasons[L.teamClass]},{root:!0})}if(e&&j("updateSeasonPlayers",e),w){const a=w.reduce((o,s)=>(o.set(s.team_id,s),o),new Map);xe.teamsGeneral.seasonTeams.length===0&&j("teamsGeneral/updateTeams",w,{root:!0}),j("filterGeneral/setSeasonTeamsMap",a,{root:!0}),j("teamsGeneral/updateTeamsForAnalysis",w,{root:!0})}if(t){const a=[],o=t.reduce((s,c)=>(c.seasonType=b.season_type||0,c.dateTimeMillis=new Date(c.date_time_utc).valueOf(),(c.home_team===M.team_id||c.visiting_team===M.team_id)&&a.push(c),s.set(c.game_id,c),s),new Map);j("filterGeneral/setSeasonGamesMap",o,{root:!0}),j("gamesGeneral/updateSeasonGames",t,{root:!0}),j("setPlayerGames",a)}j("leagueGeneral/updateSeasonPlays",r,{root:!0});const n=F_(_,N2());j("playersOffensive/updateGoalPlaysStack",n.offensive,{root:!0}),j("playersDefensive/updateGoalPlaysStack",n.defensive,{root:!0}),j("playersPossession/updatePlaysStack",v,{root:!0}),j("playersOffensive/updatePlaysStack",l,{root:!0}),j("playersDefensive/updatePlaysStack",i,{root:!0})}catch(M){return Promise.reject(M)}},async getPlayerStatisticsBySeason(E,j){try{const B=await q_(j);E.commit("playersPossession/updatePlaysStack",B.data.data.posession,{root:!0}),E.commit("playersOffensive/updatePlaysStack",B.data.data.offensive,{root:!0}),E.commit("playersDefensive/updatePlaysStack",B.data.data.defensive,{root:!0})}catch(B){return Promise.reject(B)}},async getPlayerInfo({commit:E},j){try{const B=await uOe(j);E("updatePlayer",B)}catch(B){return Promise.reject(B)}},async getPlayersBySeasonAndTeam({commit:E},{teamId:j,showLoading:B}){try{let ie=window.localStorage.getItem("seasonSelected");return ie&&(ie=Number(ie)),(await dS({seasonId:ie,teamId:j})).data[0].players}catch(ie){return Promise.reject(ie)}},async getPlayersBySeason({commit:E,rootGetters:j},B=!1){try{const ie=j["filterGeneral/getSeasonId"];E("updateLastSeasonForSeasonPlayers",ie);const{data:xe}=await dS({seasonId:ie});if(B)return xe;E("updateSeasonPlayers",xe)}catch(ie){return Promise.reject(ie)}},async getPlayersForPlayersView({dispatch:E,commit:j},{teamId:B,name:ie}){j("updatePlayersForPlayersView",[]);const xe=await E("getPlayersBySeasonAndTeam",{teamId:B,showLoading:!0});j("updatePlayersForPlayersView",xe),j("updateTeamForPlayersView",B),j("updateTeamNameForPlayersView",ie)}},getters:{gamesPlayed(E){return E.playerGames.reduce((j,B)=>(B.game_status===1&&j.push({...B,playingAs:B.home_team===E.player.team_id?1:2}),j),[])},player(E){return E.player},lastTeamPlayersView(E){return E.lastTeamForPlayersView},lastTeamNamePlayersView(E){return E.lastTeamNameForPlayersView},playerId(){return W_.player.player_id},teamId(){return W_.player.team_id},seasonPlayers(E){return E.seasonPlayers},getPlaysGoal(E,j,B){const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.playsGoal.filter(e=>e[2]===2002&&e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))},getPlays:(E,j,B)=>{const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.plays.filter(e=>e[2]===2002&&e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))}}},L2=0,ph=.25,fh=.5,hh=.75,P2=1,R2=0,mh=.2789115646258504,pf=.5,gh=.7210884353741496,z2=1,xg=[[L2,R2,ph,mh],[ph,R2,fh,mh],[fh,R2,hh,mh],[hh,R2,P2,mh],[L2,mh,ph,pf],[ph,mh,fh,pf],[fh,mh,hh,pf],[hh,mh,P2,pf],[L2,pf,ph,gh],[ph,pf,fh,gh],[fh,pf,hh,gh],[hh,pf,P2,gh],[L2,gh,ph,z2],[ph,gh,fh,z2],[fh,gh,hh,z2],[hh,gh,P2,z2]],hOe=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]];function mOe(){const E=[];for(let j=0;j<16;j++)E.push(0);return E}function K_(E,j){let B=0;for(let ie=j>pf?8:0;ie<xg.length;ie++)if(E>=xg[ie][0]&&E<=xg[ie][2]&&j>=xg[ie][1]&&j<=xg[ie][3]){B=ie;break}return B}function gOe(E){const j=[];for(;E.length;)j.push(E.splice(0,4));return j}function hS(E,j,B,ie,xe){if(!E||E.length===0)return yOe(Object.values(B));const L={};for(const[M,e]of Object.entries(B))L[M]={name:e.name,fieldCount:mOe(),position:e.position,isNegative:e.isNegative,categoryIds:e.categoryIds,coordinatePoint:B[M].coordinatePoint,generalName:e.generalName,singleName:e.singleName};for(const M of E)if(xe?xe===M[ie.teamId]&&j.includes(M[ie.section]):j.includes(M[ie.section]))for(const e of Object.keys(B))B[e].categoryIds.includes(M[ie.categoryId])&&L[e].fieldCount[K_(M[ie[`coordinate${B[e].coordinatePoint}X`]],M[ie[`coordinate${B[e].coordinatePoint}Y`]])]++;return Object.values(L).reduce((M,{name:e,fieldCount:w,isNegative:b,categoryIds:r,coordinatePoint:_,generalName:v,singleName:l})=>(M.push({name:e,data:gOe(w),isNegative:b,categoryIds:r,coordinatePoint:_,generalName:v,singleName:l}),M),[])}function yOe(E){return E.map(j=>({name:j.name,data:hOe,isNegative:!1}))}class yh{constructor(j,B,ie,xe,L){Cc(this,"leagueAvg",0);Cc(this,"totalAccumulated",0);Cc(this,"period1",0);Cc(this,"period2",0);Cc(this,"period3",0);Cc(this,"period4",0);Cc(this,"period5",0);Cc(this,"period6",0);Cc(this,"items",null);Cc(this,"generalName","");this.category=j,this.categoryIds=B,this.translationKey=ie,xe&&this.createItems(xe),this.generalName=L}createItems(j){this.items=[];for(let B of j)this.items.push(new yh(B.category,B.categoryIds,B.translationKey,B.items,B.generalName))}addAvgPlay(j,B,ie,xe,L){if(this.categoryIds){if(this.categoryIds.includes(j[ie.categoryId])&&B.includes(j[ie.section]))return L&&(L.leagueAvg+=j[ie.total]/xe),this.leagueAvg+=j[ie.total]/xe,!0}else if(this.items){for(let M of this.items)if(M.addAvgPlay(j,B,ie,xe,this))return!0}}addPlay(j,B,ie,xe){if(this.categoryIds){if(this.categoryIds.includes(j[ie.categoryId]))return xe&&xe[`period${j[ie.section]}`]++,this[`period${j[ie.section]}`]++,(!B||B.includes(j[ie.section]))&&(xe&&xe.totalAccumulated++,this.totalAccumulated++),!0}else if(this.items){for(let L of this.items)if(L.addPlay(j,B,ie,this))return!0}}}const mS=[{category:"PASES ACERTADOS",categoryIds:null,translationKey:"table.possession.player.successful_passes",items:[{category:"P. ACERTADOS 1/4",categoryIds:[213],translationKey:"table.possession.player.successful_passes_1/4"},{category:"P. ACERTADOS 2/4",categoryIds:[214],translationKey:"table.possession.player.successful_passes_2/4"},{category:"P. ACERTADOS 3/4",categoryIds:[215],translationKey:"table.possession.player.successful_passes_3/4"},{category:"P. ACERTADOS 4/4",categoryIds:[216],translationKey:"table.possession.player.successful_passes_4/4"}]},{category:"PASES FILTRADOS",categoryIds:[217],translationKey:"table.possession.player.through_passes"},{category:"PASES NO ACERTADOS",categoryIds:null,translationKey:"table.possession.player.unsuccessful_passes",items:[{category:"P. NO ACERTADOS 1/4",categoryIds:[218],translationKey:"table.possession.player.unsuccessful_passes_1/4"},{category:"P. NO ACERTADOS 2/4",categoryIds:[219],translationKey:"table.possession.player.unsuccessful_passes_2/4"},{category:"P. NO ACERTADOS 3/4",categoryIds:[220],translationKey:"table.possession.player.unsuccessful_passes_3/4"},{category:"P. NO ACERTADOS 4/4",categoryIds:[221],translationKey:"table.possession.player.unsuccessful_passes_4/4"}]},{category:"BALONES RECUPERADOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.player.ball_recovered_in_challenge",items:[{category:"B.R.E.D CANCHA PROPIA",categoryIds:[485,486],translationKey:"table.possession.player.b_r_i_c_own_half"},{category:"B.R.E.D CANCHA RIVAL",categoryIds:[487,488],translationKey:"table.possession.player.b_r_i_c_opponents_half"}]},{category:"BALONES RECUPERADOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.player.ball_recovered_without_challenge",items:[{category:"B.R.S.D CANCHA PROPIA",categoryIds:[489,490],translationKey:"table.possession.player.b_r_w_c_own_half"},{category:"B.R.S.D CANCHA RIVAL",categoryIds:[491,492],translationKey:"table.possession.player.b_r_w_c_opponents_half"}]},{category:"BALONES PERDIDOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.player.balls_lost_in_challenge",items:[{category:"B.P.E.D. CANCHA PROPIA",categoryIds:[496,497],translationKey:"table.possession.player.b_l_i_c_own_half"},{category:"B.P.E.D. CANCHA RIVAL",categoryIds:[498,499],translationKey:"table.possession.player.b_l_i_c_opponents_half"}]},{category:"BALONES PERDIDOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.player.balls_lost_without_challenge",items:[{category:"B.P.S.D. CANCHA PROPIA",categoryIds:[500,501],translationKey:"table.possession.player.b_l_w_c_own_half"},{category:"B.P.S.D. CANCHA RIVAL",categoryIds:[502,503],translationKey:"table.possession.player.b_l_w_c_opponents_half"}]}],gS=[{category:"GOLES",categoryIds:null,translationKey:"table.offensive.player.goals",items:[{category:"GOLES PIE DENTRO DEL ÁREA",categoryIds:[57],translationKey:"table.offensive.player.goals_foot_inside_penalty"},{category:"GOLES PIE FUERA DEL ÁREA",categoryIds:[326],translationKey:"table.offensive.player.goals_foot_outside_penalty"},{category:"GOLES CABEZA",categoryIds:[56],translationKey:"table.offensive.player.header_goals"},{category:"GOLES TIRO LIBRE",categoryIds:[60],translationKey:"table.offensive.player.free_kick_goals"},{category:"GOLES PENAL",categoryIds:[59],translationKey:"table.offensive.player.penalty_goals"}]},{category:"TIROS A GOL (ORIGEN)",categoryIds:null,translationKey:"table.offensive.player.shots_on_goal_from",items:[{category:"DENTRO DEL ÁREA",categoryIds:[514,516],translationKey:"table.offensive.player.inside_the_box",generalName:"Tiros a gol dentro del área"},{category:"FUERA DEL ÁREA",categoryIds:[513,515],translationKey:"table.offensive.player.outside_the_box",generalName:"Tiros a gol fuera del área"}]},{category:"TIROS A GOL (DESTINO)",categoryIds:null,translationKey:"table.offensive.player.shots_on_goal_to",items:[{category:"CON DESTINO A PORTERÍA",categoryIds:[537,540,544,547],translationKey:"table.offensive.player.shots_on_goal",generalName:"Tiros a gol con destino a portería"},{category:"SIN DESTINO A PORTERÍA",categoryIds:[538,541,545,548],translationKey:"table.offensive.player.not_to_destiny",generalName:"Tiros a gol sin destino a portería"},{category:"BLOQUEADOS",categoryIds:[539,542,546,549],translationKey:"table.offensive.player.blocked",generalName:"Tiros a gol bloqueados"}]},{category:"CENTROS POR IZQUIERDA",categoryIds:null,translationKey:"table.offensive.player.centers_from_left",items:[{category:"C.P.I. ACERTADOS",categoryIds:[98,101,104,105],translationKey:"table.offensive.player.successful_c_f_l_s"},{category:"C.P.I. NO ACERTADOS",categoryIds:[106,107,108],translationKey:"table.offensive.player.unsuccessful_c_f_l_s"}]},{category:"CENTROS POR DERECHA",categoryIds:null,translationKey:"table.offensive.player.centers_from_right",items:[{category:"C.P.D. ACERTADOS",categoryIds:[109,112,115,116],translationKey:"table.offensive.player.successful_c_f_r_s"},{category:"C.P.D. NO ACERTADOS",categoryIds:[117,118,119],translationKey:"table.offensive.player.unsuccessful_c_f_r_s"}]},{category:"BALONES GANADOS EN ÁREA RIVAL",categoryIds:[11],translationKey:"table.offensive.player.balls_won_opponents_penalty"}],yS=[{category:"BALONES RECUPERADOS CANCHA RIVAL",categoryIds:null,translationKey:"table.defensive.player.balls_recovered_opponents_half",items:[{category:"B.R.C.R. EN DISPUTA",categoryIds:[487,488],translationKey:"table.defensive.player.b_r_o_h_in_challenge"},{category:"B.R.C.R. SIN DISPUTA",categoryIds:[491,492],translationKey:"table.defensive.player.b_r_o_h_without_challenge"}]},{category:"BALONES RECUPERADOS CANCHA PROPIA",categoryIds:null,translationKey:"table.defensive.player.balls_recovered_own_half",items:[{category:"B.R.C.P. EN DISPUTA",categoryIds:[485,486],translationKey:"table.defensive.player.b_r_own_h_in_challenge"},{category:"B.R.C.P. SIN DISPUTA",categoryIds:[489,490],translationKey:"table.defensive.player.b_r_own_h_without_challenge"}]},{category:"BALONES GANADOS EN ÁREA PROPIA",categoryIds:[23],items:null,translationKey:"table.defensive.player.balls_won_own_penalty_box"},{category:"1 VS 1 EXITOSOS",categoryIds:null,translationKey:"table.defensive.player.successful_1_on_1",items:[{category:"OFENSIVOS",categoryIds:[4],translationKey:"table.defensive.player.attacking",generalName:"1 vs 1 exitoso Ofensivo"},{category:"DEFENSIVOS",categoryIds:[5],translationKey:"table.defensive.player.defensive",generalName:"1 vs 1 exitoso Defensivo"}]},{category:"BARRIDAS",categoryIds:null,translationKey:"table.defensive.player.slide_tackles",items:[{category:"CON POSESIÓN",categoryIds:[521],translationKey:"table.defensive.player.with_possession",generalName:"Barridas con posesión"},{category:"SIN POSESIÓN",categoryIds:[522],translationKey:"table.defensive.player.without_possession",generalName:"Barridas sin posesión"},{category:"PROVOCA FALTA",categoryIds:[543],translationKey:"table.defensive.player.with_foul_committed",generalName:"Barridas que provocan falta"}]},{category:"CENTROS PERMITIDOS",categoryIds:[517],items:null,translationKey:"table.defensive.player.allow_crosses"},{category:"RECHACES",categoryIds:[34],items:null,translationKey:"table.defensive.player.clearances"}];function vOe(){return mS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function xOe(){return gS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function bOe(){return yS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}(function(){let E=[];return E=E.concat(rf(mS)),E=E.concat(rf(gS)),E=E.concat(rf(yS)),E})();const vS=[{category:"JUEGO DE PIES",categoryIds:null,translationKey:"table.possession.goalkeeper.footwork",items:[{category:"PASE LARGO ACERTADO",categoryIds:[310],translationKey:"table.possession.goalkeeper.successful_long_pass"},{category:"PASE LARGO NO ACERTADO",categoryIds:[311],translationKey:"table.possession.goalkeeper.unsuccessful_long_pass"},{category:"PASE CORTO ACERTADO",categoryIds:[308],translationKey:"table.possession.goalkeeper.successful_short_pass"},{category:"PASE CORTO NO ACERTADO",categoryIds:[309],translationKey:"table.possession.goalkeeper.unsuccessful_short_pass"}]},{category:"DESPEJES DE MANO",categoryIds:null,translationKey:"table.possession.goalkeeper.throw",items:[{category:"D.M. ACERTADOS",categoryIds:[304],translationKey:"table.possession.goalkeeper.successful_throw"},{category:"D.M. NO ACERTADOS",categoryIds:[305],translationKey:"table.possession.goalkeeper.unsuccessful_throw"}]},{category:"DESPEJES DE PIE",categoryIds:null,translationKey:"table.possession.goalkeeper.punt",items:[{category:"D.P. ACERTADOS",categoryIds:[306],translationKey:"table.possession.goalkeeper.successful_punt"},{category:"D.P. NO ACERTADOS",categoryIds:[307],translationKey:"table.possession.goalkeeper.unsuccessful_punt"}]},{category:"PARTICIPACIÓN EN GOL",categoryIds:[323],items:null,translationKey:"table.possession.goalkeeper.participation_in_goals"}],xS=[{category:"JUEGO DE PIES",categoryIds:null,translationKey:"table.offensive.goalkeeper.footwork",items:[{category:"PASE LARGO ACERTADO",categoryIds:[310],translationKey:"table.offensive.goalkeeper.successful_long_pass"},{category:"PASE LARGO NO ACERTADO",categoryIds:[311],translationKey:"table.offensive.goalkeeper.unsuccessful_long_pass"},{category:"PASE CORTO ACERTADO",categoryIds:[308],translationKey:"table.offensive.goalkeeper.successful_short_pass"},{category:"PASE CORTO NO ACERTADO",categoryIds:[309],translationKey:"table.offensive.goalkeeper.unsuccessful_short_pass"}]},{category:"DESPEJES DE MANO",categoryIds:null,translationKey:"table.offensive.goalkeeper.throw",items:[{category:"D.M. ACERTADOS",categoryIds:[304],translationKey:"table.offensive.goalkeeper.successful_throw"},{category:"D.M. NO ACERTADOS",categoryIds:[305],translationKey:"table.offensive.goalkeeper.unsuccessful_throw"}]},{category:"DESPEJES DE PIE",categoryIds:null,translationKey:"table.offensive.goalkeeper.punt",items:[{category:"D.P. ACERTADOS",categoryIds:[306],translationKey:"table.offensive.goalkeeper.successful_punt"},{category:"D.P. NO ACERTADOS",categoryIds:[307],translationKey:"table.offensive.goalkeeper.unsuccessful_punt"}]},{category:"PARTICIPACION EN GOL",categoryIds:[323],items:null,translationKey:"table.offensive.goalkeeper.participation_in_goals"}],bS=[{category:"GOLES RECIBIDOS",categoryIds:[40],items:null,translationKey:"table.defensive.goalkeeper.goals_received"},{category:"ATAJADAS",categoryIds:null,translationKey:"table.defensive.goalkeeper.saves",items:[{category:"SE QUEDA CON EL BALON",categoryIds:[300],translationKey:"table.defensive.goalkeeper.goalkeeper_handled",generalName:"Atajadas que se queda con el balón"},{category:"NO SE QUEDA CON EL BALON",categoryIds:[301],translationKey:"table.defensive.goalkeeper.goalkeeper_un-handled",generalName:"Atajadas que no se queda con el balón"}]},{category:"JUEGO AÉREO",categoryIds:null,translationKey:"table.defensive.goalkeeper.aerial_game",items:[{category:"EXITOSO, SE QUEDA CON EL BALÓN",categoryIds:[313],translationKey:"table.defensive.goalkeeper.successful_handled",generalName:"Juego aéreo exitoso que se queda con el balón"},{category:"EXITOSO, NO SE QUEDA CON EL BALÓN",categoryIds:[314],translationKey:"table.defensive.goalkeeper.successful_un-handled",generalName:"Juego aéreo exitoso que no se queda con el balón"}]},{category:"1 VS 1",categoryIds:[41],items:null,translationKey:"table.defensive.goalkeeper.1_on_1"},{category:"BALONES RECUPERADOS",categoryIds:[312],items:null,translationKey:"table.defensive.goalkeeper.recovered_balls"}];function _Oe(){return vS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function wOe(){return xS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function TOe(){return bS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}(function(){let E=[];return E=E.concat(rf(vS)),E=E.concat(rf(xS)),E=E.concat(rf(bS)),E})();function G_(E,j,B,ie,xe,L){let M=null;if(j)switch(E){case 2:M=wOe();break;case 3:M=TOe();break;default:M=_Oe()}else switch(E){case 2:M=xOe();break;case 3:M=bOe();break;default:M=vOe()}return g5(M,B,ie,xe,L,td(),B_())}const _S={successfulPasses:{name:"statistic_fields.player_and_team.successful_passes",categoryIds:[2,20],position:1,coordinatePoint:3,isNegative:!1,generalName:"Pases acertados",singleName:"Pase acertado"},unsuccessfulPasses:{name:"statistic_fields.player_and_team.unsuccessful_passes",categoryIds:[3,21],position:2,coordinatePoint:3,isNegative:!0,generalName:"Pases no acertados",singleName:"Pase no acertado"},recoveredBalls:{name:"statistic_fields.player_and_team.balls_recovered",categoryIds:[482],position:3,coordinatePoint:1,isNegative:!1,generalName:"Balones recuperados",singleName:"Balón recuperado"},lostBalls:{name:"statistic_fields.player_and_team.balls_lost",categoryIds:[493],position:4,coordinatePoint:3,isNegative:!0,generalName:"Balones perdidos",singleName:"Balón perdido"}},kOe={successfulFistFootClearance:{name:"statistic_fields.goalkeeper.successful_punt_throw",categoryIds:[304,306],position:1,coordinatePoint:3,isNegative:!1,generalName:"Despejes mano/pie acertados",singleName:"Despeje mano/pie acertado"},unsuccessfulFistFootClearance:{name:"statistic_fields.goalkeeper.unsuccessful_punt_throw",categoryIds:[305,307],position:2,coordinatePoint:3,isNegative:!0,generalName:"Despejes mano/pie no acertados",singleName:"Despeje mano/pie no acertado"},successfulFootPlay:{name:"statistic_fields.goalkeeper.successful_footwork",categoryIds:[310,308],position:3,coordinatePoint:3,isNegative:!1,generalName:"Juego de pie acertados",singleName:"Juego de pie acertado"},unsuccessfulFootPlay:{name:"statistic_fields.goalkeeper.unsuccessful_footwork",categoryIds:[311,309],position:4,coordinatePoint:3,isNegative:!0,generalName:"Juego de pie no acertados",singleName:"Juego de pie no acertado"}},SOe=new Set([2,20,308,310]),COe=new Set([3,21,309]),EOe=new Set([213,214,215,216]),MOe=new Set([...SOe,...COe,...EOe]),r0=td(),wS={width:68,height:105},AOe=new Map([[4,16],[3,15],[2,14],[1,13],[8,12],[7,11],[6,10],[5,9],[12,8],[11,7],[10,6],[9,5],[16,4],[15,3],[14,2],[13,1]]);function OOe(E){return AOe.get(E)}const NOe={namespaced:!0,state:{basePlaysStack:[],lastFilterValues:null},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j.map(B=>{if(MOe.has(B[r0.categoryId])){const ie=Math.abs(B[r0.coordinate3X]-B[r0.coordinate2X]),xe=Math.abs(B[r0.coordinate3Y]-B[r0.coordinate2Y]),L=ie*wS.width,M=xe*wS.height,e=Math.sqrt(Math.pow(L,2)+Math.pow(M,2)),w=OOe(K_(B[r0.coordinate2X],B[r0.coordinate2Y])+1);B.push(e),B.push(w)}return B})}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},fieldStatistics(E,j,B,ie){return hS(j.filteredPlaysStack,ie["filterGeneral/getSections"],ie["playersGeneral/player"].position_id===1?kOe:_S,td())},tableData(E,j,B,ie){return ie["playersGeneral/player"].position_id?G_(1,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"]):[]},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}};function V2(E,j,B,ie,xe,L){return E.filter(M=>(!j||j===M[L.playingAs])&&B.includes(M[L.matchResult])&&ie.includes(M[L.section])&&xe.includes(M[L.gameId]))}function I2(E,j,B){return j.length===6?E:E.filter(ie=>j.includes(ie[B.section]))}function F2(E,j){return j.map(B=>{let ie=E.find(L=>L.team_id===B.home_team),xe=E.find(L=>L.team_id===B.visiting_team);if(ie&&xe)return{gameId:B.game_id,title:`${ie.team_name} VS ${xe.team_name}`,homeTeamId:B.home_team,homeTeamName:ie.team_name,homeTeamLogo:ie.logo,visitingTeamId:B.visiting_team,visitingTeamName:xe.team_name,visitingTeamLogo:xe.logo}})}const LOe={playersGeneral:fOe,playersPossession:NOe,playersOffensive:{namespaced:!0,state:{basePlaysStack:[],goalPlaysStack:[]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){return G_(2,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"])},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],td())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],N2())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}},playersDefensive:{namespaced:!0,state:{basePlaysStack:[],goalPlaysStack:[]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){return G_(3,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"])},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],td())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],N2())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}}};class bg{constructor(j,B,ie,xe,L,M){Cc(this,"leagueAvg",0);Cc(this,"totalAccumulated",0);Cc(this,"period1",0);Cc(this,"period2",0);Cc(this,"period3",0);Cc(this,"period4",0);Cc(this,"period5",0);Cc(this,"period6",0);Cc(this,"items",null);Cc(this,"generalName","");this.category=j,this.categoryIds=B,this.rCategoryIds=ie,this.translationKey=xe,L&&this.createItems(L),this.generalName=M}createItems(j){this.items=[];for(let B of j)this.items.push(new bg(B.category,B.categoryIds,B.rCategoryIds,B.translationKey,B.items,B.generalName))}addAvgPlay(j,B,ie,xe,L){if(this.categoryIds||this.rCategoryIds){if(B.includes(j[ie.section])&&(this.categoryIds&&this.categoryIds.includes(j[ie.categoryId])||this.rCategoryIds&&this.rCategoryIds.includes(j[ie.categoryId])))return L&&(L.leagueAvg+=j[ie.total]/xe),this.leagueAvg+=j[ie.total]/xe,!0}else if(this.items){for(let M of this.items)if(M.addAvgPlay(j,B,ie,xe,this))return!0}}addPlay(j,B,ie,xe,L){if(this.categoryIds||this.rCategoryIds){if(this.categoryIds&&this.categoryIds.includes(j[ie.categoryId])&&xe===j[ie.teamId]||this.rCategoryIds&&xe!==j[ie.teamId]&&this.rCategoryIds.includes(j[ie.categoryId]))return L&&L[`period${j[ie.section]}`]++,this[`period${j[ie.section]}`]++,(!B||B.includes(j[ie.section]))&&(L&&L.totalAccumulated++,this.totalAccumulated++),!0}else if(this.items){for(let M of this.items)if(M.addPlay(j,B,ie,xe,this))return!0}}}const TS=[{category:"PASES ACERTADOS",categoryIds:null,translationKey:"table.possession.team.successful_passes",singleName:"Pase acertado",generalName:"Pases acertados",items:[{category:"PASES ACERTADOS EN 1/4",categoryIds:[213],translationKey:"table.possession.team.successful_passes_1/4",singleName:"Pase acertado en 1/4",generalName:"Pases acertados en 1/4"},{category:"PASES ACERTADOS EN 2/4",categoryIds:[214],translationKey:"table.possession.team.successful_passes_2/4",singleName:"Pase acertado en 2/4",generalName:"Pases acertados en 2/4"},{category:"PASES ACERTADOS EN 3/4",categoryIds:[215],translationKey:"table.possession.team.successful_passes_3/4",singleName:"Pase acertado en 3/4",generalName:"Pases acertados en 3/4"},{category:"PASES ACERTADOS EN 4/4",categoryIds:[216],translationKey:"table.possession.team.successful_passes_4/4",singleName:"Pase acertado en 4/4",generalName:"Pases acertados en 4/4"}]},{category:"PASES FILTRADOS",categoryIds:[217],translationKey:"table.possession.team.through_passes",singleName:"Pase filtrado",generalName:"Pases filtrados"},{category:"PASES NO ACERTADOS",categoryIds:null,translationKey:"table.possession.team.unsuccessful_passes",generalName:"Pases no acertados",singleName:"Pase no acertado",items:[{category:"PASES NO ACERTADOS EN 1/4",categoryIds:[218],translationKey:"table.possession.team.unsuccessful_passes_1/4",generalName:"Pases no acertados en 1/4",singleName:"Pase no acertado en 1/4"},{category:"PASES NO ACERTADOS EN 2/4",categoryIds:[219],translationKey:"table.possession.team.unsuccessful_passes_2/4",generalName:"Pases no acertados en 2/4",singleName:"Pase no acertado en 2/4"},{category:"PASES NO ACERTADOS EN 3/4",categoryIds:[220],translationKey:"table.possession.team.unsuccessful_passes_3/4",generalName:"Pases no acertados en 3/4",singleName:"Pase no acertado en 3/4"},{category:"PASES NO ACERTADOS EN 4/4",categoryIds:[221],translationKey:"table.possession.team.unsuccessful_passes_4/4",generalName:"Pases no acertados en 4/4",singleName:"Pase no acertado en 4/4"}]},{category:"BALONES RECUPERADOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.team.ball_recovered_in_challenge",generalName:"Balones recuperados en disputa",singleName:"Balón recuperado en disputa",items:[{category:"B.R.E.D CANCHA PROPIA",categoryIds:[485,486],translationKey:"table.possession.team.b_r_i_c_own_half",generalName:"B.R.E.D cancha propia",singleName:"B.R.E.D cancha propia"},{category:"B.R.E.D CANCHA RIVAL",categoryIds:[487,488],translationKey:"table.possession.team.b_r_i_c_opponents_half",generalName:"B.R.E.D cancha rival",singleName:"B.R.E.D cancha rival"}]},{category:"BALONES RECUPERADOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.team.ball_recovered_without_challenge",generalName:"Balones recuperados sin disputa",singleName:"Balon recuperado sin disputa",items:[{category:"B.R.S.D CANCHA PROPIA",categoryIds:[489,490],translationKey:"table.possession.team.b_r_w_c_own_half",generalName:"B.R.S.D cancha propia",singleName:"B.R.S.D cancha propia"},{category:"B.R.S.D CANCHA RIVAL",categoryIds:[491,492],translationKey:"table.possession.team.b_r_w_c_opponents_half",generalName:"B.R.S.D cancha rival",singleName:"B.R.S.D cancha rival"}]},{category:"BALONES PERDIDOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.team.balls_lost_in_challenge",generalName:"Balones perdidos en disputa",singleName:"Balon perdido en disputa",items:[{category:"B.P.E.D. CANCHA PROPIA",categoryIds:[496,497],translationKey:"table.possession.team.b_l_i_c_own_half",generalName:"B.P.E.D. cancha propia",singleName:"B.P.E.D. cancha propia"},{category:"B.P.E.D. CANCHA RIVAL",categoryIds:[498,499],translationKey:"table.possession.team.b_l_i_c_opponents_half",generalName:"B.P.E.D. cancha rival",singleName:"B.P.E.D. cancha rival"}]},{category:"BALONES PERDIDOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.team.balls_lost_without_challenge",generalName:"Balones perdidos sin disputa",singleName:"Balon perdido sin disputa",items:[{category:"B.P.S.D. CANCHA PROPIA",categoryIds:[500,501],translationKey:"table.possession.team.b_l_w_c_own_half",generalName:"B.P.S.D. cancha propia",singleName:"B.P.S.D. cancha propia"},{category:"B.P.S.D. CANCHA RIVAL",categoryIds:[502,503],translationKey:"table.possession.team.b_l_w_c_opponents_half",generalName:"B.P.S.D. cancha rival",singleName:"B.P.S.D. cancha rival"}]}],kS=[{category:"GOLES",categoryIds:null,translationKey:"table.offensive.team.goals",generalName:"Goles",singleName:"Gol",items:[{category:"GOLES PIE DENTRO DEL ÁREA",categoryIds:[57],translationKey:"table.offensive.team.goals_foot_inside_penalty",generalName:"Goles pie dentro del área",singleName:"Gol pie dentro del área"},{category:"GOLES PIE FUERA DEL ÁREA",categoryIds:[326],translationKey:"table.offensive.team.goals_foot_outside_penalty",generalName:"Goles pie fuera del área",singleName:"Gol pie fuera del área"},{category:"GOLES CABEZA",categoryIds:[56],translationKey:"table.offensive.team.header_goals",generalName:"Goles cabeza",singleName:"Gol cabeza"},{category:"GOLES TIRO LIBRE",categoryIds:[60],translationKey:"table.offensive.team.free_kick_goals",generalName:"Goles tiro libre",singleName:"Gol tiro libre"},{category:"GOLES PENAL",categoryIds:[59],translationKey:"table.offensive.team.penalty_goals",generalName:"Goles penal",singleName:"Gol penal"},{category:"GOLES DE PORTERO",categoryIds:[55],translationKey:"table.offensive.team.goalkeeper_goals",generalName:"Goles de portero",singleName:"Gol de portero"},{category:"AUTOGOLES",rCategoryIds:[35,54],translationKey:"table.offensive.team.opponents_own_goals",generalName:"Autogoles a favor",singleName:"Autogol"}]},{category:"TIROS A GOL (ORIGEN)",categoryIds:null,translationKey:"table.offensive.team.shots_on_goal_from",generalName:"Tiros a gol (origen)",singleName:"Tiro a gol (origen)",items:[{category:"DENTRO DEL ÁREA",categoryIds:[514,516],translationKey:"table.offensive.team.inside_the_box",generalName:"Tiros a gol dentro del área",singleName:"Tiro a gol dentro del área"},{category:"FUERA DEL ÁREA",categoryIds:[513,515],translationKey:"table.offensive.team.outside_the_box",generalName:"Tiros a gol fuera del área",singleName:"Tiro a gol fuera del área"}]},{category:"TIROS A GOL (DESTINO)",categoryIds:null,translationKey:"table.offensive.team.shots_on_goal_to",generalName:"Tiros a gol (destino)",singleName:"Tiro a gol (destino)",items:[{category:"CON DESTINO A PORTERÍA",generalName:"Tiros a gol con destino a portería",categoryIds:[537,540,544,547],translationKey:"table.offensive.team.shots_on_goal"},{category:"SIN DESTINO A PORTERÍA",generalName:"Tiros a gol sin destino a portería",categoryIds:[538,541,545,548],translationKey:"table.offensive.team.not_to_destiny"},{category:"BLOQUEADOS",generalName:"Tiros a gol bloqueados",categoryIds:[539,542,546,549],items:null,categoriesTypes:[2,3],translationKey:"table.offensive.team.blocked"}]},{category:"CENTROS POR IZQUIERDA",singleName:"Centro por izquierda",categoryIds:null,translationKey:"table.offensive.team.centers_from_left",items:[{category:"C.P.I. ACERTADOS",singleName:"C.P.I. acertado",categoryIds:[98,101,104,105],translationKey:"table.offensive.team.successful_c_f_l_s"},{category:"C.P.I. NO ACERTADOS",categoryIds:[106,107,108],translationKey:"table.offensive.team.unsuccessful_c_f_l_s"}]},{category:"CENTROS POR DERECHA",categoryIds:null,translationKey:"table.offensive.team.centers_from_right",items:[{category:"C.P.D. ACERTADOS",categoryIds:[109,112,115,116],translationKey:"table.offensive.team.successful_c_f_r_s"},{category:"C.P.D. NO ACERTADOS",categoryIds:[117,118,119],translationKey:"table.offensive.team.unsuccessful_c_f_r_s"}]},{category:"BALONES GANADOS EN ÁREA RIVAL",categoryIds:[11],translationKey:"table.offensive.team.balls_won_opponents_penalty"}],SS=[{category:"GOLES RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.goals_received",items:[{category:"GOLES PIE DENTRO DEL ÁREA",rCategoryIds:[57],translationKey:"table.defensive.team.goals_foot_inside_penalty"},{category:"GOLES PIE FUERA DEL ÁREA",rCategoryIds:[326],translationKey:"table.defensive.team.goals_foot_outside_penalty"},{category:"GOLES DE CABEZA",rCategoryIds:[56],translationKey:"table.defensive.team.header_goals"},{category:"GOLES DE TIRO LIBRE",rCategoryIds:[60],translationKey:"table.defensive.team.free_kick_goals"},{category:"GOLES DE PENAL",rCategoryIds:[59],translationKey:"table.defensive.team.penalty_goals"},{category:"GOLES DE PORTERO RECIBIDOS",rCategoryIds:[55],translationKey:"table.defensive.team.goalkeeper_goals"},{category:"AUTOGOLES",categoryIds:[35,54],translationKey:"table.defensive.team.opponents_own_goals"}]},{category:"TIROS A GOL RECIBIDOS (ORIGEN)",categoryIds:null,translationKey:"table.defensive.team.shots_on_goal_from",items:[{category:"DENTRO DEL ÁREA",generalName:"Tiros a gol recibidos dentro del área",rCategoryIds:[514,516],translationKey:"table.defensive.team.inside_the_box"},{category:"FUERA DEL ÁREA",generalName:"Tiros a gol recibidos fuera del área",rCategoryIds:[513,515],translationKey:"table.defensive.team.outside_the_box"}]},{category:"TIROS A GOL RECIBIDOS (DESTINO)",categoryIds:null,translationKey:"table.defensive.team.shots_on_goal_to",items:[{category:"CON DESTINO A PORTERÍA",rCategoryIds:[537,540,544,547],translationKey:"table.defensive.team.shot_on_goal",generalName:"Tiros a gol recibidos con destino a portería"},{category:"SIN DESTINO A PORTERÍA",rCategoryIds:[538,541,545,548],translationKey:"table.defensive.team.missed",generalName:"Tiros a gol recibidos sin destino a portería"},{category:"BLOQUEADOS",categoryIds:null,rCategoryIds:[539,542,546,549],translationKey:"table.defensive.team.blocked",generalName:"Tiros a gol recibidos bloqueados"}]},{category:"CENTROS POR IZQUIERDA RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.centers_left_side_received",items:[{category:"C.P.I.R. ACERTADOS",rCategoryIds:[109,112,115,116],translationKey:"table.defensive.team.successful_c_f_l_r"},{category:"C.P.I.R. NO ACERTADOS",rCategoryIds:[117,118,119],translationKey:"table.defensive.team.unsuccessful_c_f_l_r"}]},{category:"CENTROS POR DERECHA RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.centers_right_side_received",items:[{category:"C.P.D.R. ACERTADOS",rCategoryIds:[98,101,104,105],translationKey:"table.defensive.team.successful_c_f_r_r"},{category:"C.P.D.R. NO ACERTADOS",rCategoryIds:[106,107,108],translationKey:"table.defensive.team.unsuccessful_c_f_r_r"}]},{category:"BALONES RECUPERADOS CANCHA RIVAL",categoryIds:null,translationKey:"table.defensive.team.balls_recovered_opponents_half",items:[{category:"B.R.C.R. EN DISPUTA",categoryIds:[487,488],translationKey:"table.defensive.team.b_r_o_h_in_challenge"},{category:"B.R.C.R. SIN DISPUTA",categoryIds:[491,492],translationKey:"table.defensive.team.b_r_o_h_without_challenge"}]},{category:"BALONES RECUPERADOS CANCHA PROPIA",categoryIds:null,translationKey:"table.defensive.team.balls_recovered_own_half",items:[{category:"B.R.C.P. EN DISPUTA",categoryIds:[485,486],translationKey:"table.defensive.team.b_r_own_h_in_challenge"},{category:"B.R.C.P. SIN DISPUTA",categoryIds:[489,490],translationKey:"table.defensive.team.b_r_own_h_without_challenge"}]}];function POe(){return TS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}function ROe(){return kS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}function zOe(){return SS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}(function(){let E=[];return E=E.concat(rf(TS)),E=E.concat(rf(kS)),E=E.concat(rf(SS)),E})();function X_(E,j,B,ie,xe,L){let M=null;switch(E){case 2:M=ROe();break;case 3:M=zOe();break;default:M=POe()}return g5(M,j,B,ie,xe,fc(),B_(),L)}const VOe=[3,21],IOe=[2],FOe=[20];function UOe(E,j,B,ie){const xe=[0,0,0];let L=0,M=0;for(const e of E)L=e[ie.categoryId],M=e[ie.section],B===e[ie.teamId]&&j.includes(M)&&(IOe.includes(L)&&xe[0]++,FOe.includes(L)&&xe[1]++,VOe.includes(L)&&xe[2]++);return xe}const CS=[{id:1,category:"featured_players.possession.successful_passes",category_id:[2,20],singleName:"Pase acertado",generalName:"Pases acertados"},{id:2,category:"featured_players.possession.successful_passes_opponents_half",category_id:[20],singleName:"Pase acertado c. rival",generalName:"Pases acertados c. rival"},{id:3,category:"featured_players.possession.successful_passes_own_half",category_id:[2],singleName:"Pase acertado c. propia",generalName:"Pases acertados c. propia"},{id:4,category:"featured_players.possession.recovered_balls",category_id:[482],singleName:"Balón recuperado",generalName:"Balones recuperados"},{id:5,category:"featured_players.possession.balls_recovered_in_challenge",category_id:[485,486,489,490],singleName:"B. recuperado en disputa",generalName:"B. recuperados en disputa"}],ES=[{id:1,category:"featured_players.offensive.shots_on_goal",category_id:[510],singleName:"Tiro a gol",generalName:"Tiros a gol"},{id:2,category:"featured_players.offensive.centers_from_right",category_id:[25],singleName:"Centro por derecha",generalName:"Centros por derecha"},{id:3,category:"featured_players.offensive.centers_from_left",category_id:[13],singleName:"Centro por izquierda",generalName:"Centros por izquierda"},{id:4,category:"featured_players.offensive.successful_1_on_1",category_id:[4],singleName:"1 vs 1 exitoso ofensivo",generalName:"1 vs 1 exitosos ofensivos"},{id:5,category:"featured_players.offensive.balls_won_opponent_penalty_box",category_id:[11],singleName:"B. ganado en área rival",generalName:"B. ganados en área rival"}],MS=[{id:1,category:"featured_players.defensive.balls_recovered",category_id:[482],singleName:"Balón recuperado",generalName:"Balones recuperados"},{id:19,category:"featured_players.defensive.balls_recovered_opponents_half",category_id:[491,492,487,488],singleName:"B. recuperado C. rival",generalName:"B. recuperados C. rival"},{id:3,category:"featured_players.defensive.balls_won_own_penalty_box",category_id:[23],singleName:"B. ganado área propia",generalName:"B. ganados área propia"},{id:4,category:"featured_players.defensive.clearances",category_id:[34],singleName:"Rechace",generalName:"Rechaces"},{id:5,category:"featured_players.defensive.successful_1_on_1",category_id:[5],singleName:"1 vs 1 exitoso defensivo",generalName:"1 vs 1 exitosos defensivos"}];(function(){const E=[...CS,...ES,...MS];return E.forEach(j=>{j.categories=j.category_id}),E})();const BOe=new Set([2,20,308]),DOe=new Set([3,21,309]),qOe=new Set([...BOe,...DOe]),n0=fc(),AS={width:68,height:105},jOe=new Map([[4,16],[3,15],[2,14],[1,13],[8,12],[7,11],[6,10],[5,9],[12,8],[11,7],[10,6],[9,5],[16,4],[15,3],[14,2],[13,1]]),WOe={indexes:fc(),basePlaysStack:[],featuredPlayersCategories:CS};function KOe(E){return jOe.get(E)}const GOe={namespaced:!0,state:WOe,mutations:{updatePlaysStack(E,j){E.basePlaysStack=j.map(B=>{if(qOe.has(B[n0.categoryId])){const ie=Math.abs(B[n0.coordinate3X]-B[n0.coordinate2X]),xe=Math.abs(B[n0.coordinate3Y]-B[n0.coordinate2Y]),L=ie*AS.width,M=xe*AS.height,e=Math.sqrt(Math.pow(L,2)+Math.pow(M,2)),w=KOe(K_(B[n0.coordinate2X],B[n0.coordinate2Y])+1);B.push(e),B.push(w)}return B})}},getters:{getPlaysStack(E,j,B,ie){const xe=ie["filterGeneral/getSections"];return j.filteredPlaysStack.filter(L=>xe.includes(L[E.indexes.section]))},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},filteredPlaysStackRival(E,j,B,ie){return iOe(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},fieldStatisticsData(E,j,B,ie){return hS(j.filteredPlaysStack,ie["filterGeneral/getSections"],_S,fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},passesDonutData(E,j,B,ie){return UOe(j.filteredPlaysStack,ie["filterGeneral/getSections"],ie["teamsGeneral/team"].team_id,fc())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}};function OS(E,j,B,ie,xe){const L={};for(const[M,e]of Object.entries(B))L[M]={translationKey:e.translationKey,data:[0,0],categoryIds:e.categoryIds,singleName:e.singleName,generalName:e.generalName,colors:e.colors,teamId:xe};for(const M of E)if(j.includes(M[ie.section])){for(const e of Object.keys(B))if(XOe(B[e].categoryIds,M[ie.categoryId],M[ie.teamId],xe)){const w=M[ie.teamId]===xe?M[ie.playingAs]-1:Math.abs(M[ie.playingAs]-2);L[e].data[w]++}}return L}function XOe(E,j,B,ie){return E.find(xe=>{let L=0;if(typeof xe=="string"){if(B)return L=Number(xe.split("_").shift()),L===j&&B!==ie}else return xe===j&&B===ie;return!1})}const ZOe={goals:{categoryIds:[12,55,"35_r","54_r"],translationKey:"local_vs_away.offensive.goals",singleName:"Gol",generalName:"Goles",colors:["#cbee6b","#3865e4"]},goalShots:{categoryIds:[510],translationKey:"local_vs_away.offensive.shots_on_goal",singleName:"Tiro a gol",generalName:"Tiros a gol",colors:["#cbee6b","#3865e4"]},leftCenteringPass:{categoryIds:[13],translationKey:"local_vs_away.offensive.centers_from_left",singleName:"Centro por izquierda",generalName:"Centros por izquierda",colors:["#cbee6b","#3865e4"]},rightCenteringPass:{categoryIds:[25],translationKey:"local_vs_away.offensive.centers_from_right",singleName:"Centro por derecha",generalName:"Centros por derecha",colors:["#cbee6b","#3865e4"]}},HOe={recoveredBalls:{categoryIds:[483,484],translationKey:"local_vs_away.defensive.balls_recovered",singleName:"Balón recuperado",generalName:"Balones recuperados",colors:["#cbee6b","#3865e4"]},recoveredBallsRivalField:{categoryIds:[487,488,491,492],translationKey:"local_vs_away.defensive.balls_recovered_opponents_half",singleName:"Balón recuperado cancha rival",generalName:"Balones recuperados cancha rival",colors:["#cbee6b","#3865e4"]},airBallWonAtOwnArea:{categoryIds:[23],translationKey:"local_vs_away.defensive.balls_won_own_penalty_box",singleName:"Balón ganado área rival",generalName:"Balones ganados área rival",colors:["#cbee6b","#3865e4"]},rejections:{categoryIds:[34],translationKey:"local_vs_away.defensive.clearances",singleName:"Rechace",generalName:"Rechaces",colors:["#cbee6b","#3865e4"]}},JOe={namespaced:!0,state:{indexes:fc(),basePlaysStack:[],goalPlaysStack:[],categories:[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12],negative:!1},{name:"Tiros a gol",color:"#F2E82E",points:[1,2,3],categories:[540,547,537,544],negative:!1},{name:"Tiros a gol (portería)",color:"#8E17EF",points:[1,2,3],categories:[539,542,546,549]},{name:"Centros totales",color:"#FF8000",points:[1,2,3],categories:[109,112,115,116,104,105,98,101]},{name:"Centros acertados",color:"#068A8E",points:[1,2,3],categories:[106,107,108,117,118,119]},{name:"Aéreos en área rival",color:"#FB04C7",points:[1,2],categories:[40]},{name:"1vs1 exitosos ofensivos",color:"#606060",points:[1],categories:[4]},{name:"1vs1 no exitosos ofensivos",color:"green",points:[1],categories:[208]},{name:"Balones ganados en área rival",color:"cyan",points:[1,2,3],categories:[11]}],featuredPlayersCategories:ES,plays1:[[53010,183,2,1,1]]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getPlaysStack(E){return E.basePlaysStack},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(2,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},localVsVisitorData(E,j,B,ie){return OS(j.filteredPlaysStack,ie["filterGeneral/getSections"],ZOe,fc(),ie["teamsGeneral/team"].team_id)},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],fc())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],E2())}}},YOe={namespaced:!0,state:{indexes:fc(),basePlaysStack:[],goalPlaysStack:[],categories:[{name:"Goles recibidos",color:"#4A90E2",points:[1,2,3],categories:[12]},{name:"Tiros a gol recibidos",color:"#F2E82E",points:[1,2,3],categories:[10],negative:!0},{name:"Tiros a gol recibidos (portería)",color:"#8E17EF",points:[1,2,3],categories:[30]},{name:"Centros totales recibidos",color:"#FF8000",points:[2,3],categories:[20]},{name:"Centros acertados por el rival",color:"#068A8E",points:[2,3],categories:[30]},{name:"Balones recuperados (en disputa)",color:"#FB04C7",points:[1,2],categories:[40]},{name:"Balones recuperados (sin disputa)",color:"#606060",points:[1,2],categories:[50]},{name:"Fuera de lugar provocados",color:"green",points:[1,2],categories:[11]},{name:"1 vs 1 exitosos defensivos",color:"cyan",points:[2],categories:[4]},{name:"1 vs 1 no exitosos defensivos",color:"cyan",points:[2],categories:[4]},{name:"Balones ganados en área propia",color:"cyan",points:[2],categories:[4]},{name:"Juego aéreo resto del campo",color:"cyan",points:[2],categories:[4]},{name:"Barridas",color:"cyan",points:[2],categories:[4]},{name:"Rechaces",color:"cyan",points:[2],categories:[4]}],featuredPlayersCategories:MS},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getPlaysStack(E){return E.basePlaysStack},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(3,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},localVsVisitorData(E,j,B,ie){return OS(j.filteredPlaysStack,ie["filterGeneral/getSections"],HOe,fc(),ie["teamsGeneral/team"].team_id)},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],fc())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],E2())}}},U2=fc(),NS={team:{},seasonTeams:[],seasonTeamsAnalysis:[],teamSeasons:{},gamesBySeason:[],plays:D_.plays,lastSeasonForSeasonTeamsAnalysis:0,teamPlaysByPlayer:new Map,formattedSeasons:{},loadCount:0,teamGames:[]},QOe={teamsPosession:GOe,teamsOffensive:JOe,teamsDefensive:YOe,teamsGeneral:{namespaced:!0,state:NS,mutations:{setTeamGames(E,j){E.teamGames=j},setLoadCount(E,j){E.loadCount=j},setFormattedSeasons(E,j){E.formattedSeasons=j},updateTeam(E,j){E.team=j},updateTeams(E,j){E.seasonTeams=j},updateGames(E,j){E.gamesBySeason=j},updateTeamsForAnalysis(E,j){E.seasonTeamsAnalysis=j},updateLastSeasonForSeasonTeamsAnalysis(E,j){E.lastSeasonForSeasonTeamsAnalysis=j},setTeamPlaysByPlayer(E,j){E.teamPlaysByPlayer=j}},actions:{async checkState({commit:E,dispatch:j,rootGetters:B},{teamId:ie,seasonId:xe}){try{let L=xe;L&&(L=Number(L));const M=[];E("updateTeam",{team_id:ie}),E("filterGeneral/setSeasonId",L||B["loginGeneral/seasonId"],{root:!0}),M.push(dN({teamId:ie})),await j("fillStatisticData",M)}catch(L){throw new Error(L)}},async fillStatisticData({dispatch:E,commit:j,state:B,rootGetters:ie},xe=[void 0]){try{B.loadCount+=1,xe.push(pN({seasonId:ie["filterGeneral/getSeasonId"],teamId:B.team.team_id})),xe.push(E("getTeamsBySeasonForAnalysis",!0)),xe.push(E("playersGeneral/getPlayersBySeason",!0,{root:!0})),xe.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),xe.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),xe.push(E("getTeamStatisticsBySeason",!0));const[L,{data:[{data_combination:M}]},e,w,b,r,_]=await Promise.all(xe),v=b.games||[],l={};if(L){const n=Object.entries(L).reduce((a,[o,s])=>{if(s.show_videos){l[o]=s;const c=Number(o),u={_id:c,id:c,name:s.name,seasons:[{id:c,related_seasons:[],type:s.type}]};a.set(c,u)}return a},new Map);E("filterGeneral/updateSeasons",{seasons:l},{root:!0}),j("filterGeneral/setTournamentsForMediaPlayer",n,{root:!0}),j("setFormattedSeasons",l)}if(e){const n=e.reduce((a,o)=>(a.set(o.team_id,o),a),new Map);j("updateTeams",e),j("filterGeneral/setSeasonTeamsMap",n,{root:!0}),j("updateTeamsForAnalysis",e)}if(!B.team.team_name&&B.team&&B.team.team_id){const n=B.seasonTeams.find(a=>a.team_id===B.team.team_id);j("updateTeam",n)}if(w){const n=w.find(a=>a.team_id===B.team.team_id);j("playersGeneral/updateCurrentTeamPlayers",n?n.players:[],{root:!0}),j("playersGeneral/updateSeasonPlayers",w,{root:!0})}if(v){const n=[],a=v.reduce((o,s)=>(s.seasonType=b.season_type||0,s.dateTimeMillis=new Date(s.date_time_utc).valueOf(),(s.home_team===B.team.team_id||s.visiting_team===B.team.team_id)&&n.push(s),o.set(s.game_id,s),o),new Map);j("filterGeneral/setSeasonGamesMap",a,{root:!0}),j("gamesGeneral/updateSeasonGames",v,{root:!0}),j("setTeamGames",n)}j("leagueGeneral/updateSeasonPlays",r,{root:!0}),j("teamsPosession/updatePlaysStack",_.posession,{root:!0}),j("teamsOffensive/updatePlaysStack",_.offensive,{root:!0}),j("teamsDefensive/updatePlaysStack",_.defensive,{root:!0});const{offensive:i,defensive:t}=F_(M,E2());j("teamsOffensive/updateGoalPlaysStack",i,{root:!0}),j("teamsDefensive/updateGoalPlaysStack",t,{root:!0}),await E("createPlaysByPlayers",{teamStatistics:_})}catch(L){return Promise.reject(L)}},createPlaysByPlayers({state:E,commit:j},{teamStatistics:{posession:B,offensive:ie,defensive:xe}}){const M=[...B,...ie,...xe].reduce((e,w)=>(w[U2.teamId]===E.team.team_id&&(e.has(w[U2.playerId])?e.get(w[U2.playerId]).push(w):e.set(w[U2.playerId],[w])),e),new Map);j("setTeamPlaysByPlayer",M)},async getTeamsBySeason({commit:E,rootState:j},B,ie){try{const xe=await Dy({seasonId:B});E("updateTeams",xe.teams)}catch(xe){return Promise.reject(xe)}},async getTeamsBySeasonForAnalysis({commit:E,rootGetters:j},B=!1){try{const ie=j["filterGeneral/getSeasonId"],{teams:xe}=await Dy({seasonId:ie});if(E("updateLastSeasonForSeasonTeamsAnalysis",ie),B)return xe;E("updateTeamsForAnalysis",xe)}catch(ie){return Promise.reject(ie)}},async getTeamStatisticsBySeason({commit:E,rootGetters:j},B=!1){try{const ie=await s4({seasonId:j["filterGeneral/getSeasonId"],teamId:NS.team.team_id});if(B)return ie.data;E("teamsPosession/updatePlaysStack",ie.data.posession,{root:!0}),E("teamsOffensive/updatePlaysStack",ie.data.offensive,{root:!0}),E("teamsDefensive/updatePlaysStack",ie.data.defensive,{root:!0})}catch(ie){return Promise.reject(ie)}},async fetchGamesBySeason({commit:E,rootGetters:j}){const ie=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${j["filterGeneral/getSeasonId"]}/`,xe=await Yf.get(ie);E("updateGames",xe.data.games)},cleanData({commit:E}){E("teamsPosession/updatePlaysStack",[],{root:!0})}},getters:{gamesPlayed(E){return E.teamGames.reduce((j,B)=>(B.game_status===1&&j.push({...B,playingAs:B.home_team===E.team.team_id?1:2}),j),[])},team:E=>E.team,teams:E=>E.seasonTeams,teamId:E=>E.team.team_id,teamsForAnalysis:E=>E.seasonTeamsAnalysis,teamSeasons(E){return E.teamSeasons&&E.teamSeasons.seasons?Object.entries(E.teamSeasons.seasons).map(j=>({id:j[0],name:j[1]})):[]},teamSeasonPoints(E,j,B,ie){const xe=ie["gamesGeneral/seasonGamesPlayed"];let L=0;return xe&&xe.forEach(M=>{E.team.team_id===M.home_team&&(M.score[0]-M.score[1]>0&&(L+=3),M.score[0]-M.score[1]===0&&(L+=1)),E.team.team_id===M.visiting_team&&(M.score[1]-M.score[0]>0&&(L+=3),M.score[1]-M.score[0]===0&&(L+=1))}),L},seasonTeams(E){return E.seasonTeams},getPlays:(E,j,B)=>{const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.plays.filter(e=>e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))},getGamesBySeason(E){return E.gamesBySeason}}}},$Oe={gamesGeneral:{namespaced:!0,state:{seasonGames:[],lastSeasonForSeasonGames:0},getters:{seasonGames:E=>E.seasonGames,seasonGamesPlayed:E=>E.seasonGames.filter(j=>j.game_status===1),gamesPlayed(E,j,B,ie){const xe=ie["filterGeneral/getPlayingAs"],L=ie["filterGeneral/getResults"];return j.seasonGamesPlayed.filter(()=>xe===null||xe===1).filter(M=>{let e=1;return M.score[0]<M.score[1]?e=2:M.score[0]===M.score[1]&&(e=3),L.includes(e)}).length+j.seasonGamesPlayed.filter(()=>xe===null||xe===2).filter(M=>{let e=1;return M.score[0]>M.score[1]?e=2:M.score[0]===M.score[1]&&(e=3),L.includes(e)}).length}},mutations:{updateSeasonGames(E,j){E.seasonGames=j.map(B=>{let ie="";const xe=B.matchday_abbreviation.replace("M",""),L=`J${xe}`;return B.seasonType===0?([1784,1741,1512,881].includes(B.season_id)?B.season_id===881?ie=sS[xe]||L:ie=oS[B.matchday_abbreviation]?B.matchday_abbreviation:L:ie=L,ie=L):B.seasonType===1?ie=iS[B.matchday_abbreviation]:B.matchday_id===182?ie="PI1":B.matchday_id===183?ie="PI2":ie=B.matchday_abbreviation.replace("PO","R"),{...B,roundAbbreviation:ie}})},updateLastSeasonForSeasonGames(E,j){E.lastSeasonForSeasonGames=j}},actions:{async getSeasonGames({state:E,commit:j,rootGetters:B},ie=!1){try{const xe=B["filterGeneral/getSeasonId"];if(E.lastSeasonForSeasonGames===xe)return;j("updateLastSeasonForSeasonGames",xe);const L=await zx({seasonId:xe});if(ie)return L;j("updateSeasonGames",L)}catch(xe){throw new Error(xe)}},fetchGamesBySeason(E,j=0){return dR({seasonId:j})}}}};async function eNe({seasonId:E,localTeamId:j,visitingTeamId:B}){try{const ie=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${E}/teams/${j}/${B}`;return(await Du({url:ie})).data}catch(ie){return Promise.reject(ie)}}async function tNe({seasonId:E,localTeamId:j,visitingTeamId:B}){try{const ie=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${E}/teams/${j}/${B}`;return(await Du({url:ie})).data}catch(ie){return Promise.reject(ie)}}const LS=(E,j)=>{let B={};return E.forEach((ie,xe)=>{xe==3&&(j[0]==35||j[0]==54)&&(j[xe]==2?j[xe]=1:j[xe]=2),xe==2&&(j[0]==35||j[0]==54)&&(j[xe]==1?j[xe]=2:j[xe]==2&&(j[xe]=1)),B[ie]=j[xe]}),B},rNe=(E,j)=>E.filter(ie=>{const xe=j.playingAs.includes(ie.playing_as),L=j.matchResult.includes(ie.match_result),M=j.sections.includes(ie.section);return xe&&L&&M}),nNe=[{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]}],aNe={xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{plays:(E,j,B)=>{const ie=E[`xG${E.teamSelected}Plays`],xe=E.teamSelected==="Local"?"homeTeamFilter":"visitingTeamFilter",L=B.nextGeneral[xe];return rNe(ie,L)},goalsQty:(E,j)=>{const B=nNe.find(ie=>ie.name==="Goles");return j.plays.filter(ie=>B.categories.includes(ie.category_id)).length},shotsOnGoalQty:(E,j)=>j.plays.filter(B=>B.category_id===510).length,xG:(E,j)=>{const B=new Set;let ie=j.plays.reduce((xe,L)=>(B.has(L.moment_of_play)||(B.add(L.moment_of_play),xe+=L.xG2),xe),0);return z_(ie,2)}},mutations:{setTeamSelected(E,j){E.teamSelected=j},setPlays(E,j){E.xGLocalPlays=j.local_team.map(B=>LS(j.data_headers,B)),E.xGVisitingPlays=j.visiting_team.map(B=>LS(j.data_headers,B))},cleanXgStore(E){E.localStorage="Local",E.xGLocalPlays=[],E.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:E},{seasonId:j,localTeamId:B,visitingTeamId:ie,postMatch:xe=!1}){try{var L={};xe?L=await tNe({seasonId:j,localTeamId:B,visitingTeamId:ie}):L=await eNe({seasonId:j,localTeamId:B,visitingTeamId:ie}),E("setPlays",L)}catch(M){return Promise.reject(M)}}}}};async function iNe(){try{const{data:E}=await Du({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return E}catch(E){throw new Error(E)}}const oNe={general:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(E){return E.sectionAnalytics},getPreviewSectionAnalytics(E){return E.previewSectionAnalytics},getSeccionBetsGolTipster(E){return E.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(E,j){E.booleanIsStatisticModalOpen=j},setSectionRef(E,j){E.sectionRef=j},setSectionAnalytics(E,j){E.sectionAnalytics=j},setSeccionBetsGolTipster(E,j){E.seccionBetsGolTipster=j},setPreviewSectionAnalytics(E,j){E.previewSectionAnalytics=j},setVideoSrc(E,j){E.videoSrc=j},setVideoModalVisibility(E,j){E.isVideoModalVisible=j},setSelectedTournament(E,j){E.selectedTournament=j},setTournaments(E,j){E.tournaments=j.map(B=>({...B.tournament,seasons:B.seasons})),E.tournamentSelected=E.tournaments[0]},setTournamentSelected(E,j){E.tournamentSelected=j}},actions:{async fetchTournaments({state:E,commit:j}){try{if(E.tournaments.length===0){const B=await iNe();j("setTournaments",B)}}catch(B){throw new Error(B)}}}},...sOe,...cOe,...LOe,...QOe,...$Oe,...aNe};function sNe(E){for(const[j,B]of Object.entries(oNe))E.hasModule(j)||E.registerModule(j,B)}const lNe={class:"subcategory-group"},cNe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",lNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroup,ie=>(k.openBlock(),k.createBlock(k.unref(Vo),{key:ie.id,modelValue:ie.isSelected,"onUpdate:modelValue":xe=>ie.isSelected=xe,label:ie.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},uNe=ss(cNe,[["__scopeId","data-v-ae6f3d72"]]),dNe={class:"filter-subcategories"},pNe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",dNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroups,ie=>(k.openBlock(),k.createElementBlock("div",{key:ie.id,class:"filter-subcategories__group"},[k.createVNode(uNe,{subcategoryGroup:ie},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),B2=E=>(k.pushScopeId("data-v-80d9c265"),E=E(),k.popScopeId(),E),fNe={class:"details__header"},hNe=B2(()=>k.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),mNe={class:"details__header__checkbox"},gNe={class:"details__body"},yNe={class:"details__body__playing-as"},vNe=["onClick"],xNe={class:"details__header"},bNe=B2(()=>k.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),_Ne={class:"details__header__checkbox"},wNe={class:"details__body"},TNe=B2(()=>k.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),kNe={class:"details__body__game-section"},SNe=["onClick"],CNe={class:"details__body"},ENe=B2(()=>k.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),MNe={class:"details__body__game-section"},ANe=["onClick"],ONe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__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 j=E;k.useCssVars(r=>({"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 B=k.computed(()=>j.playingAs.every(r=>r.isSelected)),ie=k.computed(()=>j.gameSections.every(r=>r.isSelected)),xe=k.computed(()=>j.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),L=k.computed(()=>({"--border-radius-first-button":`${j.buttonsBorderRadius} 0 0 ${j.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${j.buttonsBorderRadius} ${j.buttonsBorderRadius} 0`}));function M(r){r?j.playingAs.forEach(_=>{_.isSelected=!0}):j.playingAs.forEach((_,v)=>{_.isSelected=v===0})}function e(r){j.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function w(r){j.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){r?j.gameSections.forEach(_=>{_.isSelected=!0}):j.gameSections.forEach((_,v)=>{_.isSelected=v===0})}return(r,_)=>(k.openBlock(),k.createElementBlock("div",{class:"details",style:k.normalizeStyle(L.value)},[k.createElementVNode("div",fNe,[hNe,k.createElementVNode("div",mNe,[k.createVNode(k.unref(Vo),{label:"Todos","model-value":B.value,"onUpdate:modelValue":M},null,8,["model-value"])])]),k.createElementVNode("div",gNe,[k.createElementVNode("div",yNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(j.playingAs,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>e(v)},k.toDisplayString(v.name),11,vNe))),128))])]),k.createElementVNode("div",xNe,[bNe,k.createElementVNode("div",_Ne,[k.createVNode(k.unref(Vo),{label:"Todos","model-value":ie.value,"onUpdate:modelValue":b},null,8,["model-value"])])]),k.createElementVNode("div",wNe,[TNe,k.createElementVNode("div",kNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.firstHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,SNe))),128))])]),k.createElementVNode("div",CNe,[ENe,k.createElementVNode("div",MNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.secondHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,ANe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),NNe={class:"filter-field"},LNe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__name:"FilterField",setup(E){const j=k.ref(Array.from({length:16},(ie,xe)=>xe+1));function B(){}return(ie,xe)=>(k.openBlock(),k.createElementBlock("div",NNe,[k.createVNode(k.unref(J7),{width:"100%","background-color":"#2E3B46",value:j.value,"onUpdate:modelValue":B},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),PNe={class:"subcategory-group"},RNe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",PNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroup,ie=>(k.openBlock(),k.createBlock(k.unref(Io),{key:ie.id,modelValue:ie.isSelected,"onUpdate:modelValue":xe=>ie.isSelected=xe,label:ie.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},zNe=ls(RNe,[["__scopeId","data-v-ae6f3d72"]]),VNe={class:"filter-subcategories"},INe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",VNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroups,ie=>(k.openBlock(),k.createElementBlock("div",{key:ie.id,class:"filter-subcategories__group"},[k.createVNode(zNe,{subcategoryGroup:ie},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),D2=E=>(k.pushScopeId("data-v-80d9c265"),E=E(),k.popScopeId(),E),FNe={class:"details__header"},UNe=D2(()=>k.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),BNe={class:"details__header__checkbox"},DNe={class:"details__body"},qNe={class:"details__body__playing-as"},jNe=["onClick"],WNe={class:"details__header"},KNe=D2(()=>k.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),GNe={class:"details__header__checkbox"},XNe={class:"details__body"},ZNe=D2(()=>k.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),HNe={class:"details__body__game-section"},JNe=["onClick"],YNe={class:"details__body"},QNe=D2(()=>k.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$Ne={class:"details__body__game-section"},eLe=["onClick"],tLe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__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 j=E;k.useCssVars(r=>({"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 B=k.computed(()=>j.playingAs.every(r=>r.isSelected)),ie=k.computed(()=>j.gameSections.every(r=>r.isSelected)),xe=k.computed(()=>j.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),L=k.computed(()=>({"--border-radius-first-button":`${j.buttonsBorderRadius} 0 0 ${j.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${j.buttonsBorderRadius} ${j.buttonsBorderRadius} 0`}));function M(r){r?j.playingAs.forEach(_=>{_.isSelected=!0}):j.playingAs.forEach((_,v)=>{_.isSelected=v===0})}function e(r){j.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function w(r){j.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){r?j.gameSections.forEach(_=>{_.isSelected=!0}):j.gameSections.forEach((_,v)=>{_.isSelected=v===0})}return(r,_)=>(k.openBlock(),k.createElementBlock("div",{class:"details",style:k.normalizeStyle(L.value)},[k.createElementVNode("div",FNe,[UNe,k.createElementVNode("div",BNe,[k.createVNode(k.unref(Io),{label:"Todos","model-value":B.value,"onUpdate:modelValue":M},null,8,["model-value"])])]),k.createElementVNode("div",DNe,[k.createElementVNode("div",qNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(j.playingAs,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>e(v)},k.toDisplayString(v.name),11,jNe))),128))])]),k.createElementVNode("div",WNe,[KNe,k.createElementVNode("div",GNe,[k.createVNode(k.unref(Io),{label:"Todos","model-value":ie.value,"onUpdate:modelValue":b},null,8,["model-value"])])]),k.createElementVNode("div",XNe,[ZNe,k.createElementVNode("div",HNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.firstHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,JNe))),128))])]),k.createElementVNode("div",YNe,[QNe,k.createElementVNode("div",$Ne,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.secondHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,eLe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),rLe={class:"filter-field"},nLe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__name:"FilterField",setup(E){const j=k.ref(Array.from({length:16},(ie,xe)=>xe+1));function B(){}return(ie,xe)=>(k.openBlock(),k.createElementBlock("div",rLe,[k.createVNode(k.unref(HT),{width:"100%","background-color":"#2E3B46",value:j.value,"onUpdate:modelValue":B},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bu.GSCPlayerTeamProfile=aOe,Bu.registerStoreModules=sNe,Object.defineProperty(Bu,Symbol.toStringTag,{value:"Module"})});
6972
+ }`;var Lo=qd(function(){return ei(tn,_i+"return "+ga).apply(B,bn)});if(Lo.source=ga,Er(Lo))throw Lo;return Lo}function bp(He){return Da(He).toLowerCase()}function Bf(He){return Da(He).toUpperCase()}function e1(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return Rc(He);if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Ko(lt),tn=Xc(mr,zr),bn=Zc(mr,zr)+1;return yu(mr,tn,bn).join("")}function _d(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return He.slice(0,zc(He)+1);if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Zc(mr,Ko(lt))+1;return yu(mr,0,zr).join("")}function t1(He,lt,Bt){if(He=Da(He),He&&(Bt||lt===B))return He.replace(Ut,"");if(!He||!(lt=iu(lt)))return He;var mr=Ko(He),zr=Xc(mr,Ko(lt));return yu(mr,zr).join("")}function r1(He,lt){var Bt=m,mr=g;if(cn(lt)){var zr="separator"in lt?lt.separator:zr;Bt="length"in lt?Fa(lt.length):Bt,mr="omission"in lt?iu(lt.omission):mr}He=Da(He);var tn=He.length;if(As(He)){var bn=Ko(He);tn=bn.length}if(Bt>=tn)return He;var On=Bt-Tl(mr);if(On<1)return mr;var zn=bn?yu(bn,0,On).join(""):He.slice(0,On);if(zr===B)return zn+mr;if(bn&&(On+=zn.length-On),ma(zr)){if(He.slice(On).search(zr)){var ia,pa=zn;for(zr.global||(zr=hl(zr.source,Da(qe.exec(zr))+"g")),zr.lastIndex=0;ia=zr.exec(pa);)var ga=ia.index;zn=zn.slice(0,ga===B?On:ga)}}else if(He.indexOf(iu(zr),On)!=On){var Wa=zn.lastIndexOf(zr);Wa>-1&&(zn=zn.slice(0,Wa))}return zn+mr}function n1(He){return He=Da(He),He&&Ze.test(He)?He.replace(Ie,ru):He}var a1=Kp(function(He,lt,Bt){return He+(Bt?" ":"")+lt.toUpperCase()}),Df=im("toUpperCase");function Ys(He,lt,Bt){return He=Da(He),lt=Bt?B:lt,lt===B?Wo(He)?el(He):Qa(He):He.match(lt)||[]}var qd=Yi(function(He,lt){try{return Ba(He,B,lt)}catch(Bt){return Er(Bt)?Bt:new ci(Bt)}}),i1=ou(function(He,lt){return ha(lt,function(Bt){Bt=Ka(Bt),ze(He,Bt,hi(He[Bt],He))}),He});function uc(He){var lt=He==null?0:He.length,Bt=Mi();return He=lt?Ya(He,function(mr){if(typeof mr[1]!="function")throw new Bo(M);return[Bt(mr[0]),mr[1]]}):[],Yi(function(mr){for(var zr=-1;++zr<lt;){var tn=He[zr];if(Ba(tn[0],this,mr))return Ba(tn[1],this,mr)}})}function py(He){return ot(Je(He,_))}function qf(He){return function(){return He}}function fu(He,lt){return He==null||He!==He?lt:He}var Iu=xu(),Fu=xu(!0);function El(He){return He}function hu(He){return ni(typeof He=="function"?He:Je(He,_))}function o1(He){return ui(Je(He,_))}function s1(He,lt){return fi(He,Je(lt,_))}var l1=Yi(function(He,lt){return function(Bt){return _n(Bt,He,lt)}}),c1=Yi(function(He,lt){return function(Bt){return _n(He,Bt,lt)}});function _p(He,lt,Bt){var mr=Kl(lt),zr=Zr(lt,mr);Bt==null&&!(cn(lt)&&(zr.length||!mr.length))&&(Bt=lt,lt=He,He=this,zr=Zr(lt,Kl(lt)));var tn=!(cn(Bt)&&"chain"in Bt)||!!Bt.chain,bn=jr(He);return ha(zr,function(On){var zn=lt[On];He[On]=zn,bn&&(He.prototype[On]=function(){var ia=this.__chain__;if(tn||ia){var pa=He(this.__wrapped__),ga=pa.__actions__=Hc(this.__actions__);return ga.push({func:zn,args:arguments,thisArg:He}),pa.__chain__=ia,pa}return zn.apply(He,vo([this.value()],arguments))})}),He}function jf(){return rn._===this&&(rn._=So),this}function dc(){}function u1(He){return He=Fa(He),Yi(function(lt){return Cl(lt,He)})}var Wf=gf(Ya),Kf=gf(ro),d1=gf(To);function gm(He){return h0(He)?Rs(Ka(He)):Bs(He)}function Gf(He){return function(lt){return He==null?B:pn(He,lt)}}var p1=Hu(),f1=Hu(!0);function wp(){return[]}function Xf(){return!1}function wd(){return{}}function h1(){return""}function Tp(){return!0}function fy(He,lt){if(He=Fa(He),He<1||He>N)return[];var Bt=z,mr=Ma(He,z);lt=Mi(lt),He-=z;for(var zr=Zl(mr,lt);++Bt<He;)lt(Bt);return zr}function m1(He){return We(He)?Ya(He,Ka):Ia(He)?[He]:Hc(Id(Da(He)))}function hy(He){var lt=++Zi;return Da(He)+lt}var my=Xu(function(He,lt){return He+lt},0),gy=ku("ceil"),yy=Xu(function(He,lt){return He/lt},1),vy=ku("floor");function xy(He){return He&&He.length?Vt(He,El,vn):B}function by(He,lt){return He&&He.length?Vt(He,Mi(lt,2),vn):B}function _y(He){return ns(He,El)}function pc(He,lt){return ns(He,Mi(lt,2))}function kp(He){return He&&He.length?Vt(He,El,Va):B}function g1(He,lt){return He&&He.length?Vt(He,Mi(lt,2),Va):B}var Td=Xu(function(He,lt){return He*lt},1),y1=ku("round"),aLe=Xu(function(He,lt){return He-lt},0);function iLe(He){return He&&He.length?ac(He,El):0}function oLe(He,lt){return He&&He.length?ac(He,Mi(lt,2)):0}return Kr.after=W0,Kr.ary=Ki,Kr.assign=ya,Kr.assignIn=Na,Kr.assignInWith=Si,Kr.assignWith=ai,Kr.at=Ai,Kr.before=Ah,Kr.bind=hi,Kr.bindAll=i1,Kr.bindKey=Oh,Kr.castArray=cy,Kr.chain=hm,Kr.chunk=wc,Kr.compact=Qp,Kr.concat=b0,Kr.cond=uc,Kr.conforms=py,Kr.constant=qf,Kr.countBy=$g,Kr.create=vi,Kr.curry=Nh,Kr.curryRight=Lh,Kr.debounce=Ph,Kr.defaults=Ua,Kr.defaultsDeep=Vi,Kr.defer=K0,Kr.delay=Pf,Kr.difference=Vg,Kr.differenceBy=Ig,Kr.differenceWith=Fg,Kr.drop=Ug,Kr.dropRight=Bg,Kr.dropRightWhile=Dg,Kr.dropWhile=qg,Kr.fill=jg,Kr.filter=ty,Kr.flatMap=ry,Kr.flatMapDeep=Lu,Kr.flatMapDepth=cd,Kr.flatten=bu,Kr.flattenDeep=_0,Kr.flattenDepth=wf,Kr.flip=lu,Kr.flow=Iu,Kr.flowRight=Fu,Kr.fromPairs=Wg,Kr.functions=$l,Kr.functionsIn=Vl,Kr.groupBy=Nf,Kr.initial=w0,Kr.intersection=T0,Kr.intersectionBy=Ds,Kr.intersectionWith=rp,Kr.invert=uu,Kr.invertBy=pp,Kr.invokeMap=ny,Kr.iteratee=hu,Kr.keyBy=ay,Kr.keys=Kl,Kr.keysIn=nc,Kr.map=Mh,Kr.mapKeys=zu,Kr.mapValues=fp,Kr.matches=o1,Kr.matchesProperty=s1,Kr.memoize=Uc,Kr.merge=hp,Kr.mergeWith=Yu,Kr.method=l1,Kr.methodOf=c1,Kr.mixin=_p,Kr.negate=$p,Kr.nthArg=u1,Kr.omit=zf,Kr.omitBy=fd,Kr.once=Qi,Kr.orderBy=iy,Kr.over=Wf,Kr.overArgs=ud,Kr.overEvery=Kf,Kr.overSome=d1,Kr.partial=lc,Kr.partialRight=Ud,Kr.partition=oy,Kr.pick=du,Kr.pickBy=wu,Kr.property=gm,Kr.propertyOf=Gf,Kr.pull=Mu,Kr.pullAll=No,Kr.pullAllBy=np,Kr.pullAllWith=ap,Kr.pullAt=qs,Kr.range=p1,Kr.rangeRight=f1,Kr.rearg=dp,Kr.reject=B0,Kr.remove=k0,Kr.rest=Rf,Kr.reverse=Tf,Kr.sampleSize=q0,Kr.set=gp,Kr.setWith=Vu,Kr.shuffle=j0,Kr.slice=Gg,Kr.sortBy=Lf,Kr.sortedUniq=Au,Kr.sortedUniqBy=Yl,Kr.split=cc,Kr.spread=Ru,Kr.tail=Cf,Kr.take=M0,Kr.takeRight=A0,Kr.takeRightWhile=Zg,Kr.takeWhile=O0,Kr.tap=Qg,Kr.throttle=Tc,Kr.thru=Yc,Kr.toArray=wo,Kr.toPairs=Bd,Kr.toPairsIn=Dd,Kr.toPath=m1,Kr.toPlainObject=fo,Kr.transform=hd,Kr.unary=G0,Kr.union=N0,Kr.unionBy=L0,Kr.unionWith=P0,Kr.uniq=Hg,Kr.uniqBy=Jg,Kr.uniqWith=R0,Kr.unset=md,Kr.unzip=Ef,Kr.unzipWith=_u,Kr.update=pu,Kr.updateWith=gd,Kr.values=hc,Kr.valuesIn=yd,Kr.without=z0,Kr.words=Ys,Kr.wrap=X0,Kr.xor=ip,Kr.xorBy=V0,Kr.xorWith=op,Kr.zip=sp,Kr.zipObject=lp,Kr.zipObjectDeep=Ou,Kr.zipWith=Yg,Kr.entries=Bd,Kr.entriesIn=Dd,Kr.extend=Na,Kr.extendWith=Si,_p(Kr,Kr),Kr.add=my,Kr.attempt=qd,Kr.camelCase=J0,Kr.capitalize=ef,Kr.ceil=gy,Kr.clamp=vd,Kr.clone=oo,Kr.cloneDeep=Z0,Kr.cloneDeepWith=A,Kr.cloneWith=Kc,Kr.conformsTo=F,Kr.deburr=tf,Kr.defaultTo=fu,Kr.divide=yy,Kr.endsWith=Y0,Kr.eq=Q,Kr.escape=If,Kr.escapeRegExp=Q0,Kr.every=ey,Kr.find=cp,Kr.findIndex=pm,Kr.findKey=Yo,Kr.findLast=Of,Kr.findLastIndex=Fd,Kr.findLastKey=js,Kr.floor=vy,Kr.forEach=$a,Kr.forEachRight=mm,Kr.forIn=zo,Kr.forInRight=Ql,Kr.forOwn=kc,Kr.forOwnRight=co,Kr.get=_l,Kr.gt=fe,Kr.gte=Oe,Kr.has=cu,Kr.hasIn=dd,Kr.head=fm,Kr.identity=El,Kr.includes=Pu,Kr.indexOf=Kg,Kr.inRange=H0,Kr.invoke=pd,Kr.isArguments=Ve,Kr.isArray=We,Kr.isArrayBuffer=nt,Kr.isArrayLike=mt,Kr.isArrayLikeObject=St,Kr.isBoolean=Mt,Kr.isBuffer=qt,Kr.isDate=Jt,Kr.isElement=Gt,Kr.isEmpty=dr,Kr.isEqual=gr,Kr.isEqualWith=Ar,Kr.isError=Er,Kr.isFinite=qr,Kr.isFunction=jr,Kr.isInteger=$r,Kr.isLength=an,Kr.isMap=kn,Kr.isMatch=Rn,Kr.isMatchWith=Un,Kr.isNaN=aa,Kr.isNative=Zn,Kr.isNil=Jn,Kr.isNull=ra,Kr.isNumber=Gn,Kr.isObject=cn,Kr.isObjectLike=En,Kr.isPlainObject=Ca,Kr.isRegExp=ma,Kr.isSafeInteger=si,Kr.isSet=ta,Kr.isString=Ga,Kr.isSymbol=Ia,Kr.isTypedArray=ii,Kr.isUndefined=mi,Kr.isWeakMap=li,Kr.isWeakSet=$i,Kr.join=od,Kr.kebabCase=Ff,Kr.last=rc,Kr.lastIndexOf=al,Kr.lowerCase=uy,Kr.lowerFirst=xd,Kr.lt=Ti,Kr.lte=so,Kr.max=xy,Kr.maxBy=by,Kr.mean=_y,Kr.meanBy=pc,Kr.min=kp,Kr.minBy=g1,Kr.stubArray=wp,Kr.stubFalse=Xf,Kr.stubObject=wd,Kr.stubString=h1,Kr.stubTrue=Tp,Kr.multiply=Td,Kr.nth=sd,Kr.noConflict=jf,Kr.noop=dc,Kr.now=Qc,Kr.pad=Fi,Kr.padEnd=ec,Kr.padStart=dy,Kr.parseInt=Gc,Kr.random=Vf,Kr.reduce=sy,Kr.reduceRight=ly,Kr.repeat=Uf,Kr.replace=$0,Kr.result=mp,Kr.round=y1,Kr.runInContext=Mn,Kr.sample=D0,Kr.size=up,Kr.snakeCase=yp,Kr.some=su,Kr.sortedIndex=S0,Kr.sortedIndexBy=C0,Kr.sortedIndexOf=kf,Kr.sortedLastIndex=Sf,Kr.sortedLastIndexBy=Xg,Kr.sortedLastIndexOf=E0,Kr.startCase=vp,Kr.startsWith=bd,Kr.subtract=aLe,Kr.sum=iLe,Kr.sumBy=oLe,Kr.template=xp,Kr.times=fy,Kr.toFinite=Di,Kr.toInteger=Fa,Kr.toLength=po,Kr.toLower=bp,Kr.toNumber=ki,Kr.toSafeInteger=lo,Kr.toString=Da,Kr.toUpper=Bf,Kr.trim=e1,Kr.trimEnd=_d,Kr.trimStart=t1,Kr.truncate=r1,Kr.unescape=n1,Kr.uniqueId=hy,Kr.upperCase=a1,Kr.upperFirst=Df,Kr.each=$a,Kr.eachRight=mm,Kr.first=fm,_p(Kr,function(){var He={};return Pr(Kr,function(lt,Bt){wi.call(Kr.prototype,Bt)||(He[Bt]=lt)}),He}(),{chain:!1}),Kr.VERSION=ie,ha(["bind","bindKey","curry","curryRight","partial","partialRight"],function(He){Kr[He].placeholder=Kr}),ha(["drop","take"],function(He,lt){ri.prototype[He]=function(Bt){Bt=Bt===B?1:Ei(Fa(Bt),0);var mr=this.__filtered__&&!lt?new ri(this):this.clone();return mr.__filtered__?mr.__takeCount__=Ma(Bt,mr.__takeCount__):mr.__views__.push({size:Ma(Bt,z),type:He+(mr.__dir__<0?"Right":"")}),mr},ri.prototype[He+"Right"]=function(Bt){return this.reverse()[He](Bt).reverse()}}),ha(["filter","map","takeWhile"],function(He,lt){var Bt=lt+1,mr=Bt==S||Bt==O;ri.prototype[He]=function(zr){var tn=this.clone();return tn.__iteratees__.push({iteratee:Mi(zr,3),type:Bt}),tn.__filtered__=tn.__filtered__||mr,tn}}),ha(["head","last"],function(He,lt){var Bt="take"+(lt?"Right":"");ri.prototype[He]=function(){return this[Bt](1).value()[0]}}),ha(["initial","tail"],function(He,lt){var Bt="drop"+(lt?"":"Right");ri.prototype[He]=function(){return this.__filtered__?new ri(this):this[Bt](1)}}),ri.prototype.compact=function(){return this.filter(El)},ri.prototype.find=function(He){return this.filter(He).head()},ri.prototype.findLast=function(He){return this.reverse().find(He)},ri.prototype.invokeMap=Yi(function(He,lt){return typeof He=="function"?new ri(this):this.map(function(Bt){return _n(Bt,He,lt)})}),ri.prototype.reject=function(He){return this.filter($p(Mi(He)))},ri.prototype.slice=function(He,lt){He=Fa(He);var Bt=this;return Bt.__filtered__&&(He>0||lt<0)?new ri(Bt):(He<0?Bt=Bt.takeRight(-He):He&&(Bt=Bt.drop(He)),lt!==B&&(lt=Fa(lt),Bt=lt<0?Bt.dropRight(-lt):Bt.take(lt-He)),Bt)},ri.prototype.takeRightWhile=function(He){return this.reverse().takeWhile(He).reverse()},ri.prototype.toArray=function(){return this.take(z)},Pr(ri.prototype,function(He,lt){var Bt=/^(?:filter|find|map|reject)|While$/.test(lt),mr=/^(?:head|last)$/.test(lt),zr=Kr[mr?"take"+(lt=="last"?"Right":""):lt],tn=mr||/^find/.test(lt);zr&&(Kr.prototype[lt]=function(){var bn=this.__wrapped__,On=mr?[1]:arguments,zn=bn instanceof ri,ia=On[0],pa=zn||We(bn),ga=function(Qo){var ws=zr.apply(Kr,vo([Qo],On));return mr&&Wa?ws[0]:ws};pa&&Bt&&typeof ia=="function"&&ia.length!=1&&(zn=pa=!1);var Wa=this.__chain__,_i=!!this.__actions__.length,Gi=tn&&!Wa,Lo=zn&&!_i;if(!tn&&pa){bn=Lo?bn:new ri(this);var Xi=He.apply(bn,On);return Xi.__actions__.push({func:Yc,args:[ga],thisArg:B}),new Pi(Xi,Wa)}return Gi&&Lo?He.apply(this,On):(Xi=this.thru(ga),Gi?mr?Xi.value()[0]:Xi.value():Xi)})}),ha(["pop","push","shift","sort","splice","unshift"],function(He){var lt=Gs[He],Bt=/^(?:push|sort|unshift)$/.test(He)?"tap":"thru",mr=/^(?:pop|shift)$/.test(He);Kr.prototype[He]=function(){var zr=arguments;if(mr&&!this.__chain__){var tn=this.value();return lt.apply(We(tn)?tn:[],zr)}return this[Bt](function(bn){return lt.apply(We(bn)?bn:[],zr)})}}),Pr(ri.prototype,function(He,lt){var Bt=Kr[lt];if(Bt){var mr=Bt.name+"";wi.call(xi,mr)||(xi[mr]=[]),xi[mr].push({name:lt,func:Bt})}}),xi[_h(B,a).name]=[{name:"wrapper",func:B}],ri.prototype.clone=io,ri.prototype.reverse=Nl,ri.prototype.value=Ll,Kr.prototype.at=Nu,Kr.prototype.chain=Mf,Kr.prototype.commit=I0,Kr.prototype.next=Af,Kr.prototype.plant=Wc,Kr.prototype.reverse=F0,Kr.prototype.toJSON=Kr.prototype.valueOf=Kr.prototype.value=U0,Kr.prototype.first=Kr.prototype.head,ho&&(Kr.prototype[ho]=ld),Kr},Uo=fl();Pn?((Pn.exports=Uo)._=Uo,Tn._=Uo):rn._=Uo}).call(vg)}(M2,M2.exports);var V_=M2.exports;const gze="",aMe=["x","y"],iMe=k.createElementVNode("path",{opacity:"0.8",d:"M19.0921 9.65161C19.0921 4.54754 14.838 0.406006 9.59065 0.406006C4.34332 0.406006 0.09375 4.54754 0.09375 9.65161C0.09375 14.7557 4.34785 18.8972 9.59065 18.8972C14.8334 18.8972 19.0875 14.7557 19.0875 9.65161H19.0921Z",fill:"white"},null,-1),oMe=["fill"],sMe=k.createElementVNode("path",{style:{"mix-blend-mode":"multiply"},opacity:"1",d:"M18.2312 20.0011C18.2312 21.4228 14.2719 22.5708 9.38741 22.5708C4.50291 22.5708 0.539062 21.4184 0.539062 20.0011C0.539062 18.5838 4.49837 17.4314 9.38288 17.4314C14.2674 17.4314 18.2267 18.5838 18.2267 20.0011H18.2312Z",fill:"url(#paint0_radial_249_64014)"},null,-1),lMe={fill:"white","font-size":"8",x:"9.5",y:"10","font-family":"Montserrat-Regular","dominant-baseline":"middle","text-anchor":"middle"},cMe=k.createElementVNode("defs",null,[k.createElementVNode("radialGradient",{id:"paint0_radial_249_64014",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(9.76498 20.0631) scale(8.68186 2.33162)"},[k.createElementVNode("stop",{"stop-color":"#808080"}),k.createElementVNode("stop",{offset:"1","stop-color":"#CCCBCB","stop-opacity":"0"})])],-1),A2={__name:"ChalkboardMarker",props:{x:Number,y:Number,color:String,jersey:Number,orientation:{type:String,default:"vertical"}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("svg",{width:"20",height:"23",viewBox:"0 0 20 23",fill:"none",x:`${E.x}%`,y:`${E.y}%`,class:k.normalizeClass(E.orientation)},[iMe,k.createElementVNode("path",{d:"M9.58983 17.4931C14.0383 17.4931 17.6445 13.9824 17.6445 9.6516C17.6445 5.32084 14.0383 1.81006 9.58983 1.81006C5.14136 1.81006 1.53516 5.32084 1.53516 9.6516C1.53516 13.9824 5.14136 17.4931 9.58983 17.4931Z",fill:E.color},null,8,oMe),sMe,k.createElementVNode("text",lMe,k.toDisplayString(E.jersey),1),cMe],10,aMe))}},uMe=["id"],dMe=[k.createElementVNode("rect",{opacity:"1",height:"411",width:"256",fill:"url(#fieldBackground)"},null,-1),k.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="256" height="411" viewBox="0 0 256 411" fill="none"><rect x="0.53125" y="0.5" width="254.03" height="410" stroke="#fff"></rect><rect x="15.5312" y="14.5" width="224" height="382" stroke="#fff"></rect><rect x="69.5312" y="14.5" width="116" height="53" stroke="#fff"></rect><rect x="96.5312" y="14.5" width="62" height="29" stroke="#fff"></rect><rect x="69.5312" y="343.5" width="116" height="53" stroke="#fff"></rect><rect x="96.5312" y="367.5" width="62" height="29" stroke="#fff"></rect><path d="M15.5312 205.5H240.031" stroke="#fff"></path><circle cx="128.031" cy="206" r="36.5" stroke="#fff"></circle></svg>',1)],Yk={__name:"ChalkboardGraphic",props:{orientation:{type:String,required:!0},id:{type:String,required:!0}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("g",{id:E.id,class:k.normalizeClass(E.orientation)},dMe,10,uMe))}},xze="",J1=E=>(k.pushScopeId("data-v-f6dd152f"),E=E(),k.popScopeId(),E),pMe=["viewBox"],fMe=["viewBox"],hMe=J1(()=>k.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[k.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),mMe=["id"],gMe=["fill"],yMe=J1(()=>k.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[k.createElementVNode("image",{"xlink:href":tMe,width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),vMe=["id","onMouseover","onClick"],xMe=["x1","y1","x2","y2","stroke"],bMe=["x1","y1","x2","y2","stroke","marker-end"],_Me={class:"is-pointer",transform:"translate(-11, -11)"},wMe=["id","onMouseover","onClick"],TMe=["x1","y1","x2","y2","stroke","marker-end"],kMe={class:"is-pointer",transform:"translate(-11, -11)"},SMe=["id","onMouseover","onClick"],CMe={class:"tooltip-data__title"},EMe={class:"tooltip-data__player"},MMe={class:"tooltip-data__content"},AMe={class:"tooltip-data__content"},OMe=["src"],NMe={key:0,class:"tooltip-data__content"},LMe=J1(()=>k.createElementVNode("span",{class:"bold"},"xGi:",-1)),PMe={key:1,class:"tooltip-data__content"},RMe=J1(()=>k.createElementVNode("span",{class:"bold"},"xGf:",-1)),zMe={class:"tooltip-data__button-play-container"},VMe={class:"tooltip-data__button-play"},IMe=["onClick"],FMe=[J1(()=>k.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[k.createElementVNode("path",{d:"M3.0492 8.92004C2.9831 8.88243 2.92785 8.82624 2.88941 8.75753C2.85097 8.68882 2.83079 8.61018 2.83106 8.53011V1.46888C2.83115 1.38908 2.85146 1.3108 2.88982 1.24236C2.92819 1.17392 2.98318 1.11788 3.04895 1.08019C3.11472 1.0425 3.18881 1.02458 3.26334 1.02832C3.33788 1.03206 3.41007 1.05733 3.47225 1.10145L8.4249 4.63248C8.48147 4.67271 8.52786 4.72726 8.55995 4.79129C8.59204 4.85533 8.60883 4.92685 8.60883 4.9995C8.60883 5.07214 8.59204 5.14367 8.55995 5.2077C8.52786 5.27173 8.48147 5.32629 8.4249 5.36651L3.47225 8.89838C3.41016 8.94259 3.33803 8.96796 3.26352 8.97177C3.18902 8.97559 3.11495 8.95771 3.0492 8.92004ZM3.24397 8.53095L8.19663 4.99991L3.24397 8.53095Z",fill:"#CBEE6B"})],-1))],UMe=J1(()=>k.createElementVNode("div",null,"Ver video",-1)),Y1=250/2,BMe=$o({__name:"XgChalkboard",props:{plays:{type:Array,require:!0},categories:{type:Array,required:!0},players:{type:Array,required:!0},games:{type:Array,required:!1},team:{type:Number,default:0},playValuesIndex:{type:Object,required:!0},analysisType:{type:String,required:!1},sectionType:{type:String,required:!1,default:"team"},orientation:{type:String,required:!1,default:"horizontal"},canPlayVideos:{type:Boolean,default:!0}},emits:["openmedia","change-xg","change-total-plays"],setup(E,{emit:j}){const B=E;let ie=null;const xe=Bc(),L=k.ref(null),M=k.ref(null);k.defineComponent({Tooltip:Jk,ChalkboardMarker:A2,ChalkboardGraphic:Yk});const e=k.ref(!1),w=k.ref("red"),b=k.ref({x:0,y:0,visible:!1}),r=k.ref({playerName:"",minute:0,rivalLogo:"",categoryName:"",category:"",xGi:0,xGf:0,isOwnGoal:!1}),_=k.ref(!1),v=k.computed(()=>G.value<565),l=k.computed(()=>B.orientation==="horizontal"?G.value>384?"0 0 411 256":"0 0 784 490":G.value>384?"0 0 256 411":"0 0 490 784"),i=k.computed(()=>G.value<384),t=k.computed(()=>B.sectionType==="team"?[0,1,2]:z.value.position_id===1?[]:[0,3,4]),n=k.computed(()=>B.plays.map(oe=>({playId:oe[B.playValuesIndex.playId],gameId:oe[B.playValuesIndex.gameId],teamId:oe[B.playValuesIndex.teamId],playerId:oe[B.playValuesIndex.playerId],momentOfPlay:oe[B.playValuesIndex.momentOfPlay],categoryId:oe[B.playValuesIndex.categoryId],categoryType:oe[B.playValuesIndex.categoryType],matchLapse:oe[B.playValuesIndex.matchLapse],section:oe[B.playValuesIndex.section],matchResult:oe[B.playValuesIndex.matchResult],playingAs:oe[B.playValuesIndex.playingAs],total:oe[B.playValuesIndex.total],x1:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate1Y]*100:oe[B.playValuesIndex.coordinate1X]*100,y1:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate1X]*100:oe[B.playValuesIndex.coordinate1Y]*100,x2:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate2Y]*100:oe[B.playValuesIndex.coordinate2X]*100,y2:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate2X]*100:oe[B.playValuesIndex.coordinate2Y]*100,x3:B.orientation==="horizontal"?100-oe[B.playValuesIndex.coordinate3Y]*100:oe[B.playValuesIndex.coordinate3X]*100,y3:B.orientation==="horizontal"?oe[B.playValuesIndex.coordinate3X]*100:oe[B.playValuesIndex.coordinate3Y]*100,xGi:oe[B.playValuesIndex.xGi],xGf:oe[B.playValuesIndex.xGf]}))),a=k.computed(()=>B.categories.map((oe,ne)=>({id:ne,name:oe.name,singleName:oe.singleName,negative:oe.negative||!1,color:oe.color,points:oe.points,numPoints:oe.points.length,categories:oe.categories,invert:oe.invert||[]}))),o=k.computed(()=>{const ne=a.value.filter(({numPoints:ee})=>ee===1).map(ee=>ee.categories).flat();return[...new Set(ne)]}),s=k.computed(()=>{const ne=a.value.filter(ee=>ee.numPoints===2).map(ee=>ee.categories).flat();return[...new Set(ne)]}),c=k.computed(()=>{const ne=a.value.filter(ee=>ee.numPoints===3).map(ee=>ee.categories).flat();return[...new Set(ne)]}),u=k.computed(()=>{let oe=o.value;return n.value.filter(ne=>g(oe,ne)).reduce((ne,ee)=>{let te=a.value.find(se=>g(se.categories,ee)),re=B.players.find(se=>se.player_id===ee.playerId),$=B.games.find(se=>se?se.gameId===ee.gameId:void 0);if(te&&re&&$){let se={category:te.id,categoryName:te.name,categorySingleName:te.singleName,color:te.color,playId:ee.playId,player:ee.playerId,playerName:re?re.player_name||re.name:"",playerImage:re?re.player_photo||re.photo:"",jersey:re&&(re.jersey||re.jersey_number)||"",matchlapse:ee.matchLapse,x1:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[0]}`]:ee[`x${te.points[0]}`],y1:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[0]}`]:ee[`y${te.points[0]}`],momentOfPlay:ee.momentOfPlay,rivalLogo:x($,ee)};B.analysisType==="offensive"&&t.value.includes(te.id)&&(se.xGi=ee.xGi,se.xGf=ee.xGf),ne.push(se)}return ne},[])}),f=k.computed(()=>{let oe=s.value;return n.value.filter(ne=>g(oe,ne)).reduce((ne,ee)=>{let te=a.value.find(se=>g(se.categories,ee)),re=B.players.find(se=>se.player_id===ee.playerId),$=B.games.find(se=>se?se.gameId===ee.gameId:void 0);if(te&&re&&$){let se={category:te.id,categoryName:te.name,categorySingleName:te.singleName,arrowColor:te.negative?w.value:te.color,arrowMarkerColor:te.negative?"url(#arrow-negative)":`url(#arrow-${te.id})`,markerColor:te.color,playId:ee.playId,player:ee.playerId,playerName:re?re.player_name||re.name:"",playerImage:re?re.player_photo||re.photo:"",jersey:re&&(re.jersey||re.jersey_number)||"",matchlapse:ee.matchLapse,x1:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[0]}`]:ee[`x${te.points[0]}`],y1:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[0]}`]:ee[`y${te.points[0]}`],x2:te.invert.includes(ee.categoryId)?100-ee[`x${te.points[1]}`]:ee[`x${te.points[1]}`],y2:te.invert.includes(ee.categoryId)?100-ee[`y${te.points[1]}`]:ee[`y${te.points[1]}`],momentOfPlay:ee.momentOfPlay,rivalLogo:x($,ee)};B.analysisType==="offensive"&&t.value.includes(te.id)&&(se.xGi=ee.xGi,se.xGf=ee.xGf),ne.push(se)}return ne},[])}),d=k.computed(()=>{let oe=c.value;return n.value.filter(ee=>g(oe,ee)).reduce((ee,te)=>{let re=a.value.find(ce=>g(ce.categories,te)),$=B.players.find(ce=>ce.player_id===te.playerId),se=B.games.find(ce=>ce?ce.gameId===te.gameId:void 0);if(re&&$&&se){let ce={category:re.id,categoryName:re.name,categorySingleName:re.singleName,arrowColor:re.negative?w.value:re.color,arrowMarkerColor:re.negative?"url(#arrow-negative)":`url(#arrow-${re.id})`,markerColor:re.color,playId:te.playId,player:te.playerId,playerName:$?$.player_name||$.name:"",playerImage:$?$.player_photo||$.photo:"",jersey:$&&($.jersey||$.jersey_number)||"",matchlapse:te.matchLapse,x1:re.invert.includes(te.categoryId)?100-te[`x${re.points[0]}`]:te[`x${re.points[0]}`],y1:re.invert.includes(te.categoryId)?100-te[`y${re.points[0]}`]:te[`y${re.points[0]}`],x2:re.invert.includes(te.categoryId)?100-te[`x${re.points[1]}`]:te[`x${re.points[1]}`],y2:re.invert.includes(te.categoryId)?100-te[`y${re.points[1]}`]:te[`y${re.points[1]}`],x3:re.invert.includes(te.categoryId)?100-te[`x${re.points[2]}`]:te[`x${re.points[2]}`],y3:re.invert.includes(te.categoryId)?100-te[`y${re.points[2]}`]:te[`y${re.points[2]}`],momentOfPlay:te.momentOfPlay,rivalLogo:x(se,te)};re.id===0&&B.analysisType==="offensive"&&te.teamId?ce.isOwnGoal=B.team!==te.teamId:re.id===0&&B.analysisType==="defensive"&&te.teamId?ce.isOwnGoal=B.team===te.teamId:ce.isOwnGoal=!1,B.analysisType==="offensive"&&t.value.includes(re.id)&&(ce.xGi=te.xGi,ce.xGf=te.xGf),ee.push(ce)}return ee},[])}),T=()=>{!M.value||M.value.contains(event.target)||(i.value&&(e.value||h()),e.value=!1)},h=()=>{b.value.visible=!1},m=(oe,ne,ee=null)=>{const te=n.value.find(ce=>ce.playId===oe.playId),re=ee!==null?B.categories[ee].name:oe.categoryName;let $={};const se=B.categories[oe.category].categories;if(ne===2&&!i.value){const ce=B.sectionType==="team"&&B.analysisType==="defensive"&&re.includes("recibidos");$={seasonId:J.value,categoryIds:se,categorySingleName:"",mainSectionType:1,playListType:B.sectionType==="team"?3:2,matchResult:U.value,playData:te||null,gameIds:q.value,isRivalSubject:ce,avoidCategorySingleName:ce,advancedFilter:{playListTitle:re,mainCategoryId:{},playingAs:I.value?[I.value]:[1,2],timeSections:K.value,fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}}}if(ne===1){const ce=B.sectionType==="team"&&re.includes("recibidos");$={seasonId:J.value,categoryIds:se,categorySingleName:"",mainSectionType:1,playListType:B.sectionType==="team"?3:2,gameIds:q.value,matchResult:U.value,playData:te||null,isRivalSubject:ce,avoidCategorySingleName:ce,advancedFilter:{playListTitle:re,mainCategoryId:{},playingAs:I.value?[I.value]:[1,2],timeSections:K.value,fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}}}ne===1?D.value?($.playerIds=[],$.teamId=D.value):($.playerIds=te?[te.playerId]:null,$.teamId=0):i.value||(D.value?($.playerIds=[],$.teamId=D.value):($.playerIds=te?[te.playerId]:null,$.teamId=0)),ne===1?j("openmedia",$):i.value||j("openmedia",$)},g=(oe,ne)=>oe.find(ee=>{let te=0;if(typeof ee=="string"){if(ne.teamId)return te=Number(ee.split("_").shift()),te===ne.categoryId&&ne.teamId!==B.team}else return ne.teamId?ee===ne.categoryId&&B.team===ne.teamId:ee===ne.categoryId;return!1}),x=(oe,ne)=>B.sectionType==="team"?oe.homeTeamId===B.team?oe.visitingTeamLogo:oe.homeTeamLogo:ne.playingAs===1?oe.visitingTeamLogo:oe.homeTeamLogo,y=()=>{if(window.ResizeObserver)ie=new ResizeObserver(()=>{_.value=L.value&&L.value.clientWidth>524}),ie.observe(L.value);else throw new Error("Resize observer not supported!")};function S(){v.value&&m(p.value.play,p.value.type)}const p=k.ref({play:null,type:null}),O=(oe,ne,ee)=>{e.value=!0,v.value?(p.value={play:ne,type:ee},r.value.category=ne.category,r.value.playerName=ne.playerName||"",r.value.playerImage=ne.playerImage||"",r.value.minute=parseInt(ne.momentOfPlay.split(":")[0])||"",r.value.rivalLogo=ne.rivalLogo||"",r.value.categoryName=ne.categoryName||"",r.value.xGi=String(ne.xGi),r.value.xGf=String(ne.xGf),r.value.isOwnGoal=ne.isOwnGoal,b.value.x=oe.layerX<Y1+5?5:oe.layerX+Y1>L.value.clientWidth?L.value.clientWidth-Y1*2-5:oe.layerX,b.value.y=oe.layerY+20,b.value.visible=!0):m(ne,ee)},C=(oe,ne,ee)=>{p.value={play:ne,type:ee},v.value||(r.value.category=ne.category,r.value.playerName=ne.playerName||"",r.value.playerImage=ne.playerImage||"",r.value.minute=parseInt(ne.momentOfPlay.split(":")[0])||"",r.value.rivalLogo=ne.rivalLogo||"",r.value.categoryName=ne.categoryName||"",r.value.xGi=String(ne.xGi),r.value.xGf=String(ne.xGf),r.value.isOwnGoal=ne.isOwnGoal,b.value.x=oe.layerX<Y1+5?5:oe.layerX+Y1>L.value.clientWidth?L.value.clientWidth-Y1*2-5:oe.layerX,b.value.y=oe.layerY+20,b.value.visible=!0)},N=()=>{i.value||(b.value.visible=!1)},V=()=>{i.value&&(b.value.visible=!1)},R=oe=>xe.commit("playersGeneral/updatePlayer",oe),z=k.computed(()=>xe.getters["playersGeneral/player"]),U=k.computed(()=>xe.getters["filterGeneral/getResults"]),K=k.computed(()=>xe.getters["filterGeneral/getSections"]),I=k.computed(()=>xe.getters["filterGeneral/getPlayingAs"]),q=k.computed(()=>xe.getters["filterGeneral/getSelectedGamesIds"]),J=k.computed(()=>xe.getters["filterGeneral/getSeasonId"]),D=k.computed(()=>xe.getters["teamsGeneral/teamId"]);k.computed(()=>xe.getters["playersGeneral/playerId"]);const G=k.computed(()=>xe.state.windowWidth),X=k.computed(()=>{const oe=V_.groupBy(u.value,"momentOfPlay"),ne=V_.groupBy(f.value,"momentOfPlay"),ee=V_.groupBy(d.value,"momentOfPlay");return{playsByMoment1:oe,playsByMoment2:ne,playsByMoment3:ee}});return k.watch(()=>X.value,oe=>{const ne={...oe.playsByMoment1,...oe.playsByMoment2,...oe.playsByMoment3};let ee=0;Object.entries(ne).forEach(ce=>{t.value.includes(ce[1][0].category)&&!ce.isOwnGoal&&(ee+=Number(ce[1][0].xGf))});let te=Object.keys(oe.playsByMoment1).length,re=Object.keys(oe.playsByMoment2).length,$=Object.keys(oe.playsByMoment3).length;const se=te+re+$;j("change-xg",ee),j("change-total-plays",se)},{immediate:!0}),k.onMounted(()=>{document.addEventListener("click",T),B.sectionType==="team"&&R({}),y()}),k.onBeforeUnmount(()=>{document.removeEventListener("click",T),ie&&(ie.disconnect(),ie=null)}),(oe,ne)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"soccerChalkboard",ref:L,class:k.normalizeClass(["chalkboard__container",E.orientation]),onMouseleave:V},[(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l.value,"xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},[(k.openBlock(),k.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:E.orientation==="horizontal"?"0 0 411 256":"0 0 256 411","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"svg-soccer-chalkboard"},[k.createElementVNode("defs",null,[hMe,(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.value,ee=>(k.openBlock(),k.createElementBlock("marker",{key:`arrow-color-${ee.id}`,id:`arrow-${ee.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[k.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:ee.color},null,8,gMe)],8,mMe))),128)),yMe]),k.createVNode(Yk,{id:"soccer-field",orientation:E.orientation},null,8,["orientation"]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(d.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2)},[k.createElementVNode("line",{x1:`${ee.x1}%`,y1:`${ee.y1}%`,x2:`${ee.x2}%`,y2:`${ee.y2}%`,stroke:ee.arrowColor,"stroke-width":"2"},null,8,xMe),k.createElementVNode("line",{x1:`${ee.x2}%`,y1:`${ee.y2}%`,x2:`${ee.x3}%`,y2:`${ee.y3}%`,stroke:ee.arrowColor,"stroke-width":"2","marker-end":ee.arrowMarkerColor},null,8,bMe),k.createElementVNode("g",_Me,[k.createVNode(A2,{jersey:ee.jersey,color:ee.markerColor,x:ee.x1,y:ee.y1,orientation:E.orientation},null,8,["jersey","color","x","y","orientation"])])],40,vMe))),128)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(f.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2)},[k.createElementVNode("line",{x1:`${ee.x1}%`,y1:`${ee.y1}%`,x2:`${ee.x2}%`,y2:`${ee.y2}%`,"stroke-width":"2",stroke:ee.arrowColor,"marker-end":ee.arrowMarkerColor},null,8,TMe),k.createElementVNode("g",kMe,[k.createVNode(A2,{jersey:ee.jersey,color:ee.markerColor,x:ee.x1,y:ee.y1},null,8,["jersey","color","x","y"])])],40,wMe))),128)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(u.value,ee=>(k.openBlock(),k.createElementBlock("g",{key:ee.id,id:`play-${ee.playId}`,class:"is-pointer",onMouseover:te=>C(te,ee,2),onMouseleave:N,onClick:te=>O(te,ee,2),transform:"translate(-11, -11)"},[k.createVNode(A2,{x:ee.x1,y:ee.y1,jersey:ee.jersey,color:ee.color},null,8,["x","y","jersey","color"])],40,SMe))),128))],8,fMe))],8,pMe)),k.createVNode(Jk,{"play-data":b.value,"is-mobile-device":v.value},{default:k.withCtx(()=>[k.createElementVNode("div",{class:k.normalizeClass(["tooltip-data",E.orientation])},[k.createElementVNode("p",CMe,k.toDisplayString(r.value.isOwnGoal?"Autogol":r.value.categoryName),1),k.createElementVNode("div",EMe,[k.createElementVNode("span",null,k.toDisplayString(r.value.playerName),1),k.createElementVNode("div",{class:"tooltip-data__player-image",style:k.normalizeStyle(`background-image: url(${r.value.playerImage})`)},null,4)]),k.createElementVNode("div",MMe,[k.createElementVNode("span",null,"Minuto: "+k.toDisplayString(r.value.minute),1)]),k.createElementVNode("div",AMe,[k.createElementVNode("span",null,"Rival: "+k.toDisplayString(r.value.rivalName),1),k.createElementVNode("img",{src:r.value.rivalLogo,width:"25",style:{"vertical-align":"middle"}},null,8,OMe)]),/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(r.value.xGi)&&r.value.xGi<=1&&!r.value.isOwnGoal?(k.openBlock(),k.createElementBlock("div",NMe,[LMe,k.createTextVNode(" "+k.toDisplayString(k.unref(z_)(Number(r.value.xGi),4)),1)])):k.createCommentVNode("",!0),/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(r.value.xGf)&&r.value.xGf<=1&&!r.value.isOwnGoal?(k.openBlock(),k.createElementBlock("div",PMe,[RMe,k.createTextVNode(" "+k.toDisplayString(k.unref(z_)(Number(r.value.xGf),4)),1)])):k.createCommentVNode("",!0),k.withDirectives(k.createElementVNode("div",zMe,[k.createElementVNode("div",VMe,[k.createElementVNode("div",{role:"button",class:"tooltip-data__button-play__button",onClick:k.withModifiers(S,["stop","prevent"])},FMe,8,IMe),UMe])],512),[[k.vShow,v.value]])],2)]),_:1},8,["play-data","is-mobile-device"])],34))}},[["__scopeId","data-v-f6dd152f"]]),wze="",I_=E=>(k.pushScopeId("data-v-5a1c2b50"),E=E(),k.popScopeId(),E),DMe={class:"chalkboard-profile__field"},qMe={class:"chalkboard-profile__field__events"},jMe=I_(()=>k.createElementVNode("span",{class:"chalkboard-profile__field__events__separator"}," | ",-1)),WMe={class:"chalkboard-profile__categories"},KMe={class:"chalkboard-profile__categories__header"},GMe=I_(()=>k.createElementVNode("div",{class:"chalkboard-profile__categories__header__title"},"Categorías",-1)),XMe={class:"chalkboard-profile__categories__header__all"},ZMe={class:"chalkboard-profile__categories__list"},HMe={class:"chalkboard-profile__categories__list__category__checkbox"},JMe=["onClick"],YMe=[I_(()=>k.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5",height:"8",viewBox:"0 0 5 8",fill:"none"},[k.createElementVNode("path",{d:"M0.188781 7.9474C0.131578 7.90953 0.0837666 7.85295 0.0505 7.78375C0.0172333 7.71456 -0.000226673 7.63538 2.22194e-06 7.55474V0.444134C8.08686e-05 0.363779 0.0176551 0.284951 0.0508567 0.216032C0.0840582 0.147113 0.131646 0.090677 0.188562 0.0527243C0.245478 0.0147716 0.309594 -0.00327964 0.374094 0.000489552C0.438595 0.00425874 0.50107 0.0297075 0.554877 0.0741304L4.84083 3.62986C4.88978 3.67036 4.92993 3.7253 4.9577 3.78978C4.98547 3.85426 5 3.92628 5 3.99944C5 4.0726 4.98547 4.14462 4.9577 4.2091C4.92993 4.27358 4.88978 4.32852 4.84083 4.36902L0.554877 7.92559C0.501152 7.97011 0.438726 7.99565 0.374253 7.99949C0.30978 8.00333 0.245678 7.98533 0.188781 7.9474ZM0.357334 7.55558L4.64329 3.99986L0.357334 7.55558Z",fill:"#CBEE6B"})],-1))],Qk=$o({__name:"ChalkboardProfile",props:{plays:{type:Array,require:!0},categories:{type:Array,required:!0},players:{type:Array,required:!0},games:{type:Array,required:!1},team:{type:Number,default:0},playValuesIndex:{type:Object,required:!0},analysisType:{type:String,required:!1},sectionType:{type:String,required:!1,default:"team"},orientation:{type:String,required:!1,default:"horizontal"},isFull:{type:Boolean,default:!1},isTotalXgfVisible:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},emits:["openmedia"],setup(E,{emit:j}){const B=E;let ie=null;const xe=Bc(),L=k.ref(!0),M=k.ref([]),e=k.ref(null),w=k.ref(1200),b=k.ref(0),r=k.ref("vertical"),_=k.ref({}),v=k.ref(0),l=k.ref(0),i=k.computed(()=>M.value.reduce((g,x)=>(x.isSelected&&g.push(x),g),[])),t=k.computed(()=>xe.getters["filterGeneral/getResults"]),n=k.computed(()=>xe.getters["filterGeneral/getSections"]),a=k.computed(()=>xe.getters["filterGeneral/getPlayingAs"]),o=k.computed(()=>xe.getters["filterGeneral/getSelectedGamesIds"]),s=k.computed(()=>xe.getters["filterGeneral/getSeasonId"]);k.watch(w,m=>{_.value={},b.value+=1,B.isFull?(r.value="horizontal",_.value["--grid-template-columns"]="2fr 1fr",_.value["--list-width"]="268px",m<800&&(_.value["--grid-template-columns"]="1fr 1fr",r.value="vertical",_.value["--list-width"]="100%",m<500&&(r.value="horizontal",_.value["--grid-template-columns"]="1fr"))):(r.value="vertical",_.value["--list-width"]="100%",m>400?_.value["--grid-template-columns"]="1fr 1fr":(r.value="horizontal",_.value["--grid-template-columns"]="1fr"))},{immediate:!0}),k.watch(i,m=>{L.value=m.length===M.value.length},{immediate:!0}),k.watch(()=>B.categories,()=>{M.value=B.categories.map((m,g)=>({id:g,name:m.name,singleName:m.singleName,negative:m.negative||!1,color:m.color,points:m.points||[],numPoints:m.points.length,categories:m.categories,invert:m.invert||[],isSelected:!!m.isDefaultSelected}))},{immediate:!0});function c(m){M.value.forEach(g=>{g.isSelected=m})}function u(){ie=new ResizeObserver(m=>{for(const g of m)w.value=g.contentRect.width}),ie.observe(e.value)}function f(m){v.value=m}function d(m){l.value=m}k.onMounted(()=>{u()});function T(m){j("openmedia",m)}function h(m){let g={};g.playerIds=[],g.teamId=0;const x=B.players.length===1,y=B.sectionType==="team"&&B.analysisType==="defensive"&&m.name.includes("recibidos");g.seasonId=s.value,g.categoryIds=m.categories,g.categorySingleName="",g.isRivalSubject=y,g.mainSectionType=1,g.playListType=B.sectionType==="team"?3:2,g.matchResult=t.value,g.playData=null,g.gameIds=o.value,g.avoidCategorySingleName=y,g.advancedFilter={},g.advancedFilter.playingAs=a.value,g.advancedFilter.playListTitle=m.name,g.advancedFilter.timeSections=n.value,x?g.playerIds=[B.players[0].player_id]:g.teamId=B.team,j("openmedia",g)}return(m,g)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"chalkboardProfile",ref:e,class:"chalkboard-profile",style:k.normalizeStyle(_.value)},[k.createElementVNode("div",DMe,[(k.openBlock(),k.createBlock(BMe,{plays:E.plays,categories:i.value,players:E.players,games:E.games,team:E.team,"play-values-index":E.playValuesIndex,"analysis-type":E.analysisType,"section-type":E.sectionType,orientation:r.value,key:b.value,"can-play-videos":E.canPlayVideos,onOpenmedia:T,onChangeTotalPlays:f,onChangeXg:d},null,8,["plays","categories","players","games","team","play-values-index","analysis-type","section-type","orientation","can-play-videos"])),k.createElementVNode("div",qMe,[E.isTotalXgfVisible?(k.openBlock(),k.createElementBlock(k.Fragment,{key:0},[k.createTextVNode(" xG: "+k.toDisplayString(l.value.toFixed(2))+" ",1),jMe],64)):k.createCommentVNode("",!0),k.createTextVNode(" Eventos totales: "+k.toDisplayString(v.value),1)])]),k.createElementVNode("div",WMe,[k.createElementVNode("div",KMe,[GMe,k.createElementVNode("div",XMe,[k.createVNode(k.unref(R_),{"model-value":L.value,label:"Todos","box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])])]),k.createElementVNode("div",ZMe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(M.value,(x,y)=>(k.openBlock(),k.createElementBlock("div",{key:y,class:"chalkboard-profile__categories__list__category"},[k.createElementVNode("div",HMe,[k.createVNode(k.unref(R_),{modelValue:x.isSelected,"onUpdate:modelValue":S=>x.isSelected=S,label:x.name},null,8,["modelValue","onUpdate:modelValue","label"])]),k.withDirectives(k.createElementVNode("div",{class:"chalkboard-profile__categories__list__category__button-play",onClick:S=>h(x)},YMe,8,JMe),[[k.vShow,E.canPlayVideos]])]))),128))])])],4))}},[["__scopeId","data-v-5a1c2b50"]]),Sze="",O2=E=>(k.pushScopeId("data-v-7f071573"),E=E(),k.popScopeId(),E),QMe={class:"container"},$Me={class:"local-vs-away"},eAe={class:"local-vs-away__statistic__title"},tAe={class:"local-vs-away__statistic__donut"},rAe={class:"local-vs-away__statistic__buttons"},nAe=["onClick"],aAe={xmlns:"http://www.w3.org/2000/svg",width:"6",height:"9",viewBox:"0 0 6 9",fill:"none"},iAe=[O2(()=>k.createElementVNode("path",{d:"M0.800634 8.50206C0.742977 8.46225 0.694785 8.40278 0.661253 8.33005C0.627722 8.25732 0.610123 8.1741 0.610354 8.08934V0.615503C0.610433 0.531043 0.628147 0.448189 0.661613 0.375749C0.695078 0.303309 0.743045 0.243991 0.800414 0.204099C0.857782 0.164208 0.922408 0.145234 0.987422 0.149196C1.05244 0.153158 1.11541 0.179907 1.16964 0.226599L5.48969 3.96396C5.53903 4.00654 5.5795 4.06428 5.60749 4.13206C5.63548 4.19983 5.65013 4.27553 5.65013 4.35242C5.65013 4.42932 5.63548 4.50502 5.60749 4.57279C5.5795 4.64057 5.53903 4.69831 5.48969 4.74089L1.16964 8.47913C1.11549 8.52593 1.05257 8.55277 0.987582 8.55681C0.922596 8.56085 0.857984 8.54193 0.800634 8.50206ZM0.970528 8.09023L5.29058 4.35287L0.970528 8.09023Z",fill:"#CBEE6B"},null,-1))],oAe=O2(()=>k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button__label"},"Local",-1)),sAe=["onClick"],lAe={xmlns:"http://www.w3.org/2000/svg",width:"6",height:"9",viewBox:"0 0 6 9",fill:"none"},cAe=[O2(()=>k.createElementVNode("path",{d:"M0.800634 8.50206C0.742977 8.46225 0.694785 8.40278 0.661253 8.33005C0.627722 8.25732 0.610123 8.1741 0.610354 8.08934V0.615503C0.610433 0.531043 0.628147 0.448189 0.661613 0.375749C0.695078 0.303309 0.743045 0.243991 0.800414 0.204099C0.857782 0.164208 0.922408 0.145234 0.987422 0.149196C1.05244 0.153158 1.11541 0.179907 1.16964 0.226599L5.48969 3.96396C5.53903 4.00654 5.5795 4.06428 5.60749 4.13206C5.63548 4.19983 5.65013 4.27553 5.65013 4.35242C5.65013 4.42932 5.63548 4.50502 5.60749 4.57279C5.5795 4.64057 5.53903 4.69831 5.48969 4.74089L1.16964 8.47913C1.11549 8.52593 1.05257 8.55277 0.987582 8.55681C0.922596 8.56085 0.857984 8.54193 0.800634 8.50206ZM0.970528 8.09023L5.29058 4.35287L0.970528 8.09023Z",fill:"#3865E4"},null,-1))],uAe=O2(()=>k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button__label"},"Visitante",-1)),$k=$o({__name:"CardLocalVSAway",props:{dataByCategories:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmedia"],setup(E,{emit:j}){const B=E,ie={enabled:!0,formatter:function(M,e){return e.w.config.series[e.seriesIndex]},style:{fontSize:"14px",fontFamily:"sans-serif",fontWeight:"bold",colors:["#0D1D29","#fff"]},background:{enabled:!1},dropShadow:{enabled:!1}},xe=Bc();function L(M,e){if(B.videoPrivilegesPlayingAs.has(M)&&e[M-1]!==0){let w={seasonId:xe.getters["filterGeneral/getSeasonId"],tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,categoryIds:e.categoryIds,categorySingleName:e.singleName||"",mainSectionType:1,playListType:3,gameIds:xe.getters["filterGeneral/getSelectedGamesIds"],teamId:e.teamId,playerIds:[],matchResult:xe.getters["filterGeneral/getResults"],playData:{},advancedFilter:{mainCategoryId:{},playingAs:[M],timeSections:xe.getters["filterGeneral/getSections"],fieldSections:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},stringMediaPlayerTitle:"Resumen de equipo"};j("openmedia",w)}}return(M,e)=>(k.openBlock(),k.createElementBlock("div",QMe,[k.createElementVNode("h1",null,"video privileges playing as : "+k.toDisplayString(E.videoPrivilegesPlayingAs),1),k.createVNode(k.unref(X3),{arrows:!0,pxScroll:226,scrollColor:"none",arrowsScrollHide:!0,arrowsPosition:"absolute",arrowsHideOnNoScroll:!0,arrowsMargin:"0",arrowsRadius:"50%",arrowsBorder:"#ddd",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsBackground:"rgba(255,255,255,.16)","background-color":"#1d2a35"},{default:k.withCtx(()=>[k.createElementVNode("div",$Me,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.dataByCategories,(w,b)=>(k.openBlock(),k.createElementBlock("div",{key:b,class:"local-vs-away__statistic"},[k.createElementVNode("div",eAe,k.toDisplayString(w.generalName),1),k.createElementVNode("div",tAe,[w.data&&w.data.length?(k.openBlock(),k.createBlock(k.unref(wT),{key:0,series:w.data,colors:w.colors,legends:["Local","Visitante"],"show-total":!0,"hide-legends-footer":!0,"font-family":"Arial","border-stroke-color":"#172531","center-font-family":"Arial","data-labels":ie,"is-tooltip-enabled":!1},null,8,["series","colors"])):k.createCommentVNode("",!0)]),k.createElementVNode("div",rAe,[k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button",onClick:r=>L(1,w)},[k.createElementVNode("div",null,[k.withDirectives((k.openBlock(),k.createElementBlock("svg",aAe,iAe,512)),[[k.vShow,E.videoPrivilegesPlayingAs.has(1)]])]),oAe],8,nAe),k.createElementVNode("div",{class:"local-vs-away__statistic__buttons__button",onClick:r=>L(2,w)},[k.createElementVNode("div",null,[k.withDirectives((k.openBlock(),k.createElementBlock("svg",lAe,cAe,512)),[[k.vShow,E.videoPrivilegesPlayingAs.has(2)]])]),uAe],8,sAe)])]))),128))])]),_:1})]))}},[["__scopeId","data-v-7f071573"]]),Aze="",eS=E=>(k.pushScopeId("data-v-b9503c1a"),E=E(),k.popScopeId(),E),dAe={class:"offensive__chalkboard-and-goal__chalkboard"},pAe={key:0,class:"offensive__chalkboard-and-goal__goal"},fAe={key:0,class:"offensive__featured-players"},hAe={key:1,class:"offensive__local-vs-away"},mAe=eS(()=>k.createElementVNode("div",{class:"offensive__local-vs-away__title"},"Estadística total (local vs visitante)",-1)),gAe={class:"offensive__table-pie"},yAe=eS(()=>k.createElementVNode("div",{class:"offensive__table-pie__title-and-buttons"},[k.createElementVNode("div",{class:"offensive__table-pie__title-and-buttons__title"},"Categorías Ofensivas")],-1)),vAe=$o({__name:"ProfileOffensive",props:{isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe=k.computed(()=>({"--chalkboard-and-goal-grid-template-columns":B.mainComponentWidth>1010?"repeat(2, 1fr)":"1fr"})),L=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/getBasePlaysStack"]:ie.getters["teamsOffensive/getPlaysStack"]),M=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/filteredPlaysStack"]:ie.getters["teamsOffensive/filteredPlaysStack"]),e=k.computed(()=>B.isPlayerProfile?"player":"team"),w=k.computed(()=>B.isPlayerProfile?td():fc()),b=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/chalkboardGames"]:ie.getters["teamsOffensive/chalkboardGames"]),r=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.team_id:ie.state.teamsGeneral.team.team_id),_=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/goalPlays"]:ie.getters["teamsOffensive/goalPlays"]),v=k.computed(()=>B.isPlayerProfile?[ie.getters["playersGeneral/player"]]:ie.getters["playersGeneral/seasonPlayers"]),l=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.position_id===1?Hk:Zk:eMe),i=k.computed(()=>B.isPlayerProfile?ie.getters["playersOffensive/chalkboardPlays"]:ie.getters["teamsOffensive/chalkboardPlays"]),t=k.computed(()=>{let c=[];return B.isPlayerProfile?c=ie.getters["playersOffensive/tableData"]:c=ie.getters["teamsOffensive/tableData"],c.map(u=>Sy(u))}),n=k.computed(()=>ie.getters["playersGeneral/player"].position_id===1),a=k.computed(()=>ie.getters["filterGeneral/getGamesPlayedByTeam"]);k.watch(L,c=>{ie.commit("filterGeneral/setPlaysForGames",c)},{immediate:!0});function o(c){j("openmedia",c)}function s(c){j("partialMediaData",c)}return(c,u)=>(k.openBlock(),k.createElementBlock("div",{class:"offensive",style:k.normalizeStyle(xe.value)},[k.createElementVNode("div",{class:k.normalizeClass(["offensive__chalkboard-and-goal",{horizontal:n.value}])},[k.createElementVNode("div",dAe,[k.createVNode(Qk,{"analysis-type":"offensive","section-type":e.value,plays:i.value,"play-values-index":w.value,players:v.value,categories:l.value,games:b.value,team:r.value,"is-full":n.value,"can-play-videos":E.canPlayVideos,"is-total-xgf-visible":"",onOpenmedia:o},null,8,["section-type","plays","play-values-index","players","categories","games","team","is-full","can-play-videos"])]),n.value?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",pAe,[k.createVNode(Xk,{plays:_.value,teams:k.unref(ie).getters["teamsGeneral/teamsForAnalysis"],players:v.value,"section-type":E.isPlayerProfile?"player":"team",type:"offensive",onOpenmedia:o},null,8,["plays","teams","players","section-type"])]))],2),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",fAe,[k.createVNode(Y3,{"team-players":k.unref(ie).state.playersGeneral.currentTeamPlayers,"featured-players-categories":k.unref(ie).state.teamsOffensive.featuredPlayersCategories,plays:M.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["team-players","featured-players-categories","plays","can-play-videos"])])),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",hAe,[mAe,k.createVNode($k,{"data-by-categories":k.unref(ie).getters["teamsOffensive/localVsVisitorData"],"can-play-videos":E.canPlayVideos,"video-privileges-playing-as":E.videoPrivilegesPlayingAs,onOpenmedia:o},null,8,["data-by-categories","can-play-videos","video-privileges-playing-as"])])),k.createElementVNode("div",gAe,[yAe,k.createVNode(k.unref(Q3),{data:t.value,"games-for-avg":a.value,"is-player-table":E.isPlayerProfile,"can-play-videos":E.canPlayVideos,onPartialMediaData:s},null,8,["data","games-for-avg","is-player-table","can-play-videos"])])],4))}},[["__scopeId","data-v-b9503c1a"]]),tS=[{name:"Balones recuperados (en disputa)",color:"#FF3399",points:[1,2],categories:[483],translationKey:"chalkboard.defensive.player.balls_recovered_in_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"Balones recuperados (sin disputa)",color:"#B4005A",points:[1,2],categories:[484],translationKey:"chalkboard.defensive.player.balls_recovered_without_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"1 vs 1 exitosos defensivos",color:"#3A3838",points:[1],categories:[5],translationKey:"chalkboard.defensive.player.successful_1_on_1",singleName:"1 vs 1 exitoso defensivo",isDefaultSelected:!0},{name:"1 vs 1 no exitosos defensivos",color:"#008B31",points:[1],categories:[209],translationKey:"chalkboard.defensive.player.unsuccessful_1_on_1",singleName:"1 vs 1 no exitoso defensivo",isDefaultSelected:!0},{name:"Balones ganados en área propia",color:"#305496",points:[1,2],categories:[23],translationKey:"chalkboard.defensive.player.balls_won_own_penalty_box",singleName:"Balón ganado",isDefaultSelected:!0},{name:"Centros permitidos",color:"#FF8A4C",points:[1,2,3],categories:[517],translationKey:"chalkboard.defensive.player.allowed_crosses",singleName:"Centros permitidos",isDefaultSelected:!0},{name:"Rechaces",color:"#CC0000",points:[1],categories:[34],translationKey:"chalkboard.defensive.player.clearances",singleName:"Rechace",isDefaultSelected:!0},{name:"Barridas",color:"#700000",points:[1],categories:[518],translationKey:"chalkboard.defensive.player.slide_tackles",singleName:"Barrida",isDefaultSelected:!0}],rS=[{name:"Goles recibidos",color:"#336DFF",points:[1,2,3],categories:[40],translationKey:"chalkboard.defensive.goalkeeper.goals_received",singleName:"Gol recibido"},{name:"Atajadas",color:"#FF0092",points:[1,2],categories:[39],translationKey:"chalkboard.defensive.goalkeeper.saves",singleName:"Atajada",isDefaultSelected:!0},{name:"Juego aéreo exitoso",color:"#455A64",points:[1,2],categories:[42],translationKey:"chalkboard.defensive.goalkeeper.successful_aerial_game",singleName:"Juego aéreo exitoso"},{name:"Juego aéreo no exitoso",color:"#008B31",points:[1,2,3],categories:[43],translationKey:"chalkboard.defensive.goalkeeper.unsuccessful_aerial_game",singleName:"Juego aéreo no exitoso"},{name:"1 vs 1",color:"#D49F40",points:[1],categories:[41],translationKey:"chalkboard.defensive.goalkeeper.1_on_1",singleName:"1 vs 1"},{name:"Balón recuperado",color:"#FF9226",points:[1],categories:[312],translationKey:"chalkboard.defensive.goalkeeper.recovered_balls",singleName:"Balón recuperado"}];[...tS,...rS];const xAe=[{name:"Goles recibidos",color:"#336DFF",points:[1,2,3],categories:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],invert:[57,326,56,60,59,55],negative:!1,translationKey:"chalkboard.defensive.team.goals_received",singleName:"Gol recibido"},{name:"Tiros a gol recibidos (portería)",color:"#7ED321",points:[1,2,3],categories:["510_r"],invert:[510],negative:!1,translationKey:"chalkboard.defensive.team.shots_on_goal_received",singleName:"Tiro a gol recibido"},{name:"Tiros a gol recibidos (portería)",color:"#990BFF",points:[1,2,3],categories:["537_r","540_r","544_r","547_r"],invert:[537,540,544,547],translationKey:"chalkboard.defensive.team.shots_on_goal_received",singleName:"Tiro a gol recibido"},{name:"Centros totales recibidos",color:"#FF9226",points:[1,2,3],categories:["13_r","25_r"],invert:[13,25],translationKey:"chalkboard.defensive.team.total_centers_received",singleName:"Centro recibido"},{name:"Centros acertados por el rival",color:"#28A3B2",points:[1,2,3],categories:["98_r","101_r","104_r","105_r","109_r","112_r","115_r","116_r"],invert:[98,101,104,105,109,112,115,116],translationKey:"chalkboard.defensive.team.successful_centers_by_opponent",singleName:"Centro acertado"},{name:"Fuera de lugar provocados",color:"#00DD00",points:[1,2,3],categories:["33_r"],invert:[33],translationKey:"chalkboard.defensive.team.offsides_caused",singleName:"Fuera de lugar"},{name:"Balones recuperados (en disputa)",color:"#FF3399",points:[1,2],categories:[483],translationKey:"chalkboard.defensive.team.balls_recovered_in_challenge",singleName:"Balón recuperado",isDefaultSelected:!0},{name:"Balones recuperados (sin disputa)",color:"#B4005A",points:[1,2],categories:[484],translationKey:"chalkboard.defensive.team.balls_recovered_without_challenge",singleName:"Balón recuperado"},{name:"1 vs 1 exitosos defensivos",color:"#3A3838",points:[1],categories:[5],translationKey:"chalkboard.defensive.team.successful_1_on_1",singleName:"1 vs 1 defensivo"},{name:"1 vs 1 no exitosos defensivos",color:"#008B31",points:[1],categories:[209],translationKey:"chalkboard.defensive.team.unsuccessful_1_on_1",singleName:"1 vs 1 defensivo"},{name:"Balones ganados en área propia",color:"#305496",points:[1,2],categories:[23],translationKey:"chalkboard.defensive.team.balls_won_own_penalty_box",singleName:"Balón ganado"},{name:"Juego aéreo resto del campo",color:"#FF8A4C",points:[1,2,3],categories:[24],translationKey:"chalkboard.defensive.team.arial_game_rest_pitch",singleName:"Juego aéreo"},{name:"Barridas",color:"#700000",points:[1],categories:[518],translationKey:"chalkboard.defensive.team.slide_tackles",singleName:"Barrida"},{name:"Rechaces",color:"#CC0000",points:[1],categories:[34],translationKey:"chalkboard.defensive.team.clearances",singleName:"Rechace"}],Nze="",nS=E=>(k.pushScopeId("data-v-621d63a7"),E=E(),k.popScopeId(),E),bAe={class:"defensive__chalkboard-and-goal__chalkboard"},_Ae={key:0,class:"defensive__chalkboard-and-goal__goal"},wAe={key:0,class:"defensive__featured-players"},TAe={key:1,class:"defensive__local-vs-away"},kAe=nS(()=>k.createElementVNode("div",{class:"defensive__local-vs-away__title"},"Estadística total (local vs visitante)",-1)),SAe={class:"defensive__table-pie"},CAe=nS(()=>k.createElementVNode("div",{class:"defensive__table-pie__title-and-buttons"},[k.createElementVNode("div",{class:"defensive__table-pie__title-and-buttons__title"},"Categorías Defensivas")],-1)),EAe=$o({__name:"ProfileDefensive",props:{isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","categoryplay","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe=k.computed(()=>({"--chalkboard-and-goal-grid-template-columns":B.mainComponentWidth>1010?"repeat(2, 1fr)":"1fr"})),L=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.position_id===1?rS:tS:xAe),M=k.computed(()=>B.isPlayerProfile?"player":"team"),e=k.computed(()=>B.isPlayerProfile?td():fc()),w=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/chalkboardPlays"]:ie.getters["teamsDefensive/chalkboardPlays"]),b=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/chalkboardGames"]:ie.getters["teamsDefensive/chalkboardGames"]),r=k.computed(()=>B.isPlayerProfile?ie.state.playersGeneral.player.team_id:ie.state.teamsGeneral.team.team_id),_=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/getBasePlaysStack"]:ie.getters["teamsDefensive/getPlaysStack"]),v=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/filteredPlaysStack"]:ie.getters["teamsDefensive/filteredPlaysStack"]),l=k.computed(()=>B.isPlayerProfile?ie.getters["playersDefensive/goalPlays"]:ie.getters["teamsDefensive/goalPlays"]),i=k.computed(()=>B.isPlayerProfile?[ie.getters["playersGeneral/player"]]:ie.getters["playersGeneral/seasonPlayers"]),t=k.computed(()=>{let c=[];return B.isPlayerProfile?c=ie.getters["playersDefensive/tableData"]:c=ie.getters["teamsDefensive/tableData"],c.map(u=>Sy(u))}),n=k.computed(()=>ie.getters["playersGeneral/player"].position_id===1),a=k.computed(()=>ie.getters["filterGeneral/getGamesPlayedByTeam"]);k.watch(_,c=>{ie.commit("filterGeneral/setPlaysForGames",c)},{immediate:!0});function o(c){j("openmedia",c)}function s(c){j("partialMediaData",c)}return(c,u)=>(k.openBlock(),k.createElementBlock("div",{class:"defensive",style:k.normalizeStyle(xe.value)},[k.createElementVNode("div",{class:k.normalizeClass(["defensive__chalkboard-and-goal",{horizontal:E.isPlayerProfile&&!n.value}])},[k.createElementVNode("div",bAe,[k.createVNode(Qk,{"analysis-type":"defensive","section-type":M.value,plays:w.value,"play-values-index":e.value,players:i.value,categories:L.value,games:b.value,team:r.value,"is-full":!n.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["section-type","plays","play-values-index","players","categories","games","team","is-full","can-play-videos"])]),!E.isPlayerProfile||n.value?(k.openBlock(),k.createElementBlock("div",_Ae,[k.createVNode(Xk,{plays:l.value,teams:k.unref(ie).getters["teamsGeneral/teamsForAnalysis"],players:i.value,"section-type":E.isPlayerProfile?"player":"team",type:"defensive",onOpenmedia:o},null,8,["plays","teams","players","section-type"])])):k.createCommentVNode("",!0)],2),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",wAe,[k.createVNode(Y3,{"team-players":k.unref(ie).state.playersGeneral.currentTeamPlayers,"featured-players-categories":k.unref(ie).state.teamsDefensive.featuredPlayersCategories,plays:v.value,"can-play-videos":E.canPlayVideos,onOpenmedia:o},null,8,["team-players","featured-players-categories","plays","can-play-videos"])])),E.isPlayerProfile?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",TAe,[kAe,k.createVNode($k,{"video-privileges-playing-as":E.videoPrivilegesPlayingAs,"data-by-categories":k.unref(ie).getters["teamsDefensive/localVsVisitorData"],onOpenmedia:o},null,8,["video-privileges-playing-as","data-by-categories"])])),k.createElementVNode("div",SAe,[CAe,k.createVNode(k.unref(Q3),{data:t.value,"games-for-avg":a.value,"is-player-table":E.isPlayerProfile,"can-play-videos":E.canPlayVideos,onPartialMediaData:s},null,8,["data","games-for-avg","is-player-table","can-play-videos"])])],4))}},[["__scopeId","data-v-621d63a7"]]),Pze="",e0=E=>(k.pushScopeId("data-v-5b8c7cd0"),E=E(),k.popScopeId(),E),MAe=[k.createStaticVNode('<div class="button-filters__icon" data-v-5b8c7cd0><svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-5b8c7cd0><g clip-path="url(#clip0_3355_32121)" data-v-5b8c7cd0><path opacity="0.7" d="M16.3633 5.90771H2.86328C2.55578 5.90771 2.30078 5.65271 2.30078 5.34521C2.30078 5.03771 2.55578 4.78271 2.86328 4.78271H16.3633C16.6708 4.78271 16.9258 5.03771 16.9258 5.34521C16.9258 5.65271 16.6708 5.90771 16.3633 5.90771Z" fill="white" data-v-5b8c7cd0></path><path opacity="0.7" d="M14.1133 9.65771H5.11328C4.80578 9.65771 4.55078 9.40271 4.55078 9.09521C4.55078 8.78771 4.80578 8.53271 5.11328 8.53271H14.1133C14.4208 8.53271 14.6758 8.78771 14.6758 9.09521C14.6758 9.40271 14.4208 9.65771 14.1133 9.65771Z" fill="white" data-v-5b8c7cd0></path><path opacity="0.7" d="M11.1133 13.4077H8.11328C7.80578 13.4077 7.55078 13.1527 7.55078 12.8452C7.55078 12.5377 7.80578 12.2827 8.11328 12.2827H11.1133C11.4208 12.2827 11.6758 12.5377 11.6758 12.8452C11.6758 13.1527 11.4208 13.4077 11.1133 13.4077Z" fill="white" data-v-5b8c7cd0></path></g><defs data-v-5b8c7cd0><clipPath id="clip0_3355_32121" data-v-5b8c7cd0><rect width="18" height="18" fill="white" transform="translate(0.613281 0.0952148)" data-v-5b8c7cd0></rect></clipPath></defs></svg></div><div data-v-5b8c7cd0>Filtros</div>',2)],AAe={class:"container__header"},OAe={class:"container__header__filters"},NAe={class:"container__header__filters__filter"},LAe={class:"container__header__filters__filter"},PAe={class:"container__header__filters__filter"},RAe=e0(()=>k.createElementVNode("div",{class:"container__header__v-separator"},null,-1)),zAe={class:"container__header__switch"},VAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Total",-1)),IAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Promedio",-1)),FAe={class:"container__header__mobile"},UAe=[e0(()=>k.createElementVNode("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k.createElementVNode("path",{id:"Vector",d:"M13 1.30929L11.6907 0L6.5 5.19071L1.30929 0L0 1.30929L5.19071 6.5L0 11.6907L1.30929 13L6.5 7.80929L11.6907 13L13 11.6907L7.80929 6.5L13 1.30929Z",fill:"#A3A3A3"})],-1))],BAe={class:"container__header__mobile__filters"},DAe={class:"container__header__mobile__filters__menus"},qAe={class:"container__header__mobile__filters__menus__menu"},jAe={class:"container__header__mobile__filters__menus__menu"},WAe={class:"container__header__mobile__filters__menus__menu"},KAe=e0(()=>k.createElementVNode("div",{class:"container__header__mobile__filters__v-separator"},null,-1)),GAe={class:"container__header__mobile__filters__switch"},XAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Total",-1)),ZAe=e0(()=>k.createElementVNode("div",{class:"switch-label"},"Promedio",-1)),HAe={class:"container__header__mobile__actions"},JAe={class:"container__body"},YAe=$o({__name:"PossessionOffensiveDefensiveContainer",props:{childComponent:{type:String,default:""},isPlayerProfile:{type:Boolean,default:!0},mainComponentWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0},clientPrivilegesBySeasons:{type:Object,default:()=>null},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},emits:["openmediachalkboard","partialMediaData"],setup(E,{emit:j}){const B=E,ie=Bc(),xe={ProfilePossession:dEe,ProfileOffensive:vAe,ProfileDefensive:EAe},L=k.ref([]),M=k.computed(()=>ie.getters["filterGeneral/getResults"]),e=k.computed(()=>ie.getters["filterGeneral/getSections"]),w=k.computed(()=>ie.getters["filterGeneral/getSeasonId"]),b=k.computed(()=>ie.getters["filterGeneral/getPlayingAs"]),r=k.computed(()=>ie.getters["filterGeneral/getSelectedGamesIds"]),_=k.computed(()=>ie.getters["teamsGeneral/teamId"]),v=k.computed(()=>ie.getters["playersGeneral/player"]),l=k.computed(()=>{if(B.canPlayVideos&&B.clientPrivilegesBySeasons){if(ie.state.filterGeneral.seasonId){const g=B.clientPrivilegesBySeasons.seasonsAndPrivileges.get(ie.state.filterGeneral.seasonId);if(g)return L.value.filter(y=>y.isSelected&&g.playingAs.has(y.playingAs)).length>0}return!1}return B.canPlayVideos}),i=k.ref(!1),t=k.ref(Fk()),n=k.ref({isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"100%",height:"40px"},fieldComponentProps:{widthContainer:"100%"}}),a=k.ref(!1);k.watch(()=>B.isPlayerProfile,g=>{ie.commit("filterGeneral/setIsPlayerAnalysis",g)},{immediate:!0}),k.watch(i,g=>{ie.commit("filterGeneral/setStadisticId",g?0:1)},{immediate:!0}),k.watch(()=>ie.state.filterGeneral.stadisticId,()=>{i.value=ie.state.filterGeneral.stadisticId===0},{immediate:!0});const o=k.computed(()=>{const g={...t.value};return B.mainComponentWidth<520&&(g.width="100%"),g}),s=k.computed(()=>{const g={"--header-flex-direction":"row","--header-v-separator-height":"16px","--header-v-separator-width":"1px","--container-background-color":"#172531"};return B.mainComponentWidth<520?g["--container-background-color"]="#0D1D29":B.mainComponentWidth<750&&(g["--header-flex-direction"]="column",g["--header-v-separator-height"]="1px",g["--header-v-separator-width"]="400px"),g}),c=k.computed(()=>ie.getters["filterGeneral/availableGames"].map(g=>({...g,label:`${g.roundAbbreviation} ${g.team.acronym} vs ${g.rivalTeam.acronym}`,teamsIds:[g.team.team_id,g.rivalTeam.team_id]})));function u(g){const x=g.results.reduce((y,S)=>(S.isSelected&&y.push(S.value),y),[]);ie.commit("filterGeneral/setResults",x)}function f(g){const x=g.gameSections.reduce((S,p)=>(p.isSelected&&S.push(p.value),S),[]),y=g.playingAs.reduce((S,p)=>(p.isSelected&&S.push(p.value),S),[]);ie.commit("filterGeneral/setSections",x),ie.commit("filterGeneral/setPlayingAs",y.length>0&&y.length<2?y[0]:null)}function d(g){const x=g.reduce((y,S)=>(S.isSelected&&y.push(S.id),y),[]);L.value=g,ie.commit("filterGeneral/setSelectedGamesIds",x)}function T(){ie.commit("filterGeneral/setAnalysisType",B.isPlayerProfile?1:2)}function h(g){j("openmediachalkboard",g)}function m(g){g.match_result=M.value,g.playing_as=b.value,g.periods=e.value,g.games=r.value,g.seasonId=w.value,g.teamId=_.value,g.playerId=v.value.player_id,j("partialMediaData",g)}return T(),(g,x)=>(k.openBlock(),k.createElementBlock("div",{ref:"container",class:"container",style:k.normalizeStyle(s.value)},[k.createElementVNode("h1",null,"canPlayVideosFilter: "+k.toDisplayString(l.value),1),k.withDirectives(k.createElementVNode("div",{role:"button",class:"container__button-filters",onClick:x[0]||(x[0]=y=>a.value=!a.value)},MAe,512),[[k.vShow,E.mainComponentWidth<520]]),k.withDirectives(k.createElementVNode("div",AAe,[k.createElementVNode("div",OAe,[k.createElementVNode("div",NAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).RESULTS,"button-filter-props":o.value,"onUpdate:filters":u},null,8,["filter-type","button-filter-props"])]),k.createElementVNode("div",LAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).DETAILS,"button-filter-props":o.value,"onUpdate:filters":f},null,8,["filter-type","button-filter-props"])]),k.createElementVNode("div",PAe,[k.createVNode(k.unref(Dp),{"filter-type":k.unref(Vn).GAMES,filters:c.value,"button-filter-props":o.value,"onUpdate:filters":d},null,8,["filter-type","filters","button-filter-props"])])]),RAe,k.createElementVNode("div",zAe,[VAe,k.createVNode(j2,{modelValue:i.value,"onUpdate:modelValue":x[1]||(x[1]=y=>i.value=y)},null,8,["modelValue"]),IAe])],512),[[k.vShow,E.mainComponentWidth>520]]),k.withDirectives(k.createElementVNode("div",FAe,[k.createElementVNode("div",{role:"button",class:"container__header__mobile__button-close",onClick:x[2]||(x[2]=y=>a.value=!1)},UAe),k.createElementVNode("div",BAe,[k.createElementVNode("div",DAe,[k.createElementVNode("div",qAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).RESULTS,width:"100%","button-filter-props":o.value,"onUpdate:filters":u}),null,16,["filter-type","button-filter-props"])]),k.createElementVNode("div",jAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).DETAILS,"button-filter-props":o.value,width:"100%","onUpdate:filters":f}),null,16,["filter-type","button-filter-props"])]),k.createElementVNode("div",WAe,[k.createVNode(k.unref(Dp),k.mergeProps(n.value,{"filter-type":k.unref(Vn).GAMES,filters:c.value,"button-filter-props":o.value,width:"100%","onUpdate:filters":d}),null,16,["filter-type","filters","button-filter-props"])])]),KAe,k.createElementVNode("div",GAe,[XAe,k.createVNode(j2,{modelValue:i.value,"onUpdate:modelValue":x[3]||(x[3]=y=>i.value=y)},null,8,["modelValue"]),ZAe])]),k.createElementVNode("div",HAe,[k.createElementVNode("div",{role:"button",class:"container__header__mobile__actions__apply",onClick:x[4]||(x[4]=y=>a.value=!1)}," Aplicar filtros ")])],512),[[k.vShow,!(E.mainComponentWidth>520)&&a.value]]),k.createElementVNode("div",JAe,[k.createElementVNode("h1",null,"video privileges playing as : "+k.toDisplayString(E.videoPrivilegesPlayingAs),1),k.createElementVNode("h1",null,"childComponent: "+k.toDisplayString(E.childComponent),1),(k.openBlock(),k.createBlock(k.resolveDynamicComponent(xe[E.childComponent]),{"is-player-profile":E.isPlayerProfile,"main-component-width":E.mainComponentWidth,"can-play-videos":l.value,"video-privileges-playing-as":E.videoPrivilegesPlayingAs,onOpenmedia:h,onPartialMediaData:m},null,40,["is-player-profile","main-component-width","can-play-videos","video-privileges-playing-as"]))])],4))}},[["__scopeId","data-v-5b8c7cd0"]]),Ize="",QAe={class:"profile__carousel-profile"},$Ae={class:"container-section"},eOe={class:"profile__sections"},tOe={class:"profile__sections__menu"},rOe={class:"profile__sections__menu__contmenuswitch"},nOe={key:0,class:"profile__sections__content"},aOe=$o({__name:"GSC-PlayerTeamProfile",props:{seasonId:{type:Number,default:1772},playerId:{type:Number,default:35240},teamId:{type:Number,default:14},isPlayerProfile:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},clientPrivilegesBySeasons:{type:Object,default:()=>null},isOneProfile:{type:Boolean,default:!1}},emits:["openmedia"],setup(E,{emit:j}){const B=E,ie={PossessionOffensiveDefensiveContainer:YAe,AllSectionsProfilePlayer:cG,SummaryContainer:dG,XRayContainer:sZ,GSCSetPieceContainer:Ove,VideosPlayersContainer:dZ},xe=Bc();Yf.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";let L=null;const M=k.ref(0),e=k.ref(null),w=k.ref([{}]),b=k.ref(0),r=k.ref({}),_=k.ref(!0),v=k.ref(null),l=k.ref(null),i=k.ref(new Set([1,2])),t=k.computed(()=>n.value?[{id:0,name:"Resumen",mainComponent:"SummaryContainer"},{id:5,name:"Radiografía",mainComponent:"XRayContainer"},{id:1,name:"Posesión",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfilePossession"},{id:2,name:"Ofensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileOffensive"},{id:3,name:"Defensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileDefensive"},{id:4,name:"Videos",mainComponent:"VideosPlayersContainer"},{id:6,name:"Tactica Fija",mainComponent:"GSCSetPieceContainer"}]:[{id:0,name:"Resumen",mainComponent:"SummaryContainer"},{id:5,name:"Radiografía",mainComponent:"XRayContainer"},{id:1,name:"Posesión",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfilePossession"},{id:2,name:"Ofensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileOffensive"},{id:3,name:"Defensivo",mainComponent:"PossessionOffensiveDefensiveContainer",childComponent:"ProfileDefensive"},{id:6,name:"Tactica Fija",mainComponent:"GSCSetPieceContainer"}]),n=k.computed(()=>{if(B.canPlayVideos&&B.clientPrivilegesBySeasons){if(l.value){const R=B.isPlayerProfile?xe.getters["playersGeneral/gamesPlayed"]:xe.getters["teamsGeneral/gamesPlayed"],z=B.clientPrivilegesBySeasons.seasonsAndPrivileges.get(l.value.id);if(z)return c(z.playingAs),R.filter(K=>z.playingAs.has(K.playingAs)).length>0;c(new Set)}return!1}else B.canPlayVideos&&c(new Set([1,2]));return B.canPlayVideos}),a=k.computed(()=>{const R={club:"",nationalTeam:""};if(xe.state.playersGeneral.player){const z=xe.state.playersGeneral.player;R.club=z.team_logo,R.nationalTeam=z.national_team?z.national_team.team_logo:""}return R}),o=k.computed(()=>t.value.map(R=>R.name)),s=k.computed(()=>{let R=null;return l.value&&(r.value.player_id||r.value.team_id)&&(B.isPlayerProfile?R={player:r.value.player_id,season:l.value.id,type:1,team:B.teamId}:R={player:null,season:l.value.id,type:2,team:r.value.team_id}),R});k.watch(()=>t.value,()=>{v.value||(v.value=t.value[0])},{immediate:!0}),k.watch(()=>xe.state.playersGeneral.player,R=>{r.value.profileInfo=R},{deep:!0}),k.watch(()=>xe.getters["playersGeneral/player"],()=>{B.isPlayerProfile&&(r.value.profileInfo=xe.getters["playersGeneral/player"])});function c(R){i.value=R}function u(R){_.value=R}async function f(R,z){try{u(!0);const[U]=await Promise.all([T(R,z),xe.dispatch("playersGeneral/checkState",{seasonId:Number(B.seasonId),playerId:Number(B.playerId)})]),K=xe.getters["playersGeneral/player"];let I=null;U.forEach(q=>{const J=new Date(q.dob),D=AR(J),G=OR({start:J,end:new Date});q.yearOfBirth=D,q.age=G.years,q.season=l.value,q.player_id===K.player_id&&(I=q)}),K&&(I.profileInfo=K,b.value=I.player_id,r.value=I),w.value=B.isOneProfile?U.filter(q=>q.player_id===B.playerId):U}catch(U){throw new Error(U)}finally{u(!1)}}async function d(R){try{u(!0);const[z,U,K]=await Promise.all([Dy({seasonId:R}),zx({seasonId:R}),Yf.get(`https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/${R}`),xe.dispatch("teamsGeneral/checkState",{teamId:B.teamId,seasonId:R})]),I=K.data.table_type?K.data.groups.reduce((X,oe)=>(X.push(...oe.data),X),[]):K.data.data,q=new Date().getTime(),J=z.teams,D=U.games.filter(X=>{const oe=`${X.date}T${X.schedule}Z`,ne=new Date(oe).getTime();return X.dateTimeMillis=ne,X.game_status===4&&ne>q});D.sort((X,oe)=>X.dateTimeMillis-oe.dateTimeMillis);let G=null;J.forEach(X=>{X.nextGames=[],X.currentSeason=l.value,X.tableData=I?I.find(oe=>oe.team_id===X.team_id):null,D.forEach(oe=>{(oe.home_team===X.team_id||oe.visiting_team===X.team_id)&&X.nextGames.push(oe)}),X.team_id===(xe.state.filterGeneral.teamId||B.teamId)&&(G=X)}),G&&(G.profileInfo={...G},b.value=G.team_id,r.value=G),w.value=B.isOneProfile?J.filter(X=>X.team_id===B.teamId):J}catch(z){throw new Error(z)}finally{u(!1)}}async function T(R,z){try{const U=await Yf.get(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${z}/${R}`);return(U.data&&U.data.length?U.data[0]:{players:[]}).players}catch(U){return Promise.reject(U)}}function h(){L=new ResizeObserver(R=>{for(const z of R)M.value=z.contentRect.width}),L.observe(e.value)}async function m(R){try{R.player_id&&(u(!0),await xe.dispatch("playersGeneral/cleanData"),await xe.dispatch("playersGeneral/checkState",{seasonId:Number(l.value.id||B.seasonId),playerId:Number(R.player_id)}),R.profileInfo||(R.profileInfo=xe.getters["playersGeneral/player"]))}catch(z){return Promise.reject(z)}finally{u(!1)}}async function g(R){try{R.team_id&&(u(!0),xe.commit("teamsGeneral/updateTeam",{}),xe.commit("filterGeneral/setTeamId",R.team_id),await xe.dispatch("teamsGeneral/cleanData"),await xe.dispatch("teamsGeneral/checkState",{teamId:R.team_id,seasonId:Number(xe.state.filterGeneral.seasonId||B.seasonId)}),R.profileInfo||(R.profileInfo=xe.getters["teamsGeneral/team"]))}catch(z){return Promise.reject(z)}finally{u(!1)}}function x(R){if(B.isPlayerProfile){const z=R.selectedItem;if(b.value===z.player_id)return;b.value=z.player_id,r.value=z,m(z)}else{const z=R.selectedItem;if(b.value===z.team_id)return;b.value=z.team_id,r.value=z,g(z)}}function y(R){v.value=t.value.find(z=>z.name===R)||t.value[0]}function S(R){(!l.value||l.value.id!==R.id)&&(l.value=R,B.isPlayerProfile?m(r.value):d(R.id))}k.onMounted(()=>{h()});async function p(){try{xe.commit("filterGeneral/setSeasonId",B.seasonId),xe.commit("filterGeneral/setTeamId",B.teamId),await xe.dispatch("playersGeneral/cleanData"),await xe.dispatch("teamsGeneral/cleanData"),B.isPlayerProfile?await f(B.teamId,B.seasonId):(xe.commit("teamsGeneral/updateTeam",{}),await d(B.seasonId))}catch(R){console.error(R)}}function O(R){if(!n.value)return;let z=[],U=0,K=R.seasonId,I=[],q=0;const J=2,D=3;if(R.id||R.rId){const X=R.id?Array.isArray(R.id)?R.id:[R.id]:[],oe=R.rId?Array.isArray(R.rId)?R.rId.map(ne=>`${ne}_r`):[`${R.rId}_r`]:[];I=[...X,...oe]}B.isPlayerProfile?(z=[xe.state.playersGeneral.player.player_id],q=J):(U=xe.state.filterGeneral.teamId,q=D);const G={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:q,gameIds:null,playerIds:z,goalkeeperIds:[],categoryIds:I,teamId:U,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.name},objectPlaySync:null};j("openmedia",G)}function C(R){if(!n.value)return;let z=[],U=0,K=B.seasonId,I=[],q=0;const J=2,D=3;if(R.id||R.rId){const X=R.id?Array.isArray(R.id)?R.id:[R.id]:[],oe=R.rId?Array.isArray(R.rId)?R.rId.map(ne=>`${ne}_r`):[`${R.rId}_r`]:[];I=[...X,...oe]}B.isPlayerProfile?(z=[B.playerId],q=J):(U=B.teamId,q=D);const G={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:q,gameIds:null,playerIds:z,goalkeeperIds:[],categoryIds:I,teamId:U,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.name},objectPlaySync:null};j("openmedia",G)}function N(R){n.value&&(R.tournaments=xe.state.filterGeneral.tournamentsForMediaPlayer,j("openmedia",R))}function V(R){if(!n.value)return;let z=[],U=0,K=R.seasonId,I=0;const q=2,J=3;B.isPlayerProfile?(z=[R.playerId],I=q):(U=R.teamId,I=J);const D={seasonId:K,tournaments:xe.state.filterGeneral.tournamentsForMediaPlayer,isFeaturedPlayers:!1,mainSectionType:1,playListType:I,gameIds:R.games,playerIds:z,goalkeeperIds:[],categoryIds:R.categories.filter(G=>G),teamId:U,matchResult:R.match_result,categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:R.description,timeSections:R.timeSection===6?periods:R.timeSection,playingAs:R.playing_as?[R.playing_as]:[1,2]},objectPlaySync:null};j("openmedia",D)}return p(),(R,z)=>(k.openBlock(),k.createElementBlock("div",{ref_key:"profile",ref:e,class:"profile"},[k.withDirectives(k.createVNode(DA,null,null,512),[[k.vShow,_.value]]),k.createVNode(jC,{"switch-logos-urls":a.value,"current-season-id":E.seasonId,"is-player-profile":E.isPlayerProfile,onChangeSeason:S},null,8,["switch-logos-urls","current-season-id","is-player-profile"]),k.createElementVNode("div",QAe,[k.createVNode(zA,{items:w.value,"component-width":M.value,"current-profile-id":b.value,"is-player-profile":E.isPlayerProfile,"can-play-videos":n.value,"onUpdate:profile":x,onOpenmedia:N},null,8,["items","component-width","current-profile-id","is-player-profile","can-play-videos"])]),k.createElementVNode("div",$Ae,[s.value?(k.openBlock(),k.createBlock(k.unref(uR),{key:0,type:E.isPlayerProfile?"player":"team",data:s.value,"can-play-videos":n.value,onOpenmedia:N},null,8,["type","data","can-play-videos"])):k.createCommentVNode("",!0)]),k.createElementVNode("div",eOe,[k.createElementVNode("div",tOe,[k.createElementVNode("div",rOe,[v.value?(k.openBlock(),k.createBlock(k.unref(RN),{key:0,type:2,buttons:o.value,"font-family":"Poppins-Regular","selected-option":v.value.name,"font-size":"16px",width:M.value<400||M.value<700||M.value<840?"110px":M.value<1050?"130px":"165px",borderWidth:"1px",arrow:!1,height:"30px",onInput:y},null,8,["buttons","selected-option","width"])):k.createCommentVNode("",!0)])]),v.value?(k.openBlock(),k.createElementBlock("div",nOe,[(k.openBlock(),k.createBlock(k.resolveDynamicComponent(ie[v.value.mainComponent]),{"child-component":v.value.childComponent,"team-id":E.teamId,"player-id":E.playerId,"is-player-profile":E.isPlayerProfile,"main-component-width":M.value,"is-synchronization":E.isSynchronization,"is-tactic-visible":l.value&&l.value.showTactic,"can-play-videos":n.value,"client-privileges-by-seasons":E.clientPrivilegesBySeasons,"video-privileges-playing-as":i.value,onOpenmedia:C,onOpenmediaXR:O,onOpenmediachalkboard:N,onPartialMediaData:V,onOpenMediaPlayer:N},null,40,["child-component","team-id","player-id","is-player-profile","main-component-width","is-synchronization","is-tactic-visible","can-play-videos","client-privileges-by-seasons","video-privileges-playing-as"]))])):k.createCommentVNode("",!0)])],512))}},[["__scopeId","data-v-a482ddff"]]);async function aS({seasonId:E},j=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${E}.json`)).json()).data}catch(B){if(j)return aS({seasonId:E},!1);throw new Error(B)}}function F_(E,j){return E.reduce((B,ie)=>{switch(ie[j.categoryType]){case 1:B.possession.push(ie);break;case 2:B.offensive.push(ie);break;case 3:B.defensive.push(ie);break}return B},{possession:[],offensive:[],defensive:[]})}function t0(E,j,B,ie,xe,L,M=!1){const e=B.map(w=>w===1?2:w===2?1:3);return E.filter(w=>{const b=L&&w[xe.teamId]?w[xe.teamId]!==L:!1,r=j===1?2:1;return(M||ie.includes(w[xe.gameId]))&&(!j||(b?r:j)===w[xe.playingAs])&&(B.includes(w[xe.matchResult])&&w[xe.teamId]===L||e.includes(w[xe.matchResult])&&w[xe.teamId]!==L)})}function iOe(E,j,B,ie,xe,L){const M=B.map(e=>e===1?2:e===2?1:3);return E.filter(e=>{const w=L&&e[xe.teamId]?e[xe.teamId]!==L:!1,b=j===1?2:1;return w&&ie.includes(e[xe.gameId])&&(!j||b===e[xe.playingAs])&&M.includes(e[xe.matchResult])})}const oOe=["categoryId","matchLapse","section","matchResult","playingAs","total"];let U_=null;function B_(){return U_||(U_=ym(oOe)),U_}const sOe={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:E=>E.seasonPlays,filteredPlaysStack(E,j,B,ie){return t0(E.seasonPlays,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],B_(),ie["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(E){const j=E.currentSeasonGames.reduce((B,ie)=>{const xe={...ie};return xe.home_team=E.currentSeasonTeams.find(L=>L.team_id===ie.home_team),xe.visiting_team=E.currentSeasonTeams.find(L=>L.team_id===ie.visiting_team),B[ie.matchday_abbreviation]?B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date]?B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date].push(xe):B[ie.matchday_abbreviation][ie.game_status===3?"canceled":ie.date]=[xe]:B[ie.matchday_abbreviation]={[ie.game_status===3?"canceled":ie.date]:[xe]},B},{});for(let[B,ie]of Object.entries(j))j[B]=Object.entries(ie).map(([xe,L])=>({date:xe,games:L})),j[B].sort((xe,L)=>xe.date<L.date?-1:xe.date>L.date?1:0);return j},matchdaysDates(E,j){let B=[];if(j.nextGamesSchedule){let ie=Object.keys(j.nextGamesSchedule);for(let xe of ie){let L=Number(xe.replace("M","")),M=j.nextGamesSchedule[xe].map(e=>({matchday:L,date:new Date(e.date)}));B=B.concat(M)}}return B},closestMatchDay(E,j){let B=new Date,ie=0,xe=-new Date(0,0,0).valueOf(),L=j.matchdaysDates,M=L.length;for(let e=0;e<L.length;e++)ie=Math.abs(L[e].date-B),ie<xe&&(M=e,xe=ie);return L[M]?L[M].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(E,j){E.booleanIsLiveGamesModalOpen=j},setBooleanAreLiveGames(E,j){E.booleanAreLiveGames=j},updateSeasonPlays(E,j){E.seasonPlays=j},updateCurrentSeasonTeams(E,j){E.currentSeasonTeams=j},updateCurrentSeasonGames(E,j){E.currentSeasonGames=j},updateSelectedRound(E,j){E.selectedRound=j}},actions:{async getSeasonPlays({commit:E,rootGetters:j},B=!1){try{const ie=await aS({seasonId:j["filterGeneral/getSeasonId"]});if(B)return ie;E("updateSeasonPlays",ie)}catch(ie){return Promise.reject(ie)}},async getCurrentSeasonGames({commit:E,rootGetters:j}){try{const B=await zx({seasonId:j["loginGeneral/seasonId"]});E("updateCurrentSeasonGames",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonTeams({commit:E,rootGetters:j}){try{const B=await Dy({seasonId:j["loginGeneral/seasonId"]});E("updateCurrentSeasonTeams",B.teams)}catch(B){return Promise.reject(B)}},async isDataFilled({state:E,dispatch:j,commit:B}){try{if(E.currentSeasonGames.length>0&&E.currentSeasonTeams.length>0)return B("setIsSectionLoading",!1,{root:!0}),!0;const ie=[void 0,void 0];return E.currentSeasonGames.length===0&&(ie[0]=j("getCurrentSeasonGames")),E.currentSeasonTeams.length===0&&(ie[1]=j("getCurrentSeasonTeams")),await Promise.all(ie),!1}catch(ie){throw new Error(ie)}}}}},iS={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},oS={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},sS={4:"OF",5:"Cf",6:"S",7:"F"},Q1=td(),lS=fc(),cS=[1784,1741,1512,881];function lOe(E,j){if(E.size!==j.length)return!0;for(let B=0;B<j.length;B++)if(!E.has(j[B].id))return!0;return!1}const cOe={filterGeneral:{namespaced:!0,state:{sections:[],results:[],playingAs:null,seasonId:null,seasonType:0,categoryType:null,seasons:[],seasonsIds:new Set,stadisticId:1,playsForGames:[],seasonTeamsMap:new Map,seasonGamesMap:new Map,selectedGamesIds:[],analysisType:1,teamId:0,tournamentsForMediaPlayer:new Map,hasPlayerNationalTeam:!1,hasPlayerClubSeasons:!0,isPlayerNationalTeam:!1,isPlayerAnalysis:!1},getters:{getSections:E=>E.sections,getResults:E=>E.results,getPlayingAs:E=>E.playingAs,getCategoryType:E=>E.categoryType,getSeasons:E=>E.seasons,getSeasonId(E,j,B,ie){let xe=window.localStorage.getItem("seasonSelected");xe&&(xe=Number(xe));const L=xe||ie["loginGeneral/seasonId"];return E.seasonId||L},isPlayersAnalysis:E=>E.isPlayerAnalysis,getGamesPlayed(E,j,B,ie){const xe=j.getStadisticId,L=ie["playersGeneral/player"],M=1,e=L?L.position_id:null,w=ie["playersGeneral/seasonPlayers"].filter(r=>{let _=e===null?r.position_id!==M:!1;return e&&(_=e===M?r.position_id===M:r.position_id!==M),_}).length,b=ie["teamsGeneral/teamsForAnalysis"].length;return xe===0?ie["gamesGeneral/seasonGamesPlayed"].filter(_=>_.game_status!==0).length*w/b:w},getGamesPlayedByTeam(E,j,B,ie){if(j.getStadisticId===0){if(j.isPlayersAnalysis)return Object.keys([...ie["playersPossession/getBasePlaysStack"],...ie["playersOffensive/getBasePlaysStack"],...ie["playersDefensive/getBasePlaysStack"]].filter(e=>E.playingAs===null?!0:e[Q1.playingAs]===E.playingAs).filter(e=>E.results.includes(e[Q1.matchResult])).reduce((e,w)=>(e[w[Q1.gameId]]=[...e[w[Q1.gameId]]||[],w],e),{})).length;const L=ie["gamesGeneral/seasonGamesPlayed"],M=ie["teamsGeneral/team"].team_id;return L.filter(e=>e.game_status!==0).filter(e=>{let w;return E.playingAs===null?w=e.home_team===M||e.visiting_team===M:E.playingAs===1?w=e.home_team===M:w=e.visiting_team===M,w}).filter(e=>{const w=e.home_team===M;let b=1;return e.score[0]>e.score[1]&&!w||e.score[0]<e.score[1]&&w?b=2:e.score[0]===e.score[1]&&(b=3),E.results.includes(b)}).length}else return 1},getGamesPlayedByPlayer:(E,j)=>(B,ie=!1)=>{if(j.getStadisticId===0){if(B){const xe=ie?Q1:lS;return Object.keys(B.reduce((L,M)=>((E.playingAs===null||M[xe.playingAs]===E.playingAs)&&E.results.includes(M[xe.matchResult])&&(L[M[xe.gameId]]=[...L[M[xe.gameId]]||[],M]),L),{})).length}return 0}return 1},getStadisticId:E=>E.stadisticId,getCategoryTypeName(E){let j;switch(E.categoryType){case 1:j="posesion";break;case 2:j="ofensivo";break;case 3:j="defensivo";break}return j},getSelectedGamesIds(E){return E.selectedGamesIds},isCup(E,j){return cS.includes(j.getSeasonId)},availableGames(E,j){const B=E.analysisType===1?Q1:lS,ie=E.playsForGames.reduce((L,M)=>{if(!L.has(M[B.gameId])){const e=M[B.teamId]===E.teamId;if(E.results.includes(M[B.matchResult])&&(E.analysisType===1||e)&&(!E.playingAs||E.playingAs===M[B.playingAs])){const w=E.seasonGamesMap.get(M[B.gameId]);if(w){let b=!(E.analysisType===2&&M[B.teamId]!==E.teamId);const r=w.home_team===E.teamId?1:2,_=b?M[B.playingAs]===1?w.visiting_team:w.home_team:M[B.playingAs]===1?w.home_team:w.visiting_team,v=E.seasonTeamsMap.get(_),l=E.seasonTeamsMap.get(E.teamId);let i="";const t=w.matchday_abbreviation.replace("M",""),n=`J${t}`;w.seasonType===0?j.isCup?j.getSeasonId===881?i=sS[t]||n:i=oS[w.matchday_abbreviation]?w.matchday_abbreviation:n:i=n:w.seasonType===1?i=iS[w.matchday_abbreviation]:i=w.matchday_abbreviation.replace("PO","R"),L.set(M[B.gameId],{id:M[B.gameId],isSelected:!0,dateTimeMillis:w.dateTimeMillis,team:l,rivalTeam:v,roundAbbreviation:i,playingAs:r})}}}return L},new Map),xe=Array.from(ie.values());return xe.sort((L,M)=>L.dateTimeMillis-M.dateTimeMillis),xe}},mutations:{setIsPlayerAnalysis(E,j=!1){E.isPlayerAnalysis=j},setIsPlayerNationalTeam(E,j=!1){E.isPlayerNationalTeam=j},setHasPlayerNationalTeam(E,j=!1){E.hasPlayerNationalTeam=j},setHasPlayerClubSeasons(E,j=!0){E.hasPlayerClubSeasons=j},setTournamentsForMediaPlayer(E,j){E.tournamentsForMediaPlayer=j},setAnalysisType(E,j){E.analysisType=j},setTeamId(E,j){E.teamId=j},setSelectedGamesIds(E,j){E.selectedGamesIds=j},setSeasonTeamsMap(E,j){E.seasonTeamsMap=j},setSeasonGamesMap(E,j){E.seasonGamesMap=j},setSections:(E,j)=>{E.sections=j},setResults:(E,j)=>{E.results=j},setPlayingAs:(E,j)=>{E.playingAs=j},setSeasonId:(E,j)=>{E.seasonId=Number(j)},setCategoryType:(E,j)=>{E.categoryType=j},setSeasons(E,j){lOe(E.seasonsIds,j)&&(E.seasons=j,E.seasonsIds=new Set(j.map(B=>B.id)))},setStadisticId:(E,j)=>{E.stadisticId=j},setSeasonType(E,j){E.seasonType=j},setPlaysForGames(E,j){E.playsForGames=j}},actions:{updateSeasons({state:E,commit:j},{seasons:B}){if(B){const ie=new Map,xe=Object.entries(B).reduce((L,[M,e])=>{const w=Number(M),b={_id:w,id:w,name:e.name,tournament:{tournament_type:cS.includes(w)},seasons:[{id:w,related_seasons:[],type:0}]};return ie.set(w,b),L.push({id:w,name:e.name,type:e.type,showTactic:e.show_tactic}),L},[]);j("setTournamentsForMediaPlayer",ie),j("setSeasons",xe.sort((L,M)=>M.id-L.id)),xe.length&&((!E.seasonId||!xe.find(L=>L.id===E.seasonId))&&j("setSeasonId",xe[0].id),j("setSeasonType",xe.find(L=>L.id===E.seasonId).type))}}}}},D_={playsGoal:[[124234234,53e3,2002,"054:00.001",12e3,2,1,4,1,2,1,.412,.085],[124234235,53010,16226,"025:00.001",59800,2,1,2,2,1,1,.381,.07],[124234236,53e3,18010,"038:00.001",53800,2,1,3,3,2,1,.12,.16],[124234237,53010,39038,"044:00.001",6e4,2,1,3,1,1,1,.4,.12],[124234238,53e3,11760,"088:00.001",12e3,2,1,6,2,2,1,.52,.01],[124234239,53010,18870,"012:00.001",59800,2,1,1,3,1,1,.52,.15],[124234240,53e3,27695,"028:00.001",53800,2,1,2,1,2,1,.55,.21],[124234255,53010,2002,"057:00.001",6e4,2,1,4,2,1,1,.83,.13],[124234234,53e3,11556,"054:00.001",12e3,3,1,4,1,2,1,.512,.075],[124234235,53010,16226,"025:00.001",59800,3,1,2,2,1,1,.381,.07],[124234236,53e3,2002,"038:00.001",53800,3,1,3,3,2,1,.12,.16],[124234237,53010,39038,"044:00.001",6e4,3,1,3,1,1,1,.4,.12],[124234238,53e3,11760,"088:00.001",12e3,3,1,6,2,2,1,.52,.01],[124234239,53010,2002,"012:00.001",59800,3,1,1,3,1,1,.52,.15],[124234240,53e3,27695,"028:00.001",53800,3,1,2,1,2,1,.55,.21],[124234255,53010,344,"057:00.001",6e4,3,1,4,2,1,1,.83,.13]],plays:[[22147985,53010,27164,"061:15.865",12,2,2,4,1,2,1,1,10,.5393,.7039,.5813,.8112,.4645,.9573],[22148143,53010,16155,"061:15.865",12,2,2,6,1,2,1,1,10,.2597,.2854,.3201,.1908,.3411,.1615],[22148451,53010,2002,"092:30.708",547,2,2,5,1,2,1,1,10,.2283,.2195,.3149,.202,.4986,.0439],[22146832,53010,2002,"031:50.331",208,2,1,3,1,2,1,1,10,.9239,.8715,.9239,.8715,.9225,.8834],[21144941,53e3,427,"047:39.957",12,2,1,3,2,1,1,1,10,.4855,.8659,.4855,.8659,.5275,.9557],[21144995,53e3,427,"047:39.957",547,2,1,3,2,1,1,1,10,.4855,.8659,.4855,.8659,.5275,.9557],[22147985,53010,2002,"061:15.865",12,3,2,4,1,1,1,1,10,.5393,.7039,.5813,.8112,.4645,.9573],[22148143,53010,16155,"061:15.865",12,3,2,6,1,1,1,1,10,.2597,.2854,.3201,.1908,.3411,.1615],[22148451,53010,27164,"092:30.708",547,3,2,5,1,1,1,1,10,.2283,.2195,.3149,.202,.4986,.0439],[22146832,53010,2002,"031:50.331",547,3,1,3,1,1,1,1,10,.9239,.8715,.9239,.8715,.9225,.8834]]};async function uOe({seasonId:E,playerId:j}){try{const B=`https://0b6i026nwg.execute-api.us-west-2.amazonaws.com/prod/playerInfo/${E}/${j}`;return(await Du({url:B})).data}catch(B){return Promise.reject(B)}}async function uS({seasonId:E,playerId:j}){try{const{data:B}=await Du({url:`https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/${E}/${j}`});return B}catch(B){throw new Error(B)}}async function q_({seasonId:E,playerId:j}){try{const B=`https://fn0z0dd0u3.execute-api.us-west-2.amazonaws.com/prod/statsPlayerBySeason/${E}/${j}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}async function dS({seasonId:E,teamId:j}){try{const B=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${E}/${j||""}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}async function pS({seasonId:E,playerId:j}){try{const B=`https://lktcjrffmb.execute-api.us-west-2.amazonaws.com/prod/goalsPlayerBySeason/${E}/${j}`;return await Du({url:B})}catch(B){return Promise.reject(B)}}const dOe=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinateX","coordinateY"];let j_=null;function N2(){return j_||(j_=ym(dOe)),j_}const pOe=new Map([[1,{ids:new Set([39]),position:"portero",name:"Atajadas"}],[2,{ids:new Set([482]),position:"defensa central",name:"Balones recuperados"}],[3,{ids:new Set([5]),position:"lateral por izquierda",name:"1vs1 exitosos defensivos"}],[4,{ids:new Set([5]),position:"lateral por derecha",name:"1vs1 exitosos defensivos"}],[5,{ids:new Set([4]),position:"volante por izquierda",name:"1vs1 exitosos ofensivos"}],[6,{ids:new Set([4]),position:"volante por derecha",name:"1vs1 exitosos ofensivos"}],[7,{ids:new Set([483,484]),position:"volante defensivo",name:"Balones recuperados"}],[8,{ids:new Set([510]),position:"volante ofensivo",name:"Tiros a gol"}],[9,{ids:new Set([12]),position:"delantero",name:"Goles"}]]);function fS(E){return Object.entries(E).reduce((j,[B,ie])=>(ie.show_videos&&(j[B]={name:ie.name}),j),{})}const W_={player:{},seasonPlayers:[],seasonPlayersMap:new Map,currentTeamPlayers:[],playerSeasons:{0:{},1:{}},playsGoal:D_.playsGoal,plays:D_.plays,playerTeamClass:null,lastPlayersForPlayersView:[],lastTeamForPlayersView:0,lastTeamNameForPlayersView:"",lastSeasonForSeasonPlayers:0,lastSeasonPlayers:[],loadCount:0,playerGames:[]},fOe={namespaced:!0,state:W_,mutations:{setPlayerGames(E,j){E.playerGames=j},setLoadCount(E,j){E.loadCount=j},updateSeasonPlayers(E,j){E.lastSeasonPlayers=j,E.seasonPlayersMap.clear(),E.seasonPlayers=j.reduce((B,ie)=>(ie.players.forEach(xe=>{E.seasonPlayersMap.set(xe.player_id,xe),B.push(xe)}),B),[])},updatePlayerSeasons(E,{teamClass:j=0,seasons:B={}}){E.playerSeasons[j]=B},updatePlayer(E,j){E.player=j},updateCurrentTeamPlayers(E,j){E.currentTeamPlayers=j},updatePlayerTeamClass(E,j){E.playerTeamClass=j},updateTeamForPlayersView(E,j){E.lastTeamForPlayersView=j},updateTeamNameForPlayersView(E,j){E.lastTeamNameForPlayersView=j},updatePlayersForPlayersView(E,j){E.lastPlayersForPlayersView=j},updateLastSeasonForSeasonPlayers(E,j){E.lastSeasonForSeasonPlayers=j}},actions:{cleanData({commit:E}){E("playersPossession/updatePlaysStack",[],{root:!0})},async checkState({commit:E,dispatch:j,rootGetters:B},{seasonId:ie,playerId:xe}){try{E("updatePlayerTeamClass",null),E("updatePlayer",{player_id:xe}),E("filterGeneral/setSeasonId",ie||B["loginGeneral/seasonId"],{root:!0});const L=[uS({seasonId:ie||B["loginGeneral/seasonId"],playerId:xe})];await j("fillStatisticData",{teamClass:0,promises:L})}catch(L){throw new Error(L)}},async checkStateSummary({commit:E,dispatch:j},{seasonNumber:B,playerId:ie}){try{E("updatePlayerTeamClass",null),E("updatePlayer",{player_id:ie});const xe=[uS({seasonId:B,playerId:ie})];await j("fillStatisticDataSummary",{teamClass:0,promises:xe})}catch(xe){throw new Error(xe)}},async fillStatisticDataSummary({dispatch:E,commit:j,state:B,rootGetters:ie,rootState:xe},L={teamClass:0,promises:[void 0]}){try{B.loadCount+=1,L.promises.push(E("getPlayersBySeason",!0)),L.promises.push(E("teamsGeneral/getTeamsBySeasonForAnalysis",!0,{root:!0})),L.promises.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),L.promises.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),L.promises.push(pS({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id})),L.promises.push(q_({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id}));const[M,e,w,b,r,{data:{data_combination:_}},{data:{data:{posession:v,offensive:l,defensive:i}}}]=await Promise.all(L.promises),t=b.games||[];if(M&&j("updatePlayer",M),w){const a=w.reduce((o,s)=>(o.set(s.team_id,s),o),new Map);xe.teamsGeneral.seasonTeams.length===0&&j("teamsGeneral/updateTeams",w,{root:!0}),j("filterGeneral/setSeasonTeamsMap",a,{root:!0}),j("teamsGeneral/updateTeamsForAnalysis",w,{root:!0})}if(t){const a=t.reduce((o,s)=>(s.seasonType=b.season_type||0,s.dateTimeMillis=new Date(s.date_time_utc).valueOf(),o.set(s.game_id,s),o),new Map);j("filterGeneral/setSeasonGamesMap",a,{root:!0}),j("gamesGeneral/updateSeasonGames",t,{root:!0})}j("leagueGeneral/updateSeasonPlays",r,{root:!0});const n=F_(_,N2());j("playersOffensive/updateGoalPlaysStack",n.offensive,{root:!0}),j("playersDefensive/updateGoalPlaysStack",n.defensive,{root:!0}),j("playersPossession/updatePlaysStack",v,{root:!0}),j("playersOffensive/updatePlaysStack",l,{root:!0}),j("playersDefensive/updatePlaysStack",i,{root:!0}),j("setIsSectionLoading",!1,{root:!0})}catch(M){return Promise.reject(M)}},async fillStatisticData({dispatch:E,commit:j,state:B,rootGetters:ie,rootState:xe},L={teamClass:0,promises:[void 0]}){try{B.loadCount+=1,L.promises.push(E("getPlayersBySeason",!0)),L.promises.push(E("teamsGeneral/getTeamsBySeasonForAnalysis",!0,{root:!0})),L.promises.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),L.promises.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),L.promises.push(pS({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id})),L.promises.push(q_({seasonId:ie["filterGeneral/getSeasonId"],playerId:B.player.player_id}));const[M,e,w,b,r,{data:{data_combination:_}},{data:{data:{posession:v,offensive:l,defensive:i}}}]=await Promise.all(L.promises),t=b.games||[];if(M){const a=td(),o=[...v,...l,...i],s=pOe.get(M.position_id),c=o.filter(f=>s.ids.has(f[a.categoryId])).reduce((f,d)=>(f.add(d[0]),f),new Set);M.mainCategoryData={name:s.name,total:c?c.size:0,ids:Array.from(s.ids.values())},M.seasons=Object.entries(M.seasons).reduce((f,[d,T])=>(T.show_videos&&(f[d]=T),f),{}),M.national_seasons=Object.entries(M.national_seasons).reduce((f,[d,T])=>(T.show_videos&&(f[d]=T),f),{}),M.hasPlayerClubSeasons=!!Object.keys(M.seasons).length,j("filterGeneral/setHasPlayerClubSeasons",M.hasPlayerClubSeasons,{root:!0}),j("filterGeneral/setHasPlayerNationalTeam",!!M.is_national_team,{root:!0}),j("filterGeneral/setIsPlayerNationalTeam",!1,{root:!0}),j("filterGeneral/setTeamId",M.team_id,{root:!0}),j("updatePlayerSeasons",{teamClass:0,seasons:fS({...M.seasons})}),j("updatePlayerSeasons",{teamClass:1,seasons:fS({...M.national_seasons})});const u=w.find(f=>f.team_id===M.team_id);if(u&&(M.teamName=u.colloquial_name||u.team_name),j("updatePlayer",M),!B.player.hasPlayerClubSeasons)L.teamClass=1,j("filterGeneral/setIsPlayerNationalTeam",!0,{root:!0});else{const f=window.localStorage.getItem("seasonSelected");Object.keys(M.seasons).includes(f)?L.teamClass=0:Object.keys(M.national_seasons).includes(f)&&(L.teamClass=1,j("filterGeneral/setIsPlayerNationalTeam",!0,{root:!0}))}B.playerTeamClass!==L.teamClass&&j("updatePlayerTeamClass",L.teamClass),await E("filterGeneral/updateSeasons",{seasons:B.playerSeasons[L.teamClass]},{root:!0})}if(e&&j("updateSeasonPlayers",e),w){const a=w.reduce((o,s)=>(o.set(s.team_id,s),o),new Map);xe.teamsGeneral.seasonTeams.length===0&&j("teamsGeneral/updateTeams",w,{root:!0}),j("filterGeneral/setSeasonTeamsMap",a,{root:!0}),j("teamsGeneral/updateTeamsForAnalysis",w,{root:!0})}if(t){const a=[],o=t.reduce((s,c)=>(c.seasonType=b.season_type||0,c.dateTimeMillis=new Date(c.date_time_utc).valueOf(),(c.home_team===M.team_id||c.visiting_team===M.team_id)&&a.push(c),s.set(c.game_id,c),s),new Map);j("filterGeneral/setSeasonGamesMap",o,{root:!0}),j("gamesGeneral/updateSeasonGames",t,{root:!0}),j("setPlayerGames",a)}j("leagueGeneral/updateSeasonPlays",r,{root:!0});const n=F_(_,N2());j("playersOffensive/updateGoalPlaysStack",n.offensive,{root:!0}),j("playersDefensive/updateGoalPlaysStack",n.defensive,{root:!0}),j("playersPossession/updatePlaysStack",v,{root:!0}),j("playersOffensive/updatePlaysStack",l,{root:!0}),j("playersDefensive/updatePlaysStack",i,{root:!0})}catch(M){return Promise.reject(M)}},async getPlayerStatisticsBySeason(E,j){try{const B=await q_(j);E.commit("playersPossession/updatePlaysStack",B.data.data.posession,{root:!0}),E.commit("playersOffensive/updatePlaysStack",B.data.data.offensive,{root:!0}),E.commit("playersDefensive/updatePlaysStack",B.data.data.defensive,{root:!0})}catch(B){return Promise.reject(B)}},async getPlayerInfo({commit:E},j){try{const B=await uOe(j);E("updatePlayer",B)}catch(B){return Promise.reject(B)}},async getPlayersBySeasonAndTeam({commit:E},{teamId:j,showLoading:B}){try{let ie=window.localStorage.getItem("seasonSelected");return ie&&(ie=Number(ie)),(await dS({seasonId:ie,teamId:j})).data[0].players}catch(ie){return Promise.reject(ie)}},async getPlayersBySeason({commit:E,rootGetters:j},B=!1){try{const ie=j["filterGeneral/getSeasonId"];E("updateLastSeasonForSeasonPlayers",ie);const{data:xe}=await dS({seasonId:ie});if(B)return xe;E("updateSeasonPlayers",xe)}catch(ie){return Promise.reject(ie)}},async getPlayersForPlayersView({dispatch:E,commit:j},{teamId:B,name:ie}){j("updatePlayersForPlayersView",[]);const xe=await E("getPlayersBySeasonAndTeam",{teamId:B,showLoading:!0});j("updatePlayersForPlayersView",xe),j("updateTeamForPlayersView",B),j("updateTeamNameForPlayersView",ie)}},getters:{gamesPlayed(E){return E.playerGames.reduce((j,B)=>(B.game_status===1&&j.push({...B,playingAs:B.home_team===E.player.team_id?1:2}),j),[])},player(E){return E.player},lastTeamPlayersView(E){return E.lastTeamForPlayersView},lastTeamNamePlayersView(E){return E.lastTeamNameForPlayersView},playerId(){return W_.player.player_id},teamId(){return W_.player.team_id},seasonPlayers(E){return E.seasonPlayers},getPlaysGoal(E,j,B){const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.playsGoal.filter(e=>e[2]===2002&&e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))},getPlays:(E,j,B)=>{const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.plays.filter(e=>e[2]===2002&&e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))}}},L2=0,ph=.25,fh=.5,hh=.75,P2=1,R2=0,mh=.2789115646258504,pf=.5,gh=.7210884353741496,z2=1,xg=[[L2,R2,ph,mh],[ph,R2,fh,mh],[fh,R2,hh,mh],[hh,R2,P2,mh],[L2,mh,ph,pf],[ph,mh,fh,pf],[fh,mh,hh,pf],[hh,mh,P2,pf],[L2,pf,ph,gh],[ph,pf,fh,gh],[fh,pf,hh,gh],[hh,pf,P2,gh],[L2,gh,ph,z2],[ph,gh,fh,z2],[fh,gh,hh,z2],[hh,gh,P2,z2]],hOe=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]];function mOe(){const E=[];for(let j=0;j<16;j++)E.push(0);return E}function K_(E,j){let B=0;for(let ie=j>pf?8:0;ie<xg.length;ie++)if(E>=xg[ie][0]&&E<=xg[ie][2]&&j>=xg[ie][1]&&j<=xg[ie][3]){B=ie;break}return B}function gOe(E){const j=[];for(;E.length;)j.push(E.splice(0,4));return j}function hS(E,j,B,ie,xe){if(!E||E.length===0)return yOe(Object.values(B));const L={};for(const[M,e]of Object.entries(B))L[M]={name:e.name,fieldCount:mOe(),position:e.position,isNegative:e.isNegative,categoryIds:e.categoryIds,coordinatePoint:B[M].coordinatePoint,generalName:e.generalName,singleName:e.singleName};for(const M of E)if(xe?xe===M[ie.teamId]&&j.includes(M[ie.section]):j.includes(M[ie.section]))for(const e of Object.keys(B))B[e].categoryIds.includes(M[ie.categoryId])&&L[e].fieldCount[K_(M[ie[`coordinate${B[e].coordinatePoint}X`]],M[ie[`coordinate${B[e].coordinatePoint}Y`]])]++;return Object.values(L).reduce((M,{name:e,fieldCount:w,isNegative:b,categoryIds:r,coordinatePoint:_,generalName:v,singleName:l})=>(M.push({name:e,data:gOe(w),isNegative:b,categoryIds:r,coordinatePoint:_,generalName:v,singleName:l}),M),[])}function yOe(E){return E.map(j=>({name:j.name,data:hOe,isNegative:!1}))}class yh{constructor(j,B,ie,xe,L){Cc(this,"leagueAvg",0);Cc(this,"totalAccumulated",0);Cc(this,"period1",0);Cc(this,"period2",0);Cc(this,"period3",0);Cc(this,"period4",0);Cc(this,"period5",0);Cc(this,"period6",0);Cc(this,"items",null);Cc(this,"generalName","");this.category=j,this.categoryIds=B,this.translationKey=ie,xe&&this.createItems(xe),this.generalName=L}createItems(j){this.items=[];for(let B of j)this.items.push(new yh(B.category,B.categoryIds,B.translationKey,B.items,B.generalName))}addAvgPlay(j,B,ie,xe,L){if(this.categoryIds){if(this.categoryIds.includes(j[ie.categoryId])&&B.includes(j[ie.section]))return L&&(L.leagueAvg+=j[ie.total]/xe),this.leagueAvg+=j[ie.total]/xe,!0}else if(this.items){for(let M of this.items)if(M.addAvgPlay(j,B,ie,xe,this))return!0}}addPlay(j,B,ie,xe){if(this.categoryIds){if(this.categoryIds.includes(j[ie.categoryId]))return xe&&xe[`period${j[ie.section]}`]++,this[`period${j[ie.section]}`]++,(!B||B.includes(j[ie.section]))&&(xe&&xe.totalAccumulated++,this.totalAccumulated++),!0}else if(this.items){for(let L of this.items)if(L.addPlay(j,B,ie,this))return!0}}}const mS=[{category:"PASES ACERTADOS",categoryIds:null,translationKey:"table.possession.player.successful_passes",items:[{category:"P. ACERTADOS 1/4",categoryIds:[213],translationKey:"table.possession.player.successful_passes_1/4"},{category:"P. ACERTADOS 2/4",categoryIds:[214],translationKey:"table.possession.player.successful_passes_2/4"},{category:"P. ACERTADOS 3/4",categoryIds:[215],translationKey:"table.possession.player.successful_passes_3/4"},{category:"P. ACERTADOS 4/4",categoryIds:[216],translationKey:"table.possession.player.successful_passes_4/4"}]},{category:"PASES FILTRADOS",categoryIds:[217],translationKey:"table.possession.player.through_passes"},{category:"PASES NO ACERTADOS",categoryIds:null,translationKey:"table.possession.player.unsuccessful_passes",items:[{category:"P. NO ACERTADOS 1/4",categoryIds:[218],translationKey:"table.possession.player.unsuccessful_passes_1/4"},{category:"P. NO ACERTADOS 2/4",categoryIds:[219],translationKey:"table.possession.player.unsuccessful_passes_2/4"},{category:"P. NO ACERTADOS 3/4",categoryIds:[220],translationKey:"table.possession.player.unsuccessful_passes_3/4"},{category:"P. NO ACERTADOS 4/4",categoryIds:[221],translationKey:"table.possession.player.unsuccessful_passes_4/4"}]},{category:"BALONES RECUPERADOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.player.ball_recovered_in_challenge",items:[{category:"B.R.E.D CANCHA PROPIA",categoryIds:[485,486],translationKey:"table.possession.player.b_r_i_c_own_half"},{category:"B.R.E.D CANCHA RIVAL",categoryIds:[487,488],translationKey:"table.possession.player.b_r_i_c_opponents_half"}]},{category:"BALONES RECUPERADOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.player.ball_recovered_without_challenge",items:[{category:"B.R.S.D CANCHA PROPIA",categoryIds:[489,490],translationKey:"table.possession.player.b_r_w_c_own_half"},{category:"B.R.S.D CANCHA RIVAL",categoryIds:[491,492],translationKey:"table.possession.player.b_r_w_c_opponents_half"}]},{category:"BALONES PERDIDOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.player.balls_lost_in_challenge",items:[{category:"B.P.E.D. CANCHA PROPIA",categoryIds:[496,497],translationKey:"table.possession.player.b_l_i_c_own_half"},{category:"B.P.E.D. CANCHA RIVAL",categoryIds:[498,499],translationKey:"table.possession.player.b_l_i_c_opponents_half"}]},{category:"BALONES PERDIDOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.player.balls_lost_without_challenge",items:[{category:"B.P.S.D. CANCHA PROPIA",categoryIds:[500,501],translationKey:"table.possession.player.b_l_w_c_own_half"},{category:"B.P.S.D. CANCHA RIVAL",categoryIds:[502,503],translationKey:"table.possession.player.b_l_w_c_opponents_half"}]}],gS=[{category:"GOLES",categoryIds:null,translationKey:"table.offensive.player.goals",items:[{category:"GOLES PIE DENTRO DEL ÁREA",categoryIds:[57],translationKey:"table.offensive.player.goals_foot_inside_penalty"},{category:"GOLES PIE FUERA DEL ÁREA",categoryIds:[326],translationKey:"table.offensive.player.goals_foot_outside_penalty"},{category:"GOLES CABEZA",categoryIds:[56],translationKey:"table.offensive.player.header_goals"},{category:"GOLES TIRO LIBRE",categoryIds:[60],translationKey:"table.offensive.player.free_kick_goals"},{category:"GOLES PENAL",categoryIds:[59],translationKey:"table.offensive.player.penalty_goals"}]},{category:"TIROS A GOL (ORIGEN)",categoryIds:null,translationKey:"table.offensive.player.shots_on_goal_from",items:[{category:"DENTRO DEL ÁREA",categoryIds:[514,516],translationKey:"table.offensive.player.inside_the_box",generalName:"Tiros a gol dentro del área"},{category:"FUERA DEL ÁREA",categoryIds:[513,515],translationKey:"table.offensive.player.outside_the_box",generalName:"Tiros a gol fuera del área"}]},{category:"TIROS A GOL (DESTINO)",categoryIds:null,translationKey:"table.offensive.player.shots_on_goal_to",items:[{category:"CON DESTINO A PORTERÍA",categoryIds:[537,540,544,547],translationKey:"table.offensive.player.shots_on_goal",generalName:"Tiros a gol con destino a portería"},{category:"SIN DESTINO A PORTERÍA",categoryIds:[538,541,545,548],translationKey:"table.offensive.player.not_to_destiny",generalName:"Tiros a gol sin destino a portería"},{category:"BLOQUEADOS",categoryIds:[539,542,546,549],translationKey:"table.offensive.player.blocked",generalName:"Tiros a gol bloqueados"}]},{category:"CENTROS POR IZQUIERDA",categoryIds:null,translationKey:"table.offensive.player.centers_from_left",items:[{category:"C.P.I. ACERTADOS",categoryIds:[98,101,104,105],translationKey:"table.offensive.player.successful_c_f_l_s"},{category:"C.P.I. NO ACERTADOS",categoryIds:[106,107,108],translationKey:"table.offensive.player.unsuccessful_c_f_l_s"}]},{category:"CENTROS POR DERECHA",categoryIds:null,translationKey:"table.offensive.player.centers_from_right",items:[{category:"C.P.D. ACERTADOS",categoryIds:[109,112,115,116],translationKey:"table.offensive.player.successful_c_f_r_s"},{category:"C.P.D. NO ACERTADOS",categoryIds:[117,118,119],translationKey:"table.offensive.player.unsuccessful_c_f_r_s"}]},{category:"BALONES GANADOS EN ÁREA RIVAL",categoryIds:[11],translationKey:"table.offensive.player.balls_won_opponents_penalty"}],yS=[{category:"BALONES RECUPERADOS CANCHA RIVAL",categoryIds:null,translationKey:"table.defensive.player.balls_recovered_opponents_half",items:[{category:"B.R.C.R. EN DISPUTA",categoryIds:[487,488],translationKey:"table.defensive.player.b_r_o_h_in_challenge"},{category:"B.R.C.R. SIN DISPUTA",categoryIds:[491,492],translationKey:"table.defensive.player.b_r_o_h_without_challenge"}]},{category:"BALONES RECUPERADOS CANCHA PROPIA",categoryIds:null,translationKey:"table.defensive.player.balls_recovered_own_half",items:[{category:"B.R.C.P. EN DISPUTA",categoryIds:[485,486],translationKey:"table.defensive.player.b_r_own_h_in_challenge"},{category:"B.R.C.P. SIN DISPUTA",categoryIds:[489,490],translationKey:"table.defensive.player.b_r_own_h_without_challenge"}]},{category:"BALONES GANADOS EN ÁREA PROPIA",categoryIds:[23],items:null,translationKey:"table.defensive.player.balls_won_own_penalty_box"},{category:"1 VS 1 EXITOSOS",categoryIds:null,translationKey:"table.defensive.player.successful_1_on_1",items:[{category:"OFENSIVOS",categoryIds:[4],translationKey:"table.defensive.player.attacking",generalName:"1 vs 1 exitoso Ofensivo"},{category:"DEFENSIVOS",categoryIds:[5],translationKey:"table.defensive.player.defensive",generalName:"1 vs 1 exitoso Defensivo"}]},{category:"BARRIDAS",categoryIds:null,translationKey:"table.defensive.player.slide_tackles",items:[{category:"CON POSESIÓN",categoryIds:[521],translationKey:"table.defensive.player.with_possession",generalName:"Barridas con posesión"},{category:"SIN POSESIÓN",categoryIds:[522],translationKey:"table.defensive.player.without_possession",generalName:"Barridas sin posesión"},{category:"PROVOCA FALTA",categoryIds:[543],translationKey:"table.defensive.player.with_foul_committed",generalName:"Barridas que provocan falta"}]},{category:"CENTROS PERMITIDOS",categoryIds:[517],items:null,translationKey:"table.defensive.player.allow_crosses"},{category:"RECHACES",categoryIds:[34],items:null,translationKey:"table.defensive.player.clearances"}];function vOe(){return mS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function xOe(){return gS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function bOe(){return yS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}(function(){let E=[];return E=E.concat(rf(mS)),E=E.concat(rf(gS)),E=E.concat(rf(yS)),E})();const vS=[{category:"JUEGO DE PIES",categoryIds:null,translationKey:"table.possession.goalkeeper.footwork",items:[{category:"PASE LARGO ACERTADO",categoryIds:[310],translationKey:"table.possession.goalkeeper.successful_long_pass"},{category:"PASE LARGO NO ACERTADO",categoryIds:[311],translationKey:"table.possession.goalkeeper.unsuccessful_long_pass"},{category:"PASE CORTO ACERTADO",categoryIds:[308],translationKey:"table.possession.goalkeeper.successful_short_pass"},{category:"PASE CORTO NO ACERTADO",categoryIds:[309],translationKey:"table.possession.goalkeeper.unsuccessful_short_pass"}]},{category:"DESPEJES DE MANO",categoryIds:null,translationKey:"table.possession.goalkeeper.throw",items:[{category:"D.M. ACERTADOS",categoryIds:[304],translationKey:"table.possession.goalkeeper.successful_throw"},{category:"D.M. NO ACERTADOS",categoryIds:[305],translationKey:"table.possession.goalkeeper.unsuccessful_throw"}]},{category:"DESPEJES DE PIE",categoryIds:null,translationKey:"table.possession.goalkeeper.punt",items:[{category:"D.P. ACERTADOS",categoryIds:[306],translationKey:"table.possession.goalkeeper.successful_punt"},{category:"D.P. NO ACERTADOS",categoryIds:[307],translationKey:"table.possession.goalkeeper.unsuccessful_punt"}]},{category:"PARTICIPACIÓN EN GOL",categoryIds:[323],items:null,translationKey:"table.possession.goalkeeper.participation_in_goals"}],xS=[{category:"JUEGO DE PIES",categoryIds:null,translationKey:"table.offensive.goalkeeper.footwork",items:[{category:"PASE LARGO ACERTADO",categoryIds:[310],translationKey:"table.offensive.goalkeeper.successful_long_pass"},{category:"PASE LARGO NO ACERTADO",categoryIds:[311],translationKey:"table.offensive.goalkeeper.unsuccessful_long_pass"},{category:"PASE CORTO ACERTADO",categoryIds:[308],translationKey:"table.offensive.goalkeeper.successful_short_pass"},{category:"PASE CORTO NO ACERTADO",categoryIds:[309],translationKey:"table.offensive.goalkeeper.unsuccessful_short_pass"}]},{category:"DESPEJES DE MANO",categoryIds:null,translationKey:"table.offensive.goalkeeper.throw",items:[{category:"D.M. ACERTADOS",categoryIds:[304],translationKey:"table.offensive.goalkeeper.successful_throw"},{category:"D.M. NO ACERTADOS",categoryIds:[305],translationKey:"table.offensive.goalkeeper.unsuccessful_throw"}]},{category:"DESPEJES DE PIE",categoryIds:null,translationKey:"table.offensive.goalkeeper.punt",items:[{category:"D.P. ACERTADOS",categoryIds:[306],translationKey:"table.offensive.goalkeeper.successful_punt"},{category:"D.P. NO ACERTADOS",categoryIds:[307],translationKey:"table.offensive.goalkeeper.unsuccessful_punt"}]},{category:"PARTICIPACION EN GOL",categoryIds:[323],items:null,translationKey:"table.offensive.goalkeeper.participation_in_goals"}],bS=[{category:"GOLES RECIBIDOS",categoryIds:[40],items:null,translationKey:"table.defensive.goalkeeper.goals_received"},{category:"ATAJADAS",categoryIds:null,translationKey:"table.defensive.goalkeeper.saves",items:[{category:"SE QUEDA CON EL BALON",categoryIds:[300],translationKey:"table.defensive.goalkeeper.goalkeeper_handled",generalName:"Atajadas que se queda con el balón"},{category:"NO SE QUEDA CON EL BALON",categoryIds:[301],translationKey:"table.defensive.goalkeeper.goalkeeper_un-handled",generalName:"Atajadas que no se queda con el balón"}]},{category:"JUEGO AÉREO",categoryIds:null,translationKey:"table.defensive.goalkeeper.aerial_game",items:[{category:"EXITOSO, SE QUEDA CON EL BALÓN",categoryIds:[313],translationKey:"table.defensive.goalkeeper.successful_handled",generalName:"Juego aéreo exitoso que se queda con el balón"},{category:"EXITOSO, NO SE QUEDA CON EL BALÓN",categoryIds:[314],translationKey:"table.defensive.goalkeeper.successful_un-handled",generalName:"Juego aéreo exitoso que no se queda con el balón"}]},{category:"1 VS 1",categoryIds:[41],items:null,translationKey:"table.defensive.goalkeeper.1_on_1"},{category:"BALONES RECUPERADOS",categoryIds:[312],items:null,translationKey:"table.defensive.goalkeeper.recovered_balls"}];function _Oe(){return vS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function wOe(){return xS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}function TOe(){return bS.map(({category:E,categoryIds:j,translationKey:B,items:ie=null,generalName:xe=""})=>new yh(E,j,B,ie,xe))}(function(){let E=[];return E=E.concat(rf(vS)),E=E.concat(rf(xS)),E=E.concat(rf(bS)),E})();function G_(E,j,B,ie,xe,L){let M=null;if(j)switch(E){case 2:M=wOe();break;case 3:M=TOe();break;default:M=_Oe()}else switch(E){case 2:M=xOe();break;case 3:M=bOe();break;default:M=vOe()}return g5(M,B,ie,xe,L,td(),B_())}const _S={successfulPasses:{name:"statistic_fields.player_and_team.successful_passes",categoryIds:[2,20],position:1,coordinatePoint:3,isNegative:!1,generalName:"Pases acertados",singleName:"Pase acertado"},unsuccessfulPasses:{name:"statistic_fields.player_and_team.unsuccessful_passes",categoryIds:[3,21],position:2,coordinatePoint:3,isNegative:!0,generalName:"Pases no acertados",singleName:"Pase no acertado"},recoveredBalls:{name:"statistic_fields.player_and_team.balls_recovered",categoryIds:[482],position:3,coordinatePoint:1,isNegative:!1,generalName:"Balones recuperados",singleName:"Balón recuperado"},lostBalls:{name:"statistic_fields.player_and_team.balls_lost",categoryIds:[493],position:4,coordinatePoint:3,isNegative:!0,generalName:"Balones perdidos",singleName:"Balón perdido"}},kOe={successfulFistFootClearance:{name:"statistic_fields.goalkeeper.successful_punt_throw",categoryIds:[304,306],position:1,coordinatePoint:3,isNegative:!1,generalName:"Despejes mano/pie acertados",singleName:"Despeje mano/pie acertado"},unsuccessfulFistFootClearance:{name:"statistic_fields.goalkeeper.unsuccessful_punt_throw",categoryIds:[305,307],position:2,coordinatePoint:3,isNegative:!0,generalName:"Despejes mano/pie no acertados",singleName:"Despeje mano/pie no acertado"},successfulFootPlay:{name:"statistic_fields.goalkeeper.successful_footwork",categoryIds:[310,308],position:3,coordinatePoint:3,isNegative:!1,generalName:"Juego de pie acertados",singleName:"Juego de pie acertado"},unsuccessfulFootPlay:{name:"statistic_fields.goalkeeper.unsuccessful_footwork",categoryIds:[311,309],position:4,coordinatePoint:3,isNegative:!0,generalName:"Juego de pie no acertados",singleName:"Juego de pie no acertado"}},SOe=new Set([2,20,308,310]),COe=new Set([3,21,309]),EOe=new Set([213,214,215,216]),MOe=new Set([...SOe,...COe,...EOe]),r0=td(),wS={width:68,height:105},AOe=new Map([[4,16],[3,15],[2,14],[1,13],[8,12],[7,11],[6,10],[5,9],[12,8],[11,7],[10,6],[9,5],[16,4],[15,3],[14,2],[13,1]]);function OOe(E){return AOe.get(E)}const NOe={namespaced:!0,state:{basePlaysStack:[],lastFilterValues:null},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j.map(B=>{if(MOe.has(B[r0.categoryId])){const ie=Math.abs(B[r0.coordinate3X]-B[r0.coordinate2X]),xe=Math.abs(B[r0.coordinate3Y]-B[r0.coordinate2Y]),L=ie*wS.width,M=xe*wS.height,e=Math.sqrt(Math.pow(L,2)+Math.pow(M,2)),w=OOe(K_(B[r0.coordinate2X],B[r0.coordinate2Y])+1);B.push(e),B.push(w)}return B})}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},fieldStatistics(E,j,B,ie){return hS(j.filteredPlaysStack,ie["filterGeneral/getSections"],ie["playersGeneral/player"].position_id===1?kOe:_S,td())},tableData(E,j,B,ie){return ie["playersGeneral/player"].position_id?G_(1,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"]):[]},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}};function V2(E,j,B,ie,xe,L){return E.filter(M=>(!j||j===M[L.playingAs])&&B.includes(M[L.matchResult])&&ie.includes(M[L.section])&&xe.includes(M[L.gameId]))}function I2(E,j,B){return j.length===6?E:E.filter(ie=>j.includes(ie[B.section]))}function F2(E,j){return j.map(B=>{let ie=E.find(L=>L.team_id===B.home_team),xe=E.find(L=>L.team_id===B.visiting_team);if(ie&&xe)return{gameId:B.game_id,title:`${ie.team_name} VS ${xe.team_name}`,homeTeamId:B.home_team,homeTeamName:ie.team_name,homeTeamLogo:ie.logo,visitingTeamId:B.visiting_team,visitingTeamName:xe.team_name,visitingTeamLogo:xe.logo}})}const LOe={playersGeneral:fOe,playersPossession:NOe,playersOffensive:{namespaced:!0,state:{basePlaysStack:[],goalPlaysStack:[]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){return G_(2,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"])},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],td())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],N2())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}},playersDefensive:{namespaced:!0,state:{basePlaysStack:[],goalPlaysStack:[]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getBasePlaysStack:E=>E.basePlaysStack,filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],td(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){return G_(3,ie["playersGeneral/player"].position_id===1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],ie["filterGeneral/getGamesPlayed"])},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],td())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],N2())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}}};class bg{constructor(j,B,ie,xe,L,M){Cc(this,"leagueAvg",0);Cc(this,"totalAccumulated",0);Cc(this,"period1",0);Cc(this,"period2",0);Cc(this,"period3",0);Cc(this,"period4",0);Cc(this,"period5",0);Cc(this,"period6",0);Cc(this,"items",null);Cc(this,"generalName","");this.category=j,this.categoryIds=B,this.rCategoryIds=ie,this.translationKey=xe,L&&this.createItems(L),this.generalName=M}createItems(j){this.items=[];for(let B of j)this.items.push(new bg(B.category,B.categoryIds,B.rCategoryIds,B.translationKey,B.items,B.generalName))}addAvgPlay(j,B,ie,xe,L){if(this.categoryIds||this.rCategoryIds){if(B.includes(j[ie.section])&&(this.categoryIds&&this.categoryIds.includes(j[ie.categoryId])||this.rCategoryIds&&this.rCategoryIds.includes(j[ie.categoryId])))return L&&(L.leagueAvg+=j[ie.total]/xe),this.leagueAvg+=j[ie.total]/xe,!0}else if(this.items){for(let M of this.items)if(M.addAvgPlay(j,B,ie,xe,this))return!0}}addPlay(j,B,ie,xe,L){if(this.categoryIds||this.rCategoryIds){if(this.categoryIds&&this.categoryIds.includes(j[ie.categoryId])&&xe===j[ie.teamId]||this.rCategoryIds&&xe!==j[ie.teamId]&&this.rCategoryIds.includes(j[ie.categoryId]))return L&&L[`period${j[ie.section]}`]++,this[`period${j[ie.section]}`]++,(!B||B.includes(j[ie.section]))&&(L&&L.totalAccumulated++,this.totalAccumulated++),!0}else if(this.items){for(let M of this.items)if(M.addPlay(j,B,ie,xe,this))return!0}}}const TS=[{category:"PASES ACERTADOS",categoryIds:null,translationKey:"table.possession.team.successful_passes",singleName:"Pase acertado",generalName:"Pases acertados",items:[{category:"PASES ACERTADOS EN 1/4",categoryIds:[213],translationKey:"table.possession.team.successful_passes_1/4",singleName:"Pase acertado en 1/4",generalName:"Pases acertados en 1/4"},{category:"PASES ACERTADOS EN 2/4",categoryIds:[214],translationKey:"table.possession.team.successful_passes_2/4",singleName:"Pase acertado en 2/4",generalName:"Pases acertados en 2/4"},{category:"PASES ACERTADOS EN 3/4",categoryIds:[215],translationKey:"table.possession.team.successful_passes_3/4",singleName:"Pase acertado en 3/4",generalName:"Pases acertados en 3/4"},{category:"PASES ACERTADOS EN 4/4",categoryIds:[216],translationKey:"table.possession.team.successful_passes_4/4",singleName:"Pase acertado en 4/4",generalName:"Pases acertados en 4/4"}]},{category:"PASES FILTRADOS",categoryIds:[217],translationKey:"table.possession.team.through_passes",singleName:"Pase filtrado",generalName:"Pases filtrados"},{category:"PASES NO ACERTADOS",categoryIds:null,translationKey:"table.possession.team.unsuccessful_passes",generalName:"Pases no acertados",singleName:"Pase no acertado",items:[{category:"PASES NO ACERTADOS EN 1/4",categoryIds:[218],translationKey:"table.possession.team.unsuccessful_passes_1/4",generalName:"Pases no acertados en 1/4",singleName:"Pase no acertado en 1/4"},{category:"PASES NO ACERTADOS EN 2/4",categoryIds:[219],translationKey:"table.possession.team.unsuccessful_passes_2/4",generalName:"Pases no acertados en 2/4",singleName:"Pase no acertado en 2/4"},{category:"PASES NO ACERTADOS EN 3/4",categoryIds:[220],translationKey:"table.possession.team.unsuccessful_passes_3/4",generalName:"Pases no acertados en 3/4",singleName:"Pase no acertado en 3/4"},{category:"PASES NO ACERTADOS EN 4/4",categoryIds:[221],translationKey:"table.possession.team.unsuccessful_passes_4/4",generalName:"Pases no acertados en 4/4",singleName:"Pase no acertado en 4/4"}]},{category:"BALONES RECUPERADOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.team.ball_recovered_in_challenge",generalName:"Balones recuperados en disputa",singleName:"Balón recuperado en disputa",items:[{category:"B.R.E.D CANCHA PROPIA",categoryIds:[485,486],translationKey:"table.possession.team.b_r_i_c_own_half",generalName:"B.R.E.D cancha propia",singleName:"B.R.E.D cancha propia"},{category:"B.R.E.D CANCHA RIVAL",categoryIds:[487,488],translationKey:"table.possession.team.b_r_i_c_opponents_half",generalName:"B.R.E.D cancha rival",singleName:"B.R.E.D cancha rival"}]},{category:"BALONES RECUPERADOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.team.ball_recovered_without_challenge",generalName:"Balones recuperados sin disputa",singleName:"Balon recuperado sin disputa",items:[{category:"B.R.S.D CANCHA PROPIA",categoryIds:[489,490],translationKey:"table.possession.team.b_r_w_c_own_half",generalName:"B.R.S.D cancha propia",singleName:"B.R.S.D cancha propia"},{category:"B.R.S.D CANCHA RIVAL",categoryIds:[491,492],translationKey:"table.possession.team.b_r_w_c_opponents_half",generalName:"B.R.S.D cancha rival",singleName:"B.R.S.D cancha rival"}]},{category:"BALONES PERDIDOS EN DISPUTA",categoryIds:null,translationKey:"table.possession.team.balls_lost_in_challenge",generalName:"Balones perdidos en disputa",singleName:"Balon perdido en disputa",items:[{category:"B.P.E.D. CANCHA PROPIA",categoryIds:[496,497],translationKey:"table.possession.team.b_l_i_c_own_half",generalName:"B.P.E.D. cancha propia",singleName:"B.P.E.D. cancha propia"},{category:"B.P.E.D. CANCHA RIVAL",categoryIds:[498,499],translationKey:"table.possession.team.b_l_i_c_opponents_half",generalName:"B.P.E.D. cancha rival",singleName:"B.P.E.D. cancha rival"}]},{category:"BALONES PERDIDOS SIN DISPUTA",categoryIds:null,translationKey:"table.possession.team.balls_lost_without_challenge",generalName:"Balones perdidos sin disputa",singleName:"Balon perdido sin disputa",items:[{category:"B.P.S.D. CANCHA PROPIA",categoryIds:[500,501],translationKey:"table.possession.team.b_l_w_c_own_half",generalName:"B.P.S.D. cancha propia",singleName:"B.P.S.D. cancha propia"},{category:"B.P.S.D. CANCHA RIVAL",categoryIds:[502,503],translationKey:"table.possession.team.b_l_w_c_opponents_half",generalName:"B.P.S.D. cancha rival",singleName:"B.P.S.D. cancha rival"}]}],kS=[{category:"GOLES",categoryIds:null,translationKey:"table.offensive.team.goals",generalName:"Goles",singleName:"Gol",items:[{category:"GOLES PIE DENTRO DEL ÁREA",categoryIds:[57],translationKey:"table.offensive.team.goals_foot_inside_penalty",generalName:"Goles pie dentro del área",singleName:"Gol pie dentro del área"},{category:"GOLES PIE FUERA DEL ÁREA",categoryIds:[326],translationKey:"table.offensive.team.goals_foot_outside_penalty",generalName:"Goles pie fuera del área",singleName:"Gol pie fuera del área"},{category:"GOLES CABEZA",categoryIds:[56],translationKey:"table.offensive.team.header_goals",generalName:"Goles cabeza",singleName:"Gol cabeza"},{category:"GOLES TIRO LIBRE",categoryIds:[60],translationKey:"table.offensive.team.free_kick_goals",generalName:"Goles tiro libre",singleName:"Gol tiro libre"},{category:"GOLES PENAL",categoryIds:[59],translationKey:"table.offensive.team.penalty_goals",generalName:"Goles penal",singleName:"Gol penal"},{category:"GOLES DE PORTERO",categoryIds:[55],translationKey:"table.offensive.team.goalkeeper_goals",generalName:"Goles de portero",singleName:"Gol de portero"},{category:"AUTOGOLES",rCategoryIds:[35,54],translationKey:"table.offensive.team.opponents_own_goals",generalName:"Autogoles a favor",singleName:"Autogol"}]},{category:"TIROS A GOL (ORIGEN)",categoryIds:null,translationKey:"table.offensive.team.shots_on_goal_from",generalName:"Tiros a gol (origen)",singleName:"Tiro a gol (origen)",items:[{category:"DENTRO DEL ÁREA",categoryIds:[514,516],translationKey:"table.offensive.team.inside_the_box",generalName:"Tiros a gol dentro del área",singleName:"Tiro a gol dentro del área"},{category:"FUERA DEL ÁREA",categoryIds:[513,515],translationKey:"table.offensive.team.outside_the_box",generalName:"Tiros a gol fuera del área",singleName:"Tiro a gol fuera del área"}]},{category:"TIROS A GOL (DESTINO)",categoryIds:null,translationKey:"table.offensive.team.shots_on_goal_to",generalName:"Tiros a gol (destino)",singleName:"Tiro a gol (destino)",items:[{category:"CON DESTINO A PORTERÍA",generalName:"Tiros a gol con destino a portería",categoryIds:[537,540,544,547],translationKey:"table.offensive.team.shots_on_goal"},{category:"SIN DESTINO A PORTERÍA",generalName:"Tiros a gol sin destino a portería",categoryIds:[538,541,545,548],translationKey:"table.offensive.team.not_to_destiny"},{category:"BLOQUEADOS",generalName:"Tiros a gol bloqueados",categoryIds:[539,542,546,549],items:null,categoriesTypes:[2,3],translationKey:"table.offensive.team.blocked"}]},{category:"CENTROS POR IZQUIERDA",singleName:"Centro por izquierda",categoryIds:null,translationKey:"table.offensive.team.centers_from_left",items:[{category:"C.P.I. ACERTADOS",singleName:"C.P.I. acertado",categoryIds:[98,101,104,105],translationKey:"table.offensive.team.successful_c_f_l_s"},{category:"C.P.I. NO ACERTADOS",categoryIds:[106,107,108],translationKey:"table.offensive.team.unsuccessful_c_f_l_s"}]},{category:"CENTROS POR DERECHA",categoryIds:null,translationKey:"table.offensive.team.centers_from_right",items:[{category:"C.P.D. ACERTADOS",categoryIds:[109,112,115,116],translationKey:"table.offensive.team.successful_c_f_r_s"},{category:"C.P.D. NO ACERTADOS",categoryIds:[117,118,119],translationKey:"table.offensive.team.unsuccessful_c_f_r_s"}]},{category:"BALONES GANADOS EN ÁREA RIVAL",categoryIds:[11],translationKey:"table.offensive.team.balls_won_opponents_penalty"}],SS=[{category:"GOLES RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.goals_received",items:[{category:"GOLES PIE DENTRO DEL ÁREA",rCategoryIds:[57],translationKey:"table.defensive.team.goals_foot_inside_penalty"},{category:"GOLES PIE FUERA DEL ÁREA",rCategoryIds:[326],translationKey:"table.defensive.team.goals_foot_outside_penalty"},{category:"GOLES DE CABEZA",rCategoryIds:[56],translationKey:"table.defensive.team.header_goals"},{category:"GOLES DE TIRO LIBRE",rCategoryIds:[60],translationKey:"table.defensive.team.free_kick_goals"},{category:"GOLES DE PENAL",rCategoryIds:[59],translationKey:"table.defensive.team.penalty_goals"},{category:"GOLES DE PORTERO RECIBIDOS",rCategoryIds:[55],translationKey:"table.defensive.team.goalkeeper_goals"},{category:"AUTOGOLES",categoryIds:[35,54],translationKey:"table.defensive.team.opponents_own_goals"}]},{category:"TIROS A GOL RECIBIDOS (ORIGEN)",categoryIds:null,translationKey:"table.defensive.team.shots_on_goal_from",items:[{category:"DENTRO DEL ÁREA",generalName:"Tiros a gol recibidos dentro del área",rCategoryIds:[514,516],translationKey:"table.defensive.team.inside_the_box"},{category:"FUERA DEL ÁREA",generalName:"Tiros a gol recibidos fuera del área",rCategoryIds:[513,515],translationKey:"table.defensive.team.outside_the_box"}]},{category:"TIROS A GOL RECIBIDOS (DESTINO)",categoryIds:null,translationKey:"table.defensive.team.shots_on_goal_to",items:[{category:"CON DESTINO A PORTERÍA",rCategoryIds:[537,540,544,547],translationKey:"table.defensive.team.shot_on_goal",generalName:"Tiros a gol recibidos con destino a portería"},{category:"SIN DESTINO A PORTERÍA",rCategoryIds:[538,541,545,548],translationKey:"table.defensive.team.missed",generalName:"Tiros a gol recibidos sin destino a portería"},{category:"BLOQUEADOS",categoryIds:null,rCategoryIds:[539,542,546,549],translationKey:"table.defensive.team.blocked",generalName:"Tiros a gol recibidos bloqueados"}]},{category:"CENTROS POR IZQUIERDA RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.centers_left_side_received",items:[{category:"C.P.I.R. ACERTADOS",rCategoryIds:[109,112,115,116],translationKey:"table.defensive.team.successful_c_f_l_r"},{category:"C.P.I.R. NO ACERTADOS",rCategoryIds:[117,118,119],translationKey:"table.defensive.team.unsuccessful_c_f_l_r"}]},{category:"CENTROS POR DERECHA RECIBIDOS",categoryIds:null,translationKey:"table.defensive.team.centers_right_side_received",items:[{category:"C.P.D.R. ACERTADOS",rCategoryIds:[98,101,104,105],translationKey:"table.defensive.team.successful_c_f_r_r"},{category:"C.P.D.R. NO ACERTADOS",rCategoryIds:[106,107,108],translationKey:"table.defensive.team.unsuccessful_c_f_r_r"}]},{category:"BALONES RECUPERADOS CANCHA RIVAL",categoryIds:null,translationKey:"table.defensive.team.balls_recovered_opponents_half",items:[{category:"B.R.C.R. EN DISPUTA",categoryIds:[487,488],translationKey:"table.defensive.team.b_r_o_h_in_challenge"},{category:"B.R.C.R. SIN DISPUTA",categoryIds:[491,492],translationKey:"table.defensive.team.b_r_o_h_without_challenge"}]},{category:"BALONES RECUPERADOS CANCHA PROPIA",categoryIds:null,translationKey:"table.defensive.team.balls_recovered_own_half",items:[{category:"B.R.C.P. EN DISPUTA",categoryIds:[485,486],translationKey:"table.defensive.team.b_r_own_h_in_challenge"},{category:"B.R.C.P. SIN DISPUTA",categoryIds:[489,490],translationKey:"table.defensive.team.b_r_own_h_without_challenge"}]}];function POe(){return TS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}function ROe(){return kS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}function zOe(){return SS.map(({category:E,categoryIds:j,rCategoryIds:B,translationKey:ie,items:xe=null,generalName:L=""})=>new bg(E,j,B,ie,xe,L))}(function(){let E=[];return E=E.concat(rf(TS)),E=E.concat(rf(kS)),E=E.concat(rf(SS)),E})();function X_(E,j,B,ie,xe,L){let M=null;switch(E){case 2:M=ROe();break;case 3:M=zOe();break;default:M=POe()}return g5(M,j,B,ie,xe,fc(),B_(),L)}const VOe=[3,21],IOe=[2],FOe=[20];function UOe(E,j,B,ie){const xe=[0,0,0];let L=0,M=0;for(const e of E)L=e[ie.categoryId],M=e[ie.section],B===e[ie.teamId]&&j.includes(M)&&(IOe.includes(L)&&xe[0]++,FOe.includes(L)&&xe[1]++,VOe.includes(L)&&xe[2]++);return xe}const CS=[{id:1,category:"featured_players.possession.successful_passes",category_id:[2,20],singleName:"Pase acertado",generalName:"Pases acertados"},{id:2,category:"featured_players.possession.successful_passes_opponents_half",category_id:[20],singleName:"Pase acertado c. rival",generalName:"Pases acertados c. rival"},{id:3,category:"featured_players.possession.successful_passes_own_half",category_id:[2],singleName:"Pase acertado c. propia",generalName:"Pases acertados c. propia"},{id:4,category:"featured_players.possession.recovered_balls",category_id:[482],singleName:"Balón recuperado",generalName:"Balones recuperados"},{id:5,category:"featured_players.possession.balls_recovered_in_challenge",category_id:[485,486,489,490],singleName:"B. recuperado en disputa",generalName:"B. recuperados en disputa"}],ES=[{id:1,category:"featured_players.offensive.shots_on_goal",category_id:[510],singleName:"Tiro a gol",generalName:"Tiros a gol"},{id:2,category:"featured_players.offensive.centers_from_right",category_id:[25],singleName:"Centro por derecha",generalName:"Centros por derecha"},{id:3,category:"featured_players.offensive.centers_from_left",category_id:[13],singleName:"Centro por izquierda",generalName:"Centros por izquierda"},{id:4,category:"featured_players.offensive.successful_1_on_1",category_id:[4],singleName:"1 vs 1 exitoso ofensivo",generalName:"1 vs 1 exitosos ofensivos"},{id:5,category:"featured_players.offensive.balls_won_opponent_penalty_box",category_id:[11],singleName:"B. ganado en área rival",generalName:"B. ganados en área rival"}],MS=[{id:1,category:"featured_players.defensive.balls_recovered",category_id:[482],singleName:"Balón recuperado",generalName:"Balones recuperados"},{id:19,category:"featured_players.defensive.balls_recovered_opponents_half",category_id:[491,492,487,488],singleName:"B. recuperado C. rival",generalName:"B. recuperados C. rival"},{id:3,category:"featured_players.defensive.balls_won_own_penalty_box",category_id:[23],singleName:"B. ganado área propia",generalName:"B. ganados área propia"},{id:4,category:"featured_players.defensive.clearances",category_id:[34],singleName:"Rechace",generalName:"Rechaces"},{id:5,category:"featured_players.defensive.successful_1_on_1",category_id:[5],singleName:"1 vs 1 exitoso defensivo",generalName:"1 vs 1 exitosos defensivos"}];(function(){const E=[...CS,...ES,...MS];return E.forEach(j=>{j.categories=j.category_id}),E})();const BOe=new Set([2,20,308]),DOe=new Set([3,21,309]),qOe=new Set([...BOe,...DOe]),n0=fc(),AS={width:68,height:105},jOe=new Map([[4,16],[3,15],[2,14],[1,13],[8,12],[7,11],[6,10],[5,9],[12,8],[11,7],[10,6],[9,5],[16,4],[15,3],[14,2],[13,1]]),WOe={indexes:fc(),basePlaysStack:[],featuredPlayersCategories:CS};function KOe(E){return jOe.get(E)}const GOe={namespaced:!0,state:WOe,mutations:{updatePlaysStack(E,j){E.basePlaysStack=j.map(B=>{if(qOe.has(B[n0.categoryId])){const ie=Math.abs(B[n0.coordinate3X]-B[n0.coordinate2X]),xe=Math.abs(B[n0.coordinate3Y]-B[n0.coordinate2Y]),L=ie*AS.width,M=xe*AS.height,e=Math.sqrt(Math.pow(L,2)+Math.pow(M,2)),w=KOe(K_(B[n0.coordinate2X],B[n0.coordinate2Y])+1);B.push(e),B.push(w)}return B})}},getters:{getPlaysStack(E,j,B,ie){const xe=ie["filterGeneral/getSections"];return j.filteredPlaysStack.filter(L=>xe.includes(L[E.indexes.section]))},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},filteredPlaysStackRival(E,j,B,ie){return iOe(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},fieldStatisticsData(E,j,B,ie){return hS(j.filteredPlaysStack,ie["filterGeneral/getSections"],_S,fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(1,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},passesDonutData(E,j,B,ie){return UOe(j.filteredPlaysStack,ie["filterGeneral/getSections"],ie["teamsGeneral/team"].team_id,fc())},topFiveCategories(){return[{name:"participación en goles",rank:1,total:44,max:"owner"},{name:"cabeceo área rival",rank:2,total:13,max:20},{name:"tiros a gol",rank:3,total:20,max:26},{name:"1 vs 1 ofensivo exitoso",rank:4,total:22,max:32},{name:"asistencias",rank:4,total:2,max:4}]}}};function OS(E,j,B,ie,xe){const L={};for(const[M,e]of Object.entries(B))L[M]={translationKey:e.translationKey,data:[0,0],categoryIds:e.categoryIds,singleName:e.singleName,generalName:e.generalName,colors:e.colors,teamId:xe};for(const M of E)if(j.includes(M[ie.section])){for(const e of Object.keys(B))if(XOe(B[e].categoryIds,M[ie.categoryId],M[ie.teamId],xe)){const w=M[ie.teamId]===xe?M[ie.playingAs]-1:Math.abs(M[ie.playingAs]-2);L[e].data[w]++}}return L}function XOe(E,j,B,ie){return E.find(xe=>{let L=0;if(typeof xe=="string"){if(B)return L=Number(xe.split("_").shift()),L===j&&B!==ie}else return xe===j&&B===ie;return!1})}const ZOe={goals:{categoryIds:[12,55,"35_r","54_r"],translationKey:"local_vs_away.offensive.goals",singleName:"Gol",generalName:"Goles",colors:["#cbee6b","#3865e4"]},goalShots:{categoryIds:[510],translationKey:"local_vs_away.offensive.shots_on_goal",singleName:"Tiro a gol",generalName:"Tiros a gol",colors:["#cbee6b","#3865e4"]},leftCenteringPass:{categoryIds:[13],translationKey:"local_vs_away.offensive.centers_from_left",singleName:"Centro por izquierda",generalName:"Centros por izquierda",colors:["#cbee6b","#3865e4"]},rightCenteringPass:{categoryIds:[25],translationKey:"local_vs_away.offensive.centers_from_right",singleName:"Centro por derecha",generalName:"Centros por derecha",colors:["#cbee6b","#3865e4"]}},HOe={recoveredBalls:{categoryIds:[483,484],translationKey:"local_vs_away.defensive.balls_recovered",singleName:"Balón recuperado",generalName:"Balones recuperados",colors:["#cbee6b","#3865e4"]},recoveredBallsRivalField:{categoryIds:[487,488,491,492],translationKey:"local_vs_away.defensive.balls_recovered_opponents_half",singleName:"Balón recuperado cancha rival",generalName:"Balones recuperados cancha rival",colors:["#cbee6b","#3865e4"]},airBallWonAtOwnArea:{categoryIds:[23],translationKey:"local_vs_away.defensive.balls_won_own_penalty_box",singleName:"Balón ganado área rival",generalName:"Balones ganados área rival",colors:["#cbee6b","#3865e4"]},rejections:{categoryIds:[34],translationKey:"local_vs_away.defensive.clearances",singleName:"Rechace",generalName:"Rechaces",colors:["#cbee6b","#3865e4"]}},JOe={namespaced:!0,state:{indexes:fc(),basePlaysStack:[],goalPlaysStack:[],categories:[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12],negative:!1},{name:"Tiros a gol",color:"#F2E82E",points:[1,2,3],categories:[540,547,537,544],negative:!1},{name:"Tiros a gol (portería)",color:"#8E17EF",points:[1,2,3],categories:[539,542,546,549]},{name:"Centros totales",color:"#FF8000",points:[1,2,3],categories:[109,112,115,116,104,105,98,101]},{name:"Centros acertados",color:"#068A8E",points:[1,2,3],categories:[106,107,108,117,118,119]},{name:"Aéreos en área rival",color:"#FB04C7",points:[1,2],categories:[40]},{name:"1vs1 exitosos ofensivos",color:"#606060",points:[1],categories:[4]},{name:"1vs1 no exitosos ofensivos",color:"green",points:[1],categories:[208]},{name:"Balones ganados en área rival",color:"cyan",points:[1,2,3],categories:[11]}],featuredPlayersCategories:ES,plays1:[[53010,183,2,1,1]]},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getPlaysStack(E){return E.basePlaysStack},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(2,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},localVsVisitorData(E,j,B,ie){return OS(j.filteredPlaysStack,ie["filterGeneral/getSections"],ZOe,fc(),ie["teamsGeneral/team"].team_id)},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],fc())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],E2())}}},YOe={namespaced:!0,state:{indexes:fc(),basePlaysStack:[],goalPlaysStack:[],categories:[{name:"Goles recibidos",color:"#4A90E2",points:[1,2,3],categories:[12]},{name:"Tiros a gol recibidos",color:"#F2E82E",points:[1,2,3],categories:[10],negative:!0},{name:"Tiros a gol recibidos (portería)",color:"#8E17EF",points:[1,2,3],categories:[30]},{name:"Centros totales recibidos",color:"#FF8000",points:[2,3],categories:[20]},{name:"Centros acertados por el rival",color:"#068A8E",points:[2,3],categories:[30]},{name:"Balones recuperados (en disputa)",color:"#FB04C7",points:[1,2],categories:[40]},{name:"Balones recuperados (sin disputa)",color:"#606060",points:[1,2],categories:[50]},{name:"Fuera de lugar provocados",color:"green",points:[1,2],categories:[11]},{name:"1 vs 1 exitosos defensivos",color:"cyan",points:[2],categories:[4]},{name:"1 vs 1 no exitosos defensivos",color:"cyan",points:[2],categories:[4]},{name:"Balones ganados en área propia",color:"cyan",points:[2],categories:[4]},{name:"Juego aéreo resto del campo",color:"cyan",points:[2],categories:[4]},{name:"Barridas",color:"cyan",points:[2],categories:[4]},{name:"Rechaces",color:"cyan",points:[2],categories:[4]}],featuredPlayersCategories:MS},mutations:{updatePlaysStack(E,j){E.basePlaysStack=j},updateGoalPlaysStack(E,j){E.goalPlaysStack=j}},getters:{getPlaysStack(E){return E.basePlaysStack},filteredPlaysStack(E,j,B,ie){return t0(E.basePlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSelectedGamesIds"],fc(),ie["teamsGeneral/team"].team_id)},tableData(E,j,B,ie){const L=ie["filterGeneral/getStadisticId"]===0?ie["gamesGeneral/gamesPlayed"]:ie["teamsGeneral/teamsForAnalysis"].length;return X_(3,j.filteredPlaysStack,ie["leagueGeneral/filteredPlaysStack"],ie["filterGeneral/getSections"],L,ie["teamsGeneral/team"].team_id)},localVsVisitorData(E,j,B,ie){return OS(j.filteredPlaysStack,ie["filterGeneral/getSections"],HOe,fc(),ie["teamsGeneral/team"].team_id)},chalkboardPlays(E,j,B,ie){return I2(j.filteredPlaysStack,ie["filterGeneral/getSections"],fc())},chalkboardGames(E,j,B,ie){return F2(ie["teamsGeneral/teamsForAnalysis"],ie["gamesGeneral/seasonGamesPlayed"])},goalPlays(E,j,B,ie){return V2(E.goalPlaysStack,ie["filterGeneral/getPlayingAs"],ie["filterGeneral/getResults"],ie["filterGeneral/getSections"],ie["filterGeneral/getSelectedGamesIds"],E2())}}},U2=fc(),NS={team:{},seasonTeams:[],seasonTeamsAnalysis:[],teamSeasons:{},gamesBySeason:[],plays:D_.plays,lastSeasonForSeasonTeamsAnalysis:0,teamPlaysByPlayer:new Map,formattedSeasons:{},loadCount:0,teamGames:[]},QOe={teamsPosession:GOe,teamsOffensive:JOe,teamsDefensive:YOe,teamsGeneral:{namespaced:!0,state:NS,mutations:{setTeamGames(E,j){E.teamGames=j},setLoadCount(E,j){E.loadCount=j},setFormattedSeasons(E,j){E.formattedSeasons=j},updateTeam(E,j){E.team=j},updateTeams(E,j){E.seasonTeams=j},updateGames(E,j){E.gamesBySeason=j},updateTeamsForAnalysis(E,j){E.seasonTeamsAnalysis=j},updateLastSeasonForSeasonTeamsAnalysis(E,j){E.lastSeasonForSeasonTeamsAnalysis=j},setTeamPlaysByPlayer(E,j){E.teamPlaysByPlayer=j}},actions:{async checkState({commit:E,dispatch:j,rootGetters:B},{teamId:ie,seasonId:xe}){try{let L=xe;L&&(L=Number(L));const M=[];E("updateTeam",{team_id:ie}),E("filterGeneral/setSeasonId",L||B["loginGeneral/seasonId"],{root:!0}),M.push(dN({teamId:ie})),await j("fillStatisticData",M)}catch(L){throw new Error(L)}},async fillStatisticData({dispatch:E,commit:j,state:B,rootGetters:ie},xe=[void 0]){try{B.loadCount+=1,xe.push(pN({seasonId:ie["filterGeneral/getSeasonId"],teamId:B.team.team_id})),xe.push(E("getTeamsBySeasonForAnalysis",!0)),xe.push(E("playersGeneral/getPlayersBySeason",!0,{root:!0})),xe.push(E("gamesGeneral/fetchGamesBySeason",ie["filterGeneral/getSeasonId"],{root:!0})),xe.push(E("leagueGeneral/getSeasonPlays",!0,{root:!0})),xe.push(E("getTeamStatisticsBySeason",!0));const[L,{data:[{data_combination:M}]},e,w,b,r,_]=await Promise.all(xe),v=b.games||[],l={};if(L){const n=Object.entries(L).reduce((a,[o,s])=>{if(s.show_videos){l[o]=s;const c=Number(o),u={_id:c,id:c,name:s.name,seasons:[{id:c,related_seasons:[],type:s.type}]};a.set(c,u)}return a},new Map);E("filterGeneral/updateSeasons",{seasons:l},{root:!0}),j("filterGeneral/setTournamentsForMediaPlayer",n,{root:!0}),j("setFormattedSeasons",l)}if(e){const n=e.reduce((a,o)=>(a.set(o.team_id,o),a),new Map);j("updateTeams",e),j("filterGeneral/setSeasonTeamsMap",n,{root:!0}),j("updateTeamsForAnalysis",e)}if(!B.team.team_name&&B.team&&B.team.team_id){const n=B.seasonTeams.find(a=>a.team_id===B.team.team_id);j("updateTeam",n)}if(w){const n=w.find(a=>a.team_id===B.team.team_id);j("playersGeneral/updateCurrentTeamPlayers",n?n.players:[],{root:!0}),j("playersGeneral/updateSeasonPlayers",w,{root:!0})}if(v){const n=[],a=v.reduce((o,s)=>(s.seasonType=b.season_type||0,s.dateTimeMillis=new Date(s.date_time_utc).valueOf(),(s.home_team===B.team.team_id||s.visiting_team===B.team.team_id)&&n.push(s),o.set(s.game_id,s),o),new Map);j("filterGeneral/setSeasonGamesMap",a,{root:!0}),j("gamesGeneral/updateSeasonGames",v,{root:!0}),j("setTeamGames",n)}j("leagueGeneral/updateSeasonPlays",r,{root:!0}),j("teamsPosession/updatePlaysStack",_.posession,{root:!0}),j("teamsOffensive/updatePlaysStack",_.offensive,{root:!0}),j("teamsDefensive/updatePlaysStack",_.defensive,{root:!0});const{offensive:i,defensive:t}=F_(M,E2());j("teamsOffensive/updateGoalPlaysStack",i,{root:!0}),j("teamsDefensive/updateGoalPlaysStack",t,{root:!0}),await E("createPlaysByPlayers",{teamStatistics:_})}catch(L){return Promise.reject(L)}},createPlaysByPlayers({state:E,commit:j},{teamStatistics:{posession:B,offensive:ie,defensive:xe}}){const M=[...B,...ie,...xe].reduce((e,w)=>(w[U2.teamId]===E.team.team_id&&(e.has(w[U2.playerId])?e.get(w[U2.playerId]).push(w):e.set(w[U2.playerId],[w])),e),new Map);j("setTeamPlaysByPlayer",M)},async getTeamsBySeason({commit:E,rootState:j},B,ie){try{const xe=await Dy({seasonId:B});E("updateTeams",xe.teams)}catch(xe){return Promise.reject(xe)}},async getTeamsBySeasonForAnalysis({commit:E,rootGetters:j},B=!1){try{const ie=j["filterGeneral/getSeasonId"],{teams:xe}=await Dy({seasonId:ie});if(E("updateLastSeasonForSeasonTeamsAnalysis",ie),B)return xe;E("updateTeamsForAnalysis",xe)}catch(ie){return Promise.reject(ie)}},async getTeamStatisticsBySeason({commit:E,rootGetters:j},B=!1){try{const ie=await s4({seasonId:j["filterGeneral/getSeasonId"],teamId:NS.team.team_id});if(B)return ie.data;E("teamsPosession/updatePlaysStack",ie.data.posession,{root:!0}),E("teamsOffensive/updatePlaysStack",ie.data.offensive,{root:!0}),E("teamsDefensive/updatePlaysStack",ie.data.defensive,{root:!0})}catch(ie){return Promise.reject(ie)}},async fetchGamesBySeason({commit:E,rootGetters:j}){const ie=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${j["filterGeneral/getSeasonId"]}/`,xe=await Yf.get(ie);E("updateGames",xe.data.games)},cleanData({commit:E}){E("teamsPosession/updatePlaysStack",[],{root:!0})}},getters:{gamesPlayed(E){return E.teamGames.reduce((j,B)=>(B.game_status===1&&j.push({...B,playingAs:B.home_team===E.team.team_id?1:2}),j),[])},team:E=>E.team,teams:E=>E.seasonTeams,teamId:E=>E.team.team_id,teamsForAnalysis:E=>E.seasonTeamsAnalysis,teamSeasons(E){return E.teamSeasons&&E.teamSeasons.seasons?Object.entries(E.teamSeasons.seasons).map(j=>({id:j[0],name:j[1]})):[]},teamSeasonPoints(E,j,B,ie){const xe=ie["gamesGeneral/seasonGamesPlayed"];let L=0;return xe&&xe.forEach(M=>{E.team.team_id===M.home_team&&(M.score[0]-M.score[1]>0&&(L+=3),M.score[0]-M.score[1]===0&&(L+=1)),E.team.team_id===M.visiting_team&&(M.score[1]-M.score[0]>0&&(L+=3),M.score[1]-M.score[0]===0&&(L+=1))}),L},seasonTeams(E){return E.seasonTeams},getPlays:(E,j,B)=>{const ie=B.filterGeneral.sections,xe=B.filterGeneral.results,L=B.filterGeneral.playingAs,M=B.filterGeneral.categoryType;return E.plays.filter(e=>e[5]===M&&ie.includes(e[7])&&xe.includes(e[8])&&(L===null?!0:e[9]===L))},getGamesBySeason(E){return E.gamesBySeason}}}},$Oe={gamesGeneral:{namespaced:!0,state:{seasonGames:[],lastSeasonForSeasonGames:0},getters:{seasonGames:E=>E.seasonGames,seasonGamesPlayed:E=>E.seasonGames.filter(j=>j.game_status===1),gamesPlayed(E,j,B,ie){const xe=ie["filterGeneral/getPlayingAs"],L=ie["filterGeneral/getResults"];return j.seasonGamesPlayed.filter(()=>xe===null||xe===1).filter(M=>{let e=1;return M.score[0]<M.score[1]?e=2:M.score[0]===M.score[1]&&(e=3),L.includes(e)}).length+j.seasonGamesPlayed.filter(()=>xe===null||xe===2).filter(M=>{let e=1;return M.score[0]>M.score[1]?e=2:M.score[0]===M.score[1]&&(e=3),L.includes(e)}).length}},mutations:{updateSeasonGames(E,j){E.seasonGames=j.map(B=>{let ie="";const xe=B.matchday_abbreviation.replace("M",""),L=`J${xe}`;return B.seasonType===0?([1784,1741,1512,881].includes(B.season_id)?B.season_id===881?ie=sS[xe]||L:ie=oS[B.matchday_abbreviation]?B.matchday_abbreviation:L:ie=L,ie=L):B.seasonType===1?ie=iS[B.matchday_abbreviation]:B.matchday_id===182?ie="PI1":B.matchday_id===183?ie="PI2":ie=B.matchday_abbreviation.replace("PO","R"),{...B,roundAbbreviation:ie}})},updateLastSeasonForSeasonGames(E,j){E.lastSeasonForSeasonGames=j}},actions:{async getSeasonGames({state:E,commit:j,rootGetters:B},ie=!1){try{const xe=B["filterGeneral/getSeasonId"];if(E.lastSeasonForSeasonGames===xe)return;j("updateLastSeasonForSeasonGames",xe);const L=await zx({seasonId:xe});if(ie)return L;j("updateSeasonGames",L)}catch(xe){throw new Error(xe)}},fetchGamesBySeason(E,j=0){return dR({seasonId:j})}}}};async function eNe({seasonId:E,localTeamId:j,visitingTeamId:B}){try{const ie=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${E}/teams/${j}/${B}`;return(await Du({url:ie})).data}catch(ie){return Promise.reject(ie)}}async function tNe({seasonId:E,localTeamId:j,visitingTeamId:B}){try{const ie=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${E}/teams/${j}/${B}`;return(await Du({url:ie})).data}catch(ie){return Promise.reject(ie)}}const LS=(E,j)=>{let B={};return E.forEach((ie,xe)=>{xe==3&&(j[0]==35||j[0]==54)&&(j[xe]==2?j[xe]=1:j[xe]=2),xe==2&&(j[0]==35||j[0]==54)&&(j[xe]==1?j[xe]=2:j[xe]==2&&(j[xe]=1)),B[ie]=j[xe]}),B},rNe=(E,j)=>E.filter(ie=>{const xe=j.playingAs.includes(ie.playing_as),L=j.matchResult.includes(ie.match_result),M=j.sections.includes(ie.section);return xe&&L&&M}),nNe=[{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]}],aNe={xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{plays:(E,j,B)=>{const ie=E[`xG${E.teamSelected}Plays`],xe=E.teamSelected==="Local"?"homeTeamFilter":"visitingTeamFilter",L=B.nextGeneral[xe];return rNe(ie,L)},goalsQty:(E,j)=>{const B=nNe.find(ie=>ie.name==="Goles");return j.plays.filter(ie=>B.categories.includes(ie.category_id)).length},shotsOnGoalQty:(E,j)=>j.plays.filter(B=>B.category_id===510).length,xG:(E,j)=>{const B=new Set;let ie=j.plays.reduce((xe,L)=>(B.has(L.moment_of_play)||(B.add(L.moment_of_play),xe+=L.xG2),xe),0);return z_(ie,2)}},mutations:{setTeamSelected(E,j){E.teamSelected=j},setPlays(E,j){E.xGLocalPlays=j.local_team.map(B=>LS(j.data_headers,B)),E.xGVisitingPlays=j.visiting_team.map(B=>LS(j.data_headers,B))},cleanXgStore(E){E.localStorage="Local",E.xGLocalPlays=[],E.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:E},{seasonId:j,localTeamId:B,visitingTeamId:ie,postMatch:xe=!1}){try{var L={};xe?L=await tNe({seasonId:j,localTeamId:B,visitingTeamId:ie}):L=await eNe({seasonId:j,localTeamId:B,visitingTeamId:ie}),E("setPlays",L)}catch(M){return Promise.reject(M)}}}}};async function iNe(){try{const{data:E}=await Du({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return E}catch(E){throw new Error(E)}}const oNe={general:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(E){return E.sectionAnalytics},getPreviewSectionAnalytics(E){return E.previewSectionAnalytics},getSeccionBetsGolTipster(E){return E.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(E,j){E.booleanIsStatisticModalOpen=j},setSectionRef(E,j){E.sectionRef=j},setSectionAnalytics(E,j){E.sectionAnalytics=j},setSeccionBetsGolTipster(E,j){E.seccionBetsGolTipster=j},setPreviewSectionAnalytics(E,j){E.previewSectionAnalytics=j},setVideoSrc(E,j){E.videoSrc=j},setVideoModalVisibility(E,j){E.isVideoModalVisible=j},setSelectedTournament(E,j){E.selectedTournament=j},setTournaments(E,j){E.tournaments=j.map(B=>({...B.tournament,seasons:B.seasons})),E.tournamentSelected=E.tournaments[0]},setTournamentSelected(E,j){E.tournamentSelected=j}},actions:{async fetchTournaments({state:E,commit:j}){try{if(E.tournaments.length===0){const B=await iNe();j("setTournaments",B)}}catch(B){throw new Error(B)}}}},...sOe,...cOe,...LOe,...QOe,...$Oe,...aNe};function sNe(E){for(const[j,B]of Object.entries(oNe))E.hasModule(j)||E.registerModule(j,B)}const lNe={class:"subcategory-group"},cNe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",lNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroup,ie=>(k.openBlock(),k.createBlock(k.unref(Vo),{key:ie.id,modelValue:ie.isSelected,"onUpdate:modelValue":xe=>ie.isSelected=xe,label:ie.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},uNe=ss(cNe,[["__scopeId","data-v-ae6f3d72"]]),dNe={class:"filter-subcategories"},pNe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",dNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroups,ie=>(k.openBlock(),k.createElementBlock("div",{key:ie.id,class:"filter-subcategories__group"},[k.createVNode(uNe,{subcategoryGroup:ie},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),B2=E=>(k.pushScopeId("data-v-80d9c265"),E=E(),k.popScopeId(),E),fNe={class:"details__header"},hNe=B2(()=>k.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),mNe={class:"details__header__checkbox"},gNe={class:"details__body"},yNe={class:"details__body__playing-as"},vNe=["onClick"],xNe={class:"details__header"},bNe=B2(()=>k.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),_Ne={class:"details__header__checkbox"},wNe={class:"details__body"},TNe=B2(()=>k.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),kNe={class:"details__body__game-section"},SNe=["onClick"],CNe={class:"details__body"},ENe=B2(()=>k.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),MNe={class:"details__body__game-section"},ANe=["onClick"],ONe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__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 j=E;k.useCssVars(r=>({"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 B=k.computed(()=>j.playingAs.every(r=>r.isSelected)),ie=k.computed(()=>j.gameSections.every(r=>r.isSelected)),xe=k.computed(()=>j.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),L=k.computed(()=>({"--border-radius-first-button":`${j.buttonsBorderRadius} 0 0 ${j.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${j.buttonsBorderRadius} ${j.buttonsBorderRadius} 0`}));function M(r){r?j.playingAs.forEach(_=>{_.isSelected=!0}):j.playingAs.forEach((_,v)=>{_.isSelected=v===0})}function e(r){j.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function w(r){j.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){r?j.gameSections.forEach(_=>{_.isSelected=!0}):j.gameSections.forEach((_,v)=>{_.isSelected=v===0})}return(r,_)=>(k.openBlock(),k.createElementBlock("div",{class:"details",style:k.normalizeStyle(L.value)},[k.createElementVNode("div",fNe,[hNe,k.createElementVNode("div",mNe,[k.createVNode(k.unref(Vo),{label:"Todos","model-value":B.value,"onUpdate:modelValue":M},null,8,["model-value"])])]),k.createElementVNode("div",gNe,[k.createElementVNode("div",yNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(j.playingAs,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>e(v)},k.toDisplayString(v.name),11,vNe))),128))])]),k.createElementVNode("div",xNe,[bNe,k.createElementVNode("div",_Ne,[k.createVNode(k.unref(Vo),{label:"Todos","model-value":ie.value,"onUpdate:modelValue":b},null,8,["model-value"])])]),k.createElementVNode("div",wNe,[TNe,k.createElementVNode("div",kNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.firstHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,SNe))),128))])]),k.createElementVNode("div",CNe,[ENe,k.createElementVNode("div",MNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.secondHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,ANe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),NNe={class:"filter-field"},LNe=Object.freeze(Object.defineProperty({__proto__:null,default:ss({__name:"FilterField",setup(E){const j=k.ref(Array.from({length:16},(ie,xe)=>xe+1));function B(){}return(ie,xe)=>(k.openBlock(),k.createElementBlock("div",NNe,[k.createVNode(k.unref(J7),{width:"100%","background-color":"#2E3B46",value:j.value,"onUpdate:modelValue":B},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),PNe={class:"subcategory-group"},RNe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",PNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroup,ie=>(k.openBlock(),k.createBlock(k.unref(Io),{key:ie.id,modelValue:ie.isSelected,"onUpdate:modelValue":xe=>ie.isSelected=xe,label:ie.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},zNe=ls(RNe,[["__scopeId","data-v-ae6f3d72"]]),VNe={class:"filter-subcategories"},INe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(E){return(j,B)=>(k.openBlock(),k.createElementBlock("div",VNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(E.subcategoryGroups,ie=>(k.openBlock(),k.createElementBlock("div",{key:ie.id,class:"filter-subcategories__group"},[k.createVNode(zNe,{subcategoryGroup:ie},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),D2=E=>(k.pushScopeId("data-v-80d9c265"),E=E(),k.popScopeId(),E),FNe={class:"details__header"},UNe=D2(()=>k.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),BNe={class:"details__header__checkbox"},DNe={class:"details__body"},qNe={class:"details__body__playing-as"},jNe=["onClick"],WNe={class:"details__header"},KNe=D2(()=>k.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),GNe={class:"details__header__checkbox"},XNe={class:"details__body"},ZNe=D2(()=>k.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),HNe={class:"details__body__game-section"},JNe=["onClick"],YNe={class:"details__body"},QNe=D2(()=>k.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$Ne={class:"details__body__game-section"},eLe=["onClick"],tLe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__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 j=E;k.useCssVars(r=>({"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 B=k.computed(()=>j.playingAs.every(r=>r.isSelected)),ie=k.computed(()=>j.gameSections.every(r=>r.isSelected)),xe=k.computed(()=>j.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),L=k.computed(()=>({"--border-radius-first-button":`${j.buttonsBorderRadius} 0 0 ${j.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${j.buttonsBorderRadius} ${j.buttonsBorderRadius} 0`}));function M(r){r?j.playingAs.forEach(_=>{_.isSelected=!0}):j.playingAs.forEach((_,v)=>{_.isSelected=v===0})}function e(r){j.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function w(r){j.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){r?j.gameSections.forEach(_=>{_.isSelected=!0}):j.gameSections.forEach((_,v)=>{_.isSelected=v===0})}return(r,_)=>(k.openBlock(),k.createElementBlock("div",{class:"details",style:k.normalizeStyle(L.value)},[k.createElementVNode("div",FNe,[UNe,k.createElementVNode("div",BNe,[k.createVNode(k.unref(Io),{label:"Todos","model-value":B.value,"onUpdate:modelValue":M},null,8,["model-value"])])]),k.createElementVNode("div",DNe,[k.createElementVNode("div",qNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(j.playingAs,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>e(v)},k.toDisplayString(v.name),11,jNe))),128))])]),k.createElementVNode("div",WNe,[KNe,k.createElementVNode("div",GNe,[k.createVNode(k.unref(Io),{label:"Todos","model-value":ie.value,"onUpdate:modelValue":b},null,8,["model-value"])])]),k.createElementVNode("div",XNe,[ZNe,k.createElementVNode("div",HNe,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.firstHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,JNe))),128))])]),k.createElementVNode("div",YNe,[QNe,k.createElementVNode("div",$Ne,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(xe.value.secondHalf,(v,l)=>(k.openBlock(),k.createElementBlock("div",{key:`pa${l}`,class:k.normalizeClass(["details__body__button",{active:v.isSelected}]),onClick:i=>w(v)},k.toDisplayString(v.text),11,eLe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),rLe={class:"filter-field"},nLe=Object.freeze(Object.defineProperty({__proto__:null,default:ls({__name:"FilterField",setup(E){const j=k.ref(Array.from({length:16},(ie,xe)=>xe+1));function B(){}return(ie,xe)=>(k.openBlock(),k.createElementBlock("div",rLe,[k.createVNode(k.unref(HT),{width:"100%","background-color":"#2E3B46",value:j.value,"onUpdate:modelValue":B},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bu.GSCPlayerTeamProfile=aOe,Bu.registerStoreModules=sNe,Object.defineProperty(Bu,Symbol.toStringTag,{value:"Module"})});