@golstats/gsc-game-data 1.0.214 → 1.0.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-3aab28df-4ab998a0.js → FilterConditions-3aab28df-b5306a05.js} +1 -1
- package/dist/{FilterConditions-dc6b25de-DOW3ApFh-e192e4ed.js → FilterConditions-dc6b25de-DOW3ApFh-0031bb04.js} +1 -1
- package/dist/{FilterField-37ad154d-CGBI29FT-215d44b8.js → FilterField-37ad154d-CGBI29FT-41593f1d.js} +1 -1
- package/dist/{FilterField-c27c9666-3a46e5a5.js → FilterField-c27c9666-64621567.js} +1 -1
- package/dist/{FilterSubcategories-5a4d9250-9378cb9d.js → FilterSubcategories-5a4d9250-372faea7.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Dq4ouXsj-1a8d3fe5.js → FilterSubcategories-a7b96423-Dq4ouXsj-470f18eb.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-f5b72149.js → index-e79c272f.js} +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const I=new this(n);return r.forEach(L=>I.set(L)),I}static accessor(n){const I=(this[nN]=this[nN]={accessors:{}}).accessors,L=this.prototype;function d(g){const a=xg(g);I[a]||(lle(L,g),I[a]=!0)}return Vn.isArray(n)?n.forEach(d):d(n),this}}X_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vn.reduceDescriptors(X_.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(I){this[r]=I}}}),Vn.freezeMethods(X_);const Yu=X_;function i6(e,n){const r=this||n6,I=n||r,L=Yu.from(I.headers);let d=I.data;return Vn.forEach(e,function(a){d=a.call(r,d,L.normalize(),n?n.status:void 0)}),L.normalize(),d}function rN(e){return!!(e&&e.__CANCEL__)}function $0(e,n,r){Hi.call(this,e??"canceled",Hi.ERR_CANCELED,n,r),this.name="CanceledError"}Vn.inherits($0,Hi,{__CANCEL__:!0});function iN(e,n,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):n(new Hi("Request failed with status code "+r.status,[Hi.ERR_BAD_REQUEST,Hi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cle(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function dle(e,n){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return n=n!==void 0?n:1e3,function(b){const m=Date.now(),i=I[d];g||(g=m),r[L]=b,I[L]=m;let v=d,_=0;for(;v!==L;)_+=r[v++],v=v%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),m-g<n)return;const c=i&&m-i;return c?Math.round(_*1e3/c):void 0}}function ule(e,n){let r=0,I=1e3/n,L,d;const g=(m,i=Date.now())=>{r=i,L=null,d&&(clearTimeout(d),d=null),e.apply(null,m)};return[(...m)=>{const i=Date.now(),v=i-r;v>=I?g(m,i):(L=m,d||(d=setTimeout(()=>{d=null,g(L)},I-v)))},()=>L&&g(L)]}const K_=(e,n,r=3)=>{let I=0;const L=dle(50,250);return ule(d=>{const g=d.loaded,a=d.lengthComputable?d.total:void 0,b=g-I,m=L(b),i=g<=a;I=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:b,rate:m||void 0,estimated:m&&a&&i?(a-g)/m:void 0,event:d,lengthComputable:a!=null,[n?"download":"upload"]:!0};e(v)},r)},oN=(e,n)=>{const r=e!=null;return[I=>n[0]({lengthComputable:r,total:e,loaded:I}),n[1]]},sN=e=>(...n)=>Vn.asap(()=>e(...n)),hle=qu.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let I;function L(d){let g=d;return n&&(r.setAttribute("href",g),g=r.href),r.setAttribute("href",g),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return I=L(window.location.href),function(g){const a=Vn.isString(g)?L(g):g;return a.protocol===I.protocol&&a.host===I.host}}():function(){return function(){return!0}}(),ple=qu.hasStandardBrowserEnv?{write(e,n,r,I,L,d){const g=[e+"="+encodeURIComponent(n)];Vn.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),Vn.isString(I)&&g.push("path="+I),Vn.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fle(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mle(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function lN(e,n){return e&&!fle(n)?mle(e,n):n}const cN=e=>e instanceof Yu?{...e}:e;function cm(e,n){n=n||{};const r={};function I(m,i,v){return Vn.isPlainObject(m)&&Vn.isPlainObject(i)?Vn.merge.call({caseless:v},m,i):Vn.isPlainObject(i)?Vn.merge({},i):Vn.isArray(i)?i.slice():i}function L(m,i,v){if(Vn.isUndefined(i)){if(!Vn.isUndefined(m))return I(void 0,m,v)}else return I(m,i,v)}function d(m,i){if(!Vn.isUndefined(i))return I(void 0,i)}function g(m,i){if(Vn.isUndefined(i)){if(!Vn.isUndefined(m))return I(void 0,m)}else return I(void 0,i)}function a(m,i,v){if(v in n)return I(m,i);if(v in e)return I(void 0,m)}const b={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(m,i)=>L(cN(m),cN(i),!0)};return Vn.forEach(Object.keys(Object.assign({},e,n)),function(i){const v=b[i]||L,_=v(e[i],n[i],i);Vn.isUndefined(_)&&v!==a||(r[i]=_)}),r}const dN=e=>{const n=cm({},e);let{data:r,withXSRFToken:I,xsrfHeaderName:L,xsrfCookieName:d,headers:g,auth:a}=n;n.headers=g=Yu.from(g),n.url=QP(lN(n.baseURL,n.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let b;if(Vn.isFormData(r)){if(qu.hasStandardBrowserEnv||qu.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((b=g.getContentType())!==!1){const[m,...i]=b?b.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...i].join("; "))}}if(qu.hasStandardBrowserEnv&&(I&&Vn.isFunction(I)&&(I=I(n)),I||I!==!1&&hle(n.url))){const m=L&&d&&ple.read(d);m&&g.set(L,m)}return n},gle=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,I){const L=dN(e);let d=L.data;const g=Yu.from(L.headers).normalize();let{responseType:a,onUploadProgress:b,onDownloadProgress:m}=L,i,v,_,c,s;function o(){c&&c(),s&&s(),L.cancelToken&&L.cancelToken.unsubscribe(i),L.signal&&L.signal.removeEventListener("abort",i)}let l=new XMLHttpRequest;l.open(L.method.toUpperCase(),L.url,!0),l.timeout=L.timeout;function u(){if(!l)return;const p=Yu.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};iN(function(x){r(x),o()},function(x){I(x),o()},y),l=null}"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(I(new Hi("Request aborted",Hi.ECONNABORTED,e,l)),l=null)},l.onerror=function(){I(new Hi("Network Error",Hi.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let f=L.timeout?"timeout of "+L.timeout+"ms exceeded":"timeout exceeded";const y=L.transitional||tN;L.timeoutErrorMessage&&(f=L.timeoutErrorMessage),I(new Hi(f,y.clarifyTimeoutError?Hi.ETIMEDOUT:Hi.ECONNABORTED,e,l)),l=null},d===void 0&&g.setContentType(null),"setRequestHeader"in l&&Vn.forEach(g.toJSON(),function(f,y){l.setRequestHeader(y,f)}),Vn.isUndefined(L.withCredentials)||(l.withCredentials=!!L.withCredentials),a&&a!=="json"&&(l.responseType=L.responseType),m&&([_,s]=K_(m,!0),l.addEventListener("progress",_)),b&&l.upload&&([v,c]=K_(b),l.upload.addEventListener("progress",v),l.upload.addEventListener("loadend",c)),(L.cancelToken||L.signal)&&(i=p=>{l&&(I(!p||p.type?new $0(null,e,l):p),l.abort(),l=null)},L.cancelToken&&L.cancelToken.subscribe(i),L.signal&&(L.signal.aborted?i():L.signal.addEventListener("abort",i)));const h=cle(L.url);if(h&&qu.protocols.indexOf(h)===-1){I(new Hi("Unsupported protocol "+h+":",Hi.ERR_BAD_REQUEST,e));return}l.send(d||null)})},yle=(e,n)=>{let r=new AbortController,I;const L=function(b){if(!I){I=!0,g();const m=b instanceof Error?b:this.reason;r.abort(m instanceof Hi?m:new $0(m instanceof Error?m.message:m))}};let d=n&&setTimeout(()=>{L(new Hi(`timeout ${n} of ms exceeded`,Hi.ETIMEDOUT))},n);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(b=>{b&&(b.removeEventListener?b.removeEventListener("abort",L):b.unsubscribe(L))}),e=null)};e.forEach(b=>b&&b.addEventListener&&b.addEventListener("abort",L));const{signal:a}=r;return a.unsubscribe=g,[a,()=>{d&&clearTimeout(d),d=null}]},vle=function*(e,n){let r=e.byteLength;if(!n||r<n){yield e;return}let I=0,L;for(;I<r;)L=I+n,yield e.slice(I,L),I=L},_le=async function*(e,n,r){for await(const I of e)yield*vle(ArrayBuffer.isView(I)?I:await r(String(I)),n)},uN=(e,n,r,I,L)=>{const d=_le(e,n,L);let g=0,a,b=m=>{a||(a=!0,I&&I(m))};return new ReadableStream({async pull(m){try{const{done:i,value:v}=await d.next();if(i){b(),m.close();return}let _=v.byteLength;if(r){let c=g+=_;r(c)}m.enqueue(new Uint8Array(v))}catch(i){throw b(i),i}},cancel(m){return b(m),d.return()}},{highWaterMark:2})},Q_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hN=Q_&&typeof ReadableStream=="function",o6=Q_&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pN=(e,...n)=>{try{return!!e(...n)}catch{return!1}},ble=hN&&pN(()=>{let e=!1;const n=new Request(qu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),fN=64*1024,s6=hN&&pN(()=>Vn.isReadableStream(new Response("").body)),eb={stream:s6&&(e=>e.body)};Q_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!eb[n]&&(eb[n]=Vn.isFunction(e[n])?r=>r[n]():(r,I)=>{throw new Hi(`Response type '${n}' is not supported`,Hi.ERR_NOT_SUPPORT,I)})})})(new Response);const xle=async e=>{if(e==null)return 0;if(Vn.isBlob(e))return e.size;if(Vn.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Vn.isArrayBufferView(e)||Vn.isArrayBuffer(e))return e.byteLength;if(Vn.isURLSearchParams(e)&&(e=e+""),Vn.isString(e))return(await o6(e)).byteLength},wle=async(e,n)=>{const r=Vn.toFiniteNumber(e.getContentLength());return r??xle(n)},l6={http:Hse,xhr:gle,fetch:Q_&&(async e=>{let{url:n,method:r,data:I,signal:L,cancelToken:d,timeout:g,onDownloadProgress:a,onUploadProgress:b,responseType:m,headers:i,withCredentials:v="same-origin",fetchOptions:_}=dN(e);m=m?(m+"").toLowerCase():"text";let[c,s]=L||d||g?yle([L,d],g):[],o,l;const u=()=>{!o&&setTimeout(()=>{c&&c.unsubscribe()}),o=!0};let h;try{if(b&&ble&&r!=="get"&&r!=="head"&&(h=await wle(i,I))!==0){let w=new Request(n,{method:"POST",body:I,duplex:"half"}),x;if(Vn.isFormData(I)&&(x=w.headers.get("content-type"))&&i.setContentType(x),w.body){const[M,k]=oN(h,K_(sN(b)));I=uN(w.body,fN,M,k,o6)}}Vn.isString(v)||(v=v?"include":"omit"),l=new Request(n,{..._,signal:c,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:I,duplex:"half",credentials:v});let p=await fetch(l);const f=s6&&(m==="stream"||m==="response");if(s6&&(a||f)){const w={};["status","statusText","headers"].forEach(T=>{w[T]=p[T]});const x=Vn.toFiniteNumber(p.headers.get("content-length")),[M,k]=a&&oN(x,K_(sN(a),!0))||[];p=new Response(uN(p.body,fN,M,()=>{k&&k(),f&&u()},o6),w)}m=m||"text";let y=await eb[Vn.findKey(eb,m)||"text"](p,e);return!f&&u(),s&&s(),await new Promise((w,x)=>{iN(w,x,{data:y,headers:Yu.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:l})})}catch(p){throw u(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new Hi("Network Error",Hi.ERR_NETWORK,e,l),{cause:p.cause||p}):Hi.from(p,p&&p.code,e,l)}})};Vn.forEach(l6,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const mN=e=>`- ${e}`,kle=e=>Vn.isFunction(e)||e===null||e===!1,gN={getAdapter:e=>{e=Vn.isArray(e)?e:[e];const{length:n}=e;let r,I;const L={};for(let d=0;d<n;d++){r=e[d];let g;if(I=r,!kle(r)&&(I=l6[(g=String(r)).toLowerCase()],I===void 0))throw new Hi(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([a,b])=>`adapter ${a} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=n?d.length>1?`since :
|
|
22
22
|
`+d.map(mN).join(`
|
|
23
23
|
`):" "+mN(d[0]):"as no adapter specified";throw new Hi("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return I},adapters:l6};function c6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $0(null,e)}function yN(e){return c6(e),e.headers=Yu.from(e.headers),e.data=i6.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gN.getAdapter(e.adapter||n6.adapter)(e).then(function(I){return c6(e),I.data=i6.call(e,e.transformResponse,I),I.headers=Yu.from(I.headers),I},function(I){return rN(I)||(c6(e),I&&I.response&&(I.response.data=i6.call(e,e.transformResponse,I.response),I.response.headers=Yu.from(I.response.headers))),Promise.reject(I)})}const vN="1.7.3",d6={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{d6[e]=function(I){return typeof I===e||"a"+(n<1?"n ":" ")+e}});const _N={};d6.transitional=function(n,r,I){function L(d,g){return"[Axios v"+vN+"] Transitional option '"+d+"'"+g+(I?". "+I:"")}return(d,g,a)=>{if(n===!1)throw new Hi(L(g," has been removed"+(r?" in "+r:"")),Hi.ERR_DEPRECATED);return r&&!_N[g]&&(_N[g]=!0,console.warn(L(g," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(d,g,a):!0}};function Cle(e,n,r){if(typeof e!="object")throw new Hi("options must be an object",Hi.ERR_BAD_OPTION_VALUE);const I=Object.keys(e);let L=I.length;for(;L-- >0;){const d=I[L],g=n[d];if(g){const a=e[d],b=a===void 0||g(a,d,e);if(b!==!0)throw new Hi("option "+d+" must be "+b,Hi.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Hi("Unknown option "+d,Hi.ERR_BAD_OPTION)}}const u6={assertOptions:Cle,validators:d6},wf=u6.validators;class tb{constructor(n){this.defaults=n,this.interceptors={request:new eN,response:new eN}}async request(n,r){try{return await this._request(n,r)}catch(I){if(I instanceof Error){let L;Error.captureStackTrace?Error.captureStackTrace(L={}):L=new Error;const d=L.stack?L.stack.replace(/^.+\n/,""):"";try{I.stack?d&&!String(I.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(I.stack+=`
|
|
24
|
-
`+d):I.stack=d}catch{}}throw I}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=cm(this.defaults,r);const{transitional:I,paramsSerializer:L,headers:d}=r;I!==void 0&&u6.assertOptions(I,{silentJSONParsing:wf.transitional(wf.boolean),forcedJSONParsing:wf.transitional(wf.boolean),clarifyTimeoutError:wf.transitional(wf.boolean)},!1),L!=null&&(Vn.isFunction(L)?r.paramsSerializer={serialize:L}:u6.assertOptions(L,{encode:wf.function,serialize:wf.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let g=d&&Vn.merge(d.common,d[r.method]);d&&Vn.forEach(["delete","get","head","post","put","patch","common"],s=>{delete d[s]}),r.headers=Yu.concat(g,d);const a=[];let b=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(r)===!1||(b=b&&o.synchronous,a.unshift(o.fulfilled,o.rejected))});const m=[];this.interceptors.response.forEach(function(o){m.push(o.fulfilled,o.rejected)});let i,v=0,_;if(!b){const s=[yN.bind(this),void 0];for(s.unshift.apply(s,a),s.push.apply(s,m),_=s.length,i=Promise.resolve(r);v<_;)i=i.then(s[v++],s[v++]);return i}_=a.length;let c=r;for(v=0;v<_;){const s=a[v++],o=a[v++];try{c=s(c)}catch(l){o.call(this,l);break}}try{i=yN.call(this,c)}catch(s){return Promise.reject(s)}for(v=0,_=m.length;v<_;)i=i.then(m[v++],m[v++]);return i}getUri(n){n=cm(this.defaults,n);const r=lN(n.baseURL,n.url);return QP(r,n.params,n.paramsSerializer)}}Vn.forEach(["delete","get","head","options"],function(n){tb.prototype[n]=function(r,I){return this.request(cm(I||{},{method:n,url:r,data:(I||{}).data}))}}),Vn.forEach(["post","put","patch"],function(n){function r(I){return function(d,g,a){return this.request(cm(a||{},{method:n,headers:I?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}tb.prototype[n]=r(),tb.prototype[n+"Form"]=r(!0)});const ab=tb;class h6{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(d){r=d});const I=this;this.promise.then(L=>{if(!I._listeners)return;let d=I._listeners.length;for(;d-- >0;)I._listeners[d](L);I._listeners=null}),this.promise.then=L=>{let d;const g=new Promise(a=>{I.subscribe(a),d=a}).then(L);return g.cancel=function(){I.unsubscribe(d)},g},n(function(d,g,a){I.reason||(I.reason=new $0(d,g,a),r(I.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}static source(){let n;return{token:new h6(function(L){n=L}),cancel:n}}}const Tle=h6;function Sle(e){return function(r){return e.apply(null,r)}}function Ele(e){return Vn.isObject(e)&&e.isAxiosError===!0}const p6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(p6).forEach(([e,n])=>{p6[n]=e});const Ale=p6;function bN(e){const n=new ab(e),r=FP(ab.prototype.request,n);return Vn.extend(r,ab.prototype,n,{allOwnKeys:!0}),Vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(L){return bN(cm(e,L))},r}const uc=bN(n6);uc.Axios=ab,uc.CanceledError=$0,uc.CancelToken=Tle,uc.isCancel=rN,uc.VERSION=vN,uc.toFormData=Z_,uc.AxiosError=Hi,uc.Cancel=uc.CanceledError,uc.all=function(n){return Promise.all(n)},uc.spread=Sle,uc.isAxiosError=Ele,uc.mergeConfig=cm,uc.AxiosHeaders=Yu,uc.formToJSON=e=>aN(Vn.isHTMLForm(e)?new FormData(e):e),uc.getAdapter=gN.getAdapter,uc.HttpStatusCode=Ale,uc.default=uc;const cl=uc,xN="/icn-play.svg",ipa="",Mle={components:{BarraLeft:Joe,BarraRight:rse},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{gamesBySeason:{}}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...Ml("nextGeneral",["homeTeam","visitingTeam"]),canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,n){if(!n)return;var r=[];e.type==2?e.position_id==1?e.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.category:e.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.category:e.type==3?e.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.category:e.category!=0?r=e.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const I=[1,2,3];let L={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:I,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(L.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",L)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const n=typeof e=="string"?parseFloat(e):e;return typeof n=="number"&&!isNaN(n)?n%1===0?n:n%1===0?Math.floor(n):n:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,n,r){if(!n.game_id)return this.objectZeroValues;const I=e.generalCategoriesIds.accomplished===3;if(n.is_live&&this.showLiveData){const L=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return L?{numberValue:I?e[r].accomplished.totalLive/L*100:e[r].accomplished.totalLive,numberBarPercent:e[r].accomplished.totalLive/L}:this.objectZeroValues}else if(n.game_status===1){const L=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return L?{numberValue:I?e[r].accomplished.totalPostGame/L*100:e[r].accomplished.totalPostGame,numberBarPercent:e[r].accomplished.totalPostGame/L}:this.objectZeroValues}if(I){const L=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,d=e[r].accomplished.avgPostGame/L;return e[r].accomplished.avgPostGame?{numberValue:d<1?d*100:d,numberBarPercent:e[r].accomplished.avgPostGame/L}:this.objectZeroValues}else{const L=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[r].accomplished.avgPostGame?{numberValue:e[r].accomplished.avgPostGame,numberBarPercent:e[r].accomplished.avgPostGame/L}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},r=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await cl.get(r,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},wN=e=>(t.pushScopeId("data-v-f54f7b79"),e=e(),t.popScopeId(),e),Ile={class:"card"},Ple={class:"card__header"},Nle={class:"card__stats"},Ble=["onClick"],Ole=[wN(()=>t.createElementVNode("img",{src:xN},null,-1))],zle={key:1,class:"card__stats__stat__button_empty"},Lle={class:"card__stats__title"},Fle={class:"card__stats__scores"},Dle={key:0},Vle={key:1},Rle={key:2},$le={key:3},jle={class:"card__stats__bars"},Ule=["onClick"],Hle=[wN(()=>t.createElementVNode("img",{src:xN},null,-1))],Gle={key:1,class:"card__stats__stat__button_empty"};function Wle(e,n,r,I,L,d){const g=t.resolveComponent("BarraLeft"),a=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Ile,[t.createElementVNode("span",Ple,t.toDisplayString(r.data.name),1),t.createElementVNode("div",Nle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.subcategories,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"card__stats__stat"},[t.createElementVNode("div",null,[d.canPlayVideos.home&&d.hVal(b)&&d.hVal(b).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:i=>d.onclickPlayVideos({category:b.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},d.canPlayVideos.home)},Ole,8,Ble)):(t.openBlock(),t.createElementBlock("div",zle))]),t.createElementVNode("div",null,[t.createElementVNode("div",Lle,t.toDisplayString(b.name),1),t.createElementVNode("div",Fle,[d.hVal(b)?(t.openBlock(),t.createElementBlock("span",Dle,[t.createTextVNode(t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.hVal(b).numberValue))),1),b.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Vle,"0")),d.aVal(b)?(t.openBlock(),t.createElementBlock("span",Rle,[t.createTextVNode(t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.aVal(b).numberValue))),1),b.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",$le,"0"))]),t.createElementVNode("div",jle,[t.createElementVNode("div",null,[d.hVal(b)?(t.openBlock(),t.createBlock(g,{key:0,postmatch:d.hVal(b).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(g,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[d.aVal(b)?(t.openBlock(),t.createBlock(a,{key:0,postmatch:d.aVal(b).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(a,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[d.canPlayVideos.away&&d.aVal(b)&&d.aVal(b).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:i=>d.onclickPlayVideos({category:b.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},d.canPlayVideos.away)},Hle,8,Ule)):(t.openBlock(),t.createElementBlock("div",Gle))])]))),128))])])}const qle=Gr(Mle,[["render",Wle],["__scopeId","data-v-f54f7b79"]]),lpa="",Yle={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},kf=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),Zle={class:"comparative-card"},Jle=kf(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),Xle={class:"versus"},Kle={class:"team-badge"},Qle=["src","alt"],ece=kf(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),tce=kf(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),ace={class:"team-badge"},nce=["src","alt"],rce={class:"details"},ice={key:0},oce={key:0},sce={key:1},lce=kf(()=>t.createElementVNode("td",null,"Puntos",-1)),cce=kf(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),dce=kf(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),uce=kf(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),hce=kf(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function pce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(d.customStyle)},[t.createElementVNode("div",Zle,[Jle,t.createElementVNode("div",Xle,[t.createElementVNode("div",Kle,[r.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.local.team_logo,alt:r.local.team_name},null,8,Qle)):t.createCommentVNode("",!0),ece]),tce,t.createElementVNode("div",ace,[r.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.away.team_logo,alt:r.away.team_name},null,8,nce)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",rce,[r.away&&r.local?(t.openBlock(),t.createElementBlock("table",ice,[t.createElementVNode("tbody",null,[r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",oce,[t.createElementVNode("td",null,t.toDisplayString(r.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),r.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(r.away.table_position),1)])):t.createCommentVNode("",!0),r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",sce,[t.createElementVNode("td",null,t.toDisplayString(r.local.points),1),lce,t.createElementVNode("td",null,t.toDisplayString(r.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_played),1),cce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_won),1),dce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_lost),1),uce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_tied),1),hce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const fce=Gr(Yle,[["render",pce],["__scopeId","data-v-4a054ef7"]]),cpa="",mce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},f6={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,n=this.$refs.content.scrollWidth;n>0&&e>0&&(n>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},kN=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},CN=f6.setup;f6.setup=CN?(e,n)=>(kN(),CN(e,n)):kN;const gce={ref:"gscScrollableContainer",class:"scrollable-container"},yce={class:"scrollable-arrows"},vce=["width","height","viewBox"],_ce=["stroke"],bce={class:"scrollable-wrapper"},xce={class:"scrollable-arrows"},wce=["width","height","viewBox"],kce=["stroke"];function Cce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",gce,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:n[0]||(n[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",yce,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,_ce)],8,vce))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:n[1]||(n[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",bce,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:n[2]||(n[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",xce,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,kce)],8,wce))])],2)):t.createCommentVNode("",!0)],512)}const wg=mce(f6,[["render",Cce],["__scopeId","data-v-b548a08d"]]),dpa="";let TN=null;const Tce={name:"App",components:{GscLinearTeamStats:qle,TableComparative:fce,GSCSlider:wg},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...Ml("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive||!this.showLiveData}},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)TN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),TN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const n=await cl.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id);let r=-1,I=-1;if(this.tournamentType!=1)r=n.data.data.findIndex(L=>L.team_id===this.gameForAnalysis.home_team),I=n.data.data.findIndex(L=>L.team_id===this.gameForAnalysis.visiting_team);else for(let L=0;L<n.data.groups.length;L++)r==-1&&(r=n.data.groups[L].data.findIndex(d=>d.team_id===this.gameForAnalysis.home_team),r!=-1&&(this.home=n.data.groups[L].data[r])),I==-1&&(I=n.data.groups[L].data.findIndex(d=>d.team_id===this.gameForAnalysis.visiting_team),I!=-1&&(this.away=n.data.groups[L].data[I]));this.tournamentType!=1&&(this.home=n.data.data[r],this.away=n.data.data[I])}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Sce={class:"container",ref:"gamesContainer"},Ece={key:0,class:"grid-container"},Ace={key:0,class:"item"},Mce={class:"item"},Ice={class:"item"},Pce={class:"item"},Nce={class:"item"},Bce={class:"item"},Oce={class:"item"},zce={class:"grid-container"},Lce={key:0,class:"item-comparative"},Fce={class:"table-movil-container"};function Dce(e,n,r,I,L,d){const g=t.resolveComponent("TableComparative"),a=t.resolveComponent("GscLinearTeamStats"),b=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Sce,[L.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",zce,[L.home&&L.away?(t.openBlock(),t.createElementBlock("div",Lce,[t.createVNode(g,{local:L.home,"tournament-type":r.tournamentType,away:L.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(b,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",Fce,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510&&L.gamesContainerWidth>450?"width: 400px":L.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["play-videos-privileges","onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",Ece,[L.home&&L.away&&d.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Ace,[t.createVNode(g,{local:L.home,"tournament-type":r.tournamentType,away:L.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Ice,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Pce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Nce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Bce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Oce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])])]))],512)}const Vce=Gr(Tce,[["render",Dce]]),upa="",hpa="",SN=["#cbee6b","#0033C5"],Rce={name:"DistributionChart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData()}},showLiveData(){this.fillData()}},computed:{...Bd("nextGeneral",["showLiveData","gameForAnalysis"]),...Ml("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),r=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,I=Math.floor(r/(1e3*60*60*24)),L=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),d=Math.floor(r%(1e3*60*60)/(1e3*60)),g=Math.floor(r%(1e3*60)/1e3);let a="";return g>0&&(a=g==1?g+" segundo":g+" segundos"),d>0&&(a=d==1?d+" minuto":d+" minutos"),L>0&&(a=L==1?L+" hora":L+" horas"),I>0&&(a=I==1?I+" día":I+" días"),a}},methods:{avg(e,n){return n?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=[],this.arrayFilledDataSortedByPriority.forEach((e,n)=>{const r=this.getChartOptions(),I=this.getChartSeries(e.subcategories,r);this.arrayFilledSeries.push(I),this.arrayChartOptions.push(r),e.id=`dC${n}`;const L=this.$refs[e.id];L&&L[0].updateSeries(I,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:SN,fill:{colors:SN,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:n,dataPointIndex:r,w:I}){const L=I.config.arraySubcategories[r].name,d=I.config.series[n].name,g=I.config.series[n].dataTotal[r],a=e[n][r];return I.config.arraySubcategories[r].id==="3-0"?`
|
|
24
|
+
`+d):I.stack=d}catch{}}throw I}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=cm(this.defaults,r);const{transitional:I,paramsSerializer:L,headers:d}=r;I!==void 0&&u6.assertOptions(I,{silentJSONParsing:wf.transitional(wf.boolean),forcedJSONParsing:wf.transitional(wf.boolean),clarifyTimeoutError:wf.transitional(wf.boolean)},!1),L!=null&&(Vn.isFunction(L)?r.paramsSerializer={serialize:L}:u6.assertOptions(L,{encode:wf.function,serialize:wf.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let g=d&&Vn.merge(d.common,d[r.method]);d&&Vn.forEach(["delete","get","head","post","put","patch","common"],s=>{delete d[s]}),r.headers=Yu.concat(g,d);const a=[];let b=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(r)===!1||(b=b&&o.synchronous,a.unshift(o.fulfilled,o.rejected))});const m=[];this.interceptors.response.forEach(function(o){m.push(o.fulfilled,o.rejected)});let i,v=0,_;if(!b){const s=[yN.bind(this),void 0];for(s.unshift.apply(s,a),s.push.apply(s,m),_=s.length,i=Promise.resolve(r);v<_;)i=i.then(s[v++],s[v++]);return i}_=a.length;let c=r;for(v=0;v<_;){const s=a[v++],o=a[v++];try{c=s(c)}catch(l){o.call(this,l);break}}try{i=yN.call(this,c)}catch(s){return Promise.reject(s)}for(v=0,_=m.length;v<_;)i=i.then(m[v++],m[v++]);return i}getUri(n){n=cm(this.defaults,n);const r=lN(n.baseURL,n.url);return QP(r,n.params,n.paramsSerializer)}}Vn.forEach(["delete","get","head","options"],function(n){tb.prototype[n]=function(r,I){return this.request(cm(I||{},{method:n,url:r,data:(I||{}).data}))}}),Vn.forEach(["post","put","patch"],function(n){function r(I){return function(d,g,a){return this.request(cm(a||{},{method:n,headers:I?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}tb.prototype[n]=r(),tb.prototype[n+"Form"]=r(!0)});const ab=tb;class h6{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(d){r=d});const I=this;this.promise.then(L=>{if(!I._listeners)return;let d=I._listeners.length;for(;d-- >0;)I._listeners[d](L);I._listeners=null}),this.promise.then=L=>{let d;const g=new Promise(a=>{I.subscribe(a),d=a}).then(L);return g.cancel=function(){I.unsubscribe(d)},g},n(function(d,g,a){I.reason||(I.reason=new $0(d,g,a),r(I.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}static source(){let n;return{token:new h6(function(L){n=L}),cancel:n}}}const Tle=h6;function Sle(e){return function(r){return e.apply(null,r)}}function Ele(e){return Vn.isObject(e)&&e.isAxiosError===!0}const p6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(p6).forEach(([e,n])=>{p6[n]=e});const Ale=p6;function bN(e){const n=new ab(e),r=FP(ab.prototype.request,n);return Vn.extend(r,ab.prototype,n,{allOwnKeys:!0}),Vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(L){return bN(cm(e,L))},r}const uc=bN(n6);uc.Axios=ab,uc.CanceledError=$0,uc.CancelToken=Tle,uc.isCancel=rN,uc.VERSION=vN,uc.toFormData=Z_,uc.AxiosError=Hi,uc.Cancel=uc.CanceledError,uc.all=function(n){return Promise.all(n)},uc.spread=Sle,uc.isAxiosError=Ele,uc.mergeConfig=cm,uc.AxiosHeaders=Yu,uc.formToJSON=e=>aN(Vn.isHTMLForm(e)?new FormData(e):e),uc.getAdapter=gN.getAdapter,uc.HttpStatusCode=Ale,uc.default=uc;const cl=uc,xN="/icn-play.svg",ipa="",Mle={components:{BarraLeft:Joe,BarraRight:rse},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{gamesBySeason:{}}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...Ml("nextGeneral",["homeTeam","visitingTeam"]),canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,n){if(!n)return;var r=[];e.type==2?e.position_id==1?e.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.category:e.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.category:e.type==3?e.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.category:e.category!=0?r=e.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const I=[1,2,3];let L={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:I,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(L.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",L)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const n=typeof e=="string"?parseFloat(e):e;return typeof n=="number"&&!isNaN(n)?n%1===0?n:n%1===0?Math.floor(n):n:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,n,r){if(!n.game_id)return this.objectZeroValues;const I=e.generalCategoriesIds.accomplished===3;if((n.is_live||n.game_status===0)&&this.showLiveData){const L=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return L?{numberValue:I?e[r].accomplished.totalLive/L*100:e[r].accomplished.totalLive,numberBarPercent:e[r].accomplished.totalLive/L}:this.objectZeroValues}else if(n.game_status===1){const L=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return L?{numberValue:I?e[r].accomplished.totalPostGame/L*100:e[r].accomplished.totalPostGame,numberBarPercent:e[r].accomplished.totalPostGame/L}:this.objectZeroValues}if(I){const L=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,d=e[r].accomplished.avgPostGame/L;return e[r].accomplished.avgPostGame?{numberValue:d<1?d*100:d,numberBarPercent:e[r].accomplished.avgPostGame/L}:this.objectZeroValues}else{const L=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[r].accomplished.avgPostGame?{numberValue:e[r].accomplished.avgPostGame,numberBarPercent:e[r].accomplished.avgPostGame/L}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},r=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await cl.get(r,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},wN=e=>(t.pushScopeId("data-v-9d1605bf"),e=e(),t.popScopeId(),e),Ile={class:"card"},Ple={class:"card__header"},Nle={class:"card__stats"},Ble=["onClick"],Ole=[wN(()=>t.createElementVNode("img",{src:xN},null,-1))],zle={key:1,class:"card__stats__stat__button_empty"},Lle={class:"card__stats__title"},Fle={class:"card__stats__scores"},Dle={key:0},Vle={key:1},Rle={key:2},$le={key:3},jle={class:"card__stats__bars"},Ule=["onClick"],Hle=[wN(()=>t.createElementVNode("img",{src:xN},null,-1))],Gle={key:1,class:"card__stats__stat__button_empty"};function Wle(e,n,r,I,L,d){const g=t.resolveComponent("BarraLeft"),a=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Ile,[t.createElementVNode("span",Ple,t.toDisplayString(r.data.name),1),t.createElementVNode("div",Nle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.subcategories,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"card__stats__stat"},[t.createElementVNode("div",null,[d.canPlayVideos.home&&d.hVal(b)&&d.hVal(b).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:i=>d.onclickPlayVideos({category:b.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},d.canPlayVideos.home)},Ole,8,Ble)):(t.openBlock(),t.createElementBlock("div",zle))]),t.createElementVNode("div",null,[t.createElementVNode("div",Lle,t.toDisplayString(b.name),1),t.createElementVNode("div",Fle,[d.hVal(b)?(t.openBlock(),t.createElementBlock("span",Dle,[t.createTextVNode(t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.hVal(b).numberValue))),1),b.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Vle,"0")),d.aVal(b)?(t.openBlock(),t.createElementBlock("span",Rle,[t.createTextVNode(t.toDisplayString(d.deleteDecimalZero(d.formatNumbers(d.aVal(b).numberValue))),1),b.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",$le,"0"))]),t.createElementVNode("div",jle,[t.createElementVNode("div",null,[d.hVal(b)?(t.openBlock(),t.createBlock(g,{key:0,postmatch:d.hVal(b).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(g,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[d.aVal(b)?(t.openBlock(),t.createBlock(a,{key:0,postmatch:d.aVal(b).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(a,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[d.canPlayVideos.away&&d.aVal(b)&&d.aVal(b).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:i=>d.onclickPlayVideos({category:b.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},d.canPlayVideos.away)},Hle,8,Ule)):(t.openBlock(),t.createElementBlock("div",Gle))])]))),128))])])}const qle=Gr(Mle,[["render",Wle],["__scopeId","data-v-9d1605bf"]]),lpa="",Yle={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},kf=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),Zle={class:"comparative-card"},Jle=kf(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),Xle={class:"versus"},Kle={class:"team-badge"},Qle=["src","alt"],ece=kf(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),tce=kf(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),ace={class:"team-badge"},nce=["src","alt"],rce={class:"details"},ice={key:0},oce={key:0},sce={key:1},lce=kf(()=>t.createElementVNode("td",null,"Puntos",-1)),cce=kf(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),dce=kf(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),uce=kf(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),hce=kf(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function pce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(d.customStyle)},[t.createElementVNode("div",Zle,[Jle,t.createElementVNode("div",Xle,[t.createElementVNode("div",Kle,[r.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.local.team_logo,alt:r.local.team_name},null,8,Qle)):t.createCommentVNode("",!0),ece]),tce,t.createElementVNode("div",ace,[r.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.away.team_logo,alt:r.away.team_name},null,8,nce)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",rce,[r.away&&r.local?(t.openBlock(),t.createElementBlock("table",ice,[t.createElementVNode("tbody",null,[r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",oce,[t.createElementVNode("td",null,t.toDisplayString(r.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),r.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(r.away.table_position),1)])):t.createCommentVNode("",!0),r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",sce,[t.createElementVNode("td",null,t.toDisplayString(r.local.points),1),lce,t.createElementVNode("td",null,t.toDisplayString(r.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_played),1),cce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_won),1),dce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_lost),1),uce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_tied),1),hce,t.createElementVNode("td",null,t.toDisplayString(r.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const fce=Gr(Yle,[["render",pce],["__scopeId","data-v-4a054ef7"]]),cpa="",mce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},f6={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,n=this.$refs.content.scrollWidth;n>0&&e>0&&(n>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},kN=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},CN=f6.setup;f6.setup=CN?(e,n)=>(kN(),CN(e,n)):kN;const gce={ref:"gscScrollableContainer",class:"scrollable-container"},yce={class:"scrollable-arrows"},vce=["width","height","viewBox"],_ce=["stroke"],bce={class:"scrollable-wrapper"},xce={class:"scrollable-arrows"},wce=["width","height","viewBox"],kce=["stroke"];function Cce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",gce,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",d.hideShowLeftArrow]),onClick:n[0]||(n[0]=(...g)=>d.scrollLeft&&d.scrollLeft(...g))},[t.createElementVNode("div",yce,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,_ce)],8,vce))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:n[1]||(n[1]=(...g)=>d.getScroll&&d.getScroll(...g))},[t.createElementVNode("div",bce,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",d.hideShowRightArrow]),onClick:n[2]||(n[2]=(...g)=>d.scrollRight&&d.scrollRight(...g))},[t.createElementVNode("div",xce,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:d.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,kce)],8,wce))])],2)):t.createCommentVNode("",!0)],512)}const wg=mce(f6,[["render",Cce],["__scopeId","data-v-b548a08d"]]),dpa="";let TN=null;const Tce={name:"App",components:{GscLinearTeamStats:qle,TableComparative:fce,GSCSlider:wg},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...Ml("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive&&!this.showLiveData}},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)TN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),TN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const n=await cl.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id);let r=-1,I=-1;if(this.tournamentType!=1)r=n.data.data.findIndex(L=>L.team_id===this.gameForAnalysis.home_team),I=n.data.data.findIndex(L=>L.team_id===this.gameForAnalysis.visiting_team);else for(let L=0;L<n.data.groups.length;L++)r==-1&&(r=n.data.groups[L].data.findIndex(d=>d.team_id===this.gameForAnalysis.home_team),r!=-1&&(this.home=n.data.groups[L].data[r])),I==-1&&(I=n.data.groups[L].data.findIndex(d=>d.team_id===this.gameForAnalysis.visiting_team),I!=-1&&(this.away=n.data.groups[L].data[I]));this.tournamentType!=1&&(this.home=n.data.data[r],this.away=n.data.data[I])}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Sce={class:"container",ref:"gamesContainer"},Ece={key:0,class:"grid-container"},Ace={key:0,class:"item"},Mce={class:"item"},Ice={class:"item"},Pce={class:"item"},Nce={class:"item"},Bce={class:"item"},Oce={class:"item"},zce={class:"grid-container"},Lce={key:0,class:"item-comparative"},Fce={class:"table-movil-container"};function Dce(e,n,r,I,L,d){const g=t.resolveComponent("TableComparative"),a=t.resolveComponent("GscLinearTeamStats"),b=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Sce,[L.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",zce,[L.home&&L.away&&d.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Lce,[t.createVNode(g,{local:L.home,"tournament-type":r.tournamentType,away:L.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(b,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",Fce,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510&&L.gamesContainerWidth>450?"width: 400px":L.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(L.gamesContainerWidth<510?"width: 400px":L.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:d.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["play-videos-privileges","onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",Ece,[L.home&&L.away&&d.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Ace,[t.createVNode(g,{local:L.home,"tournament-type":r.tournamentType,away:L.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Ice,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Pce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Nce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Bce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",Oce,[t.createVNode(a,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:d.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])])]))],512)}const Vce=Gr(Tce,[["render",Dce]]),upa="",hpa="",SN=["#cbee6b","#0033C5"],Rce={name:"DistributionChart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData()}},showLiveData(){this.fillData()}},computed:{...Bd("nextGeneral",["showLiveData","gameForAnalysis"]),...Ml("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),r=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,I=Math.floor(r/(1e3*60*60*24)),L=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),d=Math.floor(r%(1e3*60*60)/(1e3*60)),g=Math.floor(r%(1e3*60)/1e3);let a="";return g>0&&(a=g==1?g+" segundo":g+" segundos"),d>0&&(a=d==1?d+" minuto":d+" minutos"),L>0&&(a=L==1?L+" hora":L+" horas"),I>0&&(a=I==1?I+" día":I+" días"),a}},methods:{avg(e,n){return n?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=[],this.arrayFilledDataSortedByPriority.forEach((e,n)=>{const r=this.getChartOptions(),I=this.getChartSeries(e.subcategories,r);this.arrayFilledSeries.push(I),this.arrayChartOptions.push(r),e.id=`dC${n}`;const L=this.$refs[e.id];L&&L[0].updateSeries(I,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:SN,fill:{colors:SN,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:n,dataPointIndex:r,w:I}){const L=I.config.arraySubcategories[r].name,d=I.config.series[n].name,g=I.config.series[n].dataTotal[r],a=e[n][r];return I.config.arraySubcategories[r].id==="3-0"?`
|
|
25
25
|
<div class="custom-tooltip-apexchart" style="display: none !important;">
|
|
26
26
|
<div class="__title">${L}:</div>
|
|
27
27
|
<div class="__totals">${d}: ${a}%</div>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div class="__title">${L}:</div>
|
|
32
32
|
<div class="__totals">${d}: ${g}</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}}}},getChartSeries(e,n){let r,I;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);const g=L.homeTeam[this.homeTeamStatisticsType].totalPostGame+L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(g?L.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),r.dataTotal.push(L.homeTeam[this.homeTeamStatisticsType].totalPostGame),I.data.push(Math.round(120*(g?L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),I.dataTotal.push(L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);let g,a,b,m;const i=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(g=L.homeTeam.accomplished.avgPostGame/i,b=L.homeTeam.accomplished.totalPostGame):(g=i?L.homeTeam[this.homeTeamStatisticsType].avgPostGame/i:0,b=L.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?L.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,b=L.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(a=L.visitingTeam.accomplished.avgPostGame/i,m=L.visitingTeam.accomplished.totalPostGame):(a=i?L.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/i:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?L.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*g)),r.dataTotal.push(Math.round(b)),I.data.push(Math.round(120*a)),I.dataTotal.push(Math.round(m))})),[r,I]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,r){const I=r===0?"homeTeam":"visitingTeam",L=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=L.id!=="3-0",this.tooltip.data=this.getSubcategoryData(L,I),this.tooltip.local=r===0,this.tooltip.names=L.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(L);const d=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=d,this.globals.y=g,this.tooltip.x=d,this.tooltip.y=g>700?g-250:g;const a=L.generalCategoriesIds.accomplished===3;if(a){const b=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=b?L[I].accomplished.avgPostGame/b*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),I=Math.abs(e.clientY-this.globals.y);(r>5||I>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return r;const I=13;if(r.length>I){let L=r.split(" ");r=[];let d="",g="",a=L.slice(-1)[0];L.forEach(b=>{d+=` ${b} `,d.length>I&&(r.push(g.trim()),d=b),g=d,a===b&&r.push(g.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,r)=>n+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},EN=e=>(t.pushScopeId("data-v-e3c5378e"),e=e(),t.popScopeId(),e),$ce={key:0,class:"distribution-leyend"},jce=EN(()=>t.createElementVNode("br",null,null,-1)),Uce={class:"distribution"},Hce={class:"distribution__container"},Gce={class:"distribution__container__chart-type__title"},Wce=EN(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),qce={class:"distribution__container__chart-type__chart"};function Yce(e,n,r,I,L,d){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",$ce,[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(d.timeLeft),1),t.createTextVNode(" para el inicio."),jce,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Uce,[t.createElementVNode("div",Hce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayDataForCharts,(a,b)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:b},[t.createElementVNode("div",Gce,t.toDisplayString(a.name),1),Wce,t.createElementVNode("div",qce,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:L.height,options:L.arrayChartOptions[b],series:L.arrayFilledSeries[b]},null,8,["height","options","series"])])]))),128))])])],64)}const Zce=Gr(Rce,[["render",Yce],["__scopeId","data-v-e3c5378e"]]),Jce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},m6={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(n){throw new Error(n)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},AN=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},MN=m6.setup;m6.setup=MN?(e,n)=>(AN(),MN(e,n)):AN;const Xce={key:0,class:"text-left"},Kce=["width","src"],Qce=["checked"],ede=["width","src"],tde={key:3,class:"text-right"};function ade(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Xce,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,Kce)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,Qce),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,ede)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",tde,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const nde=Jce(m6,[["render",ade],["__scopeId","data-v-e2a20444"]]),ppa="",fpa="",rde={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function ide(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),style:t.normalizeStyle(d.positionTooltip),onClick:n[0]||(n[0]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const IN=Gr(rde,[["render",ide],["__scopeId","data-v-33a39744"]]),mpa="",ode={name:"SoccerChalkboardXg",components:{Tooltip:IN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},kg=e=>(t.pushScopeId("data-v-0ad56f44"),e=e(),t.popScopeId(),e),sde={class:"soccer-chalkboard-xg"},lde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},cde={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},dde=kg(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),ude=["id"],hde=["fill"],pde=kg(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),fde=["id"],mde=["x1","y1","x2","y2","stroke"],gde=["x1","y1","x2","y2","stroke","marker-end"],yde=["onMouseover"],vde=["x","y","fill"],_de=["x","y"],bde={class:"tooltip-data has-text-left"},xde={class:"bold"},wde={class:"tooltip-image"},kde={class:"tooltip-image"},Cde=["src"],Tde={class:"tooltip-xg"},Sde={key:0},Ede=kg(()=>t.createElementVNode("span",null,"xGi:",-1)),Ade=kg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Mde={key:1},Ide=kg(()=>t.createElementVNode("span",null,"xGf:",-1));function Pde(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",sde,[(t.openBlock(),t.createElementBlock("svg",lde,[(t.openBlock(),t.createElementBlock("svg",cde,[t.createElementVNode("defs",null,[dde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,hde)],8,ude))),128)),pde]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,mde),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,gde),t.createElementVNode("g",{onMouseover:b=>d.onMouseOver(b,a),onMouseleave:n[0]||(n[0]=(...b)=>d.onMouseLeave&&d.onMouseLeave(...b)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,vde),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,_de)],40,yde)],8,fde))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",bde,[t.createElementVNode("div",null,[t.createElementVNode("span",xde,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",wde,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",kde,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,Cde)])]),t.createElementVNode("div",Tde,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Sde,[Ede,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Ade,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Mde,[Ide,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const PN=Gr(ode,[["render",Pde],["__scopeId","data-v-0ad56f44"]]),nb=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],gpa="",Nde={name:"XgLocal",components:{SoccerChalkboard:PN},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},NN=e=>(t.pushScopeId("data-v-3a21f7fa"),e=e(),t.popScopeId(),e),Bde={class:"xg-container"},Ode={class:"xg-container__info"},zde=NN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Lde={class:"table"},Fde={class:"table__row"},Dde={class:"table__row__title"},Vde={class:"table__row__value"},Rde=["src"],$de={class:"table__row"},jde={class:"table__row__title"},Ude={class:"table__row__value"},Hde={class:"table__row"},Gde={class:"table__row__title"},Wde={class:"table__row__value"},qde=NN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Yde={class:"xg-container__field"};function Zde(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Bde,[t.createElementVNode("div",Ode,[zde,t.createElementVNode("div",Lde,[t.createElementVNode("div",Fde,[t.createElementVNode("div",Dde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Vde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Rde)])]),t.createElementVNode("div",$de,[t.createElementVNode("div",jde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Ude,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Hde,[t.createElementVNode("div",Gde,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Wde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),qde]),t.createElementVNode("div",Yde,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])])])}const Jde=Gr(Nde,[["render",Zde],["__scopeId","data-v-3a21f7fa"]]),ypa="",Xde={name:"XgAway",components:{SoccerChalkboard:PN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},BN=e=>(t.pushScopeId("data-v-b6926437"),e=e(),t.popScopeId(),e),Kde={class:"xg-container"},Qde={class:"xg-container__info"},eue=BN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),tue={class:"table"},aue={class:"table__row"},nue={class:"table__row__title"},rue={class:"table__row__value"},iue=["src"],oue={class:"table__row"},sue={class:"table__row__title"},lue={class:"table__row__value"},cue={class:"table__row"},due={class:"table__row__title"},uue={class:"table__row__value"},hue=BN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),pue={class:"xg-container__field"};function fue(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Kde,[t.createElementVNode("div",Qde,[eue,t.createElementVNode("div",tue,[t.createElementVNode("div",aue,[t.createElementVNode("div",nue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",rue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,iue)])]),t.createElementVNode("div",oue,[t.createElementVNode("div",sue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",lue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",cue,[t.createElementVNode("div",due,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",uue,t.toDisplayString(d.gxInfoItems[2].value),1)])]),hue]),t.createElementVNode("div",pue,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:r.team},null,8,["plays","categories","team"])])])])}const mue=Gr(Xde,[["render",fue],["__scopeId","data-v-b6926437"]]),vpa="",gue={name:"SoccerChalkboardXgMobile",components:{Tooltip:IN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Cg=e=>(t.pushScopeId("data-v-99de0366"),e=e(),t.popScopeId(),e),yue={class:"soccer-chalkboard-xg"},vue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},_ue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},bue=Cg(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),xue=["id"],wue=["fill"],kue=Cg(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Cue=["id"],Tue=["x1","y1","x2","y2","stroke"],Sue=["x1","y1","x2","y2","stroke","marker-end"],Eue=["onMouseover"],Aue=["x","y","fill"],Mue=["x","y"],Iue={class:"tooltip-data has-text-left"},Pue={class:"bold"},Nue={class:"tooltip-image"},Bue={class:"tooltip-image"},Oue=["src"],zue={class:"tooltip-xg"},Lue={key:0},Fue=Cg(()=>t.createElementVNode("span",null,"xGi:",-1)),Due=Cg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Vue={key:1},Rue=Cg(()=>t.createElementVNode("span",null,"xGf:",-1));function $ue(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",yue,[(t.openBlock(),t.createElementBlock("svg",vue,[(t.openBlock(),t.createElementBlock("svg",_ue,[t.createElementVNode("defs",null,[bue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,wue)],8,xue))),128)),kue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Tue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Sue),t.createElementVNode("g",{onMouseover:b=>d.onMouseOver(b,a),onMouseleave:n[0]||(n[0]=(...b)=>d.onMouseLeave&&d.onMouseLeave(...b)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Aue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Mue)],40,Eue)],8,Cue))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",Iue,[t.createElementVNode("div",null,[t.createElementVNode("span",Pue,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",Nue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Bue,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,Oue)])]),t.createElementVNode("div",zue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Lue,[Fue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Due,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Vue,[Rue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const ON=Gr(gue,[["render",$ue],["__scopeId","data-v-99de0366"]]),_pa="",jue={name:"Xg",components:{SoccerChalkboard:ON},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},zN=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),Uue={class:"xg-container"},Hue=zN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Gue={class:"xg-container__field"},Wue={class:"xg-container__info"},que={class:"table"},Yue={class:"table__row"},Zue={class:"table__row__title"},Jue={class:"table__row__value"},Xue=["src"],Kue={class:"table__row"},Que={class:"table__row__title"},ehe={class:"table__row__value"},the={class:"table__row"},ahe={class:"table__row__title"},nhe={class:"table__row__value"},rhe=zN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function ihe(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Uue,[Hue,t.createElementVNode("div",Gue,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Wue,[t.createElementVNode("div",que,[t.createElementVNode("div",Yue,[t.createElementVNode("div",Zue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Jue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Xue)])]),t.createElementVNode("div",Kue,[t.createElementVNode("div",Que,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",ehe,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",the,[t.createElementVNode("div",ahe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",nhe,t.toDisplayString(d.gxInfoItems[2].value),1)])]),rhe])])}const ohe=Gr(jue,[["render",ihe],["__scopeId","data-v-fb5342de"]]),bpa="",she={name:"Xg",components:{SoccerChalkboard:ON},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},LN=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),lhe={class:"xg-container"},che=LN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),dhe={class:"xg-container__field"},uhe={class:"xg-container__info"},hhe={class:"table"},phe={class:"table__row"},fhe={class:"table__row__title"},mhe={class:"table__row__value"},ghe=["src"],yhe={class:"table__row"},vhe={class:"table__row__title"},_he={class:"table__row__value"},bhe={class:"table__row"},xhe={class:"table__row__title"},whe={class:"table__row__value"},khe=LN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function Che(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",lhe,[che,t.createElementVNode("div",dhe,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",uhe,[t.createElementVNode("div",hhe,[t.createElementVNode("div",phe,[t.createElementVNode("div",fhe,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",mhe,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,ghe)])]),t.createElementVNode("div",yhe,[t.createElementVNode("div",vhe,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",_he,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",bhe,[t.createElementVNode("div",xhe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",whe,t.toDisplayString(d.gxInfoItems[2].value),1)])]),khe])])}const The=Gr(she,[["render",Che],["__scopeId","data-v-38eed9b5"]]),xpa="";let FN=null;const She={name:"XgMain",components:{GSCSwitchRadio:nde,SoccerChalkboardLocal:Jde,SoccerChalkboardAway:mue,SoccerChalkboardLocalMobile:ohe,SoccerChalkboardAwayMobile:The},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)FN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),FN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},Ehe={class:"xg",ref:"gamesContainer"},Ahe={key:0,class:"selector-team"};function Mhe(e,n,r,I,L,d){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),b=t.resolveComponent("SoccerChalkboardAway"),m=t.resolveComponent("SoccerChalkboardLocalMobile"),i=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",Ehe,[L.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Ahe,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:L.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:d.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(b,{key:2,class:"away"})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:3})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(i,{key:4})):t.createCommentVNode("",!0)],512)}const Ihe=Gr(She,[["render",Mhe],["__scopeId","data-v-20bd873f"]]),wpa="",DN=e=>(t.pushScopeId("data-v-fb694bc7"),e=e(),t.popScopeId(),e),Phe={class:"statistics-main"},Nhe={class:"statistics-main__header"},Bhe={class:"statistics-main__header__filter"},Ohe={key:0,class:"statistics-main__header__live-switch"},zhe=DN(()=>t.createElementVNode("div",null,"Este partido",-1)),Lhe=DN(()=>t.createElementVNode("div",null,"Acumulado",-1)),Fhe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:joe,Comparative:Vce,Distribution:Zce,GSCSlider:wg,XG:Ihe}}),Dhe=Gr(Object.assign(Fhe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const r=e,I=ig(),L=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),d=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),b=t.ref(a.value[0]),m=t.ref(!1),i=t.ref(0);t.watch(()=>r.game,o=>{const l={...o};m.value=!r.game.is_live,r.game.is_live||Yw(),v(l),i.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,o=>{I.commit("nextGeneral/updateShowLiveData",!o)},{immediate:!0});async function v(o){try{d.value.gameId!==o.gameId&&(d.value=o,await I.dispatch("nextGeneral/cleanStats"),await I.dispatch("nextGeneral/checkState",{gameId:o.gameId,currentSeasonId:o.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:o}))}catch(l){throw new Error(l)}}function _(o){b.value=o}function c(){I.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(o){I.state.nextGeneral.usePastSeasonId&&(o.seasonId=I.state.nextGeneral.pastSeasonId),n("openmedia",o)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(b.value.id="st1",b.value.name="Comparativa",b.value.componentName="Comparative")}),c(),(o,l)=>(t.openBlock(),t.createElementBlock("div",Phe,[t.createElementVNode("div",Nhe,[t.createVNode(t.unref(wg),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"game-time-line__options__option"},[t.createVNode(AP,t.mergeProps(L.value,{text:u.name,"is-active":b.value.id===u.id,onClick:h=>_(u)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Bhe,[t.createVNode(Jie)],512),[[t.vShow,!1]]),e.game.is_live?t.withDirectives((t.openBlock(),t.createElementBlock("div",Ohe,[zhe,t.createElementVNode("div",null,[t.createVNode(MP,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=u=>m.value=u)},null,8,["modelValue"])]),Lhe],512)),[[t.vShow,b.value.id!=="st4"]]):t.createCommentVNode("",!0)]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:i.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(b.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(I).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-fb694bc7"]]);function VN(e,n){return function(){return e.apply(n,arguments)}}const{toString:Vhe}=Object.prototype,{getPrototypeOf:g6}=Object,rb=(e=>n=>{const r=Vhe.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Zu=e=>(e=e.toLowerCase(),n=>rb(n)===e),ib=e=>n=>typeof n===e,{isArray:j0}=Array,Tg=ib("undefined");function Rhe(e){return e!==null&&!Tg(e)&&e.constructor!==null&&!Tg(e.constructor)&&yu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RN=Zu("ArrayBuffer");function $he(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&RN(e.buffer),n}const jhe=ib("string"),yu=ib("function"),$N=ib("number"),ob=e=>e!==null&&typeof e=="object",Uhe=e=>e===!0||e===!1,sb=e=>{if(rb(e)!=="object")return!1;const n=g6(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hhe=Zu("Date"),Ghe=Zu("File"),Whe=Zu("Blob"),qhe=Zu("FileList"),Yhe=e=>ob(e)&&yu(e.pipe),Zhe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||yu(e.append)&&((n=rb(e))==="formdata"||n==="object"&&yu(e.toString)&&e.toString()==="[object FormData]"))},Jhe=Zu("URLSearchParams"),[Xhe,Khe,Qhe,epe]=["ReadableStream","Request","Response","Headers"].map(Zu),tpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sg(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),j0(e))for(I=0,L=e.length;I<L;I++)n.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let a;for(I=0;I<g;I++)a=d[I],n.call(null,e[a],a,e)}}function jN(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],n===L.toLowerCase())return L;return null}const UN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),HN=e=>!Tg(e)&&e!==UN;function y6(){const{caseless:e}=HN(this)&&this||{},n={},r=(I,L)=>{const d=e&&jN(n,L)||L;sb(n[d])&&sb(I)?n[d]=y6(n[d],I):sb(I)?n[d]=y6({},I):j0(I)?n[d]=I.slice():n[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Sg(arguments[I],r);return n}const ape=(e,n,r,{allOwnKeys:I}={})=>(Sg(n,(L,d)=>{r&&yu(L)?e[d]=VN(L,r):e[d]=L},{allOwnKeys:I}),e),npe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rpe=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},ipe=(e,n,r,I)=>{let L,d,g;const a={};if(n=n||{},e==null)return n;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,n))&&!a[g]&&(n[g]=e[g],a[g]=!0);e=r!==!1&&g6(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},ope=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},spe=e=>{if(!e)return null;if(j0(e))return e;let n=e.length;if(!$N(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},lpe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&g6(Uint8Array)),cpe=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;n.call(e,L[0],L[1])}},dpe=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},upe=Zu("HTMLFormElement"),hpe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),GN=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),ppe=Zu("RegExp"),WN=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Sg(r,(L,d)=>{let g;(g=n(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},fpe=e=>{WN(e,(n,r)=>{if(yu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(yu(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mpe=(e,n)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return j0(e)?I(e):I(String(e).split(n)),r},gpe=()=>{},ype=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,v6="abcdefghijklmnopqrstuvwxyz",qN="0123456789",YN={DIGIT:qN,ALPHA:v6,ALPHA_DIGIT:v6+v6.toUpperCase()+qN},vpe=(e=16,n=YN.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function _pe(e){return!!(e&&yu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bpe=e=>{const n=new Array(10),r=(I,L)=>{if(ob(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[L]=I;const d=j0(I)?[]:{};return Sg(I,(g,a)=>{const b=r(g,L+1);!Tg(b)&&(d[a]=b)}),n[L]=void 0,d}}return I};return r(e,0)},xpe=Zu("AsyncFunction"),wpe=e=>e&&(ob(e)||yu(e))&&yu(e.then)&&yu(e.catch),jn={isArray:j0,isArrayBuffer:RN,isBuffer:Rhe,isFormData:Zhe,isArrayBufferView:$he,isString:jhe,isNumber:$N,isBoolean:Uhe,isObject:ob,isPlainObject:sb,isReadableStream:Xhe,isRequest:Khe,isResponse:Qhe,isHeaders:epe,isUndefined:Tg,isDate:Hhe,isFile:Ghe,isBlob:Whe,isRegExp:ppe,isFunction:yu,isStream:Yhe,isURLSearchParams:Jhe,isTypedArray:lpe,isFileList:qhe,forEach:Sg,merge:y6,extend:ape,trim:tpe,stripBOM:npe,inherits:rpe,toFlatObject:ipe,kindOf:rb,kindOfTest:Zu,endsWith:ope,toArray:spe,forEachEntry:cpe,matchAll:dpe,isHTMLForm:upe,hasOwnProperty:GN,hasOwnProp:GN,reduceDescriptors:WN,freezeMethods:fpe,toObjectSet:mpe,toCamelCase:hpe,noop:gpe,toFiniteNumber:ype,findKey:jN,global:UN,isContextDefined:HN,ALPHABET:YN,generateString:vpe,isSpecCompliantForm:_pe,toJSONObject:bpe,isAsyncFn:xpe,isThenable:wpe};function Gi(e,n,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}jn.inherits(Gi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:jn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ZN=Gi.prototype,JN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{JN[e]={value:e}}),Object.defineProperties(Gi,JN),Object.defineProperty(ZN,"isAxiosError",{value:!0}),Gi.from=(e,n,r,I,L,d)=>{const g=Object.create(ZN);return jn.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Gi.call(g,e.message,n,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const kpe=null;function _6(e){return jn.isPlainObject(e)||jn.isArray(e)}function XN(e){return jn.endsWith(e,"[]")?e.slice(0,-2):e}function KN(e,n,r){return e?e.concat(n).map(function(I,L){return I=XN(I),!r&&L?"["+I+"]":I}).join(r?".":""):n}function Cpe(e){return jn.isArray(e)&&!e.some(_6)}const Tpe=jn.toFlatObject(jn,{},null,function(e){return/^is[A-Z]/.test(e)});function lb(e,n,r){if(!jn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=jn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!jn.isUndefined(s[c])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&jn.isSpecCompliantForm(n);if(!jn.isFunction(L))throw new TypeError("visitor must be a function");function b(c){if(c===null)return"";if(jn.isDate(c))return c.toISOString();if(!a&&jn.isBlob(c))throw new Gi("Blob is not supported. Use a Buffer instead.");return jn.isArrayBuffer(c)||jn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(jn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(jn.isArray(c)&&Cpe(c)||(jn.isFileList(c)||jn.endsWith(s,"[]"))&&(l=jn.toArray(c)))return s=XN(s),l.forEach(function(u,h){!(jn.isUndefined(u)||u===null)&&n.append(g===!0?KN([s],h,d):g===null?s:s+"[]",b(u))}),!1}return _6(c)?!0:(n.append(KN(o,s,d),b(c)),!1)}const i=[],v=Object.assign(Tpe,{defaultVisitor:m,convertValue:b,isVisitable:_6});function _(c,s){if(!jn.isUndefined(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(c),jn.forEach(c,function(o,l){(!(jn.isUndefined(o)||o===null)&&L.call(n,o,jn.isString(l)?l.trim():l,s,v))===!0&&_(o,s?s.concat(l):[l])}),i.pop()}}if(!jn.isObject(e))throw new TypeError("data must be an object");return _(e),n}function QN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function b6(e,n){this._pairs=[],e&&lb(e,this,n)}const eB=b6.prototype;eB.append=function(e,n){this._pairs.push([e,n])},eB.toString=function(e){const n=e?function(r){return e.call(this,r,QN)}:QN;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Spe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tB(e,n,r){if(!n)return e;const I=r&&r.encode||Spe,L=r&&r.serialize;let d;if(L?d=L(n,r):d=jn.isURLSearchParams(n)?n.toString():new b6(n,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const aB=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){jn.forEach(this.handlers,function(r){r!==null&&n(r)})}},nB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Epe=typeof URLSearchParams<"u"?URLSearchParams:b6,Ape=typeof FormData<"u"?FormData:null,Mpe=typeof Blob<"u"?Blob:null,Ipe={isBrowser:!0,classes:{URLSearchParams:Epe,FormData:Ape,Blob:Mpe},protocols:["http","https","file","blob","url","data"]},x6=typeof window<"u"&&typeof document<"u",Ppe=(e=>x6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Npe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Bpe=x6&&window.location.href||"http://localhost",Ope=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:x6,hasStandardBrowserEnv:Ppe,hasStandardBrowserWebWorkerEnv:Npe,origin:Bpe},Symbol.toStringTag,{value:"Module"})),Ju={...Ope,...Ipe};function zpe(e,n){return lb(e,new Ju.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return Ju.isNode&&jn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},n))}function Lpe(e){return jn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Fpe(e){const n={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],n[d]=e[d];return n}function rB(e){function n(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),b=d>=r.length;return g=!g&&jn.isArray(L)?L.length:g,b?(jn.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!a):((!L[g]||!jn.isObject(L[g]))&&(L[g]=[]),n(r,I,L[g],d)&&jn.isArray(L[g])&&(L[g]=Fpe(L[g])),!a)}if(jn.isFormData(e)&&jn.isFunction(e.entries)){const r={};return jn.forEachEntry(e,(I,L)=>{n(Lpe(I),L,r,0)}),r}return null}function Dpe(e,n,r){if(jn.isString(e))try{return(n||JSON.parse)(e),jn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const w6={transitional:nB,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,L=jn.isObject(e);if(L&&jn.isHTMLForm(e)&&(e=new FormData(e)),jn.isFormData(e))return I?JSON.stringify(rB(e)):e;if(jn.isArrayBuffer(e)||jn.isBuffer(e)||jn.isStream(e)||jn.isFile(e)||jn.isBlob(e)||jn.isReadableStream(e))return e;if(jn.isArrayBufferView(e))return e.buffer;if(jn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zpe(e,this.formSerializer).toString();if((d=jn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return lb(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(n.setContentType("application/json",!1),Dpe(e)):e}],transformResponse:[function(e){const n=this.transitional||w6.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(jn.isResponse(e)||jn.isReadableStream(e))return e;if(e&&jn.isString(e)&&(r&&!this.responseType||I)){const L=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Gi.from(d,Gi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ju.classes.FormData,Blob:Ju.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};jn.forEach(["delete","get","head","post","put","patch"],e=>{w6.headers[e]={}});const k6=w6,Vpe=jn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rpe=e=>{const n={};let r,I,L;return e&&e.split(`
|
|
34
|
+
`}}}},getChartSeries(e,n){let r,I;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);const g=L.homeTeam[this.homeTeamStatisticsType].totalPostGame+L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(g?L.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),r.dataTotal.push(L.homeTeam[this.homeTeamStatisticsType].totalPostGame),I.data.push(Math.round(120*(g?L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),I.dataTotal.push(L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);let g,a,b,m;const i=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(g=L.homeTeam.accomplished.avgPostGame/i,b=L.homeTeam.accomplished.totalPostGame):(g=i?L.homeTeam[this.homeTeamStatisticsType].avgPostGame/i:0,b=L.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?L.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,b=L.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(a=L.visitingTeam.accomplished.avgPostGame/i,m=L.visitingTeam.accomplished.totalPostGame):(a=i?L.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/i:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?L.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*g)),r.dataTotal.push(Math.round(b)),I.data.push(Math.round(120*a)),I.dataTotal.push(Math.round(m))})),[r,I]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,r){const I=r===0?"homeTeam":"visitingTeam",L=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=L.id!=="3-0",this.tooltip.data=this.getSubcategoryData(L,I),this.tooltip.local=r===0,this.tooltip.names=L.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(L);const d=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=d,this.globals.y=g,this.tooltip.x=d,this.tooltip.y=g>700?g-250:g;const a=L.generalCategoriesIds.accomplished===3;if(a){const b=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=b?L[I].accomplished.avgPostGame/b*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),I=Math.abs(e.clientY-this.globals.y);(r>5||I>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return r;const I=13;if(r.length>I){let L=r.split(" ");r=[];let d="",g="",a=L.slice(-1)[0];L.forEach(b=>{d+=` ${b} `,d.length>I&&(r.push(g.trim()),d=b),g=d,a===b&&r.push(g.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,r)=>n+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},EN=e=>(t.pushScopeId("data-v-e3c5378e"),e=e(),t.popScopeId(),e),$ce={key:0,class:"distribution-leyend"},jce=EN(()=>t.createElementVNode("br",null,null,-1)),Uce={class:"distribution"},Hce={class:"distribution__container"},Gce={class:"distribution__container__chart-type__title"},Wce=EN(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),qce={class:"distribution__container__chart-type__chart"};function Yce(e,n,r,I,L,d){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",$ce,[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(d.timeLeft),1),t.createTextVNode(" para el inicio."),jce,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Uce,[t.createElementVNode("div",Hce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayDataForCharts,(a,b)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:b},[t.createElementVNode("div",Gce,t.toDisplayString(a.name),1),Wce,t.createElementVNode("div",qce,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:L.height,options:L.arrayChartOptions[b],series:L.arrayFilledSeries[b]},null,8,["height","options","series"])])]))),128))])])],64)}const Zce=Gr(Rce,[["render",Yce],["__scopeId","data-v-e3c5378e"]]),Jce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},m6={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(n){throw new Error(n)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},AN=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},MN=m6.setup;m6.setup=MN?(e,n)=>(AN(),MN(e,n)):AN;const Xce={key:0,class:"text-left"},Kce=["width","src"],Qce=["checked"],ede=["width","src"],tde={key:3,class:"text-right"};function ade(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Xce,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,Kce)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,Qce),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,ede)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",tde,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const nde=Jce(m6,[["render",ade],["__scopeId","data-v-e2a20444"]]),ppa="",fpa="",rde={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function ide(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),style:t.normalizeStyle(d.positionTooltip),onClick:n[0]||(n[0]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const IN=Gr(rde,[["render",ide],["__scopeId","data-v-33a39744"]]),mpa="",ode={name:"SoccerChalkboardXg",components:{Tooltip:IN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},kg=e=>(t.pushScopeId("data-v-0ad56f44"),e=e(),t.popScopeId(),e),sde={class:"soccer-chalkboard-xg"},lde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},cde={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},dde=kg(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),ude=["id"],hde=["fill"],pde=kg(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),fde=["id"],mde=["x1","y1","x2","y2","stroke"],gde=["x1","y1","x2","y2","stroke","marker-end"],yde=["onMouseover"],vde=["x","y","fill"],_de=["x","y"],bde={class:"tooltip-data has-text-left"},xde={class:"bold"},wde={class:"tooltip-image"},kde={class:"tooltip-image"},Cde=["src"],Tde={class:"tooltip-xg"},Sde={key:0},Ede=kg(()=>t.createElementVNode("span",null,"xGi:",-1)),Ade=kg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Mde={key:1},Ide=kg(()=>t.createElementVNode("span",null,"xGf:",-1));function Pde(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",sde,[(t.openBlock(),t.createElementBlock("svg",lde,[(t.openBlock(),t.createElementBlock("svg",cde,[t.createElementVNode("defs",null,[dde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,hde)],8,ude))),128)),pde]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,mde),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,gde),t.createElementVNode("g",{onMouseover:b=>d.onMouseOver(b,a),onMouseleave:n[0]||(n[0]=(...b)=>d.onMouseLeave&&d.onMouseLeave(...b)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,vde),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,_de)],40,yde)],8,fde))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",bde,[t.createElementVNode("div",null,[t.createElementVNode("span",xde,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",wde,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",kde,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,Cde)])]),t.createElementVNode("div",Tde,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Sde,[Ede,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Ade,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Mde,[Ide,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const PN=Gr(ode,[["render",Pde],["__scopeId","data-v-0ad56f44"]]),nb=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],gpa="",Nde={name:"XgLocal",components:{SoccerChalkboard:PN},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},NN=e=>(t.pushScopeId("data-v-3a21f7fa"),e=e(),t.popScopeId(),e),Bde={class:"xg-container"},Ode={class:"xg-container__info"},zde=NN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Lde={class:"table"},Fde={class:"table__row"},Dde={class:"table__row__title"},Vde={class:"table__row__value"},Rde=["src"],$de={class:"table__row"},jde={class:"table__row__title"},Ude={class:"table__row__value"},Hde={class:"table__row"},Gde={class:"table__row__title"},Wde={class:"table__row__value"},qde=NN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Yde={class:"xg-container__field"};function Zde(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Bde,[t.createElementVNode("div",Ode,[zde,t.createElementVNode("div",Lde,[t.createElementVNode("div",Fde,[t.createElementVNode("div",Dde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Vde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Rde)])]),t.createElementVNode("div",$de,[t.createElementVNode("div",jde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Ude,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Hde,[t.createElementVNode("div",Gde,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Wde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),qde]),t.createElementVNode("div",Yde,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])])])}const Jde=Gr(Nde,[["render",Zde],["__scopeId","data-v-3a21f7fa"]]),ypa="",Xde={name:"XgAway",components:{SoccerChalkboard:PN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},BN=e=>(t.pushScopeId("data-v-b6926437"),e=e(),t.popScopeId(),e),Kde={class:"xg-container"},Qde={class:"xg-container__info"},eue=BN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),tue={class:"table"},aue={class:"table__row"},nue={class:"table__row__title"},rue={class:"table__row__value"},iue=["src"],oue={class:"table__row"},sue={class:"table__row__title"},lue={class:"table__row__value"},cue={class:"table__row"},due={class:"table__row__title"},uue={class:"table__row__value"},hue=BN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),pue={class:"xg-container__field"};function fue(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Kde,[t.createElementVNode("div",Qde,[eue,t.createElementVNode("div",tue,[t.createElementVNode("div",aue,[t.createElementVNode("div",nue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",rue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,iue)])]),t.createElementVNode("div",oue,[t.createElementVNode("div",sue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",lue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",cue,[t.createElementVNode("div",due,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",uue,t.toDisplayString(d.gxInfoItems[2].value),1)])]),hue]),t.createElementVNode("div",pue,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:r.team},null,8,["plays","categories","team"])])])])}const mue=Gr(Xde,[["render",fue],["__scopeId","data-v-b6926437"]]),vpa="",gue={name:"SoccerChalkboardXgMobile",components:{Tooltip:IN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Cg=e=>(t.pushScopeId("data-v-99de0366"),e=e(),t.popScopeId(),e),yue={class:"soccer-chalkboard-xg"},vue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},_ue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},bue=Cg(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),xue=["id"],wue=["fill"],kue=Cg(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Cue=["id"],Tue=["x1","y1","x2","y2","stroke"],Sue=["x1","y1","x2","y2","stroke","marker-end"],Eue=["onMouseover"],Aue=["x","y","fill"],Mue=["x","y"],Iue={class:"tooltip-data has-text-left"},Pue={class:"bold"},Nue={class:"tooltip-image"},Bue={class:"tooltip-image"},Oue=["src"],zue={class:"tooltip-xg"},Lue={key:0},Fue=Cg(()=>t.createElementVNode("span",null,"xGi:",-1)),Due=Cg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Vue={key:1},Rue=Cg(()=>t.createElementVNode("span",null,"xGf:",-1));function $ue(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",yue,[(t.openBlock(),t.createElementBlock("svg",vue,[(t.openBlock(),t.createElementBlock("svg",_ue,[t.createElementVNode("defs",null,[bue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,wue)],8,xue))),128)),kue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Tue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Sue),t.createElementVNode("g",{onMouseover:b=>d.onMouseOver(b,a),onMouseleave:n[0]||(n[0]=(...b)=>d.onMouseLeave&&d.onMouseLeave(...b)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Aue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Mue)],40,Eue)],8,Cue))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",Iue,[t.createElementVNode("div",null,[t.createElementVNode("span",Pue,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",Nue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Bue,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,Oue)])]),t.createElementVNode("div",zue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Lue,[Fue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Due,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Vue,[Rue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const ON=Gr(gue,[["render",$ue],["__scopeId","data-v-99de0366"]]),_pa="",jue={name:"Xg",components:{SoccerChalkboard:ON},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},zN=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),Uue={class:"xg-container"},Hue=zN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Gue={class:"xg-container__field"},Wue={class:"xg-container__info"},que={class:"table"},Yue={class:"table__row"},Zue={class:"table__row__title"},Jue={class:"table__row__value"},Xue=["src"],Kue={class:"table__row"},Que={class:"table__row__title"},ehe={class:"table__row__value"},the={class:"table__row"},ahe={class:"table__row__title"},nhe={class:"table__row__value"},rhe=zN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function ihe(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Uue,[Hue,t.createElementVNode("div",Gue,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Wue,[t.createElementVNode("div",que,[t.createElementVNode("div",Yue,[t.createElementVNode("div",Zue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Jue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Xue)])]),t.createElementVNode("div",Kue,[t.createElementVNode("div",Que,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",ehe,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",the,[t.createElementVNode("div",ahe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",nhe,t.toDisplayString(d.gxInfoItems[2].value),1)])]),rhe])])}const ohe=Gr(jue,[["render",ihe],["__scopeId","data-v-fb5342de"]]),bpa="",she={name:"Xg",components:{SoccerChalkboard:ON},props:{},data(){return{categories:nb}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...C_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},LN=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),lhe={class:"xg-container"},che=LN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),dhe={class:"xg-container__field"},uhe={class:"xg-container__info"},hhe={class:"table"},phe={class:"table__row"},fhe={class:"table__row__title"},mhe={class:"table__row__value"},ghe=["src"],yhe={class:"table__row"},vhe={class:"table__row__title"},_he={class:"table__row__value"},bhe={class:"table__row"},xhe={class:"table__row__title"},whe={class:"table__row__value"},khe=LN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function Che(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",lhe,[che,t.createElementVNode("div",dhe,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",uhe,[t.createElementVNode("div",hhe,[t.createElementVNode("div",phe,[t.createElementVNode("div",fhe,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",mhe,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,ghe)])]),t.createElementVNode("div",yhe,[t.createElementVNode("div",vhe,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",_he,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",bhe,[t.createElementVNode("div",xhe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",whe,t.toDisplayString(d.gxInfoItems[2].value),1)])]),khe])])}const The=Gr(she,[["render",Che],["__scopeId","data-v-38eed9b5"]]),xpa="";let FN=null;const She={name:"XgMain",components:{GSCSwitchRadio:nde,SoccerChalkboardLocal:Jde,SoccerChalkboardAway:mue,SoccerChalkboardLocalMobile:ohe,SoccerChalkboardAwayMobile:The},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)FN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),FN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},Ehe={class:"xg",ref:"gamesContainer"},Ahe={key:0,class:"selector-team"};function Mhe(e,n,r,I,L,d){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),b=t.resolveComponent("SoccerChalkboardAway"),m=t.resolveComponent("SoccerChalkboardLocalMobile"),i=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",Ehe,[L.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Ahe,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:L.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:d.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(b,{key:2,class:"away"})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:3})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(i,{key:4})):t.createCommentVNode("",!0)],512)}const Ihe=Gr(She,[["render",Mhe],["__scopeId","data-v-20bd873f"]]),wpa="",DN=e=>(t.pushScopeId("data-v-0b4b1541"),e=e(),t.popScopeId(),e),Phe={class:"statistics-main"},Nhe={class:"statistics-main__header"},Bhe={class:"statistics-main__header__filter"},Ohe={key:0,class:"statistics-main__header__live-switch"},zhe=DN(()=>t.createElementVNode("div",null,"Este partido",-1)),Lhe=DN(()=>t.createElementVNode("div",null,"Acumulado",-1)),Fhe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:joe,Comparative:Vce,Distribution:Zce,GSCSlider:wg,XG:Ihe}}),Dhe=Gr(Object.assign(Fhe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const r=e,I=ig(),L=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),d=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),b=t.ref(a.value[0]),m=t.ref(!1),i=t.ref(0);t.watch(()=>r.game,o=>{const l={...o};m.value=!r.game.is_live,r.game.is_live||Yw(),v(l),i.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,o=>{I.commit("nextGeneral/updateShowLiveData",!o)},{immediate:!0});async function v(o){try{d.value.gameId!==o.gameId&&(d.value=o,await I.dispatch("nextGeneral/cleanStats"),await I.dispatch("nextGeneral/checkState",{gameId:o.gameId,currentSeasonId:o.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:o}))}catch(l){throw new Error(l)}}function _(o){b.value=o}function c(){I.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(o){I.state.nextGeneral.usePastSeasonId&&(o.seasonId=I.state.nextGeneral.pastSeasonId),n("openmedia",o)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(b.value.id="st1",b.value.name="Comparativa",b.value.componentName="Comparative")}),c(),(o,l)=>(t.openBlock(),t.createElementBlock("div",Phe,[t.createElementVNode("div",Nhe,[t.createVNode(t.unref(wg),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"game-time-line__options__option"},[t.createVNode(AP,t.mergeProps(L.value,{text:u.name,"is-active":b.value.id===u.id,onClick:h=>_(u)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Bhe,[t.createVNode(Jie)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",Ohe,[zhe,t.createElementVNode("div",null,[t.createVNode(MP,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=u=>m.value=u)},null,8,["modelValue"])]),Lhe],512)),[[t.vShow,b.value.id!=="st4"]]):t.createCommentVNode("",!0)]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:i.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(b.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(I).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-0b4b1541"]]);function VN(e,n){return function(){return e.apply(n,arguments)}}const{toString:Vhe}=Object.prototype,{getPrototypeOf:g6}=Object,rb=(e=>n=>{const r=Vhe.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Zu=e=>(e=e.toLowerCase(),n=>rb(n)===e),ib=e=>n=>typeof n===e,{isArray:j0}=Array,Tg=ib("undefined");function Rhe(e){return e!==null&&!Tg(e)&&e.constructor!==null&&!Tg(e.constructor)&&yu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const RN=Zu("ArrayBuffer");function $he(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&RN(e.buffer),n}const jhe=ib("string"),yu=ib("function"),$N=ib("number"),ob=e=>e!==null&&typeof e=="object",Uhe=e=>e===!0||e===!1,sb=e=>{if(rb(e)!=="object")return!1;const n=g6(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hhe=Zu("Date"),Ghe=Zu("File"),Whe=Zu("Blob"),qhe=Zu("FileList"),Yhe=e=>ob(e)&&yu(e.pipe),Zhe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||yu(e.append)&&((n=rb(e))==="formdata"||n==="object"&&yu(e.toString)&&e.toString()==="[object FormData]"))},Jhe=Zu("URLSearchParams"),[Xhe,Khe,Qhe,epe]=["ReadableStream","Request","Response","Headers"].map(Zu),tpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sg(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),j0(e))for(I=0,L=e.length;I<L;I++)n.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let a;for(I=0;I<g;I++)a=d[I],n.call(null,e[a],a,e)}}function jN(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],n===L.toLowerCase())return L;return null}const UN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),HN=e=>!Tg(e)&&e!==UN;function y6(){const{caseless:e}=HN(this)&&this||{},n={},r=(I,L)=>{const d=e&&jN(n,L)||L;sb(n[d])&&sb(I)?n[d]=y6(n[d],I):sb(I)?n[d]=y6({},I):j0(I)?n[d]=I.slice():n[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Sg(arguments[I],r);return n}const ape=(e,n,r,{allOwnKeys:I}={})=>(Sg(n,(L,d)=>{r&&yu(L)?e[d]=VN(L,r):e[d]=L},{allOwnKeys:I}),e),npe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rpe=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},ipe=(e,n,r,I)=>{let L,d,g;const a={};if(n=n||{},e==null)return n;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,n))&&!a[g]&&(n[g]=e[g],a[g]=!0);e=r!==!1&&g6(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},ope=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},spe=e=>{if(!e)return null;if(j0(e))return e;let n=e.length;if(!$N(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},lpe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&g6(Uint8Array)),cpe=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;n.call(e,L[0],L[1])}},dpe=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},upe=Zu("HTMLFormElement"),hpe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),GN=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),ppe=Zu("RegExp"),WN=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Sg(r,(L,d)=>{let g;(g=n(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},fpe=e=>{WN(e,(n,r)=>{if(yu(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(yu(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mpe=(e,n)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return j0(e)?I(e):I(String(e).split(n)),r},gpe=()=>{},ype=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,v6="abcdefghijklmnopqrstuvwxyz",qN="0123456789",YN={DIGIT:qN,ALPHA:v6,ALPHA_DIGIT:v6+v6.toUpperCase()+qN},vpe=(e=16,n=YN.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function _pe(e){return!!(e&&yu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bpe=e=>{const n=new Array(10),r=(I,L)=>{if(ob(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[L]=I;const d=j0(I)?[]:{};return Sg(I,(g,a)=>{const b=r(g,L+1);!Tg(b)&&(d[a]=b)}),n[L]=void 0,d}}return I};return r(e,0)},xpe=Zu("AsyncFunction"),wpe=e=>e&&(ob(e)||yu(e))&&yu(e.then)&&yu(e.catch),jn={isArray:j0,isArrayBuffer:RN,isBuffer:Rhe,isFormData:Zhe,isArrayBufferView:$he,isString:jhe,isNumber:$N,isBoolean:Uhe,isObject:ob,isPlainObject:sb,isReadableStream:Xhe,isRequest:Khe,isResponse:Qhe,isHeaders:epe,isUndefined:Tg,isDate:Hhe,isFile:Ghe,isBlob:Whe,isRegExp:ppe,isFunction:yu,isStream:Yhe,isURLSearchParams:Jhe,isTypedArray:lpe,isFileList:qhe,forEach:Sg,merge:y6,extend:ape,trim:tpe,stripBOM:npe,inherits:rpe,toFlatObject:ipe,kindOf:rb,kindOfTest:Zu,endsWith:ope,toArray:spe,forEachEntry:cpe,matchAll:dpe,isHTMLForm:upe,hasOwnProperty:GN,hasOwnProp:GN,reduceDescriptors:WN,freezeMethods:fpe,toObjectSet:mpe,toCamelCase:hpe,noop:gpe,toFiniteNumber:ype,findKey:jN,global:UN,isContextDefined:HN,ALPHABET:YN,generateString:vpe,isSpecCompliantForm:_pe,toJSONObject:bpe,isAsyncFn:xpe,isThenable:wpe};function Gi(e,n,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}jn.inherits(Gi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:jn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ZN=Gi.prototype,JN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{JN[e]={value:e}}),Object.defineProperties(Gi,JN),Object.defineProperty(ZN,"isAxiosError",{value:!0}),Gi.from=(e,n,r,I,L,d)=>{const g=Object.create(ZN);return jn.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Gi.call(g,e.message,n,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const kpe=null;function _6(e){return jn.isPlainObject(e)||jn.isArray(e)}function XN(e){return jn.endsWith(e,"[]")?e.slice(0,-2):e}function KN(e,n,r){return e?e.concat(n).map(function(I,L){return I=XN(I),!r&&L?"["+I+"]":I}).join(r?".":""):n}function Cpe(e){return jn.isArray(e)&&!e.some(_6)}const Tpe=jn.toFlatObject(jn,{},null,function(e){return/^is[A-Z]/.test(e)});function lb(e,n,r){if(!jn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=jn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!jn.isUndefined(s[c])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&jn.isSpecCompliantForm(n);if(!jn.isFunction(L))throw new TypeError("visitor must be a function");function b(c){if(c===null)return"";if(jn.isDate(c))return c.toISOString();if(!a&&jn.isBlob(c))throw new Gi("Blob is not supported. Use a Buffer instead.");return jn.isArrayBuffer(c)||jn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(jn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(jn.isArray(c)&&Cpe(c)||(jn.isFileList(c)||jn.endsWith(s,"[]"))&&(l=jn.toArray(c)))return s=XN(s),l.forEach(function(u,h){!(jn.isUndefined(u)||u===null)&&n.append(g===!0?KN([s],h,d):g===null?s:s+"[]",b(u))}),!1}return _6(c)?!0:(n.append(KN(o,s,d),b(c)),!1)}const i=[],v=Object.assign(Tpe,{defaultVisitor:m,convertValue:b,isVisitable:_6});function _(c,s){if(!jn.isUndefined(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(c),jn.forEach(c,function(o,l){(!(jn.isUndefined(o)||o===null)&&L.call(n,o,jn.isString(l)?l.trim():l,s,v))===!0&&_(o,s?s.concat(l):[l])}),i.pop()}}if(!jn.isObject(e))throw new TypeError("data must be an object");return _(e),n}function QN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function b6(e,n){this._pairs=[],e&&lb(e,this,n)}const eB=b6.prototype;eB.append=function(e,n){this._pairs.push([e,n])},eB.toString=function(e){const n=e?function(r){return e.call(this,r,QN)}:QN;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Spe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tB(e,n,r){if(!n)return e;const I=r&&r.encode||Spe,L=r&&r.serialize;let d;if(L?d=L(n,r):d=jn.isURLSearchParams(n)?n.toString():new b6(n,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const aB=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){jn.forEach(this.handlers,function(r){r!==null&&n(r)})}},nB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Epe=typeof URLSearchParams<"u"?URLSearchParams:b6,Ape=typeof FormData<"u"?FormData:null,Mpe=typeof Blob<"u"?Blob:null,Ipe={isBrowser:!0,classes:{URLSearchParams:Epe,FormData:Ape,Blob:Mpe},protocols:["http","https","file","blob","url","data"]},x6=typeof window<"u"&&typeof document<"u",Ppe=(e=>x6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Npe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Bpe=x6&&window.location.href||"http://localhost",Ope=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:x6,hasStandardBrowserEnv:Ppe,hasStandardBrowserWebWorkerEnv:Npe,origin:Bpe},Symbol.toStringTag,{value:"Module"})),Ju={...Ope,...Ipe};function zpe(e,n){return lb(e,new Ju.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return Ju.isNode&&jn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},n))}function Lpe(e){return jn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Fpe(e){const n={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],n[d]=e[d];return n}function rB(e){function n(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),b=d>=r.length;return g=!g&&jn.isArray(L)?L.length:g,b?(jn.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!a):((!L[g]||!jn.isObject(L[g]))&&(L[g]=[]),n(r,I,L[g],d)&&jn.isArray(L[g])&&(L[g]=Fpe(L[g])),!a)}if(jn.isFormData(e)&&jn.isFunction(e.entries)){const r={};return jn.forEachEntry(e,(I,L)=>{n(Lpe(I),L,r,0)}),r}return null}function Dpe(e,n,r){if(jn.isString(e))try{return(n||JSON.parse)(e),jn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const w6={transitional:nB,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,L=jn.isObject(e);if(L&&jn.isHTMLForm(e)&&(e=new FormData(e)),jn.isFormData(e))return I?JSON.stringify(rB(e)):e;if(jn.isArrayBuffer(e)||jn.isBuffer(e)||jn.isStream(e)||jn.isFile(e)||jn.isBlob(e)||jn.isReadableStream(e))return e;if(jn.isArrayBufferView(e))return e.buffer;if(jn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zpe(e,this.formSerializer).toString();if((d=jn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return lb(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(n.setContentType("application/json",!1),Dpe(e)):e}],transformResponse:[function(e){const n=this.transitional||w6.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(jn.isResponse(e)||jn.isReadableStream(e))return e;if(e&&jn.isString(e)&&(r&&!this.responseType||I)){const L=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Gi.from(d,Gi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ju.classes.FormData,Blob:Ju.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};jn.forEach(["delete","get","head","post","put","patch"],e=>{w6.headers[e]={}});const k6=w6,Vpe=jn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rpe=e=>{const n={};let r,I,L;return e&&e.split(`
|
|
35
35
|
`).forEach(function(d){L=d.indexOf(":"),r=d.substring(0,L).trim().toLowerCase(),I=d.substring(L+1).trim(),!(!r||n[r]&&Vpe[r])&&(r==="set-cookie"?n[r]?n[r].push(I):n[r]=[I]:n[r]=n[r]?n[r]+", "+I:I)}),n},iB=Symbol("internals");function Eg(e){return e&&String(e).trim().toLowerCase()}function cb(e){return e===!1||e==null?e:jn.isArray(e)?e.map(cb):String(e)}function $pe(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)n[I[1]]=I[2];return n}const jpe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function C6(e,n,r,I,L){if(jn.isFunction(I))return I.call(this,n,r);if(L&&(n=r),!!jn.isString(n)){if(jn.isString(I))return n.indexOf(I)!==-1;if(jn.isRegExp(I))return I.test(n)}}function Upe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,I)=>r.toUpperCase()+I)}function Hpe(e,n){const r=jn.toCamelCase(" "+n);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(L,d,g){return this[I].call(this,n,L,d,g)},configurable:!0})})}let db=class{constructor(n){n&&this.set(n)}set(n,r,I){const L=this;function d(a,b,m){const i=Eg(b);if(!i)throw new Error("header name must be a non-empty string");const v=jn.findKey(L,i);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||b]=cb(a))}const g=(a,b)=>jn.forEach(a,(m,i)=>d(m,i,b));if(jn.isPlainObject(n)||n instanceof this.constructor)g(n,r);else if(jn.isString(n)&&(n=n.trim())&&!jpe(n))g(Rpe(n),r);else if(jn.isHeaders(n))for(const[a,b]of n.entries())d(b,a,I);else n!=null&&d(r,n,I);return this}get(n,r){if(n=Eg(n),n){const I=jn.findKey(this,n);if(I){const L=this[I];if(!r)return L;if(r===!0)return $pe(L);if(jn.isFunction(r))return r.call(this,L,I);if(jn.isRegExp(r))return r.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=Eg(n),n){const I=jn.findKey(this,n);return!!(I&&this[I]!==void 0&&(!r||C6(this,this[I],I,r)))}return!1}delete(n,r){const I=this;let L=!1;function d(g){if(g=Eg(g),g){const a=jn.findKey(I,g);a&&(!r||C6(I,I[a],a,r))&&(delete I[a],L=!0)}}return jn.isArray(n)?n.forEach(d):d(n),L}clear(n){const r=Object.keys(this);let I=r.length,L=!1;for(;I--;){const d=r[I];(!n||C6(this,this[d],d,n,!0))&&(delete this[d],L=!0)}return L}normalize(n){const r=this,I={};return jn.forEach(this,(L,d)=>{const g=jn.findKey(I,d);if(g){r[g]=cb(L),delete r[d];return}const a=n?Upe(d):String(d).trim();a!==d&&delete r[d],r[a]=cb(L),I[a]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return jn.forEach(this,(I,L)=>{I!=null&&I!==!1&&(r[L]=n&&jn.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
|
|
36
36
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const I=new this(n);return r.forEach(L=>I.set(L)),I}static accessor(n){const r=(this[iB]=this[iB]={accessors:{}}).accessors,I=this.prototype;function L(d){const g=Eg(d);r[g]||(Hpe(I,d),r[g]=!0)}return jn.isArray(n)?n.forEach(L):L(n),this}};db.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),jn.reduceDescriptors(db.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(I){this[r]=I}}}),jn.freezeMethods(db);const Xu=db;function T6(e,n){const r=this||k6,I=n||r,L=Xu.from(I.headers);let d=I.data;return jn.forEach(e,function(g){d=g.call(r,d,L.normalize(),n?n.status:void 0)}),L.normalize(),d}function oB(e){return!!(e&&e.__CANCEL__)}function U0(e,n,r){Gi.call(this,e??"canceled",Gi.ERR_CANCELED,n,r),this.name="CanceledError"}jn.inherits(U0,Gi,{__CANCEL__:!0});function sB(e,n,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):n(new Gi("Request failed with status code "+r.status,[Gi.ERR_BAD_REQUEST,Gi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Gpe(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Wpe(e,n){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return n=n!==void 0?n:1e3,function(a){const b=Date.now(),m=I[d];g||(g=b),r[L]=a,I[L]=b;let i=d,v=0;for(;i!==L;)v+=r[i++],i=i%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),b-g<n)return;const _=m&&b-m;return _?Math.round(v*1e3/_):void 0}}function qpe(e,n){let r=0;const I=1e3/n;let L=null;return function(){const d=this===!0,g=Date.now();if(d||g-r>I)return L&&(clearTimeout(L),L=null),r=g,e.apply(null,arguments);L||(L=setTimeout(()=>(L=null,r=Date.now(),e.apply(null,arguments)),I-(g-r)))}}const ub=(e,n,r=3)=>{let I=0;const L=Wpe(50,250);return qpe(d=>{const g=d.loaded,a=d.lengthComputable?d.total:void 0,b=g-I,m=L(b),i=g<=a;I=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:b,rate:m||void 0,estimated:m&&a&&i?(a-g)/m:void 0,event:d,lengthComputable:a!=null};v[n?"download":"upload"]=!0,e(v)},r)},Ype=Ju.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function I(L){let d=L;return e&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=I(window.location.href),function(L){const d=jn.isString(L)?I(L):L;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}(),Zpe=Ju.hasStandardBrowserEnv?{write(e,n,r,I,L,d){const g=[e+"="+encodeURIComponent(n)];jn.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),jn.isString(I)&&g.push("path="+I),jn.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jpe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xpe(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function lB(e,n){return e&&!Jpe(n)?Xpe(e,n):n}const cB=e=>e instanceof Xu?{...e}:e;function dm(e,n){n=n||{};const r={};function I(m,i,v){return jn.isPlainObject(m)&&jn.isPlainObject(i)?jn.merge.call({caseless:v},m,i):jn.isPlainObject(i)?jn.merge({},i):jn.isArray(i)?i.slice():i}function L(m,i,v){if(jn.isUndefined(i)){if(!jn.isUndefined(m))return I(void 0,m,v)}else return I(m,i,v)}function d(m,i){if(!jn.isUndefined(i))return I(void 0,i)}function g(m,i){if(jn.isUndefined(i)){if(!jn.isUndefined(m))return I(void 0,m)}else return I(void 0,i)}function a(m,i,v){if(v in n)return I(m,i);if(v in e)return I(void 0,m)}const b={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(m,i)=>L(cB(m),cB(i),!0)};return jn.forEach(Object.keys(Object.assign({},e,n)),function(m){const i=b[m]||L,v=i(e[m],n[m],m);jn.isUndefined(v)&&i!==a||(r[m]=v)}),r}const dB=e=>{const n=dm({},e);let{data:r,withXSRFToken:I,xsrfHeaderName:L,xsrfCookieName:d,headers:g,auth:a}=n;n.headers=g=Xu.from(g),n.url=tB(lB(n.baseURL,n.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let b;if(jn.isFormData(r)){if(Ju.hasStandardBrowserEnv||Ju.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((b=g.getContentType())!==!1){const[m,...i]=b?b.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...i].join("; "))}}if(Ju.hasStandardBrowserEnv&&(I&&jn.isFunction(I)&&(I=I(n)),I||I!==!1&&Ype(n.url))){const m=L&&d&&Zpe.read(d);m&&g.set(L,m)}return n},Kpe=typeof XMLHttpRequest<"u",Qpe=Kpe&&function(e){return new Promise(function(n,r){const I=dB(e);let L=I.data;const d=Xu.from(I.headers).normalize();let{responseType:g}=I,a;function b(){I.cancelToken&&I.cancelToken.unsubscribe(a),I.signal&&I.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;m.open(I.method.toUpperCase(),I.url,!0),m.timeout=I.timeout;function i(){if(!m)return;const _=Xu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),c={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:_,config:e,request:m};sB(function(s){n(s),b()},function(s){r(s),b()},c),m=null}"onloadend"in m?m.onloadend=i:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(i)},m.onabort=function(){m&&(r(new Gi("Request aborted",Gi.ECONNABORTED,I,m)),m=null)},m.onerror=function(){r(new Gi("Network Error",Gi.ERR_NETWORK,I,m)),m=null},m.ontimeout=function(){let _=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const c=I.transitional||nB;I.timeoutErrorMessage&&(_=I.timeoutErrorMessage),r(new Gi(_,c.clarifyTimeoutError?Gi.ETIMEDOUT:Gi.ECONNABORTED,I,m)),m=null},L===void 0&&d.setContentType(null),"setRequestHeader"in m&&jn.forEach(d.toJSON(),function(_,c){m.setRequestHeader(c,_)}),jn.isUndefined(I.withCredentials)||(m.withCredentials=!!I.withCredentials),g&&g!=="json"&&(m.responseType=I.responseType),typeof I.onDownloadProgress=="function"&&m.addEventListener("progress",ub(I.onDownloadProgress,!0)),typeof I.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ub(I.onUploadProgress)),(I.cancelToken||I.signal)&&(a=_=>{m&&(r(!_||_.type?new U0(null,e,m):_),m.abort(),m=null)},I.cancelToken&&I.cancelToken.subscribe(a),I.signal&&(I.signal.aborted?a():I.signal.addEventListener("abort",a)));const v=Gpe(I.url);if(v&&Ju.protocols.indexOf(v)===-1){r(new Gi("Unsupported protocol "+v+":",Gi.ERR_BAD_REQUEST,e));return}m.send(L||null)})},efe=(e,n)=>{let r=new AbortController,I;const L=function(b){if(!I){I=!0,g();const m=b instanceof Error?b:this.reason;r.abort(m instanceof Gi?m:new U0(m instanceof Error?m.message:m))}};let d=n&&setTimeout(()=>{L(new Gi(`timeout ${n} of ms exceeded`,Gi.ETIMEDOUT))},n);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(b=>{b&&(b.removeEventListener?b.removeEventListener("abort",L):b.unsubscribe(L))}),e=null)};e.forEach(b=>b&&b.addEventListener&&b.addEventListener("abort",L));const{signal:a}=r;return a.unsubscribe=g,[a,()=>{d&&clearTimeout(d),d=null}]},tfe=efe,afe=function*(e,n){let r=e.byteLength;if(!n||r<n){yield e;return}let I=0,L;for(;I<r;)L=I+n,yield e.slice(I,L),I=L},nfe=async function*(e,n,r){for await(const I of e)yield*afe(ArrayBuffer.isView(I)?I:await r(String(I)),n)},uB=(e,n,r,I,L)=>{const d=nfe(e,n,L);let g=0;return new ReadableStream({type:"bytes",async pull(a){const{done:b,value:m}=await d.next();if(b){a.close(),I();return}let i=m.byteLength;r&&r(g+=i),a.enqueue(new Uint8Array(m))},cancel(a){return I(a),d.return()}},{highWaterMark:2})},hB=(e,n)=>{const r=e!=null;return I=>setTimeout(()=>n({lengthComputable:r,total:e,loaded:I}))},hb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pB=hb&&typeof ReadableStream=="function",S6=hb&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),rfe=pB&&(()=>{let e=!1;const n=new Request(Ju.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n})(),fB=64*1024,E6=pB&&!!(()=>{try{return jn.isReadableStream(new Response("").body)}catch{}})(),pb={stream:E6&&(e=>e.body)};hb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!pb[n]&&(pb[n]=jn.isFunction(e[n])?r=>r[n]():(r,I)=>{throw new Gi(`Response type '${n}' is not supported`,Gi.ERR_NOT_SUPPORT,I)})})})(new Response);const ife=async e=>{if(e==null)return 0;if(jn.isBlob(e))return e.size;if(jn.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(jn.isArrayBufferView(e))return e.byteLength;if(jn.isURLSearchParams(e)&&(e=e+""),jn.isString(e))return(await S6(e)).byteLength},ofe=async(e,n)=>jn.toFiniteNumber(e.getContentLength())??ife(n),sfe=hb&&(async e=>{let{url:n,method:r,data:I,signal:L,cancelToken:d,timeout:g,onDownloadProgress:a,onUploadProgress:b,responseType:m,headers:i,withCredentials:v="same-origin",fetchOptions:_}=dB(e);m=m?(m+"").toLowerCase():"text";let[c,s]=L||d||g?tfe([L,d],g):[],o,l;const u=()=>{!o&&setTimeout(()=>{c&&c.unsubscribe()}),o=!0};let h;try{if(b&&rfe&&r!=="get"&&r!=="head"&&(h=await ofe(i,I))!==0){let w=new Request(n,{method:"POST",body:I,duplex:"half"}),x;jn.isFormData(I)&&(x=w.headers.get("content-type"))&&i.setContentType(x),w.body&&(I=uB(w.body,fB,hB(h,ub(b)),null,S6))}jn.isString(v)||(v=v?"cors":"omit"),l=new Request(n,{..._,signal:c,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:I,duplex:"half",withCredentials:v});let p=await fetch(l);const f=E6&&(m==="stream"||m==="response");if(E6&&(a||f)){const w={};["status","statusText","headers"].forEach(M=>{w[M]=p[M]});const x=jn.toFiniteNumber(p.headers.get("content-length"));p=new Response(uB(p.body,fB,a&&hB(x,ub(a,!0)),f&&u,S6),w)}m=m||"text";let y=await pb[jn.findKey(pb,m)||"text"](p,e);return!f&&u(),s&&s(),await new Promise((w,x)=>{sB(w,x,{data:y,headers:Xu.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:l})})}catch(p){throw u(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new Gi("Network Error",Gi.ERR_NETWORK,e,l),{cause:p.cause||p}):Gi.from(p,p&&p.code,e,l)}}),A6={http:kpe,xhr:Qpe,fetch:sfe};jn.forEach(A6,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const mB=e=>`- ${e}`,lfe=e=>jn.isFunction(e)||e===null||e===!1,gB={getAdapter:e=>{e=jn.isArray(e)?e:[e];const{length:n}=e;let r,I;const L={};for(let d=0;d<n;d++){r=e[d];let g;if(I=r,!lfe(r)&&(I=A6[(g=String(r)).toLowerCase()],I===void 0))throw new Gi(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([a,b])=>`adapter ${a} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=n?d.length>1?`since :
|
|
37
37
|
`+d.map(mB).join(`
|
|
@@ -7041,4 +7041,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7041
7041
|
* vuex v4.0.2
|
|
7042
7042
|
* (c) 2021 Evan You
|
|
7043
7043
|
* @license MIT
|
|
7044
|
-
*/var Kla="store";function zm(e,n){Object.keys(e).forEach(function(r){return n(e[r],r)})}function gJ(e){return e!==null&&typeof e=="object"}function Qla(e){return e&&typeof e.then=="function"}function xh(e,n){if(!e)throw new Error("[vuex] "+n)}function eca(e,n){return function(){return e(n)}}function yJ(e,n,r){return n.indexOf(e)<0&&(r&&r.prepend?n.unshift(e):n.push(e)),function(){var I=n.indexOf(e);I>-1&&n.splice(I,1)}}function vJ(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;O5(e,r,[],e._modules.root,!0),EE(e,r,n)}function EE(e,n,r){var I=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,d={};zm(L,function(g,a){d[a]=eca(g,e),Object.defineProperty(e.getters,a,{get:function(){return d[a]()},enumerable:!0})}),e._state=t.reactive({data:n}),e.strict&&ica(e),I&&r&&e._withCommit(function(){I.data=null})}function O5(e,n,r,I,L){var d=!r.length,g=e._modules.getNamespace(r);if(I.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[g]=I),!d&&!L){var a=AE(n,r.slice(0,-1)),b=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in a&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+r.join(".")+'"'),a[b]=I.state})}var m=I.context=tca(e,g,r);I.forEachMutation(function(i,v){var _=g+v;aca(e,_,i,m)}),I.forEachAction(function(i,v){var _=i.root?v:g+v,c=i.handler||i;nca(e,_,c,m)}),I.forEachGetter(function(i,v){var _=g+v;rca(e,_,i,m)}),I.forEachChild(function(i,v){O5(e,n,r.concat(v),i,L)})}function tca(e,n,r){var I=n==="",L={dispatch:I?e.dispatch:function(d,g,a){var b=z5(d,g,a),m=b.payload,i=b.options,v=b.type;if((!i||!i.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+v);return}return e.dispatch(v,m)},commit:I?e.commit:function(d,g,a){var b=z5(d,g,a),m=b.payload,i=b.options,v=b.type;if((!i||!i.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+v);return}e.commit(v,m,i)}};return Object.defineProperties(L,{getters:{get:I?function(){return e.getters}:function(){return _J(e,n)}},state:{get:function(){return AE(e.state,r)}}}),L}function _J(e,n){if(!e._makeLocalGettersCache[n]){var r={},I=n.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,I)===n){var d=L.slice(I);Object.defineProperty(r,d,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[n]=r}return e._makeLocalGettersCache[n]}function aca(e,n,r,I){var L=e._mutations[n]||(e._mutations[n]=[]);L.push(function(d){r.call(e,I.state,d)})}function nca(e,n,r,I){var L=e._actions[n]||(e._actions[n]=[]);L.push(function(d){var g=r.call(e,{dispatch:I.dispatch,commit:I.commit,getters:I.getters,state:I.state,rootGetters:e.getters,rootState:e.state},d);return Qla(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function rca(e,n,r,I){if(e._wrappedGetters[n]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+n);return}e._wrappedGetters[n]=function(L){return r(I.state,I.getters,L.state,L.getters)}}function ica(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&xh(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function AE(e,n){return n.reduce(function(r,I){return r[I]},e)}function z5(e,n,r){return gJ(e)&&e.type&&(r=n,n=e,e=e.type),process.env.NODE_ENV!=="production"&&xh(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:n,options:r}}var oca="vuex bindings",bJ="vuex:mutations",ME="vuex:actions",tg="vuex",sca=0;function lca(e,n){Xla({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[oca]},function(r){r.addTimelineLayer({id:bJ,label:"Vuex Mutations",color:xJ}),r.addTimelineLayer({id:ME,label:"Vuex Actions",color:xJ}),r.addInspector({id:tg,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(I){if(I.app===e&&I.inspectorId===tg)if(I.filter){var L=[];TJ(L,n._modules.root,I.filter,""),I.rootNodes=L}else I.rootNodes=[CJ(n._modules.root,"")]}),r.on.getInspectorState(function(I){if(I.app===e&&I.inspectorId===tg){var L=I.nodeId;_J(n,L),I.state=uca(pca(n._modules,L),L==="root"?n.getters:n._makeLocalGettersCache,L)}}),r.on.editInspectorState(function(I){if(I.app===e&&I.inspectorId===tg){var L=I.nodeId,d=I.path;L!=="root"&&(d=L.split("/").filter(Boolean).concat(d)),n._withCommit(function(){I.set(n._state.data,d,I.state.value)})}}),n.subscribe(function(I,L){var d={};I.payload&&(d.payload=I.payload),d.state=L,r.notifyComponentUpdate(),r.sendInspectorTree(tg),r.sendInspectorState(tg),r.addTimelineEvent({layerId:bJ,event:{time:Date.now(),title:I.type,data:d}})}),n.subscribeAction({before:function(I,L){var d={};I.payload&&(d.payload=I.payload),I._id=sca++,I._time=Date.now(),d.state=L,r.addTimelineEvent({layerId:ME,event:{time:I._time,title:I.type,groupId:I._id,subtitle:"start",data:d}})},after:function(I,L){var d={},g=Date.now()-I._time;d.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},I.payload&&(d.payload=I.payload),d.state=L,r.addTimelineEvent({layerId:ME,event:{time:Date.now(),title:I.type,groupId:I._id,subtitle:"end",data:d}})}})})}var xJ=8702998,cca=6710886,dca=16777215,wJ={label:"namespaced",textColor:dca,backgroundColor:cca};function kJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function CJ(e,n){return{id:n||"root",label:kJ(n),tags:e.namespaced?[wJ]:[],children:Object.keys(e._children).map(function(r){return CJ(e._children[r],n+r+"/")})}}function TJ(e,n,r,I){I.includes(r)&&e.push({id:I||"root",label:I.endsWith("/")?I.slice(0,I.length-1):I||"Root",tags:n.namespaced?[wJ]:[]}),Object.keys(n._children).forEach(function(L){TJ(e,n._children[L],r,I+L+"/")})}function uca(e,n,r){n=r==="root"?n:n[r];var I=Object.keys(n),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(I.length){var d=hca(n);L.getters=Object.keys(d).map(function(g){return{key:g.endsWith("/")?kJ(g):g,editable:!1,value:IE(function(){return d[g]})}})}return L}function hca(e){var n={};return Object.keys(e).forEach(function(r){var I=r.split("/");if(I.length>1){var L=n,d=I.pop();I.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[d]=IE(function(){return e[r]})}else n[r]=IE(function(){return e[r]})}),n}function pca(e,n){var r=n.split("/").filter(function(I){return I});return r.reduce(function(I,L,d){var g=I[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+n+'".');return d===r.length-1?g:g._children},n==="root"?e:e.root._children)}function IE(e){try{return e()}catch(n){return n}}var wh=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},SJ={namespaced:{configurable:!0}};SJ.namespaced.get=function(){return!!this._rawModule.namespaced},wh.prototype.addChild=function(e,n){this._children[e]=n},wh.prototype.removeChild=function(e){delete this._children[e]},wh.prototype.getChild=function(e){return this._children[e]},wh.prototype.hasChild=function(e){return e in this._children},wh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},wh.prototype.forEachChild=function(e){zm(this._children,e)},wh.prototype.forEachGetter=function(e){this._rawModule.getters&&zm(this._rawModule.getters,e)},wh.prototype.forEachAction=function(e){this._rawModule.actions&&zm(this._rawModule.actions,e)},wh.prototype.forEachMutation=function(e){this._rawModule.mutations&&zm(this._rawModule.mutations,e)},Object.defineProperties(wh.prototype,SJ);var Lm=function(e){this.register([],e,!1)};Lm.prototype.get=function(e){return e.reduce(function(n,r){return n.getChild(r)},this.root)},Lm.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(r,I){return n=n.getChild(I),r+(n.namespaced?I+"/":"")},"")},Lm.prototype.update=function(e){EJ([],this.root,e)},Lm.prototype.register=function(e,n,r){var I=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&IJ(e,n);var L=new wh(n,r);if(e.length===0)this.root=L;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],L)}n.modules&&zm(n.modules,function(g,a){I.register(e.concat(a),g,r)})},Lm.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1],I=n.getChild(r);if(!I){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}I.runtime&&n.removeChild(r)},Lm.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1];return n?n.hasChild(r):!1};function EJ(e,n,r){if(process.env.NODE_ENV!=="production"&&IJ(e,r),n.update(r),r.modules)for(var I in r.modules){if(!n.getChild(I)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+I+"' on hot reloading, manual reload is needed");return}EJ(e.concat(I),n.getChild(I),r.modules[I])}}var AJ={assert:function(e){return typeof e=="function"},expected:"function"},fca={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},MJ={getters:AJ,mutations:AJ,actions:fca};function IJ(e,n){Object.keys(MJ).forEach(function(r){if(n[r]){var I=MJ[r];zm(n[r],function(L,d){xh(I.assert(L),mca(e,r,d,L,I.expected))})}})}function mca(e,n,r,I,L){var d=n+" should be "+L+' but "'+n+"."+r+'"';return e.length>0&&(d+=' in module "'+e.join(".")+'"'),d+=" is "+JSON.stringify(I)+".",d}var Gd=function e(n){var r=this;n===void 0&&(n={}),process.env.NODE_ENV!=="production"&&(xh(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),xh(this instanceof e,"store must be called with the new operator."));var I=n.plugins;I===void 0&&(I=[]);var L=n.strict;L===void 0&&(L=!1);var d=n.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Lm(n),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=d;var g=this,a=this,b=a.dispatch,m=a.commit;this.dispatch=function(v,_){return b.call(g,v,_)},this.commit=function(v,_,c){return m.call(g,v,_,c)},this.strict=L;var i=this._modules.root.state;O5(this,i,[],this._modules.root),EE(this,i),I.forEach(function(v){return v(r)})},PE={state:{configurable:!0}};Gd.prototype.install=function(e,n){e.provide(n||Kla,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&lca(e,this)},PE.state.get=function(){return this._state.data},PE.state.set=function(e){process.env.NODE_ENV!=="production"&&xh(!1,"use store.replaceState() to explicit replace store state.")},Gd.prototype.commit=function(e,n,r){var I=this,L=z5(e,n,r),d=L.type,g=L.payload,a=L.options,b={type:d,payload:g},m=this._mutations[d];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+d);return}this._withCommit(function(){m.forEach(function(i){i(g)})}),this._subscribers.slice().forEach(function(i){return i(b,I.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+d+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Gd.prototype.dispatch=function(e,n){var r=this,I=z5(e,n),L=I.type,d=I.payload,g={type:L,payload:d},a=this._actions[L];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var b=a.length>1?Promise.all(a.map(function(m){return m(d)})):a[0](d);return new Promise(function(m,i){b.then(function(v){try{r._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,r.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}m(v)},function(v){try{r._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,r.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}i(v)})})},Gd.prototype.subscribe=function(e,n){return yJ(e,this._subscribers,n)},Gd.prototype.subscribeAction=function(e,n){var r=typeof e=="function"?{before:e}:e;return yJ(r,this._actionSubscribers,n)},Gd.prototype.watch=function(e,n,r){var I=this;return process.env.NODE_ENV!=="production"&&xh(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(I.state,I.getters)},n,Object.assign({},r))},Gd.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})},Gd.prototype.registerModule=function(e,n,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(xh(Array.isArray(e),"module path must be a string or an Array."),xh(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,n),O5(this,this.state,e,this._modules.get(e),r.preserveState),EE(this,this.state)},Gd.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xh(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=AE(n.state,e.slice(0,-1));delete r[e[e.length-1]]}),vJ(this)},Gd.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xh(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Gd.prototype.hotUpdate=function(e){this._modules.update(e),vJ(this,!0)},Gd.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(Gd.prototype,PE);var gca=vca(function(e,n){var r={};return process.env.NODE_ENV!=="production"&&!PJ(n)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),yca(n).forEach(function(I){var L=I.key,d=I.val;r[L]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var b=this.$store.commit;if(e){var m=_ca(this.$store,"mapMutations",e);if(!m)return;b=m.context.commit}return typeof d=="function"?d.apply(this,[b].concat(g)):b.apply(this.$store,[d].concat(g))}}),r});function yca(e){return PJ(e)?Array.isArray(e)?e.map(function(n){return{key:n,val:n}}):Object.keys(e).map(function(n){return{key:n,val:e[n]}}):[]}function PJ(e){return Array.isArray(e)||gJ(e)}function vca(e){return function(n,r){return typeof n!="string"?(r=n,n=""):n.charAt(n.length-1)!=="/"&&(n+="/"),e(n,r)}}function _ca(e,n,r){var I=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!I&&console.error("[vuex] module namespace not found in "+n+"(): "+r),I}const bca="/icn-play.svg",xca="/icn-tiros-de-esquina.svg",wca="/icn-tiro-a-porteria.svg",kca="/icn-cambio.svg",Cca="/icn-falta.svg",Tca="/atajada.svg",Sca="/fuera-de-lugar.svg",NE="/gol.svg",Eca="/var.png",Aca="/tiempo-agregado.svg",Mca="/jugada-peligrosa.svg",Ica="/penal-marcado.svg",Pca="/penal-fallado.svg",Nca="/inicia-el-partido.svg",Bca="/fin-del-partido.svg",Oca="/icn-tarjeta-amarilla.svg",zca="/icn-tarjeta-roja.svg",Lca=[1,2,3,4,6],Fca={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],n=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return TE.GOAL_IDS.includes(n)?(e.push("is-main-event"),e.push("goal")):TE.YELLOW_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("yellow-card")):TE.RED_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(n=>Ula(n))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Lca.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...gca("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,n]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(n),teamId:this.gameEvent.team_id})}}},Dca=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),Vca={class:"time-line-event__details"},Rca={width:"127",preload:"metadata",style:{"border-radius":"8px"}},$ca=["src"],jca=Dca(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Uca={class:"time-line-event__details__info"},Hca={key:0,class:"time-line-event__details__info__header__players"},Gca={class:"time-line-event__details__info__header__players__div-img"},Wca=["src"],qca={class:"time-line-event__details__info__body"},Yca={class:"time-line-event__details__info__body__comment"},Zca={class:"time-line-event__minute__container"},Jca={class:"time-line-event__minute__container__text"},Xca={class:"time-line-event__minute__container__icon-container"},Kca={class:"time-line-event__minute__container__icon-container__icon"},Qca={key:0,src:xca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eda={key:1,src:wca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tda={key:2,src:kca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ada={key:3,src:Cca,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},nda={key:4,src:Tca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rda={key:5,src:Sca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ida={key:6,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oda={key:7,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sda={key:8,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lda={key:9,src:Eca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cda={key:10,src:Aca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dda={key:11,src:Mca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uda={key:12,src:Ica,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hda={key:13,src:Pca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pda={key:14,src:Nca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fda={key:15,src:Bca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mda={key:16,src:Oca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gda={key:17,src:zca,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},yda={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function vda(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",d.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",Vca,[r.canPlayVideos&&r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:n[0]||(n[0]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",Rca,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,$ca)]),jca])):t.createCommentVNode("",!0),t.createElementVNode("div",Uca,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",d.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Hca,[d.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Gca,[t.createElementVNode("img",{src:g,alt:""},null,8,Wca)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",d.nameClasses]),onClick:n[1]||(n[1]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:bca,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",qca,[t.createElementVNode("div",Yca,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",d.minuteClasses])},[t.createElementVNode("div",Zca,[t.createElementVNode("div",Jca,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",Xca,[t.createElementVNode("div",Kca,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Qca)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",eda)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",tda)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",ada)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",nda)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",rda)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",ida)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",oda)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",sda)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",lda)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",cda)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",dda)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",uda)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",hda)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",pda)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",fda)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",mda)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",gda)):(t.openBlock(),t.createElementBlock("img",yda))])])])],2)],6)}const _da=Tv(Fca,[["render",vda],["__scopeId","data-v-9943063a"]]),bda={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},xda={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let L5=null;const wda={name:"TimeLine",components:{Tooltip:Vla,TimeLineEvent:_da},mixins:[$la],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const n=await this.fetchGameEvents(e);n?(this.gameEvents=[...n],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(n){throw new Error(n)}},getGameEventClassAndSetIcon(e,n){return e.icon=n===0?"inicio_del_partido":bda[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:n}}=await hJ.get(`${this.gameEventsUrl}${e}`);return n}catch(n){throw new Error(n)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)L5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),L5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,n){const r=this.$refs[`gameEventDiv${n}`][0],I=this.$refs[`gameEventLine${n}`]?this.$refs[`gameEventLine${n}`][0]:null,L=e+12;r&&(r.style.height=`${L}px`),I&&(I.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,n)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(n.match_lapse)+Number(n.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let n=0;switch(e){case 1:n=0;break;case 2:n=45;break;case 3:n=90;break;case 4:n=105;break;case 5:n=120;break}return n},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const n=this.gameEvents.findIndex(r=>r.play_id===e.play_id);n&&this.gameEvents.splice(n,1)},checkTimeLineStatus(){this.gameEvents.forEach(n=>{const r=xda[n.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:n})}),this.timeLineStatuses.sort((n,r)=>r.weight-n.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const n=this.gameData[e].team_id;return jla(n)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){L5&&L5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,n]){this.channelName===e&&this.addGameEventFromChannel(n)},update_mxm([e,n]){this.channelName===e&&(this.deleteGameEventFromChannel(n),this.addGameEventFromChannel(n))},delete_mxm([e,n]){this.channelName===e&&this.deleteGameEventFromChannel(n)}}},NJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),kda={ref:"timeLine",class:"time-line"},Cda={class:"time-line__header"},Tda={class:"time-line__header__dot"},Sda={class:"time-line__header__dot__home-team team-logo"},Eda=["src"],Ada={class:"time-line__header__dot__away-team team-logo"},Mda=["src"],Ida={key:1,class:"start-line"},Pda=NJ(()=>t.createElementVNode("div",null,null,-1)),Nda=NJ(()=>t.createElementVNode("div",null,null,-1)),Bda=[Pda,Nda],Oda={key:1,class:"noEventText"},zda={class:"tooltip-data"},Lda=["src"];function Fda(e,n,r,I,L,d){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",kda,[t.createElementVNode("div",Cda,[t.createElementVNode("div",Tda,[t.createElementVNode("div",Sda,[t.createElementVNode("img",{src:d.getTeamLogoSrc("homeTeam"),alt:""},null,8,Eda)]),t.createElementVNode("div",Ada,[t.createElementVNode("img",{src:d.getTeamLogoSrc("awayTeam"),alt:""},null,8,Mda)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.gameEventsToShow,(b,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(d.getGameEventClassAndSetIcon(b,m))},[t.createElementVNode("div",{class:t.normalizeClass(d.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":d.isMobile,"time-line-width":L.timeLineWidth,width:d.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:i=>d.updateContainerHeight(i,m),onPlayerChanged:n[0]||(n[0]=i=>e.$emit("player-changed",i)),onThumbnailClick:d.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&m===d.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Ida,Bda)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Oda,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",zda,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,Lda)])])]),_:1},8,["data"])],64)}const Dda=Tv(wda,[["render",Fda],["__scopeId","data-v-2574e576"]]),Vda={class:"game-time-line__options"},Rda={class:"game-time-line__timeline"},$da={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){hJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const n=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let I=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),d=t.ref("Todo"),g=t.ref({}),a=t.ref(null),b=t.ref(0),m=t.computed(()=>{let s="all";return d.value==="1er tiempo"||d.value==="1er"?s="firstHalf":(d.value==="2do tiempo"||d.value==="2do")&&(s="secondHalf"),s}),i=t.computed(()=>b.value<500);function v(s){d.value=s}function _(s){g.value=s}function c(){if(window.ResizeObserver)I=new ResizeObserver(()=>{b.value=a.value.clientWidth}),I.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{I&&I.unobserve(a.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",Vda,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(_sa,t.mergeProps(b.value<390?r.value:n.value,{text:l=="Todo"?l:b.value<390?l.substring(0,3):l,"is-active":d.value===l,onClick:u=>v(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Rda,[t.createVNode(Dda,{"game-data":e.game,"time-line-period":m.value,"is-mobile":i.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},jda=Tv($da,[["__scopeId","data-v-f42d0c90"]]),mba="",Uda={class:"game-data__header"},Hda={class:"game-data__header__tournament-season-dropdown"},Gda={class:"game-data__header__teams-carousel"},Wda={class:"game-data__body"},qda={class:"game-data__body__menu"},Yda={class:"game-data__body__menu__contmenuswitch"};cl.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Zda=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:Dhe,GSCGameTimeLine:jda,GscSwitchComponent:rS,GSCLineupsMain:_6e,GSCDatosGSMain:kMe,GSCVideoGame:dje,ModalEvents:YD,GSCSummaryMain:lvt,GSCTacticaFijaMain:ysa,GSCProminentMain:oPt,GSCComparative:ROt}}),Jda=Gr(Object.assign(Zda,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:n}){const r=e,I=ig();mu.on("socket-connected",()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),d=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),b=t.ref({}),m=t.ref(1),i=t.ref(null),v=t.ref(null),_=t.ref(null),c=t.ref([]),s=t.ref(null),o=t.ref(!0),l=t.ref(new Set([1,2])),u=t.ref({}),h=t.ref({minute:"",recent_lapse:0,score:{}}),p=t.ref(0),f=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),y=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),w=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),x=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const M=t.ref(0);let k=null;const T=t.ref(null),S=t.ref(0),A=t.ref(w.value[0]),E=t.ref([]);let N=t.ref("");const C={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},z=t.computed(()=>{const be=[];return g.value&&g.value.id&&(be.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(pe=>{be.push({id:pe.id,type:pe.type})})),be}),P=t.computed(()=>{if(r.clientPrivilegesBySeasons){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)return be.teamId}return 0});function O(){a.value=!1}function D(be){const pe=be.split(",");return!(pe.length<2||pe[1].split(" ").length<2)}function V(be){i.value=be}function R(be){c.value.push(be)}function j(be){s.value=be}function q(be){_.value=be}function $(be){v.value=be}function G(be){if(!D(be))return"";const pe=H(be);return`${Z(be)}. ${pe}`}function Z(be){return be.split(",")[1].split(" ")[1][0]}function H(be){const pe=be.split(",")[0].split(" ");return pe[0].length<=3&&pe.length>1?`${pe[0]} ${pe[1]}`:pe[0]}async function Y(be){try{const pe=cl.create({headers:{Authorization:`${L.value}`}});u.value={};const ce=await pe.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+be.game_id);u.value[be.home_team.team_id]=[],u.value[be.home_team.team_id].team={name:be.home_team.acronym,logo:be.home_team.logo},u.value[be.home_team.team_id].goals=[],u.value[be.home_team.team_id].red=[],u.value[be.home_team.team_id].yellow=[],u.value[be.visiting_team.team_id]=[],u.value[be.visiting_team.team_id].team={name:be.visiting_team.acronym,logo:be.visiting_team.logo},u.value[be.visiting_team.team_id].goals=[],u.value[be.visiting_team.team_id].red=[],u.value[be.visiting_team.team_id].yellow=[],ce.data.minute!=null&&(h.value={minute:ce.data.minute,recent_lapse:ce.data.recent_lapse,score:ce.data.score});for(let _e=0;_e<ce.data.plays.length;_e++)ce.data.plays[_e].category_name=="Roja"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].red||(u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].red||(u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute))),ce.data.plays[_e].category_name=="Amarilla"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].yellow||(u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].yellow||(u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute))),ce.data.plays[_e].event_type_name=="Gol"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?ce.data.plays[_e].category_name=="Autogol"?(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].goals||(u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].goals||(u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):ce.data.plays[_e].category_name=="Autogol"?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].goals||(u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].goals||(u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)))}catch(pe){return Promise.reject(pe)}}function K(be){a.value=!0,be.is_live!=1&&(be.game_status==4||Object.keys(be.minutes).length>0)?(p.value=1,u.value={plays:be.minutes,home_team:be.home_team,visiting_team:be.visiting_team}):(p.value=0,Y(be))}function le(){k=new ResizeObserver(be=>{for(const pe of be)S.value=pe.contentRect.width}),k.observe(T.value)}const oe=t.computed(()=>{let be={};return b.value&&b.value.game_id&&(be={gameId:b.value.game_id,id:b.value.game_id,seasonId:b.value.season_id,status:b.value.game_status,game_status:b.value.game_status,dateTimeUTC:b.value.date_time_utc,homeTeam:b.value.home_team,awayTeam:b.value.visiting_team,is_live:b.value.is_live,minutes:b.value.minutes}),be});t.watch(()=>oe,be=>{Object.keys(be.value).length>0&&(w.value=[],be.value.is_live==1||be.value.game_status==4?(w.value=[...y.value],A.value=y.value[0]):(w.value=[...x.value],A.value=x.value[0]),g.value.is_tactic_available==0&&w.value.pop(),M.value+=1,Y({game_id:be.value.gameId,home_team:be.value.homeTeam,visiting_team:be.value.awayTeam}),be.value.is_live==1&&setInterval(()=>{p.value=0,Y({game_id:be.value.gameId,home_team:be.value.homeTeam,visiting_team:be.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>I.state.nextGeneral.gameForAnalysis,()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function ne(be){m.value=be.is_captured,o.value=be.is_captured!==0,d.value.id!==be.id&&(d.value=be,I.commit("gameGlobal/setTournamentType",be.tournament_type))}function re(be){ve.value&&!ve.value.canPrivilegesTeamPlayVideos||((b.value.is_live||b.value.game_status===0)&&(be.liveGameConfig={gameId:b.value.game_id}),n("openmedia",be))}function te(be){n("onOpenProfile",be)}function ee(be){n("openProfileTeam",be)}function se(be){n("openProfilePlayer",be)}function he(be){Ce(be),be=="Estadísticas"&&(N.value="Comparativa")}function ue(){N.value=""}function fe(be){g.value.id!==be.id&&(g.value=be,n("change-season-id",be.id))}const ge=t.computed(()=>w.value.reduce((be,pe)=>(r.disabledSectionsIds.includes(pe.id)||ve.value&&!ve.value.canPrivilegesTeamPlayVideos&&pe.id===2||r.clientPrivilegesBySeasons&&pe.id===7||(o.value||pe.id!==5&&pe.id!==6)&&be.push(pe.name),be),[])),ve=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value&&b.value&&b.value.game_id){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)if(ke(be.playingAs),b.value.game_status===1){const pe=be.playingAs.has(b.value.playingAs);return{seasonAndPrivileges:be,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&pe,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:b.value.home_team.team_id===be.teamId,homeTeamDetails:{canPlayVideos:pe,team:b.value.home_team},awayTeamDetails:{canPlayVideos:pe,team:b.value.visiting_team}}}else{const pe=b.value.home_team.team_id===be.teamId,ce=we.value.filter(Ne=>be.playingAs.has(Ne.playingAs));return{seasonAndPrivileges:be,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&ce.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:pe,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&pe&&ce.length>0,team:b.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!pe&&ce.length>0,team:b.value.visiting_team}}}ke(new Set)}return C}return null}),we=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)return E.value.filter(pe=>pe.game_status===1&&be.playingAs.has(pe.playingAs))}return[]}return[]});t.watch(ge,()=>{ve.value&&!ve.value.canPrivilegesTeamPlayVideos&&A.value.id===2&&Ce("Resumen")},{deep:!0,immediate:!0});function ke(be){l.value=be}function Ce(be){if(i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let pe of c.value)clearInterval(pe);c.value=[]}A.value=w.value.find(pe=>pe.name===be)||w.value[0]}t.onMounted(()=>{le(),t.nextTick(()=>{r.isSynchronization&&Ce("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(k&&k.disconnect(),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let be of c.value)clearInterval(be);c.value=[]}Yw()});function Ie(be){if(be.playingAs||(be.playingAs=P.value?be.home_team.team_id===P.value?1:2:0),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let pe of c.value)clearInterval(pe);c.value=[]}b.value=be,be.is_live&&be.game_status===4?SP():EP()}function Ve(be){E.value=be.map(pe=>{const ce={...pe};return P.value&&(ce.playingAs=ce.home_team.team_id===P.value?1:2),ce})}return(be,pe)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:T},[t.createElementVNode("div",Uda,[t.withDirectives(t.createElementVNode("div",Hda,[t.createVNode(t.unref(EM),{"current-season-id":e.currentSeasonId,onInput:ne,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(IM),{"current-season-id":e.currentSeasonId,seasons:d.value.seasons,onInput:fe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Gda,[t.createVNode(t.unref(Uae),{"plays-live":u.value,"info-live":h.value,token:f.value,is_captured:m.value,"await-for-seasons":"",seasons:z.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":P.value,"only-games-team-id":P.value,"tournament-type":t.unref(I).state.gameGlobal.tournamentType,onChangeGameCarousel:Ie,onOpenModalEvent:K,onChangeGamesByClientPrivileges:Ve},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(YD,{key:0,width:S.value,onCloseModalEventsLive:O,plays:u.value,game:b.value,type:p.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Wda,[t.createElementVNode("div",qda,[t.createElementVNode("div",Yda,[t.createVNode(t.unref(rS),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:S.value<400||S.value<700?"max-content":S.value<840||S.value<1050?"155px":"165px","selected-option":A.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Ce},null,8,["buttons","width","selected-option"])])]),oe.value&&oe.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(A.value.componentName),{key:M.value,game:oe.value,onIntervalid:V,onIntervalidpossesion:$,onIntervalidhighlive:q,onIntervalidtops:R,onIntervalidgs:j,subsection:t.unref(N),seasonSelected:g.value,tournamentSelected:d.value,showLineups:o.value,socket:e.socket,is_captured:m.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ve.value?ve.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":l.value,"client-privileges-team-id":P.value,"play-videos-privileges":ve.value,token:f.value,onResetSubsection:ue,onOpenmedia:re,onOnOpenProfile:te,onOpenProfileTeam:ee,onOpenProfilePlayer:se,onChangeToTab:he,onOpenMediaPlayer:re},null,40,["game","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-44aedebe"]]);async function gd({url:e,options:n={},retries:r=3}){return await cl.get(e,n).then(I=>I).catch(I=>r>0?gd({url:e,options:n,retries:r-1}):I)}async function BJ({seasonId:e},n=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(n)return BJ({seasonId:e},!1);throw new Error(r)}}async function Xda({seasonId:e}){try{return(await gd({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}async function Kda({seasonId:e}){try{return(await gd({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}function Qda(e,n,r,I,L,d,g=!1){const a=r.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const m=d&&b[L.teamId]?b[L.teamId]!==d:!1,i=n===1?2:1;return(g||I.includes(b[L.gameId]))&&(!n||(m?i:n)===b[L.playingAs])&&(r.includes(b[L.matchResult])&&b[L.teamId]===d||a.includes(b[L.matchResult])&&b[L.teamId]!==d)})}function OJ(e,n,r,I,L){return n.length===2&&r.length===3&&I.length===6?e:e.filter(d=>n.includes(d[L.playingAs])&&r.includes(d[L.matchResult])&&I.includes(d[L.section]))}async function zJ({seasonId:e}){try{const n=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await gd({url:n})).data}catch(n){return Promise.reject(n)}}async function eua({seasonId:e,gameId:n}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${n}`,{data:I}=await gd({url:r});return I}catch(r){return Promise.reject(r)}}async function tua({gameId:e}){try{const n=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await gd({url:n})).data.data}catch(n){return Promise.reject(n)}}async function aua({gameId:e}){try{const n=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await gd({url:n})).data.data||[]}catch(n){return Promise.reject(n)}}const nua=["categoryId","matchLapse","section","matchResult","playingAs","total"];let BE=null;function LJ(){return BE||(BE=V0(nua)),BE}async function rua(e){try{const n=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await gd({url:n})).data}catch(n){return Promise.reject(n)}}async function FJ({seasonId:e,teamId:n}){try{return await gd({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${n}`})}catch(r){return Promise.reject(r)}}async function iua(e){try{const n=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await gd({url:n})}catch(n){return Promise.reject(n)}}async function oua(e){try{return await gd({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(n){return Promise.reject(n)}}const sua={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,n,r,I){return Qda(e.seasonPlays,I["filterGeneral/getPlayingAs"],I["filterGeneral/getResults"],I["filterGeneral/getSelectedGamesIds"],LJ(),I["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const n=e.currentSeasonGames.reduce((r,I)=>{const L={...I};return L.home_team=e.currentSeasonTeams.find(d=>d.team_id===I.home_team),L.visiting_team=e.currentSeasonTeams.find(d=>d.team_id===I.visiting_team),r[I.matchday_abbreviation]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date].push(L):r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]=[L]:r[I.matchday_abbreviation]={[I.game_status===3?"canceled":I.date]:[L]},r},{});for(let[r,I]of Object.entries(n))n[r]=Object.entries(I).map(([L,d])=>({date:L,games:d})),n[r].sort((L,d)=>L.date<d.date?-1:L.date>d.date?1:0);return n},matchdaysDates(e,n){let r=[];if(n.nextGamesSchedule){let I=Object.keys(n.nextGamesSchedule);for(let L of I){let d=Number(L.replace("M","")),g=n.nextGamesSchedule[L].map(a=>({matchday:d,date:new Date(a.date)}));r=r.concat(g)}}return r},closestMatchDay(e,n){let r=new Date,I=0,L=-new Date(0,0,0).valueOf(),d=n.matchdaysDates,g=d.length;for(let a=0;a<d.length;a++)I=Math.abs(d[a].date-r),I<L&&(g=a,L=I);return d[g]?d[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,n){e.booleanIsLiveGamesModalOpen=n},setBooleanAreLiveGames(e,n){e.booleanAreLiveGames=n},updateSeasonPlays(e,n){e.seasonPlays=n},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateSelectedRound(e,n){e.selectedRound=n}},actions:{async getSeasonPlays({commit:e,rootGetters:n},r=!1){try{const I=await BJ({seasonId:n["filterGeneral/getSeasonId"]});if(r)return I;e("updateSeasonPlays",I)}catch(I){return Promise.reject(I)}},async getCurrentSeasonGames({commit:e,rootGetters:n}){try{const r=await zJ({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:n}){try{const r=await rua({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:n,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const I=[void 0,void 0];return e.currentSeasonGames.length===0&&(I[0]=n("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(I[1]=n("getCurrentSeasonTeams")),await Promise.all(I),!1}catch(I){throw new Error(I)}}}}};async function lua({filter:e}){try{const n=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await gd({url:n});return r}catch(n){return Promise.reject(n)}}const cua=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let OE=null;function dua(){return OE||(OE=V0(cua)),OE}class F5{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(n){n>this.maximumLiveSection&&(this.maximumLiveSection=n)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(n,r,I){I&&(this.setMaximumLiveSection(n),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,n,r)}increaseReceivedByOne(n,r,I){I&&(this.setMaximumLiveSection(n),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,n,r)}increaseTrendLiveAccumulatedByOne(n,r,I){for(let L=r-1;L<n.accumulated.length;L++)n.accumulated[L]+=I}decreaseAccomplishedLiveByOne(n,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[n-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[n-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,r))}decreaseReceivedLiveByOne(n,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[n-1]>0&&(this.received.totalsLiveTrendLive.sections[n-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(n,r,I){for(let L=n.accumulated.length-1;L>=r-1;L--)n.accumulated[L]-=I}calculateAvg(n){n&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/n,this.received.avgPostGame=this.received.totalPostGame/n,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,n),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,n),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,n),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,n))}getAvgPostGameTrendLiveAvg(n,r){return n.map(I=>I/r)}calculateRanking(n,r,I,L,d,g,a,b){let m=[];L===3&&n&&n.length&&(I.playingAs.length!==2||I.matchResult.length!==3)?m=Array.from(n.reduce((v,_)=>{const c=_[r.playingAs]===1,s=c?"1":"2",o=v.get(_[r.gameId]);if(o)o[s]?o[s].arrayPlays.push(_):o[s]={numberTeamId:_[r.teamId],arrayPlays:[_]};else{const l={numberMatchResult:_[r.matchResult]};c&&(l[1]={numberTeamId:_[r.teamId],arrayPlays:[_]}),v.set(_[r.gameId],l)}return v},new Map).values()).reduce((v,_)=>{const c=I.playingAs.length===2?"both":I.playingAs[0].toString();return(c==="both"&&(_[1].numberTeamId===I.teamId||_[2].numberTeamId===I.teamId)||c!=="both"&&_[c].numberTeamId===I.teamId)&&I.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>I.sections.includes(v[r.section])):(m=n?[...n]:[],a&&n&&(m=n.filter(i=>I.playingAs.includes(i[r.playingAs])&&I.matchResult.includes(i[r.matchResult])&&I.sections.includes(i[r.section])))),this.setTeamRanking(m,L,r,I.teamId,g,"accomplished",b)}setTeamRanking(n,r,I,L,d,g,a){let b=null,m=null;r===3&&(b=new Map,m={},n.forEach(_=>{const c=b.get(_[I.gameId]);c?c[_[I.teamId.toString()]]?c[_[I.teamId.toString()]]+=_[I.total]:c[_[I.teamId.toString()]]=_[I.total]:b.set(_[I.gameId],{[_[I.teamId.toString()]]:_[I.total]})}),Array.from(b.values()).forEach(_=>{const[c,s]=Object.keys(_).map(l=>l),o=_[c]+_[s];this.addPassesAvgByTeam(m,c,o?_[c]/o:0),this.addPassesAvgByTeam(m,s,o?_[s]/o:0)}));const i=d.sort((_,c)=>_.team_id-c.team_id).map(_=>{if(r===3){const c=m[_.team_id.toString()];return{teamId:_.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=n.reduce((s,o)=>o[I.teamId]===_.team_id&&r===o[I.categoryId]?s+o[I.total]:s,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?c/_[`${a}FilterGames`]:0,total:c}}}).sort((_,c)=>c.points-_.points);this.accomplished.arrayRankings=i;const v=i.findIndex(_=>_.teamId===L);r===3&&(this.accomplished.avgPreGame=i[v].points),this[g].ranking=v+1,this[g].leader=i[0]}addPassesAvgByTeam(n,r,I){n[r]?(n[r].numberGamesCount+=1,n[r].numberTotalPassesAvg+=I):n[r]={numberGamesCount:1,numberTotalPassesAvg:I}}}class po{constructor(n,r,I,L,d,g,a,b,m,i){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new F5);ll(this,"visitingTeam",new F5);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${I.accomplished}-${I.received}`,this.accomplishedCategoryIds=n||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=I||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=d||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=b||0,this.betOnly=m||!1,this.isPercent=i||!1}addLeaguePlays(n,r,I){n.length===0||!I||this.isLeagueDataCalculated||(n.forEach(L=>{this.isAccomplishedLeaguePlay(L[r.categoryId])&&(this.leagueAccomplishedAccumulator+=L[r.total]),this.isReceivedLeaguePlay(L[r.categoryId])&&(this.leagueReceivedAccumulator+=L[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*I)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*I)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(n,r,I){let L="-";for(const[d,g]of Object.entries(this.generalCategoriesIds))n===g&&(L=`${d==="accomplished"?"0":"1"}${L}`),r===g&&(L=`${L}${d==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=I)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(n,r,I,L,d){!I||!d||n!==this.homeTeamType&&n!==this.visitingTeamType||(I.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[n].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[n].increaseReceivedByOne(g[L.section],g[L.total])}),this[n].calculateAvg(d))}addLivePlay(n,r,I,L,d=!1,g=!1){(n===this.homeTeamType||n===this.visitingTeamType)&&I[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[n].increaseAccomplishedByOne(I[L.section],I[L.total],!0)}subtractLivePlay(n,r,I,L,d){(n===this.homeTeamType||n===this.visitingTeamType)&&(this.isAccomplishedPlay(I[L.categoryId])&&!d?this[n].decreaseAccomplishedLiveByOne(I[L.section],I[L.total]):this.isReceivedPlay(I[L.categoryId])&&d&&this[n].decreaseReceivedLiveByOne(I[L.section],I[L.total]))}isAccomplishedLeaguePlay(n){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(I=>n===I||`${n}_r`===I)}isReceivedLeaguePlay(n){return!!this.receivedCategoryIds.find(r=>n===r)}isAccomplishedPlay(n){return this.generalCategoriesIds.accomplished===n}isReceivedPlay(n){return this.generalCategoriesIds.received===n}calcRankingLeague(n,r,I,L,d,g=!1){this[this.homeTeamType].calculateRanking(n,r,I,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(n,r,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.visitingTeamType)}resetData(){this.homeTeam=new F5,this.visitingTeam=new F5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(n){return this.generalCategoriesIds.accomplished===n||this.generalCategoriesIds.received===n}}const uua={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new po([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new po([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new po([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new po([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new po([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new po([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new po([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new po([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new po([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new po([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new po([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new po([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new po([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new po([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new po([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new po([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new po([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new po([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new po([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new po([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new po([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new po([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new po([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new po([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new po([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new po([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new po([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new po([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new po([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new po([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new po([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new po([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new po([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new po([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new po([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new po([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new po([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new po([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},hua=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],pua=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let zE=null;function fua(){return zE||(zE=V0(pua)),zE}const mua=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let LE=null;function gua(){return LE||(LE=V0(mua)),LE}function D5(e,n,r){return[r.get(e[n.categoryId])||[],e[n.teamId],e[n.matchResult],e[n.playingAs],e[n.matchLapse],e[n.section],e[n.total]]}function DJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function FE(e,n,r){let I=[...n];return e[r.categoryId]===2&&(I[0]=14),e[r.categoryId]===20&&(I[0]=15),[14,15].includes(I[0])?I:null}const yua=TP(),vua=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],_ua={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:LJ(),indexesTSP:dua(),indexesLS:fua(),indexesTLP:gua(),nextGamesDataStructure:uua,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(n=>n.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return hua.filter(n=>n.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return OJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return OJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(n=>n.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(n=>e.homeTeamFilter.playingAs.includes(n[0])).filter(n=>e.homeTeamFilter.matchResult.includes(n[1])).reduce((n,r)=>n+r[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(n=>e.visitingTeamFilter.playingAs.includes(n[0])).filter(n=>e.visitingTeamFilter.matchResult.includes(n[1])).reduce((n,r)=>n+r[2],0)},filledDataStructure(e,n){if(e.currentSeasonPlays)for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&I.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&I.visitingTeam.resetTotals(),I.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),I.addTeamPlays(I.homeTeamType,e.gameForAnalysis.home_team,n.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredHomeGames),I.addTeamPlays(I.visitingTeamType,e.gameForAnalysis.visiting_team,n.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,n){return Object.values(n.filledDataStructure).sort((r,I)=>r.priority-I.priority)},statisticData(e,n){for(const r of Object.values(n.filledDataStructure))if(r.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&r.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return r.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,n){e.currentTournamentName=n},setBetSubcategoriesObjects(e,n){e.betSubcategoriesObjects=n},setRegularSeasonName(e,n){e.regularSeasonName=n},setBetSubcategories(e,n){e.betSubcategories=n},setBetDescription(e,n){e.betDescription=n},setSeasonId(e,n){e.seasonId=Number(n)},setHome(e,n){e.homeTeamInfo=n},setAway(e,n){e.awayTeamInfo=n},setMenuOptionActive(e,n){e.menuOptionActive=n},setPastSeasonId(e,n){e.pastSeasonId=n},setUsePastSeasonId(e,n){e.usePastSeasonId=n,n&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,n){e.showPostMatch=n},setHomeResultGame(e,n){e.homeResultGame=n},setAwayResultGame(e,n){e.awayResultGame=n},updateIsSocketConnected(e,n){e.isSocketConnected=n,n&&e.gameForAnalysis.is_live&&uie(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n,e.currentSeasonTeams.forEach(r=>{r.playedGames=e.currentSeasonGames.reduce((I,L)=>{if(L.game_status===1&&(L.home_team===r.team_id||L.visiting_team===r.team_id)){const d=L.score[0]-L.score[1],g=L.home_team===r.team_id;I.push({playingAs:g?1:2,matchResult:d===0?3:g?d>0?1:2:d<0?1:2})}return I},[])})},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateGameId(e,n){e.gameId=n},updateGameForAnalysis(e,n){e.gameForAnalysis=n,e.isLive=!!n.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,n){e.selectedAnalysis=n},updateShowLiveData(e,n){e.showLiveData=n},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,n){e.idAssetSelected=n},updateStats(e,n){e.currentSeasonPlays=n},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:n,needsFormat:r=!1}){if(r){if(!n||!n.local||!n.local.statistics||!n.visit||!n.visit.statistics)return;e.homeTeamFilter=NP(e.homeTeamFilter,n.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=NP(e.visitingTeamFilter,n.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==n.local.statistics.block&&(e.selectedStatisticTypeBlock=n.local.statistics.block)}else e.homeTeamFilter={...n.homeTeamFilter,statistics:0},e.visitingTeamFilter={...n.visitingTeamFilter,statistics:0}},updateFinishedGames(e,n){e.totalSeasonFinishedGames=n},updateHomeTeamPlays(e,n){e.homeTeamPlays=n},updateVisitingTeamPlays(e,n){e.visitingTeamPlays=n},addSpecialMentions(e,n){const r=Object.values(e.nextGamesDataStructure);r.forEach(I=>{for(const L of Object.values(I.subcategories))L.resetMentions()}),r.forEach(I=>{for(const L of n)for(const d of Object.values(I.subcategories))d.addSpecialMention(L[0],L[1],L[2])})},setDefaultFilter(e,n){e.defaultFilter={homeTeamFilter:{...n.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...n.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,n){if(!e.livePlays.has(n[e.indexesTLP.playId])){e.livePlays.set(n[e.indexesTLP.playId],n);const I=D5(n,e.indexesTLP,e.categoriesMap);for(const L of Object.values(e.nextGamesDataStructure))for(const d of Object.values(L.subcategories))d.addLivePlay(e.gameForAnalysis.home_team===I[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",I[e.indexesTSP.teamId],I,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,n){const r=!!n[e.indexesTLP.length],I=e.livePlays.get(n[e.indexesTLP.playId]);if(ooe(I,n))return;let L="";const d=e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";I&&(L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=D5(I,e.indexesTLP,e.categoriesMap),a=FE(I,g,e.indexesTLP),b=D5(n,e.indexesTLP,e.categoriesMap),m=FE(n,b,e.indexesTLP);for(const i of Object.values(e.nextGamesDataStructure))for(const v of Object.values(i.subcategories))I&&(v.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r),a&&v.subtractLivePlay(L,a[e.indexesTSP.teamId],a,e.indexesTSP,r)),v.addLivePlay(d,b[e.indexesTSP.teamId],b,e.indexesTSP,e.isLive,r),m&&v.addLivePlay(d,m[e.indexesTSP.teamId],m,e.indexesTSP,e.isLive,r);e.livePlays.set(n[e.indexesTLP.playId],n)},deleteLiveGamePlay(e,n){const r=!!n[e.indexesTLP.length],I=e.livePlays.get(n[e.indexesTLP.playId]);let L="";if(I){L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(I[e.indexesTLP.playId]);const d=D5(I,e.indexesTLP,e.categoriesMap),g=FE(n,d,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const b of Object.values(a.subcategories))b.subtractLivePlay(L,d[e.indexesTSP.teamId],d,e.indexesTSP,r),g&&b.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r)}},clearLiveTotals(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.homeTeam.resetTotalsLive(),r.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,n){e.statistics=n},updateOldSeasonId(e,n){e.oldSeasonId=n},addRankingInSubcategories(e,{getters:n,isPremiumAccount:r}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(d=>{d.homeTeamFilterGames=d.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,d.visitingTeamFilterGames=d.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const I=[],L=new Map;for(const d of Object.values(e.nextGamesDataStructure))for(const g of Object.values(d.subcategories))I.push(g);n.rankingData.forEach(d=>{for(const g of I)if(g.isInGeneralCategory(d[e.indexesLS.categoryId])){L.has(g.id)?L.get(g.id).push(d):L.set(g.id,[d]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,n){e.homeGames=DJ(n)},setVisitingGames(e,n){e.visitingGames=DJ(n)},generateCategoriesMap(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.accomplishedCategoryIds.forEach(I=>{const L=e.categoriesMap.get(I);L?L.push(r.generalCategoriesIds.accomplished):e.categoriesMap.set(I,[r.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:n},{command:r}){r==="on"?n("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):n("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},n){try{const g=await oua({gameId:n.gameId});if(g){var r=[],I=[],L={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},d={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(r=g.data.data.filter(a=>a[1]==n.homeTeam),I=g.data.data.filter(a=>a[1]==n.awayTeam),L=g.data.games,d=g.data.games),e("updateHomeTeamPlays",r),e("updateVisitingTeamPlays",I),e("setHomeGames",L),e("setVisitingGames",d)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:n},r){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let I=[];e("updateGameForAnalysis",r.gameInfo),I.push(n("setAndGetStatsPostMatch",{gameId:r.game,homeTeam:r.homeTeam,awayTeam:r.awayTeam})),await Promise.all(I)}catch(I){throw new Error(I)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:n,commit:r},{gameId:I,isTeamsAnalysis:L,currentSeasonId:d,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:b=null,isCupGame:m=!1}){try{let i={},v=e.seasonId!==Number(d);const _=[];r("setIsSectionLoading",!0,{root:!0}),r("setUsePastSeasonId",!1),v&&r("setSeasonId",d),r("updateGameId",Number(I)),e.oldSeasonId!==e.seasonId&&r("resetNextGamesDataStructure");const c=await n("getCurrentSeasonGames",Number(I));if(r("leagueGeneral/updateCurrentSeasonGames",c,{root:!0}),i=c.find(s=>s.game_id===Number(I)),!i&&b&&(i=b),i&&r("updateGameForAnalysis",i),i.game_status!==1&&((g||e.categoriesMap.size===0)&&r("generateCategoriesMap"),m||await n("checkTeamsData",{gameId:I,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(n("getSeasonStatistics"))),e.usePastSeasonId){const s=await n("getCurrentSeasonGamesLast");r("leagueGeneral/updateCurrentSeasonGames",s,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(s=>i.home_team===s.team_id))&&_.push(n("getCurrentSeasonTeams")),r("setHomeResultGame",i.score[0]),r("setAwayResultGame",i.score[1]),L?i.game_status!==1?(await n("fillStatisticData",{gameId:I,gameinfo:i,promises:_,defaultFilter:a}),r("updateShowPostMatchData",!1)):(r("updateStats",[]),r("updateShowPostMatchData",!0),_.push(n("fillStatisticDataPostMatch",{game:I,homeTeam:i.home_team,awayTeam:i.visiting_team,gameInfo:i})),await Promise.all(_)):r("setIsSectionLoading",!1,{root:!0})}catch(i){return Promise.reject(i)}},async fillStatisticData({commit:e,dispatch:n,getters:r,rootGetters:I,state:L},{gameId:d,gameinfo:g,promises:a=[],defaultFilter:b=null}){let m=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(n("getCurrentLiveGamePlays",d)),a.push(n("getSpecialMentionsByGame",d)),a.push(n("getHomeTeamPlays")),a.push(n("getVisitingTeamPlays")),a.push(n("getCurrentSeasonPlays")),b&&a.push(lua(b)),m=await Promise.all(a)}catch(i){throw new Error(i)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]}),b){const[i]=m.pop();i&&(e("setBetSubcategories",i.categories),e("setBetDescription",i.sectionDescription),e("setDefaultFilter",i.params),e("updateFilterAux"),e("updateFilters",{filters:L.defaultFilter,needsFormat:!1}),n("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:n,rootState:r,commit:I},{gameId:L,isFromBet:d}){try{I("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},n){try{const r=await aua({gameId:n});e("addSpecialMentions",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonGames({commit:e,state:n},r){try{const{teams:I,games:L,past_season_id:d,tournament_id:g}=await eua({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,gameId:r}),a=vua.find(b=>b.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",I[0]),e("setAway",I[1]),n.usePastSeasonId||e("setPastSeasonId",d),await e("updateCurrentSeasonGames",L),L&&Array.isArray(L)&&e("updateFinishedGames",L.reduce((b,m)=>(m.game_status===1&&(b+=1),b),0)),L}catch(I){return Promise.reject(I)}},async getCurrentSeasonGamesLast({commit:e,state:n}){try{const{games:r,past_season_id:I}=await zJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});return n.usePastSeasonId||e("setPastSeasonId",I),await e("updateCurrentSeasonGames",r),r&&Array.isArray(r)&&e("updateFinishedGames",r.reduce((L,d)=>(d.game_status===1&&(L+=1),L),0)),r}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,state:n}){try{const r=await iua({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateCurrentSeasonTeams",r.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:n}){try{const r=n.usePastSeasonId?n.pastSeasonId:n.seasonId,I=await Kda({seasonId:r});e("updateSeasonStatistics",I),e("updateOldSeasonId",r)}catch(r){return Promise.reject(r)}},updateRankingInSubcategories({state:e,commit:n,getters:r,rootGetters:I}){e.currentSeasonGames.length>0&&n("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:n}){try{const r=await FJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.home_team});r.data&&(e("updateHomeTeamPlays",r.data.data),e("setHomeGames",r.data.games))}catch(r){return Promise.reject(r)}},async getVisitingTeamPlays({commit:e,state:n}){try{const r=await FJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.visiting_team});r.data&&(e("updateVisitingTeamPlays",r.data.data),e("setVisitingGames",r.data.games))}catch(r){return Promise.reject(r)}},async getCurrentSeasonPlays({commit:e,state:n}){try{const r=await Xda({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateStats",r)}catch(r){return Promise.reject(new Error(r))}},async getCurrentLiveGamePlays({state:e,commit:n},r){try{const I=await tua({gameId:r});e.livePlays=new Map,I.forEach(L=>{e.gameForAnalysis.game_id===L[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===L[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===L[e.indexesTLP.teamId])&&n("addLiveGamePlay",L)})}catch(I){throw new Error(I)}},socket_new({state:e,commit:n},r){const I=r[1];(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&n("addLiveGamePlay",I)},socket_update({state:e,commit:n},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===I[e.indexesTLP.teamId])&&n("updateLiveGamePlay",I)},socket_delete({state:e,commit:n},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&n("deleteLiveGamePlay",I)},exitChannel({state:e,getters:n,rootState:r,rootGetters:I,commit:L}){const d=I["loginGeneral/getPremiumAccount"];n.isLive&&d&&(L("updateShowLiveData",!1),L("clearLiveTotals"),e.livePlays.clear(),yua.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.homeTeam.resetTotalsLive(),I.visitingTeam.resetTotalsLive(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function bua(){try{const{data:e}=await gd({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const xua={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,n){e.booleanIsStatisticModalOpen=n},setTournamentType(e,n){e.tournamentType=n},setSectionRef(e,n){e.sectionRef=n},setSectionAnalytics(e,n){e.sectionAnalytics=n},setSeccionBetsGolTipster(e,n){e.seccionBetsGolTipster=n},setPreviewSectionAnalytics(e,n){e.previewSectionAnalytics=n},setVideoSrc(e,n){e.videoSrc=n},setVideoModalVisibility(e,n){e.isVideoModalVisible=n},setSelectedTournament(e,n){e.selectedTournament=n},setTournaments(e,n){e.tournaments=n.map(r=>({...r.tournament,seasons:r.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,n){e.tournamentSelected=n}},actions:{async fetchTournaments({state:e,commit:n}){try{if(e.tournaments.length===0){const r=await bua();n("setTournaments",r)}}catch(r){throw new Error(r)}}}}};async function wua({seasonId:e,localTeamId:n,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${n}/${r}`;return(await gd({url:I})).data}catch(I){return Promise.reject(I)}}async function kua({seasonId:e,localTeamId:n,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${n}/${r}`;return(await gd({url:I})).data}catch(I){return Promise.reject(I)}}const VJ=(e,n)=>{let r={};return e.forEach((I,L)=>{L==3&&(n[0]==35||n[0]==54)&&(n[L]==2?n[L]=1:n[L]=2),L==2&&(n[0]==35||n[0]==54)&&(n[L]==1?n[L]=2:n[L]==2&&(n[L]=1)),r[I]=n[L]}),r},RJ=(e,n)=>e.filter(I=>{const L=n.playingAs.includes(I.playing_as),d=n.matchResult.includes(I.match_result),g=n.sections.includes(I.section);return L&&d&&g}),$J=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(n,r,I){return typeof I>"u"||+I==0?Math[n](r):(r=+r,I=+I,isNaN(r)||!(typeof I=="number"&&I%1===0)?NaN:(r=r.toString().split("e"),r=Math[n](+(r[0]+"e"+(r[1]?+r[1]-I:-I))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+I:I))))}Math.ceil10||(Math.ceil10=function(n,r){return e("ceil",n,r)})})();function jJ(e,n){let r=n*-1;return Math.ceil10(e,r)}const Cua={...xua,...sua,..._ua,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,n,r)=>{const I=e.xGLocalPlays,L="homeTeamFilter",d=r.nextGeneral[L];return RJ(I,d)||[]},playsAway:(e,n,r)=>{const I=e.xGVisitingPlays,L="visitingTeamFilter",d=r.nextGeneral[L];return RJ(I,d)},goalsQtyLocal:(e,n)=>{const r=$J.find(I=>I.name==="Goles");return n.playsLocal.filter(I=>r.categories.includes(I.category_id)).length},goalsQtyAway:(e,n)=>{const r=$J.find(I=>I.name==="Goles");return n.playsAway.filter(I=>r.categories.includes(I.category_id)).length},shotsOnGoalQtyLocal:(e,n)=>n.playsLocal.filter(r=>r.category_id===510).length,shotsOnGoalQtyAway:(e,n)=>n.playsAway.filter(r=>r.category_id===510).length,xGLocal:(e,n)=>{const r=new Set;let I=n.playsLocal.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return jJ(I,2)},xGAway:(e,n)=>{const r=new Set;let I=n.playsAway.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return jJ(I,2)}},mutations:{setTeamSelected(e,n){e.teamSelected=n},setPlays(e,n){e.xGLocalPlays=n.local_team.map(r=>VJ(n.data_headers,r)),e.xGVisitingPlays=n.visiting_team.map(r=>VJ(n.data_headers,r))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:n,localTeamId:r,visitingTeamId:I,postMatch:L=!1}){try{var d={};L?d=await kua({seasonId:n,localTeamId:r,visitingTeamId:I}):d=await wua({seasonId:n,localTeamId:r,visitingTeamId:I}),e("setPlays",d)}catch(g){return Promise.reject(g)}}}}}};function Tua(e){for(const[n,r]of Object.entries(Cua))e.hasModule(n)||e.registerModule(n,r)}const Sua={class:"subcategory-group"},Eua={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Sua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(uo),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Aua=Ao(Eua,[["__scopeId","data-v-ae6f3d72"]]),Mua={class:"filter-subcategories"},Iua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Mua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Aua,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),V5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Pua={class:"details__header"},Nua=V5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Bua={class:"details__header__checkbox"},Oua={class:"details__body"},zua={class:"details__body__playing-as"},Lua=["onClick"],Fua={class:"details__header"},Dua=V5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Vua={class:"details__header__checkbox"},Rua={class:"details__body"},$ua=V5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),jua={class:"details__body__game-section"},Uua=["onClick"],Hua={class:"details__body"},Gua=V5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Wua={class:"details__body__game-section"},qua=["onClick"],Yua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__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 n=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(i=>i.isSelected)),I=t.computed(()=>n.gameSections.every(i=>i.isSelected)),L=t.computed(()=>n.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function g(i){i?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(i){n.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function b(i){n.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",Pua,[Nua,t.createElementVNode("div",Bua,[t.createVNode(t.unref(uo),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",Oua,[t.createElementVNode("div",zua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>a(_)},t.toDisplayString(_.name),11,Lua))),128))])]),t.createElementVNode("div",Fua,[Dua,t.createElementVNode("div",Vua,[t.createVNode(t.unref(uo),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Rua,[$ua,t.createElementVNode("div",jua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Uua))),128))])]),t.createElementVNode("div",Hua,[Gua,t.createElementVNode("div",Wua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,qua))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Zua={class:"filter-field"},Jua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",Zua,[t.createVNode(t.unref(gG),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Xua={class:"subcategory-group"},Kua={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Xua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(ho),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Qua=Mo(Kua,[["__scopeId","data-v-ae6f3d72"]]),eha={class:"filter-subcategories"},tha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",eha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Qua,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),R5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),aha={class:"details__header"},nha=R5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),rha={class:"details__header__checkbox"},iha={class:"details__body"},oha={class:"details__body__playing-as"},sha=["onClick"],lha={class:"details__header"},cha=R5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),dha={class:"details__header__checkbox"},uha={class:"details__body"},hha=R5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),pha={class:"details__body__game-section"},fha=["onClick"],mha={class:"details__body"},gha=R5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),yha={class:"details__body__game-section"},vha=["onClick"],_ha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__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 n=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(i=>i.isSelected)),I=t.computed(()=>n.gameSections.every(i=>i.isSelected)),L=t.computed(()=>n.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function g(i){i?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(i){n.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function b(i){n.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",aha,[nha,t.createElementVNode("div",rha,[t.createVNode(t.unref(ho),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",iha,[t.createElementVNode("div",oha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>a(_)},t.toDisplayString(_.name),11,sha))),128))])]),t.createElementVNode("div",lha,[cha,t.createElementVNode("div",dha,[t.createVNode(t.unref(ho),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",uha,[hha,t.createElementVNode("div",pha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,fha))),128))])]),t.createElementVNode("div",mha,[gha,t.createElementVNode("div",yha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,vha))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),bha={class:"filter-field"},xha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",bha,[t.createVNode(t.unref(iY),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Uc.GSCGameData=Jda,Uc.connectSocket=SP,Uc.disconnectSocket=EP,Uc.getSocket=TP,Uc.registerStoreModules=Tua,Object.defineProperty(Uc,Symbol.toStringTag,{value:"Module"})});
|
|
7044
|
+
*/var Kla="store";function zm(e,n){Object.keys(e).forEach(function(r){return n(e[r],r)})}function gJ(e){return e!==null&&typeof e=="object"}function Qla(e){return e&&typeof e.then=="function"}function xh(e,n){if(!e)throw new Error("[vuex] "+n)}function eca(e,n){return function(){return e(n)}}function yJ(e,n,r){return n.indexOf(e)<0&&(r&&r.prepend?n.unshift(e):n.push(e)),function(){var I=n.indexOf(e);I>-1&&n.splice(I,1)}}function vJ(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;O5(e,r,[],e._modules.root,!0),EE(e,r,n)}function EE(e,n,r){var I=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,d={};zm(L,function(g,a){d[a]=eca(g,e),Object.defineProperty(e.getters,a,{get:function(){return d[a]()},enumerable:!0})}),e._state=t.reactive({data:n}),e.strict&&ica(e),I&&r&&e._withCommit(function(){I.data=null})}function O5(e,n,r,I,L){var d=!r.length,g=e._modules.getNamespace(r);if(I.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[g]=I),!d&&!L){var a=AE(n,r.slice(0,-1)),b=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in a&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+r.join(".")+'"'),a[b]=I.state})}var m=I.context=tca(e,g,r);I.forEachMutation(function(i,v){var _=g+v;aca(e,_,i,m)}),I.forEachAction(function(i,v){var _=i.root?v:g+v,c=i.handler||i;nca(e,_,c,m)}),I.forEachGetter(function(i,v){var _=g+v;rca(e,_,i,m)}),I.forEachChild(function(i,v){O5(e,n,r.concat(v),i,L)})}function tca(e,n,r){var I=n==="",L={dispatch:I?e.dispatch:function(d,g,a){var b=z5(d,g,a),m=b.payload,i=b.options,v=b.type;if((!i||!i.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+v);return}return e.dispatch(v,m)},commit:I?e.commit:function(d,g,a){var b=z5(d,g,a),m=b.payload,i=b.options,v=b.type;if((!i||!i.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+v);return}e.commit(v,m,i)}};return Object.defineProperties(L,{getters:{get:I?function(){return e.getters}:function(){return _J(e,n)}},state:{get:function(){return AE(e.state,r)}}}),L}function _J(e,n){if(!e._makeLocalGettersCache[n]){var r={},I=n.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,I)===n){var d=L.slice(I);Object.defineProperty(r,d,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[n]=r}return e._makeLocalGettersCache[n]}function aca(e,n,r,I){var L=e._mutations[n]||(e._mutations[n]=[]);L.push(function(d){r.call(e,I.state,d)})}function nca(e,n,r,I){var L=e._actions[n]||(e._actions[n]=[]);L.push(function(d){var g=r.call(e,{dispatch:I.dispatch,commit:I.commit,getters:I.getters,state:I.state,rootGetters:e.getters,rootState:e.state},d);return Qla(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function rca(e,n,r,I){if(e._wrappedGetters[n]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+n);return}e._wrappedGetters[n]=function(L){return r(I.state,I.getters,L.state,L.getters)}}function ica(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&xh(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function AE(e,n){return n.reduce(function(r,I){return r[I]},e)}function z5(e,n,r){return gJ(e)&&e.type&&(r=n,n=e,e=e.type),process.env.NODE_ENV!=="production"&&xh(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:n,options:r}}var oca="vuex bindings",bJ="vuex:mutations",ME="vuex:actions",tg="vuex",sca=0;function lca(e,n){Xla({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[oca]},function(r){r.addTimelineLayer({id:bJ,label:"Vuex Mutations",color:xJ}),r.addTimelineLayer({id:ME,label:"Vuex Actions",color:xJ}),r.addInspector({id:tg,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(I){if(I.app===e&&I.inspectorId===tg)if(I.filter){var L=[];TJ(L,n._modules.root,I.filter,""),I.rootNodes=L}else I.rootNodes=[CJ(n._modules.root,"")]}),r.on.getInspectorState(function(I){if(I.app===e&&I.inspectorId===tg){var L=I.nodeId;_J(n,L),I.state=uca(pca(n._modules,L),L==="root"?n.getters:n._makeLocalGettersCache,L)}}),r.on.editInspectorState(function(I){if(I.app===e&&I.inspectorId===tg){var L=I.nodeId,d=I.path;L!=="root"&&(d=L.split("/").filter(Boolean).concat(d)),n._withCommit(function(){I.set(n._state.data,d,I.state.value)})}}),n.subscribe(function(I,L){var d={};I.payload&&(d.payload=I.payload),d.state=L,r.notifyComponentUpdate(),r.sendInspectorTree(tg),r.sendInspectorState(tg),r.addTimelineEvent({layerId:bJ,event:{time:Date.now(),title:I.type,data:d}})}),n.subscribeAction({before:function(I,L){var d={};I.payload&&(d.payload=I.payload),I._id=sca++,I._time=Date.now(),d.state=L,r.addTimelineEvent({layerId:ME,event:{time:I._time,title:I.type,groupId:I._id,subtitle:"start",data:d}})},after:function(I,L){var d={},g=Date.now()-I._time;d.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},I.payload&&(d.payload=I.payload),d.state=L,r.addTimelineEvent({layerId:ME,event:{time:Date.now(),title:I.type,groupId:I._id,subtitle:"end",data:d}})}})})}var xJ=8702998,cca=6710886,dca=16777215,wJ={label:"namespaced",textColor:dca,backgroundColor:cca};function kJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function CJ(e,n){return{id:n||"root",label:kJ(n),tags:e.namespaced?[wJ]:[],children:Object.keys(e._children).map(function(r){return CJ(e._children[r],n+r+"/")})}}function TJ(e,n,r,I){I.includes(r)&&e.push({id:I||"root",label:I.endsWith("/")?I.slice(0,I.length-1):I||"Root",tags:n.namespaced?[wJ]:[]}),Object.keys(n._children).forEach(function(L){TJ(e,n._children[L],r,I+L+"/")})}function uca(e,n,r){n=r==="root"?n:n[r];var I=Object.keys(n),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(I.length){var d=hca(n);L.getters=Object.keys(d).map(function(g){return{key:g.endsWith("/")?kJ(g):g,editable:!1,value:IE(function(){return d[g]})}})}return L}function hca(e){var n={};return Object.keys(e).forEach(function(r){var I=r.split("/");if(I.length>1){var L=n,d=I.pop();I.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[d]=IE(function(){return e[r]})}else n[r]=IE(function(){return e[r]})}),n}function pca(e,n){var r=n.split("/").filter(function(I){return I});return r.reduce(function(I,L,d){var g=I[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+n+'".');return d===r.length-1?g:g._children},n==="root"?e:e.root._children)}function IE(e){try{return e()}catch(n){return n}}var wh=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},SJ={namespaced:{configurable:!0}};SJ.namespaced.get=function(){return!!this._rawModule.namespaced},wh.prototype.addChild=function(e,n){this._children[e]=n},wh.prototype.removeChild=function(e){delete this._children[e]},wh.prototype.getChild=function(e){return this._children[e]},wh.prototype.hasChild=function(e){return e in this._children},wh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},wh.prototype.forEachChild=function(e){zm(this._children,e)},wh.prototype.forEachGetter=function(e){this._rawModule.getters&&zm(this._rawModule.getters,e)},wh.prototype.forEachAction=function(e){this._rawModule.actions&&zm(this._rawModule.actions,e)},wh.prototype.forEachMutation=function(e){this._rawModule.mutations&&zm(this._rawModule.mutations,e)},Object.defineProperties(wh.prototype,SJ);var Lm=function(e){this.register([],e,!1)};Lm.prototype.get=function(e){return e.reduce(function(n,r){return n.getChild(r)},this.root)},Lm.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(r,I){return n=n.getChild(I),r+(n.namespaced?I+"/":"")},"")},Lm.prototype.update=function(e){EJ([],this.root,e)},Lm.prototype.register=function(e,n,r){var I=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&IJ(e,n);var L=new wh(n,r);if(e.length===0)this.root=L;else{var d=this.get(e.slice(0,-1));d.addChild(e[e.length-1],L)}n.modules&&zm(n.modules,function(g,a){I.register(e.concat(a),g,r)})},Lm.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1],I=n.getChild(r);if(!I){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}I.runtime&&n.removeChild(r)},Lm.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1];return n?n.hasChild(r):!1};function EJ(e,n,r){if(process.env.NODE_ENV!=="production"&&IJ(e,r),n.update(r),r.modules)for(var I in r.modules){if(!n.getChild(I)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+I+"' on hot reloading, manual reload is needed");return}EJ(e.concat(I),n.getChild(I),r.modules[I])}}var AJ={assert:function(e){return typeof e=="function"},expected:"function"},fca={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},MJ={getters:AJ,mutations:AJ,actions:fca};function IJ(e,n){Object.keys(MJ).forEach(function(r){if(n[r]){var I=MJ[r];zm(n[r],function(L,d){xh(I.assert(L),mca(e,r,d,L,I.expected))})}})}function mca(e,n,r,I,L){var d=n+" should be "+L+' but "'+n+"."+r+'"';return e.length>0&&(d+=' in module "'+e.join(".")+'"'),d+=" is "+JSON.stringify(I)+".",d}var Gd=function e(n){var r=this;n===void 0&&(n={}),process.env.NODE_ENV!=="production"&&(xh(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),xh(this instanceof e,"store must be called with the new operator."));var I=n.plugins;I===void 0&&(I=[]);var L=n.strict;L===void 0&&(L=!1);var d=n.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Lm(n),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=d;var g=this,a=this,b=a.dispatch,m=a.commit;this.dispatch=function(v,_){return b.call(g,v,_)},this.commit=function(v,_,c){return m.call(g,v,_,c)},this.strict=L;var i=this._modules.root.state;O5(this,i,[],this._modules.root),EE(this,i),I.forEach(function(v){return v(r)})},PE={state:{configurable:!0}};Gd.prototype.install=function(e,n){e.provide(n||Kla,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&lca(e,this)},PE.state.get=function(){return this._state.data},PE.state.set=function(e){process.env.NODE_ENV!=="production"&&xh(!1,"use store.replaceState() to explicit replace store state.")},Gd.prototype.commit=function(e,n,r){var I=this,L=z5(e,n,r),d=L.type,g=L.payload,a=L.options,b={type:d,payload:g},m=this._mutations[d];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+d);return}this._withCommit(function(){m.forEach(function(i){i(g)})}),this._subscribers.slice().forEach(function(i){return i(b,I.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+d+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Gd.prototype.dispatch=function(e,n){var r=this,I=z5(e,n),L=I.type,d=I.payload,g={type:L,payload:d},a=this._actions[L];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var b=a.length>1?Promise.all(a.map(function(m){return m(d)})):a[0](d);return new Promise(function(m,i){b.then(function(v){try{r._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,r.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}m(v)},function(v){try{r._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,r.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}i(v)})})},Gd.prototype.subscribe=function(e,n){return yJ(e,this._subscribers,n)},Gd.prototype.subscribeAction=function(e,n){var r=typeof e=="function"?{before:e}:e;return yJ(r,this._actionSubscribers,n)},Gd.prototype.watch=function(e,n,r){var I=this;return process.env.NODE_ENV!=="production"&&xh(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(I.state,I.getters)},n,Object.assign({},r))},Gd.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})},Gd.prototype.registerModule=function(e,n,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(xh(Array.isArray(e),"module path must be a string or an Array."),xh(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,n),O5(this,this.state,e,this._modules.get(e),r.preserveState),EE(this,this.state)},Gd.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xh(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=AE(n.state,e.slice(0,-1));delete r[e[e.length-1]]}),vJ(this)},Gd.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xh(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Gd.prototype.hotUpdate=function(e){this._modules.update(e),vJ(this,!0)},Gd.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(Gd.prototype,PE);var gca=vca(function(e,n){var r={};return process.env.NODE_ENV!=="production"&&!PJ(n)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),yca(n).forEach(function(I){var L=I.key,d=I.val;r[L]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var b=this.$store.commit;if(e){var m=_ca(this.$store,"mapMutations",e);if(!m)return;b=m.context.commit}return typeof d=="function"?d.apply(this,[b].concat(g)):b.apply(this.$store,[d].concat(g))}}),r});function yca(e){return PJ(e)?Array.isArray(e)?e.map(function(n){return{key:n,val:n}}):Object.keys(e).map(function(n){return{key:n,val:e[n]}}):[]}function PJ(e){return Array.isArray(e)||gJ(e)}function vca(e){return function(n,r){return typeof n!="string"?(r=n,n=""):n.charAt(n.length-1)!=="/"&&(n+="/"),e(n,r)}}function _ca(e,n,r){var I=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!I&&console.error("[vuex] module namespace not found in "+n+"(): "+r),I}const bca="/icn-play.svg",xca="/icn-tiros-de-esquina.svg",wca="/icn-tiro-a-porteria.svg",kca="/icn-cambio.svg",Cca="/icn-falta.svg",Tca="/atajada.svg",Sca="/fuera-de-lugar.svg",NE="/gol.svg",Eca="/var.png",Aca="/tiempo-agregado.svg",Mca="/jugada-peligrosa.svg",Ica="/penal-marcado.svg",Pca="/penal-fallado.svg",Nca="/inicia-el-partido.svg",Bca="/fin-del-partido.svg",Oca="/icn-tarjeta-amarilla.svg",zca="/icn-tarjeta-roja.svg",Lca=[1,2,3,4,6],Fca={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],n=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return TE.GOAL_IDS.includes(n)?(e.push("is-main-event"),e.push("goal")):TE.YELLOW_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("yellow-card")):TE.RED_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(n=>Ula(n))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Lca.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...gca("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,n]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(n),teamId:this.gameEvent.team_id})}}},Dca=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),Vca={class:"time-line-event__details"},Rca={width:"127",preload:"metadata",style:{"border-radius":"8px"}},$ca=["src"],jca=Dca(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Uca={class:"time-line-event__details__info"},Hca={key:0,class:"time-line-event__details__info__header__players"},Gca={class:"time-line-event__details__info__header__players__div-img"},Wca=["src"],qca={class:"time-line-event__details__info__body"},Yca={class:"time-line-event__details__info__body__comment"},Zca={class:"time-line-event__minute__container"},Jca={class:"time-line-event__minute__container__text"},Xca={class:"time-line-event__minute__container__icon-container"},Kca={class:"time-line-event__minute__container__icon-container__icon"},Qca={key:0,src:xca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eda={key:1,src:wca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tda={key:2,src:kca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ada={key:3,src:Cca,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},nda={key:4,src:Tca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rda={key:5,src:Sca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ida={key:6,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oda={key:7,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sda={key:8,src:NE,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lda={key:9,src:Eca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cda={key:10,src:Aca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dda={key:11,src:Mca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uda={key:12,src:Ica,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hda={key:13,src:Pca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pda={key:14,src:Nca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fda={key:15,src:Bca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mda={key:16,src:Oca,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gda={key:17,src:zca,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},yda={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function vda(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",d.teamTypeClasses]),style:t.normalizeStyle({width:`${r.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",Vca,[r.canPlayVideos&&r.gameEvent.video_link!=="-"&&r.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:n[0]||(n[0]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[t.createElementVNode("video",Rca,[t.createElementVNode("source",{src:r.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,$ca)]),jca])):t.createCommentVNode("",!0),t.createElementVNode("div",Uca,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",d.teamTypeClasses2])},[r.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Hca,[d.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Gca,[t.createElementVNode("img",{src:g,alt:""},null,8,Wca)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",d.nameClasses]),onClick:n[1]||(n[1]=g=>d.thumbnailClick(r.gameEvent.video_link,r.gameEvent.event_type_name))},[r.canPlayVideos&&r.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:bca,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(r.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${r.gameEvent.event_type_name}`:r.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(r.gameEvent.category_id?r.gameEvent.event_type_id===5?r.gameEvent.category_name:r.gameEvent.event_type_name==="Gol"?r.gameEvent.event_type_name+" de "+r.gameEvent.team_name:r.gameEvent.event_type_name:r.gameEvent.comments),1)],2)],2),t.createElementVNode("div",qca,[t.createElementVNode("div",Yca,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",d.minuteClasses])},[t.createElementVNode("div",Zca,[t.createElementVNode("div",Jca,t.toDisplayString(r.gameEvent.minute)+"'",1),t.createElementVNode("div",Xca,[t.createElementVNode("div",Kca,[r.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Qca)):r.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",eda)):r.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",tda)):r.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",ada)):r.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",nda)):r.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",rda)):r.gameEvent.category_id==6&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==5&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==1&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==2&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==3&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==7&&r.gameEvent.event_type_id==1||r.gameEvent.category_id==12&&r.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",ida)):r.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",oda)):r.gameEvent.category_id==13||r.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",sda)):r.gameEvent.category_id==30||r.gameEvent.category_id==31||r.gameEvent.category_id==32||r.gameEvent.category_id==33||r.gameEvent.category_id==34||r.gameEvent.category_id==35||r.gameEvent.category_id==36||r.gameEvent.category_id==37||r.gameEvent.category_id==38||r.gameEvent.category_id==39||r.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",lda)):r.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",cda)):r.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",dda)):r.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",uda)):r.gameEvent.category_id==15||r.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",hda)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==16||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==18||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==20||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",pda)):r.gameEvent.category_id==0&&r.gameEvent.game_status_id==13||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==17||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==19||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==21||r.gameEvent.category_id==0&&r.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",fda)):r.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",mda)):r.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",gda)):(t.openBlock(),t.createElementBlock("img",yda))])])])],2)],6)}const _da=Tv(Fca,[["render",vda],["__scopeId","data-v-9943063a"]]),bda={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},xda={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let L5=null;const wda={name:"TimeLine",components:{Tooltip:Vla,TimeLineEvent:_da},mixins:[$la],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const n=await this.fetchGameEvents(e);n?(this.gameEvents=[...n],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(n){throw new Error(n)}},getGameEventClassAndSetIcon(e,n){return e.icon=n===0?"inicio_del_partido":bda[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:n}}=await hJ.get(`${this.gameEventsUrl}${e}`);return n}catch(n){throw new Error(n)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)L5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),L5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,n){const r=this.$refs[`gameEventDiv${n}`][0],I=this.$refs[`gameEventLine${n}`]?this.$refs[`gameEventLine${n}`][0]:null,L=e+12;r&&(r.style.height=`${L}px`),I&&(I.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,n)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(n.match_lapse)+Number(n.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let n=0;switch(e){case 1:n=0;break;case 2:n=45;break;case 3:n=90;break;case 4:n=105;break;case 5:n=120;break}return n},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const n=this.gameEvents.findIndex(r=>r.play_id===e.play_id);n&&this.gameEvents.splice(n,1)},checkTimeLineStatus(){this.gameEvents.forEach(n=>{const r=xda[n.game_status];r&&this.timeLineStatuses.push({...r,gameEvent:n})}),this.timeLineStatuses.sort((n,r)=>r.weight-n.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const n=this.gameData[e].team_id;return jla(n)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){L5&&L5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,n]){this.channelName===e&&this.addGameEventFromChannel(n)},update_mxm([e,n]){this.channelName===e&&(this.deleteGameEventFromChannel(n),this.addGameEventFromChannel(n))},delete_mxm([e,n]){this.channelName===e&&this.deleteGameEventFromChannel(n)}}},NJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),kda={ref:"timeLine",class:"time-line"},Cda={class:"time-line__header"},Tda={class:"time-line__header__dot"},Sda={class:"time-line__header__dot__home-team team-logo"},Eda=["src"],Ada={class:"time-line__header__dot__away-team team-logo"},Mda=["src"],Ida={key:1,class:"start-line"},Pda=NJ(()=>t.createElementVNode("div",null,null,-1)),Nda=NJ(()=>t.createElementVNode("div",null,null,-1)),Bda=[Pda,Nda],Oda={key:1,class:"noEventText"},zda={class:"tooltip-data"},Lda=["src"];function Fda(e,n,r,I,L,d){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",kda,[t.createElementVNode("div",Cda,[t.createElementVNode("div",Tda,[t.createElementVNode("div",Sda,[t.createElementVNode("img",{src:d.getTeamLogoSrc("homeTeam"),alt:""},null,8,Eda)]),t.createElementVNode("div",Ada,[t.createElementVNode("img",{src:d.getTeamLogoSrc("awayTeam"),alt:""},null,8,Mda)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[r.gameData.status!==4||r.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.gameEventsToShow,(b,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(d.getGameEventClassAndSetIcon(b,m))},[t.createElementVNode("div",{class:t.normalizeClass(d.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":d.isMobile,"time-line-width":L.timeLineWidth,width:d.gameEventWidth,"can-play-videos":r.canPlayVideos,onEventHeight:i=>d.updateContainerHeight(i,m),onPlayerChanged:n[0]||(n[0]=i=>e.$emit("player-changed",i)),onThumbnailClick:d.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),r.gameData.status===1&&m===d.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Ida,Bda)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",Oda,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",zda,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,Lda)])])]),_:1},8,["data"])],64)}const Dda=Tv(wda,[["render",Fda],["__scopeId","data-v-2574e576"]]),Vda={class:"game-time-line__options"},Rda={class:"game-time-line__timeline"},$da={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){hJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const n=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),r=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let I=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),d=t.ref("Todo"),g=t.ref({}),a=t.ref(null),b=t.ref(0),m=t.computed(()=>{let s="all";return d.value==="1er tiempo"||d.value==="1er"?s="firstHalf":(d.value==="2do tiempo"||d.value==="2do")&&(s="secondHalf"),s}),i=t.computed(()=>b.value<500);function v(s){d.value=s}function _(s){g.value=s}function c(){if(window.ResizeObserver)I=new ResizeObserver(()=>{b.value=a.value.clientWidth}),I.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{I&&I.unobserve(a.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",Vda,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(_sa,t.mergeProps(b.value<390?r.value:n.value,{text:l=="Todo"?l:b.value<390?l.substring(0,3):l,"is-active":d.value===l,onClick:u=>v(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Rda,[t.createVNode(Dda,{"game-data":e.game,"time-line-period":m.value,"is-mobile":i.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},jda=Tv($da,[["__scopeId","data-v-f42d0c90"]]),mba="",Uda={class:"game-data__header"},Hda={class:"game-data__header__tournament-season-dropdown"},Gda={class:"game-data__header__teams-carousel"},Wda={class:"game-data__body"},qda={class:"game-data__body__menu"},Yda={class:"game-data__body__menu__contmenuswitch"};cl.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Zda=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:Dhe,GSCGameTimeLine:jda,GscSwitchComponent:rS,GSCLineupsMain:_6e,GSCDatosGSMain:kMe,GSCVideoGame:dje,ModalEvents:YD,GSCSummaryMain:lvt,GSCTacticaFijaMain:ysa,GSCProminentMain:oPt,GSCComparative:ROt}}),Jda=Gr(Object.assign(Zda,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:n}){const r=e,I=ig();mu.on("socket-connected",()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),d=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),b=t.ref({}),m=t.ref(1),i=t.ref(null),v=t.ref(null),_=t.ref(null),c=t.ref([]),s=t.ref(null),o=t.ref(!0),l=t.ref(new Set([1,2])),u=t.ref({}),h=t.ref({minute:"",recent_lapse:0,score:{}}),p=t.ref(0),f=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),y=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),w=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),x=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const M=t.ref(0);let k=null;const T=t.ref(null),S=t.ref(0),A=t.ref(w.value[0]),E=t.ref([]);let N=t.ref("");const C={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},z=t.computed(()=>{const be=[];return g.value&&g.value.id&&(be.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(pe=>{be.push({id:pe.id,type:pe.type})})),be}),P=t.computed(()=>{if(r.clientPrivilegesBySeasons){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)return be.teamId}return 0});function O(){a.value=!1}function D(be){const pe=be.split(",");return!(pe.length<2||pe[1].split(" ").length<2)}function V(be){i.value=be}function R(be){c.value.push(be)}function j(be){s.value=be}function q(be){_.value=be}function $(be){v.value=be}function G(be){if(!D(be))return"";const pe=H(be);return`${Z(be)}. ${pe}`}function Z(be){return be.split(",")[1].split(" ")[1][0]}function H(be){const pe=be.split(",")[0].split(" ");return pe[0].length<=3&&pe.length>1?`${pe[0]} ${pe[1]}`:pe[0]}async function Y(be){try{const pe=cl.create({headers:{Authorization:`${L.value}`}});u.value={};const ce=await pe.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+be.game_id);u.value[be.home_team.team_id]=[],u.value[be.home_team.team_id].team={name:be.home_team.acronym,logo:be.home_team.logo},u.value[be.home_team.team_id].goals=[],u.value[be.home_team.team_id].red=[],u.value[be.home_team.team_id].yellow=[],u.value[be.visiting_team.team_id]=[],u.value[be.visiting_team.team_id].team={name:be.visiting_team.acronym,logo:be.visiting_team.logo},u.value[be.visiting_team.team_id].goals=[],u.value[be.visiting_team.team_id].red=[],u.value[be.visiting_team.team_id].yellow=[],ce.data.minute!=null&&(h.value={minute:ce.data.minute,recent_lapse:ce.data.recent_lapse,score:ce.data.score});for(let _e=0;_e<ce.data.plays.length;_e++)ce.data.plays[_e].category_name=="Roja"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].red||(u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].red[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].red||(u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].red[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute))),ce.data.plays[_e].category_name=="Amarilla"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].yellow||(u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].yellow||(u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].yellow[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute))),ce.data.plays[_e].event_type_name=="Gol"&&ce.data.plays[_e].status==1&&(be.home_team.team_id==ce.data.plays[_e].team_id?ce.data.plays[_e].category_name=="Autogol"?(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].goals||(u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].goals||(u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):ce.data.plays[_e].category_name=="Autogol"?(G(ce.data.plays[_e].player_name)in u.value[be.home_team.team_id].goals||(u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.home_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)):(G(ce.data.plays[_e].player_name)in u.value[be.visiting_team.team_id].goals||(u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)]={},u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event=[],u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].name=G(ce.data.plays[_e].player_name)),u.value[be.visiting_team.team_id].goals[G(ce.data.plays[_e].player_name)].event.push(ce.data.plays[_e].minute)))}catch(pe){return Promise.reject(pe)}}function K(be){a.value=!0,be.is_live!=1&&be.game_status!=0&&(be.game_status==4||Object.keys(be.minutes).length>0)?(p.value=1,u.value={plays:be.minutes,home_team:be.home_team,visiting_team:be.visiting_team}):(p.value=0,Y(be))}function le(){k=new ResizeObserver(be=>{for(const pe of be)S.value=pe.contentRect.width}),k.observe(T.value)}const oe=t.computed(()=>{let be={};return b.value&&b.value.game_id&&(be={gameId:b.value.game_id,id:b.value.game_id,seasonId:b.value.season_id,status:b.value.game_status,game_status:b.value.game_status,dateTimeUTC:b.value.date_time_utc,homeTeam:b.value.home_team,awayTeam:b.value.visiting_team,is_live:b.value.is_live,minutes:b.value.minutes}),be});t.watch(()=>oe,be=>{Object.keys(be.value).length>0&&(w.value=[],be.value.is_live==1||be.value.game_status==4?(w.value=[...y.value],A.value=y.value[0]):(w.value=[...x.value],A.value=x.value[0]),g.value.is_tactic_available==0&&w.value.pop(),M.value+=1,Y({game_id:be.value.gameId,home_team:be.value.homeTeam,visiting_team:be.value.awayTeam}),be.value.is_live==1&&setInterval(()=>{p.value=0,Y({game_id:be.value.gameId,home_team:be.value.homeTeam,visiting_team:be.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>I.state.nextGeneral.gameForAnalysis,()=>{I.commit("nextGeneral/updateIsSocketConnected",r.socket.connected)},{deep:!0,immediate:!0});function ne(be){m.value=be.is_captured,o.value=be.is_captured!==0,d.value.id!==be.id&&(d.value=be,I.commit("gameGlobal/setTournamentType",be.tournament_type))}function re(be){ve.value&&!ve.value.canPrivilegesTeamPlayVideos||((b.value.is_live||b.value.game_status===0)&&(be.liveGameConfig={gameId:b.value.game_id}),n("openmedia",be))}function te(be){n("onOpenProfile",be)}function ee(be){n("openProfileTeam",be)}function se(be){n("openProfilePlayer",be)}function he(be){Ce(be),be=="Estadísticas"&&(N.value="Comparativa")}function ue(){N.value=""}function fe(be){g.value.id!==be.id&&(g.value=be,n("change-season-id",be.id))}const ge=t.computed(()=>w.value.reduce((be,pe)=>(r.disabledSectionsIds.includes(pe.id)||ve.value&&!ve.value.canPrivilegesTeamPlayVideos&&pe.id===2||r.clientPrivilegesBySeasons&&pe.id===7||(o.value||pe.id!==5&&pe.id!==6)&&be.push(pe.name),be),[])),ve=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value&&b.value&&b.value.game_id){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)if(ke(be.playingAs),b.value.game_status===1){const pe=be.playingAs.has(b.value.playingAs);return{seasonAndPrivileges:be,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&pe,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:b.value.home_team.team_id===be.teamId,homeTeamDetails:{canPlayVideos:pe,team:b.value.home_team},awayTeamDetails:{canPlayVideos:pe,team:b.value.visiting_team}}}else{const pe=b.value.home_team.team_id===be.teamId,ce=we.value.filter(Ne=>be.playingAs.has(Ne.playingAs));return{seasonAndPrivileges:be,canPrivilegesTeamPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&ce.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:pe,homeTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&pe&&ce.length>0,team:b.value.home_team},awayTeamDetails:{canPlayVideos:r.clientPrivilegesBySeasons.canPlayVideos&&!pe&&ce.length>0,team:b.value.visiting_team}}}ke(new Set)}return C}return null}),we=t.computed(()=>{if(r.clientPrivilegesBySeasons){if(g.value){const be=r.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(be)return E.value.filter(pe=>pe.game_status===1&&be.playingAs.has(pe.playingAs))}return[]}return[]});t.watch(ge,()=>{ve.value&&!ve.value.canPrivilegesTeamPlayVideos&&A.value.id===2&&Ce("Resumen")},{deep:!0,immediate:!0});function ke(be){l.value=be}function Ce(be){if(i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let pe of c.value)clearInterval(pe);c.value=[]}A.value=w.value.find(pe=>pe.name===be)||w.value[0]}t.onMounted(()=>{le(),t.nextTick(()=>{r.isSynchronization&&Ce("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(k&&k.disconnect(),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let be of c.value)clearInterval(be);c.value=[]}Yw()});function Ie(be){if(be.playingAs||(be.playingAs=P.value?be.home_team.team_id===P.value?1:2:0),i.value!=null&&(clearInterval(i.value),i.value=null),v.value!=null&&(clearInterval(v.value),v.value=null),_.value!=null&&(clearInterval(_.value),_.value=null),s.value!=null&&(clearInterval(s.value),s.value=null),c.value.length>0){for(let pe of c.value)clearInterval(pe);c.value=[]}b.value=be,be.is_live&&be.game_status===4?SP():EP()}function Ve(be){E.value=be.map(pe=>{const ce={...pe};return P.value&&(ce.playingAs=ce.home_team.team_id===P.value?1:2),ce})}return(be,pe)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:T},[t.createElementVNode("div",Uda,[t.withDirectives(t.createElementVNode("div",Hda,[t.createVNode(t.unref(EM),{"current-season-id":e.currentSeasonId,onInput:ne,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(IM),{"current-season-id":e.currentSeasonId,seasons:d.value.seasons,onInput:fe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Gda,[t.createVNode(t.unref(Uae),{"plays-live":u.value,"info-live":h.value,token:f.value,is_captured:m.value,"await-for-seasons":"",seasons:z.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":P.value,"only-games-team-id":P.value,"tournament-type":t.unref(I).state.gameGlobal.tournamentType,onChangeGameCarousel:Ie,onOpenModalEvent:K,onChangeGamesByClientPrivileges:Ve},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(YD,{key:0,width:S.value,onCloseModalEventsLive:O,plays:u.value,game:b.value,type:p.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Wda,[t.createElementVNode("div",qda,[t.createElementVNode("div",Yda,[t.createVNode(t.unref(rS),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:S.value<400||S.value<700?"max-content":S.value<840||S.value<1050?"155px":"165px","selected-option":A.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Ce},null,8,["buttons","width","selected-option"])])]),oe.value&&oe.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(A.value.componentName),{key:M.value,game:oe.value,onIntervalid:V,onIntervalidpossesion:$,onIntervalidhighlive:q,onIntervalidtops:R,onIntervalidgs:j,subsection:t.unref(N),seasonSelected:g.value,tournamentSelected:d.value,showLineups:o.value,socket:e.socket,is_captured:m.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ve.value?ve.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":l.value,"client-privileges-team-id":P.value,"play-videos-privileges":ve.value,token:f.value,onResetSubsection:ue,onOpenmedia:re,onOnOpenProfile:te,onOpenProfileTeam:ee,onOpenProfilePlayer:se,onChangeToTab:he,onOpenMediaPlayer:re},null,40,["game","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-0b439320"]]);async function gd({url:e,options:n={},retries:r=3}){return await cl.get(e,n).then(I=>I).catch(I=>r>0?gd({url:e,options:n,retries:r-1}):I)}async function BJ({seasonId:e},n=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(r){if(n)return BJ({seasonId:e},!1);throw new Error(r)}}async function Xda({seasonId:e}){try{return(await gd({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}async function Kda({seasonId:e}){try{return(await gd({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}function Qda(e,n,r,I,L,d,g=!1){const a=r.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const m=d&&b[L.teamId]?b[L.teamId]!==d:!1,i=n===1?2:1;return(g||I.includes(b[L.gameId]))&&(!n||(m?i:n)===b[L.playingAs])&&(r.includes(b[L.matchResult])&&b[L.teamId]===d||a.includes(b[L.matchResult])&&b[L.teamId]!==d)})}function OJ(e,n,r,I,L){return n.length===2&&r.length===3&&I.length===6?e:e.filter(d=>n.includes(d[L.playingAs])&&r.includes(d[L.matchResult])&&I.includes(d[L.section]))}async function zJ({seasonId:e}){try{const n=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await gd({url:n})).data}catch(n){return Promise.reject(n)}}async function eua({seasonId:e,gameId:n}){try{const r=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${n}`,{data:I}=await gd({url:r});return I}catch(r){return Promise.reject(r)}}async function tua({gameId:e}){try{const n=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await gd({url:n})).data.data}catch(n){return Promise.reject(n)}}async function aua({gameId:e}){try{const n=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await gd({url:n})).data.data||[]}catch(n){return Promise.reject(n)}}const nua=["categoryId","matchLapse","section","matchResult","playingAs","total"];let BE=null;function LJ(){return BE||(BE=V0(nua)),BE}async function rua(e){try{const n=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await gd({url:n})).data}catch(n){return Promise.reject(n)}}async function FJ({seasonId:e,teamId:n}){try{return await gd({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${n}`})}catch(r){return Promise.reject(r)}}async function iua(e){try{const n=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await gd({url:n})}catch(n){return Promise.reject(n)}}async function oua(e){try{return await gd({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(n){return Promise.reject(n)}}const sua={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,n,r,I){return Qda(e.seasonPlays,I["filterGeneral/getPlayingAs"],I["filterGeneral/getResults"],I["filterGeneral/getSelectedGamesIds"],LJ(),I["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const n=e.currentSeasonGames.reduce((r,I)=>{const L={...I};return L.home_team=e.currentSeasonTeams.find(d=>d.team_id===I.home_team),L.visiting_team=e.currentSeasonTeams.find(d=>d.team_id===I.visiting_team),r[I.matchday_abbreviation]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]?r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date].push(L):r[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]=[L]:r[I.matchday_abbreviation]={[I.game_status===3?"canceled":I.date]:[L]},r},{});for(let[r,I]of Object.entries(n))n[r]=Object.entries(I).map(([L,d])=>({date:L,games:d})),n[r].sort((L,d)=>L.date<d.date?-1:L.date>d.date?1:0);return n},matchdaysDates(e,n){let r=[];if(n.nextGamesSchedule){let I=Object.keys(n.nextGamesSchedule);for(let L of I){let d=Number(L.replace("M","")),g=n.nextGamesSchedule[L].map(a=>({matchday:d,date:new Date(a.date)}));r=r.concat(g)}}return r},closestMatchDay(e,n){let r=new Date,I=0,L=-new Date(0,0,0).valueOf(),d=n.matchdaysDates,g=d.length;for(let a=0;a<d.length;a++)I=Math.abs(d[a].date-r),I<L&&(g=a,L=I);return d[g]?d[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,n){e.booleanIsLiveGamesModalOpen=n},setBooleanAreLiveGames(e,n){e.booleanAreLiveGames=n},updateSeasonPlays(e,n){e.seasonPlays=n},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateSelectedRound(e,n){e.selectedRound=n}},actions:{async getSeasonPlays({commit:e,rootGetters:n},r=!1){try{const I=await BJ({seasonId:n["filterGeneral/getSeasonId"]});if(r)return I;e("updateSeasonPlays",I)}catch(I){return Promise.reject(I)}},async getCurrentSeasonGames({commit:e,rootGetters:n}){try{const r=await zJ({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,rootGetters:n}){try{const r=await rua({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",r.teams)}catch(r){return Promise.reject(r)}},async isDataFilled({state:e,dispatch:n,commit:r}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return r("setIsSectionLoading",!1,{root:!0}),!0;const I=[void 0,void 0];return e.currentSeasonGames.length===0&&(I[0]=n("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(I[1]=n("getCurrentSeasonTeams")),await Promise.all(I),!1}catch(I){throw new Error(I)}}}}};async function lua({filter:e}){try{const n=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:r}=await gd({url:n});return r}catch(n){return Promise.reject(n)}}const cua=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let OE=null;function dua(){return OE||(OE=V0(cua)),OE}class F5{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(n){n>this.maximumLiveSection&&(this.maximumLiveSection=n)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(n,r,I){I&&(this.setMaximumLiveSection(n),this.accomplished.totalLive+=r,this.accomplished.totalsLiveTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,r)),this.accomplished.totalPostGame+=r,this.accomplished.avgPostGameTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,n,r)}increaseReceivedByOne(n,r,I){I&&(this.setMaximumLiveSection(n),this.received.totalLive+=r,this.received.totalsLiveTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,r)),this.received.totalPostGame+=r,this.received.avgPostGameTrendLive.sections[n-1]+=r,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,n,r)}increaseTrendLiveAccumulatedByOne(n,r,I){for(let L=r-1;L<n.accumulated.length;L++)n.accumulated[L]+=I}decreaseAccomplishedLiveByOne(n,r){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=r),this.accomplished.totalsLiveTrendLive.sections[n-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[n-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,r))}decreaseReceivedLiveByOne(n,r){this.received.totalLive>0&&(this.received.totalLive-=r),this.received.totalsLiveTrendLive.sections[n-1]>0&&(this.received.totalsLiveTrendLive.sections[n-1]-=r,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,r))}decreaseTotalsLiveTrendLiveAccumulatedByOne(n,r,I){for(let L=n.accumulated.length-1;L>=r-1;L--)n.accumulated[L]-=I}calculateAvg(n){n&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/n,this.received.avgPostGame=this.received.totalPostGame/n,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,n),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,n),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,n),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,n))}getAvgPostGameTrendLiveAvg(n,r){return n.map(I=>I/r)}calculateRanking(n,r,I,L,d,g,a,b){let m=[];L===3&&n&&n.length&&(I.playingAs.length!==2||I.matchResult.length!==3)?m=Array.from(n.reduce((v,_)=>{const c=_[r.playingAs]===1,s=c?"1":"2",o=v.get(_[r.gameId]);if(o)o[s]?o[s].arrayPlays.push(_):o[s]={numberTeamId:_[r.teamId],arrayPlays:[_]};else{const l={numberMatchResult:_[r.matchResult]};c&&(l[1]={numberTeamId:_[r.teamId],arrayPlays:[_]}),v.set(_[r.gameId],l)}return v},new Map).values()).reduce((v,_)=>{const c=I.playingAs.length===2?"both":I.playingAs[0].toString();return(c==="both"&&(_[1].numberTeamId===I.teamId||_[2].numberTeamId===I.teamId)||c!=="both"&&_[c].numberTeamId===I.teamId)&&I.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>I.sections.includes(v[r.section])):(m=n?[...n]:[],a&&n&&(m=n.filter(i=>I.playingAs.includes(i[r.playingAs])&&I.matchResult.includes(i[r.matchResult])&&I.sections.includes(i[r.section])))),this.setTeamRanking(m,L,r,I.teamId,g,"accomplished",b)}setTeamRanking(n,r,I,L,d,g,a){let b=null,m=null;r===3&&(b=new Map,m={},n.forEach(_=>{const c=b.get(_[I.gameId]);c?c[_[I.teamId.toString()]]?c[_[I.teamId.toString()]]+=_[I.total]:c[_[I.teamId.toString()]]=_[I.total]:b.set(_[I.gameId],{[_[I.teamId.toString()]]:_[I.total]})}),Array.from(b.values()).forEach(_=>{const[c,s]=Object.keys(_).map(l=>l),o=_[c]+_[s];this.addPassesAvgByTeam(m,c,o?_[c]/o:0),this.addPassesAvgByTeam(m,s,o?_[s]/o:0)}));const i=d.sort((_,c)=>_.team_id-c.team_id).map(_=>{if(r===3){const c=m[_.team_id.toString()];return{teamId:_.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=n.reduce((s,o)=>o[I.teamId]===_.team_id&&r===o[I.categoryId]?s+o[I.total]:s,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?c/_[`${a}FilterGames`]:0,total:c}}}).sort((_,c)=>c.points-_.points);this.accomplished.arrayRankings=i;const v=i.findIndex(_=>_.teamId===L);r===3&&(this.accomplished.avgPreGame=i[v].points),this[g].ranking=v+1,this[g].leader=i[0]}addPassesAvgByTeam(n,r,I){n[r]?(n[r].numberGamesCount+=1,n[r].numberTotalPassesAvg+=I):n[r]={numberGamesCount:1,numberTotalPassesAvg:I}}}class po{constructor(n,r,I,L,d,g,a,b,m,i){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new F5);ll(this,"visitingTeam",new F5);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${I.accomplished}-${I.received}`,this.accomplishedCategoryIds=n||[],this.receivedCategoryIds=r||[],this.generalCategoriesIds=I||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=d||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=b||0,this.betOnly=m||!1,this.isPercent=i||!1}addLeaguePlays(n,r,I){n.length===0||!I||this.isLeagueDataCalculated||(n.forEach(L=>{this.isAccomplishedLeaguePlay(L[r.categoryId])&&(this.leagueAccomplishedAccumulator+=L[r.total]),this.isReceivedLeaguePlay(L[r.categoryId])&&(this.leagueReceivedAccumulator+=L[r.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*I)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*I)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(n,r,I){let L="-";for(const[d,g]of Object.entries(this.generalCategoriesIds))n===g&&(L=`${d==="accomplished"?"0":"1"}${L}`),r===g&&(L=`${L}${d==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=I)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(n,r,I,L,d){!I||!d||n!==this.homeTeamType&&n!==this.visitingTeamType||(I.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[n].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[n].increaseReceivedByOne(g[L.section],g[L.total])}),this[n].calculateAvg(d))}addLivePlay(n,r,I,L,d=!1,g=!1){(n===this.homeTeamType||n===this.visitingTeamType)&&I[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[n].increaseAccomplishedByOne(I[L.section],I[L.total],!0)}subtractLivePlay(n,r,I,L,d){(n===this.homeTeamType||n===this.visitingTeamType)&&(this.isAccomplishedPlay(I[L.categoryId])&&!d?this[n].decreaseAccomplishedLiveByOne(I[L.section],I[L.total]):this.isReceivedPlay(I[L.categoryId])&&d&&this[n].decreaseReceivedLiveByOne(I[L.section],I[L.total]))}isAccomplishedLeaguePlay(n){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(I=>n===I||`${n}_r`===I)}isReceivedLeaguePlay(n){return!!this.receivedCategoryIds.find(r=>n===r)}isAccomplishedPlay(n){return this.generalCategoriesIds.accomplished===n}isReceivedPlay(n){return this.generalCategoriesIds.received===n}calcRankingLeague(n,r,I,L,d,g=!1){this[this.homeTeamType].calculateRanking(n,r,I,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(n,r,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,d,g,this.visitingTeamType)}resetData(){this.homeTeam=new F5,this.visitingTeam=new F5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(n){return this.generalCategoriesIds.accomplished===n||this.generalCategoriesIds.received===n}}const uua={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new po([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new po([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new po([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new po([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new po([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new po([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new po([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new po([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new po([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new po([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new po([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new po([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new po([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new po([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new po([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new po([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new po([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new po([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new po([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new po([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new po([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new po([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new po([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new po([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new po([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new po([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new po([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new po([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new po([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new po([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new po([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new po([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new po([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new po([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new po([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new po([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new po([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new po([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},hua=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],pua=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let zE=null;function fua(){return zE||(zE=V0(pua)),zE}const mua=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let LE=null;function gua(){return LE||(LE=V0(mua)),LE}function D5(e,n,r){return[r.get(e[n.categoryId])||[],e[n.teamId],e[n.matchResult],e[n.playingAs],e[n.matchLapse],e[n.section],e[n.total]]}function DJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function FE(e,n,r){let I=[...n];return e[r.categoryId]===2&&(I[0]=14),e[r.categoryId]===20&&(I[0]=15),[14,15].includes(I[0])?I:null}const yua=TP(),vua=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],_ua={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:LJ(),indexesTSP:dua(),indexesLS:fua(),indexesTLP:gua(),nextGamesDataStructure:uua,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(n=>n.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return hua.filter(n=>n.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return OJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return OJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(n=>n.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(n=>e.homeTeamFilter.playingAs.includes(n[0])).filter(n=>e.homeTeamFilter.matchResult.includes(n[1])).reduce((n,r)=>n+r[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(n=>e.visitingTeamFilter.playingAs.includes(n[0])).filter(n=>e.visitingTeamFilter.matchResult.includes(n[1])).reduce((n,r)=>n+r[2],0)},filledDataStructure(e,n){if(e.currentSeasonPlays)for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&I.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&I.visitingTeam.resetTotals(),I.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),I.addTeamPlays(I.homeTeamType,e.gameForAnalysis.home_team,n.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredHomeGames),I.addTeamPlays(I.visitingTeamType,e.gameForAnalysis.visiting_team,n.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,n){return Object.values(n.filledDataStructure).sort((r,I)=>r.priority-I.priority)},statisticData(e,n){for(const r of Object.values(n.filledDataStructure))if(r.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&r.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return r.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,n){e.currentTournamentName=n},setBetSubcategoriesObjects(e,n){e.betSubcategoriesObjects=n},setRegularSeasonName(e,n){e.regularSeasonName=n},setBetSubcategories(e,n){e.betSubcategories=n},setBetDescription(e,n){e.betDescription=n},setSeasonId(e,n){e.seasonId=Number(n)},setHome(e,n){e.homeTeamInfo=n},setAway(e,n){e.awayTeamInfo=n},setMenuOptionActive(e,n){e.menuOptionActive=n},setPastSeasonId(e,n){e.pastSeasonId=n},setUsePastSeasonId(e,n){e.usePastSeasonId=n,n&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,n){e.showPostMatch=n},setHomeResultGame(e,n){e.homeResultGame=n},setAwayResultGame(e,n){e.awayResultGame=n},updateIsSocketConnected(e,n){e.isSocketConnected=n,n&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&uie(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n,e.currentSeasonTeams.forEach(r=>{r.playedGames=e.currentSeasonGames.reduce((I,L)=>{if(L.game_status===1&&(L.home_team===r.team_id||L.visiting_team===r.team_id)){const d=L.score[0]-L.score[1],g=L.home_team===r.team_id;I.push({playingAs:g?1:2,matchResult:d===0?3:g?d>0?1:2:d<0?1:2})}return I},[])})},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateGameId(e,n){e.gameId=n},updateGameForAnalysis(e,n){e.gameForAnalysis=n,e.isLive=!!n.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,n){e.selectedAnalysis=n},updateShowLiveData(e,n){e.showLiveData=n},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,n){e.idAssetSelected=n},updateStats(e,n){e.currentSeasonPlays=n},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:n,needsFormat:r=!1}){if(r){if(!n||!n.local||!n.local.statistics||!n.visit||!n.visit.statistics)return;e.homeTeamFilter=NP(e.homeTeamFilter,n.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=NP(e.visitingTeamFilter,n.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==n.local.statistics.block&&(e.selectedStatisticTypeBlock=n.local.statistics.block)}else e.homeTeamFilter={...n.homeTeamFilter,statistics:0},e.visitingTeamFilter={...n.visitingTeamFilter,statistics:0}},updateFinishedGames(e,n){e.totalSeasonFinishedGames=n},updateHomeTeamPlays(e,n){e.homeTeamPlays=n},updateVisitingTeamPlays(e,n){e.visitingTeamPlays=n},addSpecialMentions(e,n){const r=Object.values(e.nextGamesDataStructure);r.forEach(I=>{for(const L of Object.values(I.subcategories))L.resetMentions()}),r.forEach(I=>{for(const L of n)for(const d of Object.values(I.subcategories))d.addSpecialMention(L[0],L[1],L[2])})},setDefaultFilter(e,n){e.defaultFilter={homeTeamFilter:{...n.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...n.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,n){if(!e.livePlays.has(n[e.indexesTLP.playId])){e.livePlays.set(n[e.indexesTLP.playId],n);const I=D5(n,e.indexesTLP,e.categoriesMap);for(const L of Object.values(e.nextGamesDataStructure))for(const d of Object.values(L.subcategories))d.addLivePlay(e.gameForAnalysis.home_team===I[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",I[e.indexesTSP.teamId],I,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,n){const r=!!n[e.indexesTLP.length],I=e.livePlays.get(n[e.indexesTLP.playId]);if(ooe(I,n))return;let L="";const d=e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";I&&(L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=D5(I,e.indexesTLP,e.categoriesMap),a=FE(I,g,e.indexesTLP),b=D5(n,e.indexesTLP,e.categoriesMap),m=FE(n,b,e.indexesTLP);for(const i of Object.values(e.nextGamesDataStructure))for(const v of Object.values(i.subcategories))I&&(v.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r),a&&v.subtractLivePlay(L,a[e.indexesTSP.teamId],a,e.indexesTSP,r)),v.addLivePlay(d,b[e.indexesTSP.teamId],b,e.indexesTSP,e.isLive,r),m&&v.addLivePlay(d,m[e.indexesTSP.teamId],m,e.indexesTSP,e.isLive,r);e.livePlays.set(n[e.indexesTLP.playId],n)},deleteLiveGamePlay(e,n){const r=!!n[e.indexesTLP.length],I=e.livePlays.get(n[e.indexesTLP.playId]);let L="";if(I){L=e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(I[e.indexesTLP.playId]);const d=D5(I,e.indexesTLP,e.categoriesMap),g=FE(n,d,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const b of Object.values(a.subcategories))b.subtractLivePlay(L,d[e.indexesTSP.teamId],d,e.indexesTSP,r),g&&b.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,r)}},clearLiveTotals(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.homeTeam.resetTotalsLive(),r.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,n){e.statistics=n},updateOldSeasonId(e,n){e.oldSeasonId=n},addRankingInSubcategories(e,{getters:n,isPremiumAccount:r}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(d=>{d.homeTeamFilterGames=d.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,d.visitingTeamFilterGames=d.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const I=[],L=new Map;for(const d of Object.values(e.nextGamesDataStructure))for(const g of Object.values(d.subcategories))I.push(g);n.rankingData.forEach(d=>{for(const g of I)if(g.isInGeneralCategory(d[e.indexesLS.categoryId])){L.has(g.id)?L.get(g.id).push(d):L.set(g.id,[d]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,n){e.homeGames=DJ(n)},setVisitingGames(e,n){e.visitingGames=DJ(n)},generateCategoriesMap(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.accomplishedCategoryIds.forEach(I=>{const L=e.categoriesMap.get(I);L?L.push(r.generalCategoriesIds.accomplished):e.categoriesMap.set(I,[r.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const n of Object.values(e.nextGamesDataStructure))for(const r of Object.values(n.subcategories))r.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:n},{command:r}){r==="on"?n("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):n("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},n){try{const g=await oua({gameId:n.gameId});if(g){var r=[],I=[],L={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},d={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(r=g.data.data.filter(a=>a[1]==n.homeTeam),I=g.data.data.filter(a=>a[1]==n.awayTeam),L=g.data.games,d=g.data.games),e("updateHomeTeamPlays",r),e("updateVisitingTeamPlays",I),e("setHomeGames",L),e("setVisitingGames",d)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:n},r){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let I=[];e("updateGameForAnalysis",r.gameInfo),I.push(n("setAndGetStatsPostMatch",{gameId:r.game,homeTeam:r.homeTeam,awayTeam:r.awayTeam})),await Promise.all(I)}catch(I){throw new Error(I)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:n,commit:r},{gameId:I,isTeamsAnalysis:L,currentSeasonId:d,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:b=null,isCupGame:m=!1}){try{let i={},v=e.seasonId!==Number(d);const _=[];r("setIsSectionLoading",!0,{root:!0}),r("setUsePastSeasonId",!1),v&&r("setSeasonId",d),r("updateGameId",Number(I)),e.oldSeasonId!==e.seasonId&&r("resetNextGamesDataStructure");const c=await n("getCurrentSeasonGames",Number(I));if(r("leagueGeneral/updateCurrentSeasonGames",c,{root:!0}),i=c.find(s=>s.game_id===Number(I)),!i&&b&&(i=b),i&&r("updateGameForAnalysis",i),i.game_status!==1&&((g||e.categoriesMap.size===0)&&r("generateCategoriesMap"),m||await n("checkTeamsData",{gameId:I,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(n("getSeasonStatistics"))),e.usePastSeasonId){const s=await n("getCurrentSeasonGamesLast");r("leagueGeneral/updateCurrentSeasonGames",s,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(s=>i.home_team===s.team_id))&&_.push(n("getCurrentSeasonTeams")),r("setHomeResultGame",i.score[0]),r("setAwayResultGame",i.score[1]),L?i.game_status!==1?(await n("fillStatisticData",{gameId:I,gameinfo:i,promises:_,defaultFilter:a}),r("updateShowPostMatchData",!1)):(r("updateStats",[]),r("updateShowPostMatchData",!0),_.push(n("fillStatisticDataPostMatch",{game:I,homeTeam:i.home_team,awayTeam:i.visiting_team,gameInfo:i})),await Promise.all(_)):r("setIsSectionLoading",!1,{root:!0})}catch(i){return Promise.reject(i)}},async fillStatisticData({commit:e,dispatch:n,getters:r,rootGetters:I,state:L},{gameId:d,gameinfo:g,promises:a=[],defaultFilter:b=null}){let m=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(n("getCurrentLiveGamePlays",d)),a.push(n("getSpecialMentionsByGame",d)),a.push(n("getHomeTeamPlays")),a.push(n("getVisitingTeamPlays")),a.push(n("getCurrentSeasonPlays")),b&&a.push(lua(b)),m=await Promise.all(a)}catch(i){throw new Error(i)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]}),b){const[i]=m.pop();i&&(e("setBetSubcategories",i.categories),e("setBetDescription",i.sectionDescription),e("setDefaultFilter",i.params),e("updateFilterAux"),e("updateFilters",{filters:L.defaultFilter,needsFormat:!1}),n("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:n,rootState:r,commit:I},{gameId:L,isFromBet:d}){try{I("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},n){try{const r=await aua({gameId:n});e("addSpecialMentions",r)}catch(r){return Promise.reject(r)}},async getCurrentSeasonGames({commit:e,state:n},r){try{const{teams:I,games:L,past_season_id:d,tournament_id:g}=await eua({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,gameId:r}),a=vua.find(b=>b.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",I[0]),e("setAway",I[1]),n.usePastSeasonId||e("setPastSeasonId",d),await e("updateCurrentSeasonGames",L),L&&Array.isArray(L)&&e("updateFinishedGames",L.reduce((b,m)=>(m.game_status===1&&(b+=1),b),0)),L}catch(I){return Promise.reject(I)}},async getCurrentSeasonGamesLast({commit:e,state:n}){try{const{games:r,past_season_id:I}=await zJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});return n.usePastSeasonId||e("setPastSeasonId",I),await e("updateCurrentSeasonGames",r),r&&Array.isArray(r)&&e("updateFinishedGames",r.reduce((L,d)=>(d.game_status===1&&(L+=1),L),0)),r}catch(r){return Promise.reject(r)}},async getCurrentSeasonTeams({commit:e,state:n}){try{const r=await iua({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateCurrentSeasonTeams",r.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:n}){try{const r=n.usePastSeasonId?n.pastSeasonId:n.seasonId,I=await Kda({seasonId:r});e("updateSeasonStatistics",I),e("updateOldSeasonId",r)}catch(r){return Promise.reject(r)}},updateRankingInSubcategories({state:e,commit:n,getters:r,rootGetters:I}){e.currentSeasonGames.length>0&&n("addRankingInSubcategories",{getters:r,isPremiumAccount:I["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:n}){try{const r=await FJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.home_team});r.data&&(e("updateHomeTeamPlays",r.data.data),e("setHomeGames",r.data.games))}catch(r){return Promise.reject(r)}},async getVisitingTeamPlays({commit:e,state:n}){try{const r=await FJ({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.visiting_team});r.data&&(e("updateVisitingTeamPlays",r.data.data),e("setVisitingGames",r.data.games))}catch(r){return Promise.reject(r)}},async getCurrentSeasonPlays({commit:e,state:n}){try{const r=await Xda({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateStats",r)}catch(r){return Promise.reject(new Error(r))}},async getCurrentLiveGamePlays({state:e,commit:n},r){try{const I=await tua({gameId:r});e.livePlays=new Map,I.forEach(L=>{e.gameForAnalysis.game_id===L[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===L[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===L[e.indexesTLP.teamId])&&n("addLiveGamePlay",L)})}catch(I){throw new Error(I)}},socket_new({state:e,commit:n},r){const I=r[1];(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&n("addLiveGamePlay",I)},socket_update({state:e,commit:n},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===I[e.indexesTLP.teamId])&&n("updateLiveGamePlay",I)},socket_delete({state:e,commit:n},r){const I=r[1];e.gameForAnalysis.game_id===I[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===I[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===I[e.indexesTLP.teamId])&&n("deleteLiveGamePlay",I)},exitChannel({state:e,getters:n,rootState:r,rootGetters:I,commit:L}){const d=I["loginGeneral/getPremiumAccount"];n.isLive&&d&&(L("updateShowLiveData",!1),L("clearLiveTotals"),e.livePlays.clear(),yua.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.homeTeam.resetTotalsLive(),I.visitingTeam.resetTotalsLive(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const r of Object.values(e.nextGamesDataStructure))for(const I of Object.values(r.subcategories))I.homeTeam.resetTotals(),I.visitingTeam.resetTotals(),I.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(r=>{for(const I of Object.values(r.subcategories))I.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function bua(){try{const{data:e}=await gd({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const xua={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,n){e.booleanIsStatisticModalOpen=n},setTournamentType(e,n){e.tournamentType=n},setSectionRef(e,n){e.sectionRef=n},setSectionAnalytics(e,n){e.sectionAnalytics=n},setSeccionBetsGolTipster(e,n){e.seccionBetsGolTipster=n},setPreviewSectionAnalytics(e,n){e.previewSectionAnalytics=n},setVideoSrc(e,n){e.videoSrc=n},setVideoModalVisibility(e,n){e.isVideoModalVisible=n},setSelectedTournament(e,n){e.selectedTournament=n},setTournaments(e,n){e.tournaments=n.map(r=>({...r.tournament,seasons:r.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,n){e.tournamentSelected=n}},actions:{async fetchTournaments({state:e,commit:n}){try{if(e.tournaments.length===0){const r=await bua();n("setTournaments",r)}}catch(r){throw new Error(r)}}}}};async function wua({seasonId:e,localTeamId:n,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${n}/${r}`;return(await gd({url:I})).data}catch(I){return Promise.reject(I)}}async function kua({seasonId:e,localTeamId:n,visitingTeamId:r}){try{const I=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${n}/${r}`;return(await gd({url:I})).data}catch(I){return Promise.reject(I)}}const VJ=(e,n)=>{let r={};return e.forEach((I,L)=>{L==3&&(n[0]==35||n[0]==54)&&(n[L]==2?n[L]=1:n[L]=2),L==2&&(n[0]==35||n[0]==54)&&(n[L]==1?n[L]=2:n[L]==2&&(n[L]=1)),r[I]=n[L]}),r},RJ=(e,n)=>e.filter(I=>{const L=n.playingAs.includes(I.playing_as),d=n.matchResult.includes(I.match_result),g=n.sections.includes(I.section);return L&&d&&g}),$J=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(n,r,I){return typeof I>"u"||+I==0?Math[n](r):(r=+r,I=+I,isNaN(r)||!(typeof I=="number"&&I%1===0)?NaN:(r=r.toString().split("e"),r=Math[n](+(r[0]+"e"+(r[1]?+r[1]-I:-I))),r=r.toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+I:I))))}Math.ceil10||(Math.ceil10=function(n,r){return e("ceil",n,r)})})();function jJ(e,n){let r=n*-1;return Math.ceil10(e,r)}const Cua={...xua,...sua,..._ua,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,n,r)=>{const I=e.xGLocalPlays,L="homeTeamFilter",d=r.nextGeneral[L];return RJ(I,d)||[]},playsAway:(e,n,r)=>{const I=e.xGVisitingPlays,L="visitingTeamFilter",d=r.nextGeneral[L];return RJ(I,d)},goalsQtyLocal:(e,n)=>{const r=$J.find(I=>I.name==="Goles");return n.playsLocal.filter(I=>r.categories.includes(I.category_id)).length},goalsQtyAway:(e,n)=>{const r=$J.find(I=>I.name==="Goles");return n.playsAway.filter(I=>r.categories.includes(I.category_id)).length},shotsOnGoalQtyLocal:(e,n)=>n.playsLocal.filter(r=>r.category_id===510).length,shotsOnGoalQtyAway:(e,n)=>n.playsAway.filter(r=>r.category_id===510).length,xGLocal:(e,n)=>{const r=new Set;let I=n.playsLocal.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return jJ(I,2)},xGAway:(e,n)=>{const r=new Set;let I=n.playsAway.reduce((L,d)=>(r.has(d.moment_of_play)||(r.add(d.moment_of_play),L+=d.xG2),L),0);return jJ(I,2)}},mutations:{setTeamSelected(e,n){e.teamSelected=n},setPlays(e,n){e.xGLocalPlays=n.local_team.map(r=>VJ(n.data_headers,r)),e.xGVisitingPlays=n.visiting_team.map(r=>VJ(n.data_headers,r))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:n,localTeamId:r,visitingTeamId:I,postMatch:L=!1}){try{var d={};L?d=await kua({seasonId:n,localTeamId:r,visitingTeamId:I}):d=await wua({seasonId:n,localTeamId:r,visitingTeamId:I}),e("setPlays",d)}catch(g){return Promise.reject(g)}}}}}};function Tua(e){for(const[n,r]of Object.entries(Cua))e.hasModule(n)||e.registerModule(n,r)}const Sua={class:"subcategory-group"},Eua={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Sua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(uo),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Aua=Ao(Eua,[["__scopeId","data-v-ae6f3d72"]]),Mua={class:"filter-subcategories"},Iua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Mua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Aua,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),V5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Pua={class:"details__header"},Nua=V5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Bua={class:"details__header__checkbox"},Oua={class:"details__body"},zua={class:"details__body__playing-as"},Lua=["onClick"],Fua={class:"details__header"},Dua=V5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Vua={class:"details__header__checkbox"},Rua={class:"details__body"},$ua=V5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),jua={class:"details__body__game-section"},Uua=["onClick"],Hua={class:"details__body"},Gua=V5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Wua={class:"details__body__game-section"},qua=["onClick"],Yua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__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 n=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(i=>i.isSelected)),I=t.computed(()=>n.gameSections.every(i=>i.isSelected)),L=t.computed(()=>n.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function g(i){i?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(i){n.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function b(i){n.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",Pua,[Nua,t.createElementVNode("div",Bua,[t.createVNode(t.unref(uo),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",Oua,[t.createElementVNode("div",zua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>a(_)},t.toDisplayString(_.name),11,Lua))),128))])]),t.createElementVNode("div",Fua,[Dua,t.createElementVNode("div",Vua,[t.createVNode(t.unref(uo),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Rua,[$ua,t.createElementVNode("div",jua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Uua))),128))])]),t.createElementVNode("div",Hua,[Gua,t.createElementVNode("div",Wua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,qua))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Zua={class:"filter-field"},Jua=Object.freeze(Object.defineProperty({__proto__:null,default:Ao({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",Zua,[t.createVNode(t.unref(gG),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Xua={class:"subcategory-group"},Kua={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",Xua,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,I=>(t.openBlock(),t.createBlock(t.unref(ho),{key:I.id,modelValue:I.isSelected,"onUpdate:modelValue":L=>I.isSelected=L,label:I.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Qua=Mo(Kua,[["__scopeId","data-v-ae6f3d72"]]),eha={class:"filter-subcategories"},tha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("div",eha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,I=>(t.openBlock(),t.createElementBlock("div",{key:I.id,class:"filter-subcategories__group"},[t.createVNode(Qua,{subcategoryGroup:I},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),R5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),aha={class:"details__header"},nha=R5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),rha={class:"details__header__checkbox"},iha={class:"details__body"},oha={class:"details__body__playing-as"},sha=["onClick"],lha={class:"details__header"},cha=R5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),dha={class:"details__header__checkbox"},uha={class:"details__body"},hha=R5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),pha={class:"details__body__game-section"},fha=["onClick"],mha={class:"details__body"},gha=R5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),yha={class:"details__body__game-section"},vha=["onClick"],_ha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__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 n=e;t.useCssVars(i=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const r=t.computed(()=>n.playingAs.every(i=>i.isSelected)),I=t.computed(()=>n.gameSections.every(i=>i.isSelected)),L=t.computed(()=>n.gameSections.reduce((i,v)=>(v.value<=3?i.firstHalf.push(v):i.secondHalf.push(v),i),{firstHalf:[],secondHalf:[]})),d=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function g(i){i?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(i){n.playingAs.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function b(i){n.gameSections.filter(v=>v.isSelected).length===1&&i.isSelected||(i.isSelected=!i.isSelected)}function m(i){i?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",aha,[nha,t.createElementVNode("div",rha,[t.createVNode(t.unref(ho),{label:"Todos","model-value":r.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",iha,[t.createElementVNode("div",oha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>a(_)},t.toDisplayString(_.name),11,sha))),128))])]),t.createElementVNode("div",lha,[cha,t.createElementVNode("div",dha,[t.createVNode(t.unref(ho),{label:"Todos","model-value":I.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",uha,[hha,t.createElementVNode("div",pha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,fha))),128))])]),t.createElementVNode("div",mha,[gha,t.createElementVNode("div",yha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,vha))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),bha={class:"filter-field"},xha=Object.freeze(Object.defineProperty({__proto__:null,default:Mo({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(I,L)=>L+1));function r(){}return(I,L)=>(t.openBlock(),t.createElementBlock("div",bha,[t.createVNode(t.unref(iY),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":r},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Uc.GSCGameData=Jda,Uc.connectSocket=SP,Uc.disconnectSocket=EP,Uc.getSocket=TP,Uc.registerStoreModules=Tua,Object.defineProperty(Uc,Symbol.toStringTag,{value:"Module"})});
|