@golstats/gsc-lineups-reports 1.1.2 → 1.1.4

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.
@@ -1,13 +1,13 @@
1
- (function(ye,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ye=typeof globalThis<"u"?globalThis:ye||self,t(ye.GSCLineupsReports={},ye.Vue))})(this,(function(ye,t){"use strict";function Gt(e,i){return function(){return e.apply(i,arguments)}}const{toString:_s}=Object.prototype,{getPrototypeOf:Se}=Object,{iterator:Fe,toStringTag:Yt}=Symbol,xe=(({hasOwnProperty:e})=>(i,s)=>e.call(i,s))(Object.prototype),Be=(e,i)=>{let s=e;const a=[];for(;s!=null&&s!==Object.prototype;){if(a.indexOf(s)!==-1)return!1;if(a.push(s),xe(s,i))return!0;s=Se(s)}return!1},bs=(e,i)=>e!=null&&Be(e,i)?e[i]:void 0,dt=(e=>i=>{const s=_s.call(i);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),te=e=>(e=e.toLowerCase(),i=>dt(i)===e),We=e=>i=>typeof i===e,{isArray:_e}=Array,be=We("undefined");function Ee(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kt=te("ArrayBuffer");function ws(e){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(e):i=e&&e.buffer&&Kt(e.buffer),i}const Cs=We("string"),v=We("function"),Zt=We("number"),Ie=e=>e!==null&&typeof e=="object",ks=e=>e===!0||e===!1,qe=e=>{if(!Ie(e))return!1;const i=Se(e);return(i===null||i===Object.prototype||Se(i)===null)&&!Be(e,Yt)&&!Be(e,Fe)},Ss=e=>{if(!Ie(e)||Ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Es=te("Date"),Is=te("File"),Vs=e=>!!(e&&typeof e.uri<"u"),Ns=e=>e&&typeof e.getParts<"u",Os=te("Blob"),Ts=te("FileList"),Rs=te("Set"),Fs=e=>Ie(e)&&v(e.pipe);function Bs(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qt=Bs(),vt=typeof Qt.FormData<"u"?Qt.FormData:void 0,$s=e=>{if(!e)return!1;if(vt&&e instanceof vt)return!0;const i=Se(e);if(!i||i===Object.prototype||!v(e.append))return!1;const s=dt(e);return s==="formdata"||s==="object"&&v(e.toString)&&e.toString()==="[object FormData]"},Ds=te("URLSearchParams"),[zs,As,Ps,Ms]=["ReadableStream","Request","Response","Headers"].map(te),Us=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,i,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),_e(e))for(a=0,n=e.length;a<n;a++)i.call(null,e[a],a,e);else{if(Ee(e))return;const o=s?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let l;for(a=0;a<r;a++)l=o[a],i.call(null,e[l],l,e)}}function ei(e,i){if(Ee(e))return null;i=i.toLowerCase();const s=Object.keys(e);let a=s.length,n;for(;a-- >0;)if(n=s[a],i===n.toLowerCase())return n;return null}const we=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ti=e=>!be(e)&&e!==we;function mt(...e){const{caseless:i,skipUndefined:s}=ti(this)&&this||{},a={},n=(o,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;const l=i&&typeof r=="string"&&ei(a,r)||r,d=xe(a,l)?a[l]:void 0;qe(d)&&qe(o)?a[l]=mt(d,o):qe(o)?a[l]=mt({},o):_e(o)?a[l]=o.slice():(!s||!be(o))&&(a[l]=o)};for(let o=0,r=e.length;o<r;o++){const l=e[o];if(!l||Ee(l)||($e(l,n),typeof l!="object"||_e(l)))continue;const d=Object.getOwnPropertySymbols(l);for(let g=0;g<d.length;g++){const p=d[g];Zs.call(l,p)&&n(l[p],p)}}return a}const Ls=(e,i,s,{allOwnKeys:a}={})=>($e(i,(n,o)=>{s&&v(n)?Object.defineProperty(e,o,{__proto__:null,value:Gt(n,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),js=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hs=(e,i,s,a)=>{e.prototype=Object.create(i.prototype,a),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:i.prototype}),s&&Object.assign(e.prototype,s)},xs=(e,i,s,a)=>{let n,o,r;const l={};if(i=i||{},e==null)return i;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)r=n[o],(!a||a(r,e,i))&&!l[r]&&(i[r]=e[r],l[r]=!0);e=s!==!1&&Se(e)}while(e&&(!s||s(e,i))&&e!==Object.prototype);return i},Ws=(e,i,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=i.length;const a=e.indexOf(i,s);return a!==-1&&a===s},qs=e=>{if(!e)return null;if(_e(e))return e;let i=e.length;if(!Zt(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=e[i];return s},Xs=(e=>i=>e&&i instanceof e)(typeof Uint8Array<"u"&&Se(Uint8Array)),Js=(e,i)=>{const a=(e&&e[Fe]).call(e);let n;for(;(n=a.next())&&!n.done;){const o=n.value;i.call(e,o[0],o[1])}},Gs=(e,i)=>{let s;const a=[];for(;(s=e.exec(i))!==null;)a.push(s);return a},Ys=te("HTMLFormElement"),Ks=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,n){return a.toUpperCase()+n}),{propertyIsEnumerable:Zs}=Object.prototype,Qs=te("RegExp"),ii=(e,i)=>{const s=Object.getOwnPropertyDescriptors(e),a={};$e(s,(n,o)=>{let r;(r=i(n,o,e))!==!1&&(a[o]=r||n)}),Object.defineProperties(e,a)},vs=e=>{ii(e,(i,s)=>{if(v(e)&&["arguments","caller","callee"].includes(s))return!1;const a=e[s];if(v(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},ea=(e,i)=>{const s={},a=n=>{n.forEach(o=>{s[o]=!0})};return _e(e)?a(e):a(String(e).split(i)),s},ta=()=>{},ia=(e,i)=>e!=null&&Number.isFinite(e=+e)?e:i;function sa(e){return!!(e&&v(e.append)&&e[Yt]==="FormData"&&e[Fe])}const aa=e=>{const i=new WeakSet,s=a=>{if(Ie(a)){if(i.has(a))return;if(Ee(a))return a;if(!("toJSON"in a)){i.add(a);let n;if(Rs(a)){n=[];for(const o of a){const r=s(o);!be(r)&&n.push(r)}}else n=_e(a)?[]:{},$e(a,(o,r)=>{const l=s(o);!be(l)&&(n[r]=l)});return i.delete(a),n}}return a};return s(e)},na=te("AsyncFunction"),oa=e=>e&&(Ie(e)||v(e))&&v(e.then)&&v(e.catch),si=((e,i)=>e?setImmediate:i?((s,a)=>(we.addEventListener("message",({source:n,data:o})=>{n===we&&o===s&&a.length&&a.shift()()},!1),n=>{a.push(n),we.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",v(we.postMessage)),ra=typeof queueMicrotask<"u"?queueMicrotask.bind(we):typeof process<"u"&&process.nextTick||si,ai=e=>e!=null&&v(e[Fe]),f={isArray:_e,isArrayBuffer:Kt,isBuffer:Ee,isFormData:$s,isArrayBufferView:ws,isString:Cs,isNumber:Zt,isBoolean:ks,isObject:Ie,isPlainObject:qe,isEmptyObject:Ss,isReadableStream:zs,isRequest:As,isResponse:Ps,isHeaders:Ms,isUndefined:be,isDate:Es,isFile:Is,isReactNativeBlob:Vs,isReactNative:Ns,isBlob:Os,isRegExp:Qs,isFunction:v,isStream:Fs,isURLSearchParams:Ds,isTypedArray:Xs,isFileList:Ts,forEach:$e,merge:mt,extend:Ls,trim:Us,stripBOM:js,inherits:Hs,toFlatObject:xs,kindOf:dt,kindOfTest:te,endsWith:Ws,toArray:qs,forEachEntry:Js,matchAll:Gs,isHTMLForm:Ys,hasOwnProperty:xe,hasOwnProp:xe,hasOwnInPrototypeChain:Be,getSafeProp:bs,reduceDescriptors:ii,freezeMethods:vs,toObjectSet:ea,toCamelCase:Ks,noop:ta,toFiniteNumber:ia,findKey:ei,global:we,isContextDefined:ti,isSpecCompliantForm:sa,toJSONObject:aa,isAsyncFn:na,isThenable:oa,setImmediate:si,asap:ra,isIterable:ai,isSafeIterable:e=>e!=null&&Be(e,Fe)&&ai(e)},la=f.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"]),ca=e=>{const i={};let s,a,n;return e&&e.split(`
2
- `).forEach(function(r){n=r.indexOf(":"),s=r.substring(0,n).trim().toLowerCase(),a=r.substring(n+1).trim();const l=f.hasOwnProp(i,s);!s||l&&f.hasOwnProp(la,s)||(s==="set-cookie"?l?i[s].push(a):i[s]=[a]:i[s]=l?i[s]+", "+a:a)}),i};function da(e){let i=0,s=e.length;for(;i<s;){const a=e.charCodeAt(i);if(a!==9&&a!==32)break;i+=1}for(;s>i;){const a=e.charCodeAt(s-1);if(a!==9&&a!==32)break;s-=1}return i===0&&s===e.length?e:e.slice(i,s)}const ma=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ha=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ht(e,i){return f.isArray(e)?e.map(s=>ht(s,i)):da(String(e).replace(i,""))}const pa=e=>ht(e,ma),fa=e=>ht(e,ha);function ni(e){const i=Object.create(null);return f.forEach(e.toJSON(),(s,a)=>{i[a]=fa(s)}),i}const oi=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function Xe(e){return e===!1||e==null?e:f.isArray(e)?e.map(Xe):pa(String(e))}function ga(e){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(e);)i[a[1]]=a[2];return i}const ua=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function pt(e){let i=0,s=e.length;for(;i<s;){const a=e.charCodeAt(i);if(a!==9&&a!==32)break;i+=1}for(;s>i;){const a=e.charCodeAt(s-1);if(a!==9&&a!==32)break;s-=1}return i===0&&s===e.length?e:e.slice(i,s)}function ya(e){const i=e.length-1;if(i<1||e.charCodeAt(0)!==34||e.charCodeAt(i)!==34)return e;let s="";for(let a=1;a<i;a++){const n=e.charCodeAt(a);if(n===34||n===92&&(a+=1,a>=i))return e;s+=e[a]}return s}function _a(e){const i=Object.create(null),s=String(e);let a=0,n=!1,o=!1;function r(l){const d=pt(s.slice(a,l)),g=d.indexOf("=");if(g<1)return;const p=pt(d.slice(0,g));if(!ua.test(p))return;const y=p.toLowerCase();if(y==="__proto__"||y==="constructor"||y==="prototype")return;const c=pt(d.slice(g+1));i[y]=ya(c)}for(let l=0;l<s.length;l++){const d=s.charCodeAt(l);n?o?o=!1:d===92?o=!0:d===34&&(n=!1):d===34?n=!0:(d===44||d===59)&&(r(l),a=l+1)}return r(s.length),i}const ba=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ft(e,i,s,a,n){if(f.isFunction(a))return a.call(this,i,s);if(n&&(i=s),!!f.isString(i)){if(f.isString(a))return i.indexOf(a)!==-1;if(f.isRegExp(a))return a.test(i)}}function wa(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,a)=>s.toUpperCase()+a)}function Ca(e,i){const s=f.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+s,{__proto__:null,value:function(n,o,r){return this[a].call(this,i,n,o,r)},configurable:!0})})}let J=class{constructor(i){i&&this.set(i)}set(i,s,a){const n=this;function o(l,d,g){const p=De(d);if(!p)return;const y=f.findKey(n,p);(!y||n[y]===void 0||g===!0||g===void 0&&n[y]!==!1)&&(n[y||d]=Xe(l))}const r=(l,d)=>f.forEach(l,(g,p)=>o(g,p,d));if(f.isPlainObject(i)||i instanceof this.constructor)r(i,s);else if(f.isString(i)&&(i=i.trim())&&!ba(i))r(ca(i),s);else if(f.isObject(i)&&f.isSafeIterable(i)){let l=Object.create(null),d,g;for(const p of i){if(!f.isArray(p))throw new TypeError("Object iterator must return a key-value pair");g=p[0],f.hasOwnProp(l,g)?(d=l[g],l[g]=f.isArray(d)?[...d,p[1]]:[d,p[1]]):l[g]=p[1]}r(l,s)}else i!=null&&o(s,i,a);return this}get(i,s){if(i=De(i),i){const a=f.findKey(this,i);if(a){const n=this[a];if(!s)return n;if(s===!0)return ga(n);if(f.isFunction(s))return s.call(this,n,a);if(f.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=De(i),i){const a=f.findKey(this,i);return!!(a&&this[a]!==void 0&&(!s||ft(this,this[a],a,s)))}return!1}delete(i,s){const a=this;let n=!1;function o(r){if(r=De(r),r){const l=f.findKey(a,r);l&&(!s||ft(a,a[l],l,s))&&(delete a[l],n=!0)}}return f.isArray(i)?i.forEach(o):o(i),n}clear(i){const s=Object.keys(this);let a=s.length,n=!1;for(;a--;){const o=s[a];(!i||ft(this,this[o],o,i,!0))&&(delete this[o],n=!0)}return n}normalize(i){const s=this,a={};return f.forEach(this,(n,o)=>{const r=f.findKey(a,o);if(r){s[r]=Xe(n),delete s[o];return}const l=i?wa(o):String(o).trim();l!==o&&delete s[o],s[l]=Xe(n),a[l]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return f.forEach(this,(a,n)=>{a!=null&&a!==!1&&(s[n]=i&&f.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
3
- `)}getSetCookie(){const i=this.get("set-cookie");return f.isArray(i)?i:i==null||i===!1?[]:[i]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static parseParameters(i){return _a(i)}static concat(i,...s){const a=new this(i);return s.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[oi]=this[oi]={accessors:{}}).accessors,n=this.prototype;function o(r){const l=De(r);a[l]||(Ca(n,r),a[l]=!0)}return f.isArray(i)?i.forEach(o):o(i),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.reduceDescriptors(J.prototype,({value:e},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>e,set(a){this[s]=a}}}),f.freezeMethods(J);const Je="[REDACTED ****]";function ka(e){if(f.hasOwnProp(e,"toJSON"))return!0;let i=Object.getPrototypeOf(e);for(;i&&i!==Object.prototype;){if(f.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}function Sa(e,i){const s=new Set(i.map(o=>String(o).toLowerCase())),a=[],n=o=>{if(o===null||typeof o!="object"||f.isBuffer(o))return o;if(a.indexOf(o)!==-1)return;o instanceof J&&(o=o.toJSON()),a.push(o);let r;if(f.isArray(o))r=[],o.forEach((l,d)=>{const g=n(l);f.isUndefined(g)||(r[d]=g)});else{if(!f.isPlainObject(o)&&ka(o))return a.pop(),o;r=Object.create(null);for(const[l,d]of Object.entries(o)){const g=s.has(l.toLowerCase())?Je:n(d);f.isUndefined(g)||(r[l]=g)}}return a.pop(),r};return n(e)}function ri(e){try{return String(e)}catch{return""}}function Ea(e){return e.errors.map(s=>{try{return s&&s.message?ri(s.message):ri(s)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let V=class us extends Error{static from(i,s,a,n,o,r){let l=i.message;!l&&f.isArray(i.errors)&&i.errors.length&&(l=Ea(i));const d=new us(l,s||i.code,a,n,o);return Object.defineProperty(d,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),d.name=i.name,i.status!=null&&d.status==null&&(d.status=i.status),r&&Object.assign(d,r),d}constructor(i,s,a,n,o){super(i),Object.defineProperty(this,"message",{__proto__:null,value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),a&&(this.config=a),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const i=this.config,s=i&&f.hasOwnProp(i,"redact")?i.redact:void 0,a=f.isArray(s)&&s.length>0?Sa(i,s):f.toJSONObject(i);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:a,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",V.ERR_BAD_OPTION="ERR_BAD_OPTION",V.ECONNABORTED="ECONNABORTED",V.ETIMEDOUT="ETIMEDOUT",V.ECONNREFUSED="ECONNREFUSED",V.ERR_NETWORK="ERR_NETWORK",V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",V.ERR_DEPRECATED="ERR_DEPRECATED",V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",V.ERR_BAD_REQUEST="ERR_BAD_REQUEST",V.ERR_CANCELED="ERR_CANCELED",V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",V.ERR_INVALID_URL="ERR_INVALID_URL",V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Ia=null,li=100;function gt(e){return f.isPlainObject(e)||f.isArray(e)}function ci(e){return f.endsWith(e,"[]")?e.slice(0,-2):e}function ut(e,i,s){return e?e.concat(i).map(function(n,o){return n=ci(n),!s&&o?"["+n+"]":n}).join(s?".":""):i}function Va(e){return f.isArray(e)&&!e.some(gt)}const Na=f.toFlatObject(f,{},null,function(i){return/^is[A-Z]/.test(i)});function Ge(e,i,s){if(!f.isObject(e))throw new TypeError("target must be an object");i=i||new FormData,s=f.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!f.isUndefined(_[E])});const a=s.metaTokens,n=s.visitor||k,o=s.dots,r=s.indexes,l=s.Blob||typeof Blob<"u"&&Blob,d=s.maxDepth===void 0?li:s.maxDepth,g=l&&f.isSpecCompliantForm(i),p=[];if(!f.isFunction(n))throw new TypeError("visitor must be a function");function y(u){if(u===null)return"";if(f.isDate(u))return u.toISOString();if(f.isBoolean(u))return u.toString();if(!g&&f.isBlob(u))throw new V("Blob is not supported. Use a Buffer instead.");if(f.isArrayBuffer(u)||f.isTypedArray(u)){if(g&&typeof l=="function")return new l([u]);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return u}function c(u){if(u>d)throw new V("Object is too deeply nested ("+u+" levels). Max depth: "+d,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function C(u,E){if(d===1/0)return JSON.stringify(u);const _=[];return JSON.stringify(u,function(w,I){if(!f.isObject(I))return I;for(;_.length&&_[_.length-1]!==this;)_.pop();return _.push(I),c(E+_.length-1),I})}function k(u,E,_){let m=u;if(f.isReactNative(i)&&f.isReactNativeBlob(u))return i.append(ut(_,E,o),y(u)),!1;if(u&&!_&&typeof u=="object"){if(f.endsWith(E,"{}"))E=a?E:E.slice(0,-2),u=C(u,1);else if(f.isArray(u)&&Va(u)||(f.isFileList(u)||f.endsWith(E,"[]"))&&(m=f.toArray(u)))return E=ci(E),m.forEach(function(I,P){!(f.isUndefined(I)||I===null)&&i.append(r===!0?ut([E],P,o):r===null?E:E+"[]",y(I))}),!1}return gt(u)?!0:(i.append(ut(_,E,o),y(u)),!1)}const b=Object.assign(Na,{defaultVisitor:k,convertValue:y,isVisitable:gt});function h(u,E,_=0){if(!f.isUndefined(u)){if(c(_),p.indexOf(u)!==-1)throw new Error("Circular reference detected in "+E.join("."));p.push(u),f.forEach(u,function(w,I){(!(f.isUndefined(w)||w===null)&&n.call(i,w,f.isString(I)?I.trim():I,E,b))===!0&&h(w,E?E.concat(I):[I],_+1)}),p.pop()}}if(!f.isObject(e))throw new TypeError("data must be an object");return h(e),i}function di(e){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return i[a]})}function yt(e,i){this._pairs=[],e&&Ge(e,this,i)}const mi=yt.prototype;mi.append=function(i,s){this._pairs.push([i,s])},mi.toString=function(i){const s=i?a=>i.call(this,a,di):di;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};function Oa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hi(e,i,s){if(!i)return e;e=e||"";const a=f.isFunction(s)?{serialize:s}:s,n=f.getSafeProp(a,"encode")||Oa,o=f.getSafeProp(a,"serialize");let r;if(o?r=o(i,a):r=f.isURLSearchParams(i)?i.toString():new yt(i,a).toString(n),r){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class pi{constructor(){this.handlers=[]}use(i,s,a){return this.handlers.push({fulfilled:i,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){f.forEach(this.handlers,function(a){a!==null&&i(a)})}}const _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ta={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:yt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},bt=typeof window<"u"&&typeof document<"u",wt=typeof navigator=="object"&&navigator||void 0,Ra=bt&&(!wt||["ReactNative","NativeScript","NS"].indexOf(wt.product)<0),Fa=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ba=bt&&window.location.href||"http://localhost",q={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bt,hasStandardBrowserEnv:Ra,hasStandardBrowserWebWorkerEnv:Fa,navigator:wt,origin:Ba},Symbol.toStringTag,{value:"Module"})),...Ta};function $a(e,i){return Ge(e,new q.classes.URLSearchParams,{visitor:function(s,a,n,o){return q.isNode&&f.isBuffer(s)?(this.append(a,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...i})}const fi=li;function gi(e){if(e>fi)throw new V("FormData field is too deeply nested ("+e+" levels). Max depth: "+fi,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Da(e){const i=[],s=/[^.[\]]+|\[([^.[\]]*)]/g;let a;for(;(a=s.exec(e))!==null;)gi(i.length),i.push(a[0]==="[]"?"":a[1]||a[0]);return i}function za(e){const i={},s=Object.keys(e);let a;const n=s.length;let o;for(a=0;a<n;a++)o=s[a],i[o]=e[o];return i}function ui(e){function i(s,a,n,o){gi(o);let r=s[o++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),d=o>=s.length;return r=!r&&f.isArray(n)?n.length:r,d?(f.hasOwnProp(n,r)?n[r]=f.isArray(n[r])?n[r].concat(a):[n[r],a]:n[r]=a,!l):((!f.hasOwnProp(n,r)||!f.isObject(n[r]))&&(n[r]=[]),i(s,a,n[r],o)&&f.isArray(n[r])&&(n[r]=za(n[r])),!l)}if(f.isFormData(e)&&f.isFunction(e.entries)){const s={};return f.forEachEntry(e,(a,n)=>{i(Da(a),n,s,0)}),s}return null}const Ve=(e,i)=>e!=null&&f.hasOwnProp(e,i)?e[i]:void 0;function Aa(e,i,s){if(f.isString(e))try{return(i||JSON.parse)(e),f.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(e)}const ze={transitional:_t,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const a=s.getContentType()||"",n=a.indexOf("application/json")>-1,o=f.isObject(i);if(o&&f.isHTMLForm(i)&&(i=new FormData(i)),f.isFormData(i))return n?JSON.stringify(ui(i)):i;if(f.isArrayBuffer(i)||f.isBuffer(i)||f.isStream(i)||f.isFile(i)||f.isBlob(i)||f.isReadableStream(i))return i;if(f.isArrayBufferView(i))return i.buffer;if(f.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let l;if(o){const d=Ve(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return $a(i,d).toString();if((l=f.isFileList(i))||a.indexOf("multipart/form-data")>-1){const g=Ve(this,"env"),p=g&&g.FormData;return Ge(l?{"files[]":i}:i,p&&new p,d)}}return o||n?(s.setContentType("application/json",!1),Aa(i)):i}],transformResponse:[function(i){const s=Ve(this,"transitional")||ze.transitional,a=s&&s.forcedJSONParsing,n=Ve(this,"responseType"),o=n==="json";if(f.isResponse(i)||f.isReadableStream(i))return i;if(i&&f.isString(i)&&(a&&!n||o)){const l=!(s&&s.silentJSONParsing)&&o;try{return JSON.parse(i,Ve(this,"parseReviver"))}catch(d){if(l)throw d.name==="SyntaxError"?V.from(d,V.ERR_BAD_RESPONSE,this,null,Ve(this,"response")):d}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:q.classes.FormData,Blob:q.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch","query"],e=>{ze.headers[e]={}});function Ct(e,i){const s=this||ze,a=i||s,n=J.from(a.headers);let o=a.data;return f.forEach(e,function(l){o=l.call(s,o,n.normalize(),i?i.status:void 0)}),n.normalize(),o}function yi(e){return!!(e&&e.__CANCEL__)}let Ae=class extends V{constructor(i,s,a){super(i??"canceled",V.ERR_CANCELED,s,a),this.name="CanceledError",this.__CANCEL__=!0}};function _i(e,i,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?e(s):i(new V("Request failed with status code "+s.status,s.status>=400&&s.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,s.config,s.request,s))}function Pa(e){const i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return i&&i[1]||""}function Ma(e,i){e=e||10;const s=new Array(e),a=new Array(e);let n=0,o=0,r;return i=i!==void 0?i:1e3,function(d){const g=Date.now(),p=a[o];r||(r=g),s[n]=d,a[n]=g;let y=o,c=0;for(;y!==n;)c+=s[y++],y=y%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),g-r<i)return;const C=p&&g-p;return C?Math.round(c*1e3/C):void 0}}function Ua(e,i){let s=0,a=1e3/i,n,o;const r=(g,p=Date.now())=>{s=p,n=null,o&&(clearTimeout(o),o=null),e(...g)};return[(...g)=>{const p=Date.now(),y=p-s;y>=a?r(g,p):(n=g,o||(o=setTimeout(()=>{o=null,r(n)},a-y)))},()=>n&&r(n)]}const Ye=(e,i,s=3)=>{let a=0;const n=Ma(50,250);return Ua(o=>{if(!o||typeof o.loaded!="number")return;const r=o.loaded,l=o.lengthComputable?o.total:void 0,d=Math.max(0,l!=null?Math.min(r,l):r),g=Math.max(0,d-a),p=n(g);a=Math.max(a,d);const y={loaded:d,total:l,progress:l?d/l:void 0,bytes:g,rate:p||void 0,estimated:p&&l?(l-d)/p:void 0,event:o,lengthComputable:l!=null,[i?"download":"upload"]:!0};e(y)},s)},bi=(e,i)=>{const s=e!=null;return[a=>i[0]({lengthComputable:s,total:e,loaded:a}),i[1]]},wi=(e,i=f.asap)=>(...s)=>i(()=>e(...s)),La=q.hasStandardBrowserEnv?((e,i)=>s=>(s=new URL(s,q.origin),e.protocol===s.protocol&&e.host===s.host&&(i||e.port===s.port)))(new URL(q.origin),q.navigator&&/(msie|trident)/i.test(q.navigator.userAgent)):()=>!0,ja=q.hasStandardBrowserEnv?{write(e,i,s,a,n,o,r){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(i)}`];f.isNumber(s)&&l.push(`expires=${new Date(s).toUTCString()}`),f.isString(a)&&l.push(`path=${a}`),f.isString(n)&&l.push(`domain=${n}`),o===!0&&l.push("secure"),f.isString(r)&&l.push(`SameSite=${r}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const i=document.cookie.split(";");for(let s=0;s<i.length;s++){const a=i[s].replace(/^\s+/,""),n=a.indexOf("=");if(n!==-1&&a.slice(0,n)===e)try{return decodeURIComponent(a.slice(n+1))}catch{return a.slice(n+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ha(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xa(e,i){if(!i)return e;let s=e.length;for(;s>0&&e.charCodeAt(s-1)===47;)s--;return e.slice(0,s)+"/"+i.replace(/^\/+/,"")}const Wa=/^https?:(?!\/\/)/i,qa=/[\t\n\r]/g;function Xa(e){let i=0;for(;i<e.length&&e.charCodeAt(i)<=32;)i++;return e.slice(i)}function Ja(e){return Xa(e).replace(qa,"")}function Ga(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(i,s,a="")=>`${s}${a}${Je}`)}function Ya(e){const i=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Je}@`),s=i.indexOf("#"),n=(s===-1?i:i.slice(0,s)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Je}`);return s===-1?n:`${n}#${Ga(i.slice(s+1))}`}function Ci(e,i){if(typeof e=="string"){const s=Ja(e);if(Wa.test(s))throw new V(`Invalid URL ${JSON.stringify(Ya(s))}: missing "//" after protocol`,V.ERR_INVALID_URL,i)}}function ki(e,i,s,a){Ci(i,a);let n=!Ha(i);return e&&(n||s===!1)?(Ci(e,a),xa(e,i)):i}const Si=e=>e instanceof J?{...e}:e,Ka=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(i=>Object.getOwnPropertyDescriptor(e,i).enumerable)):Object.keys(e);function Ce(e,i){e=e||{},i=i||{};const s=Object.create(null);Object.defineProperty(s,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function a(p,y,c,C){return f.isPlainObject(p)&&f.isPlainObject(y)?f.merge.call({caseless:C},p,y):f.isPlainObject(y)?f.merge({},y):f.isArray(y)?y.slice():y}function n(p,y,c,C){if(f.isUndefined(y)){if(!f.isUndefined(p))return a(void 0,p,c,C)}else return a(p,y,c,C)}function o(p,y){if(!f.isUndefined(y))return a(void 0,y)}function r(p,y){if(f.isUndefined(y)){if(!f.isUndefined(p))return a(void 0,p)}else return a(void 0,y)}function l(p){const y=f.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!f.isUndefined(y))if(f.isPlainObject(y)){if(f.hasOwnProp(y,p))return y[p]}else return;const c=f.hasOwnProp(e,"transitional")?e.transitional:void 0;if(f.isPlainObject(c)&&f.hasOwnProp(c,p))return c[p]}function d(p,y,c){if(f.hasOwnProp(i,c))return a(p,y);if(f.hasOwnProp(e,c))return a(void 0,p)}const g={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,allowedSocketPaths:r,responseEncoding:r,validateStatus:d,headers:(p,y,c)=>n(Si(p),Si(y),c,!0)};return f.forEach(Ka({...e,...i}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const c=f.hasOwnProp(g,y)?g[y]:n,C=f.hasOwnProp(e,y)?e[y]:void 0,k=f.hasOwnProp(i,y)?i[y]:void 0,b=c(C,k,y);f.isUndefined(b)&&c!==d||(s[y]=b)}),f.hasOwnProp(i,"validateStatus")&&f.isUndefined(i.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(f.hasOwnProp(e,"validateStatus")?s.validateStatus=a(void 0,e.validateStatus):delete s.validateStatus),s}const Za=["content-type","content-length"];function Qa(e,i,s){if(s!=="content-only"){e.set(i);return}Object.entries(i||{}).forEach(([a,n])=>{Za.includes(a.toLowerCase())&&e.set(a,n)})}const va=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(i,s)=>String.fromCharCode(parseInt(s,16)));function Ei(e){const i=Ce({},e),s=c=>f.hasOwnProp(i,c)?i[c]:void 0,a=s("data");let n=s("withXSRFToken");const o=s("xsrfHeaderName"),r=s("xsrfCookieName");let l=s("headers");const d=s("auth"),g=s("baseURL"),p=s("allowAbsoluteUrls"),y=s("url");if(i.headers=l=J.from(l),i.url=hi(ki(g,y,p,i),s("params"),s("paramsSerializer")),d){const c=f.getSafeProp(d,"username")||"",C=f.getSafeProp(d,"password")||"";try{l.set("Authorization","Basic "+btoa(c+":"+(C?va(C):"")))}catch(k){throw V.from(k,V.ERR_BAD_OPTION_VALUE,e)}}if(f.isFormData(a)&&(q.hasStandardBrowserEnv||q.hasStandardBrowserWebWorkerEnv||f.isReactNative(a)?l.setContentType(void 0):f.isFunction(a.getHeaders)&&Qa(l,a.getHeaders(),s("formDataHeaderPolicy"))),q.hasStandardBrowserEnv&&(f.isFunction(n)&&(n=n(i)),n===!0||n==null&&La(i.url))){const C=o&&r&&ja.read(r);C&&l.set(o,C)}return i}const en=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(s,a){const n=Ei(e);let o=n.data;const r=J.from(n.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:g}=n,p,y,c,C,k;function b(){C&&C(),k&&k(),n.cancelToken&&n.cancelToken.unsubscribe(p),n.signal&&n.signal.removeEventListener("abort",p)}let h=new XMLHttpRequest;h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout;function u(){if(!h)return;const _=J.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:_,config:e,request:h};_i(function(P){s(P),b()},function(P){a(P),b()},w),h=null}"onloadend"in h?h.onloadend=u:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith("file:"))||setTimeout(u)},h.onabort=function(){h&&(a(new V("Request aborted",V.ECONNABORTED,e,h)),b(),h=null)},h.onerror=function(m){const w=m&&m.message?m.message:"Network Error",I=new V(w,V.ERR_NETWORK,e,h);I.event=m||null,a(I),b(),h=null},h.ontimeout=function(){let m=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||_t;n.timeoutErrorMessage&&(m=n.timeoutErrorMessage),a(new V(m,w.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,h)),b(),h=null},o===void 0&&r.setContentType(null),"setRequestHeader"in h&&f.forEach(ni(r),function(m,w){h.setRequestHeader(w,m)}),f.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),l&&l!=="json"&&(h.responseType=n.responseType),g&&([c,k]=Ye(g,!0),h.addEventListener("progress",c)),d&&h.upload&&([y,C]=Ye(d),h.upload.addEventListener("progress",y),h.upload.addEventListener("loadend",C)),(n.cancelToken||n.signal)&&(p=_=>{h&&(a(!_||_.type?new Ae(null,e,h):_),h.abort(),b(),h=null)},n.cancelToken&&n.cancelToken.subscribe(p),n.signal&&(n.signal.aborted?p():n.signal.addEventListener("abort",p)));const E=Pa(n.url);if(E&&!q.protocols.includes(E)){a(new V("Unsupported protocol "+E+":",V.ERR_BAD_REQUEST,e)),b();return}h.send(o||null)})},tn=(e,i)=>{if(e=e?e.filter(Boolean):[],!i&&!e.length)return;const s=new AbortController;let a=!1;const n=function(d){if(!a){a=!0,r();const g=d instanceof Error?d:this.reason;s.abort(g instanceof V?g:new Ae(g instanceof Error?g.message:g))}};let o=i&&setTimeout(()=>{o=null,n(new V(`timeout of ${i}ms exceeded`,V.ETIMEDOUT))},i);const r=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(n):d.removeEventListener("abort",n)}),e=null)};e.forEach(d=>{if(!a){if(d.aborted){n.call(d);return}d.addEventListener("abort",n,{once:!0})}});const{signal:l}=s;return l.unsubscribe=()=>f.asap(r),l},sn=function*(e,i){let s=e.byteLength;if(s<i){yield e;return}let a=0,n;for(;a<s;)n=a+i,yield e.slice(a,n),a=n},an=async function*(e,i){for await(const s of nn(e))yield*sn(s,i)},nn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const i=e.getReader();try{for(;;){const{done:s,value:a}=await i.read();if(s)break;yield a}}finally{await i.cancel()}},Ii=(e,i,s,a)=>{const n=an(e,i);let o=0,r,l=d=>{r||(r=!0,a&&a(d))};return new ReadableStream({async pull(d){try{const{done:g,value:p}=await n.next();if(g){l(),d.close();return}let y=p.byteLength;if(s){let c=o+=y;s(c)}d.enqueue(new Uint8Array(p))}catch(g){throw l(g),g}},cancel(d){return l(d),n.return()}},{highWaterMark:2})},Vi=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ni=(e,i,s)=>i+2<s&&Vi(e.charCodeAt(i+1))&&Vi(e.charCodeAt(i+2)),Oi=e=>e<=57?e-48:(e&223)-55,on=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,rn=e=>e===9||e===10||e===12||e===13||e===32,ln=e=>{const i=Math.floor(e/4),s=e%4;return i*3+(s===2?1:s===3?2:0)},cn=e=>{const i=e.length;let s=0;return i>0&&e.charCodeAt(i-1)===61&&(s++,i>1&&e.charCodeAt(i-2)===61&&s++),Math.floor((i-s)*3/4)},dn=e=>{const i=e.length;let s=0,a=0,n=!1;for(let o=0;o<i;o++){let r=e.charCodeAt(o);if(r===37&&Ni(e,o,i)&&(r=Oi(e.charCodeAt(o+1))*16+Oi(e.charCodeAt(o+2)),o+=2),!rn(r)){if(r===61){a++;continue}if(!on(r)||a>0){n=!0;continue}s++}}return n||a>2||a>0&&(s+a)%4!==0||s%4===1?cn(e):ln(s)},mn=(e,i)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const s=e.indexOf(",");if(s<0)return 0;const a=e.slice(5,s),n=e.slice(s+1);if(/;base64/i.test(a))return i(n);let r=0;for(let l=0,d=n.length;l<d;l++){const g=n.charCodeAt(l);if(g===37&&Ni(n,l,d))r+=1,l+=2;else if(g<128)r+=1;else if(g<2048)r+=2;else if(g>=55296&&g<=56319&&l+1<d){const p=n.charCodeAt(l+1);p>=56320&&p<=57343?(r+=4,l++):r+=3}else r+=3}return r};function hn(e){const i=typeof e=="string"?e.indexOf("#"):-1;return mn(i===-1?e:e.slice(0,i),dn)}const kt="1.19.0",Ti=64*1024,{isFunction:Ke}=f,pn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(i,s)=>String.fromCharCode(parseInt(s,16))),Ri=e=>{if(!f.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Fi=(e,...i)=>{try{return!!e(...i)}catch{return!1}},fn=e=>{const i=e.indexOf("://");let s=e;return i!==-1&&(s=s.slice(i+3)),s.includes("@")||s.includes(":")},gn=e=>{const i=f.global!==void 0&&f.global!==null?f.global:globalThis,{ReadableStream:s,TextEncoder:a}=i;e=f.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},e);const{fetch:n,Request:o,Response:r}=e,l=n?Ke(n):typeof fetch=="function",d=Ke(o),g=Ke(r);if(!l)return!1;const p=l&&Ke(s),y=l&&(typeof a=="function"?(u=>E=>u.encode(E))(new a):async u=>new Uint8Array(await new o(u).arrayBuffer())),c=d&&p&&Fi(()=>{let u=!1;const E=new o(q.origin,{body:new s,method:"POST",get duplex(){return u=!0,"half"}}),_=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),u&&!_}),C=g&&p&&Fi(()=>f.isReadableStream(new r("").body)),k={stream:C&&(u=>u.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!k[u]&&(k[u]=(E,_)=>{let m=E&&E[u];if(m)return m.call(E);throw new V(`Response type '${u}' is not supported`,V.ERR_NOT_SUPPORT,_)})});const b=async u=>{if(u==null)return 0;if(f.isBlob(u))return u.size;if(f.isSpecCompliantForm(u))return(await new o(q.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(f.isArrayBufferView(u)||f.isArrayBuffer(u))return u.byteLength;if(f.isURLSearchParams(u)&&(u=u+""),f.isString(u))return(await y(u)).byteLength},h=async(u,E)=>{const _=f.toFiniteNumber(u.getContentLength());return _??b(E)};return async u=>{let{url:E,method:_,data:m,signal:w,cancelToken:I,timeout:P,onDownloadProgress:T,onUploadProgress:L,responseType:x,headers:Y,withCredentials:A="same-origin",fetchOptions:W,maxContentLength:U,maxBodyLength:ue}=Ei(u);const he=f.isNumber(U)&&U>-1,K=f.isNumber(ue)&&ue>-1,pe=D=>f.hasOwnProp(u,D)?u[D]:void 0;let S=n||fetch;x=x?(x+"").toLowerCase():"text";let N=tn([w,I&&I.toAbortSignal()],P),F=null;const Z=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let ee,de=null;const Oe=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,u,F);try{let D;const Q=pe("auth");if(Q){const O=f.getSafeProp(Q,"username")||"",j=f.getSafeProp(Q,"password")||"";D={username:O,password:j}}if(fn(E)){const O=new URL(E,q.origin);if(!D&&(O.username||O.password)){const j=Ri(O.username),ae=Ri(O.password);D={username:j,password:ae}}(O.username||O.password)&&(O.username="",O.password="",E=O.href)}if(D&&(Y.delete("authorization"),Y.set("Authorization","Basic "+btoa(pn((D.username||"")+":"+(D.password||""))))),he&&typeof E=="string"&&E.startsWith("data:")&&hn(E)>U)throw new V("maxContentLength size of "+U+" exceeded",V.ERR_BAD_RESPONSE,u,F);if(K&&_!=="get"&&_!=="head"){const O=await b(m);if(typeof O=="number"&&isFinite(O)&&(ee=O,O>ue))throw Oe()}const Te=K&&(f.isReadableStream(m)||f.isStream(m)),Ue=(O,j,ae)=>Ii(O,Ti,oe=>{if(K&&oe>ue)throw de=Oe();j&&j(oe)},ae);if(c&&_!=="get"&&_!=="head"&&(L||Te)){if(ee=ee??await h(Y,m),ee!==0||Te){let O=new o(E,{method:"POST",body:m,duplex:"half"}),j;if(f.isFormData(m)&&(j=O.headers.get("content-type"))&&Y.setContentType(j),O.body){const[ae,oe]=L&&bi(ee,Ye(wi(L)))||[];m=Ue(O.body,ae,oe)}}}else if(Te&&!d&&p&&_!=="get"&&_!=="head")m=Ue(m);else if(Te&&d&&!c&&_!=="get"&&_!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,u,F);f.isString(A)||(A=A?"include":"omit");const ct=d&&"credentials"in o.prototype;if(f.isFormData(m)){const O=Y.getContentType();O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O)&&Y.delete("content-type")}Y.set("User-Agent","axios/"+kt,!1);const Le={...W,signal:N,method:_.toUpperCase(),headers:ni(Y.normalize()),body:m,duplex:"half",credentials:ct?A:void 0};F=d&&new o(E,Le);let se=await(d?S(F,W):S(E,Le));const je=J.from(se.headers);if(he){const O=f.toFiniteNumber(je.getContentLength());if(O!=null&&O>U)throw new V("maxContentLength size of "+U+" exceeded",V.ERR_BAD_RESPONSE,u,F)}const R=C&&(x==="stream"||x==="response");if(C&&se.body&&(T||he||R&&Z)){const O={};["status","statusText","headers"].forEach(re=>{O[re]=se[re]});const j=f.toFiniteNumber(je.getContentLength()),[ae,oe]=T&&bi(j,Ye(wi(T),!0))||[];let Re=0;const He=re=>{if(he&&(Re=re,Re>U))throw new V("maxContentLength size of "+U+" exceeded",V.ERR_BAD_RESPONSE,u,F);ae&&ae(re)};se=new r(Ii(se.body,Ti,He,()=>{oe&&oe(),Z&&Z()}),O)}x=x||"text";let M=await k[f.findKey(k,x)||"text"](se,u);if(he&&!C&&!R){let O;if(M!=null&&(typeof M.byteLength=="number"?O=M.byteLength:typeof M.size=="number"?O=M.size:typeof M=="string"&&(O=typeof a=="function"?new a().encode(M).byteLength:M.length)),typeof O=="number"&&O>U)throw new V("maxContentLength size of "+U+" exceeded",V.ERR_BAD_RESPONSE,u,F)}return!R&&Z&&Z(),await new Promise((O,j)=>{_i(O,j,{data:M,headers:J.from(se.headers),status:se.status,statusText:se.statusText,config:u,request:F})})}catch(D){if(Z&&Z(),N&&N.aborted&&N.reason instanceof V){const Q=N.reason;throw Q.config=u,F&&(Q.request=F),D!==Q&&Object.defineProperty(Q,"cause",{__proto__:null,value:D,writable:!0,enumerable:!1,configurable:!0}),Q}if(de)throw F&&!de.request&&(de.request=F),de;if(D instanceof V)throw F&&!D.request&&(D.request=F),D;if(D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)){const Q=new V("Network Error",V.ERR_NETWORK,u,F,D&&D.response);throw Object.defineProperty(Q,"cause",{__proto__:null,value:D.cause||D,writable:!0,enumerable:!1,configurable:!0}),Q}throw V.from(D,D&&D.code,u,F,D&&D.response)}}},un=new Map,Bi=e=>{let i=e&&e.env||{};const{fetch:s,Request:a,Response:n}=i,o=[a,n,s];let r=o.length,l=r,d,g,p=un;for(;l--;)d=o[l],g=p.get(d),g===void 0&&p.set(d,g=l?new Map:gn(i)),p=g;return g};Bi();const St={http:Ia,xhr:en,fetch:{get:Bi}};f.forEach(St,(e,i)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:i})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:i})}});const $i=e=>`- ${e}`,yn=e=>f.isFunction(e)||e===null||e===!1;function _n(e,i){e=f.isArray(e)?e:[e];const{length:s}=e;let a,n;const o={};for(let r=0;r<s;r++){a=e[r];let l;if(n=a,!yn(a)&&(n=St[(l=String(a)).toLowerCase()],n===void 0))throw new V(`Unknown adapter '${l}'`);if(n&&(f.isFunction(n)||(n=n.get(i))))break;o[l||"#"+r]=n}if(!n){const r=Object.entries(o).map(([d,g])=>`adapter ${d} `+(g===!1?"is not supported by the environment":"is not available in the build"));let l=s?r.length>1?`since :
4
- `+r.map($i).join(`
5
- `):" "+$i(r[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+l,V.ERR_NOT_SUPPORT)}return n}const Di={getAdapter:_n,adapters:St};function Et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function It(e){return Et(e),e.headers=J.from(e.headers),e.data=Ct.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Di.getAdapter(e.adapter||ze.adapter,e)(e).then(function(a){Et(e),e.response=a;try{a.data=Ct.call(e,e.transformResponse,a)}finally{delete e.response}return a.headers=J.from(a.headers),a},function(a){if(!yi(a)&&(Et(e),a&&a.response)){e.response=a.response;try{a.response.data=Ct.call(e,e.transformResponse,a.response)}finally{delete e.response}a.response.headers=J.from(a.response.headers)}return Promise.reject(a)})}const Ze={};["object","boolean","number","function","string","symbol"].forEach((e,i)=>{Ze[e]=function(a){return typeof a===e||"a"+(i<1?"n ":" ")+e}});const zi={};Ze.transitional=function(i,s,a){function n(o,r){return"[Axios v"+kt+"] Transitional option '"+o+"'"+r+(a?". "+a:"")}return(o,r,l)=>{if(i===!1)throw new V(n(r," has been removed"+(s?" in "+s:"")),V.ERR_DEPRECATED);return s&&!zi[r]&&(zi[r]=!0,console.warn(n(r," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(o,r,l):!0}},Ze.spelling=function(i){return(s,a)=>(console.warn(`${a} is likely a misspelling of ${i}`),!0)};function bn(e,i,s){if(typeof e!="object"||e===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const o=a[n],r=Object.prototype.hasOwnProperty.call(i,o)?i[o]:void 0;if(r){const l=e[o],d=l===void 0||r(l,o,e);if(d!==!0)throw new V("option "+o+" must be "+d,V.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const Qe={assertOptions:bn,validators:Ze},G=Qe.validators;let ke=class{constructor(i){this.defaults=i||{},this.interceptors={request:new pi,response:new pi}}async request(i,s){try{return await this._request(i,s)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=(()=>{if(!n.stack)return"";const r=n.stack.indexOf(`
1
+ (function(de,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(de=typeof globalThis<"u"?globalThis:de||self,e(de.GSCLineupsReports={},de.Vue))})(this,(function(de,e){"use strict";function Bt(t,i){return function(){return t.apply(i,arguments)}}const{toString:as}=Object.prototype,{getPrototypeOf:Xe}=Object,{iterator:Te,toStringTag:Rt}=Symbol,Oe=(t=>i=>{const s=as.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),v=t=>(t=t.toLowerCase(),i=>Oe(i)===t),$e=t=>i=>typeof i===t,{isArray:fe}=Array,ge=$e("undefined");function be(t){return t!==null&&!ge(t)&&t.constructor!==null&&!ge(t.constructor)&&X(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zt=v("ArrayBuffer");function ns(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&zt(t.buffer),i}const os=$e("string"),X=$e("function"),Dt=$e("number"),we=t=>t!==null&&typeof t=="object",rs=t=>t===!0||t===!1,Fe=t=>{if(Oe(t)!=="object")return!1;const i=Xe(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Rt in t)&&!(Te in t)},ls=t=>{if(!we(t)||be(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},cs=v("Date"),ds=v("File"),ms=t=>!!(t&&typeof t.uri<"u"),hs=t=>t&&typeof t.getParts<"u",ps=v("Blob"),fs=v("FileList"),gs=t=>we(t)&&X(t.pipe);function us(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const At=us(),Mt=typeof At.FormData<"u"?At.FormData:void 0,ys=t=>{let i;return t&&(Mt&&t instanceof Mt||X(t.append)&&((i=Oe(t))==="formdata"||i==="object"&&X(t.toString)&&t.toString()==="[object FormData]"))},_s=v("URLSearchParams"),[bs,ws,Cs,ks]=["ReadableStream","Request","Response","Headers"].map(v),Ss=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ce(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,n;if(typeof t!="object"&&(t=[t]),fe(t))for(a=0,n=t.length;a<n;a++)i.call(null,t[a],a,t);else{if(be(t))return;const o=s?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let l;for(a=0;a<r;a++)l=o[a],i.call(null,t[l],l,t)}}function Ut(t,i){if(be(t))return null;i=i.toLowerCase();const s=Object.keys(t);let a=s.length,n;for(;a-- >0;)if(n=s[a],i===n.toLowerCase())return n;return null}const me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pt=t=>!ge(t)&&t!==me;function Je(){const{caseless:t,skipUndefined:i}=Pt(this)&&this||{},s={},a=(n,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const r=t&&Ut(s,o)||o;Fe(s[r])&&Fe(n)?s[r]=Je(s[r],n):Fe(n)?s[r]=Je({},n):fe(n)?s[r]=n.slice():(!i||!ge(n))&&(s[r]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ce(arguments[n],a);return s}const Es=(t,i,s,{allOwnKeys:a}={})=>(Ce(i,(n,o)=>{s&&X(n)?Object.defineProperty(t,o,{value:Bt(n,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),t),Is=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Vs=(t,i,s,a)=>{t.prototype=Object.create(i.prototype,a),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},Ns=(t,i,s,a)=>{let n,o,r;const l={};if(i=i||{},t==null)return i;do{for(n=Object.getOwnPropertyNames(t),o=n.length;o-- >0;)r=n[o],(!a||a(r,t,i))&&!l[r]&&(i[r]=t[r],l[r]=!0);t=s!==!1&&Xe(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},Ts=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const a=t.indexOf(i,s);return a!==-1&&a===s},Os=t=>{if(!t)return null;if(fe(t))return t;let i=t.length;if(!Dt(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},$s=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Xe(Uint8Array)),Fs=(t,i)=>{const a=(t&&t[Te]).call(t);let n;for(;(n=a.next())&&!n.done;){const o=n.value;i.call(t,o[0],o[1])}},Bs=(t,i)=>{let s;const a=[];for(;(s=t.exec(i))!==null;)a.push(s);return a},Rs=v("HTMLFormElement"),zs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,n){return a.toUpperCase()+n}),Lt=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),Ds=v("RegExp"),jt=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),a={};Ce(s,(n,o)=>{let r;(r=i(n,o,t))!==!1&&(a[o]=r||n)}),Object.defineProperties(t,a)},As=t=>{jt(t,(i,s)=>{if(X(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(X(a)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},Ms=(t,i)=>{const s={},a=n=>{n.forEach(o=>{s[o]=!0})};return fe(t)?a(t):a(String(t).split(i)),s},Us=()=>{},Ps=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Ls(t){return!!(t&&X(t.append)&&t[Rt]==="FormData"&&t[Te])}const js=t=>{const i=new Array(10),s=(a,n)=>{if(we(a)){if(i.indexOf(a)>=0)return;if(be(a))return a;if(!("toJSON"in a)){i[n]=a;const o=fe(a)?[]:{};return Ce(a,(r,l)=>{const h=s(r,n+1);!ge(h)&&(o[l]=h)}),i[n]=void 0,o}}return a};return s(t,0)},Hs=v("AsyncFunction"),xs=t=>t&&(we(t)||X(t))&&X(t.then)&&X(t.catch),Ht=((t,i)=>t?setImmediate:i?((s,a)=>(me.addEventListener("message",({source:n,data:o})=>{n===me&&o===s&&a.length&&a.shift()()},!1),n=>{a.push(n),me.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",X(me.postMessage)),Ws=typeof queueMicrotask<"u"?queueMicrotask.bind(me):typeof process<"u"&&process.nextTick||Ht,b={isArray:fe,isArrayBuffer:zt,isBuffer:be,isFormData:ys,isArrayBufferView:ns,isString:os,isNumber:Dt,isBoolean:rs,isObject:we,isPlainObject:Fe,isEmptyObject:ls,isReadableStream:bs,isRequest:ws,isResponse:Cs,isHeaders:ks,isUndefined:ge,isDate:cs,isFile:ds,isReactNativeBlob:ms,isReactNative:hs,isBlob:ps,isRegExp:Ds,isFunction:X,isStream:gs,isURLSearchParams:_s,isTypedArray:$s,isFileList:fs,forEach:Ce,merge:Je,extend:Es,trim:Ss,stripBOM:Is,inherits:Vs,toFlatObject:Ns,kindOf:Oe,kindOfTest:v,endsWith:Ts,toArray:Os,forEachEntry:Fs,matchAll:Bs,isHTMLForm:Rs,hasOwnProperty:Lt,hasOwnProp:Lt,reduceDescriptors:jt,freezeMethods:As,toObjectSet:Ms,toCamelCase:zs,noop:Us,toFiniteNumber:Ps,findKey:Ut,global:me,isContextDefined:Pt,isSpecCompliantForm:Ls,toJSONObject:js,isAsyncFn:Hs,isThenable:xs,setImmediate:Ht,asap:Ws,isIterable:t=>t!=null&&X(t[Te])};let T=class is extends Error{static from(i,s,a,n,o,r){const l=new is(i.message,s||i.code,a,n,o);return l.cause=i,l.name=i.name,i.status!=null&&l.status==null&&(l.status=i.status),r&&Object.assign(l,r),l}constructor(i,s,a,n,o){super(i),Object.defineProperty(this,"message",{value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),a&&(this.config=a),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){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:b.toJSONObject(this.config),code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",T.ERR_BAD_OPTION="ERR_BAD_OPTION",T.ECONNABORTED="ECONNABORTED",T.ETIMEDOUT="ETIMEDOUT",T.ERR_NETWORK="ERR_NETWORK",T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",T.ERR_DEPRECATED="ERR_DEPRECATED",T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",T.ERR_BAD_REQUEST="ERR_BAD_REQUEST",T.ERR_CANCELED="ERR_CANCELED",T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",T.ERR_INVALID_URL="ERR_INVALID_URL";const qs=null;function Ye(t){return b.isPlainObject(t)||b.isArray(t)}function xt(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function Ke(t,i,s){return t?t.concat(i).map(function(n,o){return n=xt(n),!s&&o?"["+n+"]":n}).join(s?".":""):i}function Gs(t){return b.isArray(t)&&!t.some(Ye)}const Xs=b.toFlatObject(b,{},null,function(i){return/^is[A-Z]/.test(i)});function Be(t,i,s){if(!b.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=b.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,m){return!b.isUndefined(m[u])});const a=s.metaTokens,n=s.visitor||p,o=s.dots,r=s.indexes,h=(s.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(i);if(!b.isFunction(n))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(b.isDate(g))return g.toISOString();if(b.isBoolean(g))return g.toString();if(!h&&b.isBlob(g))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(g)||b.isTypedArray(g)?h&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,u,m){let k=g;if(b.isReactNative(i)&&b.isReactNativeBlob(g))return i.append(Ke(m,u,o),f(g)),!1;if(g&&!m&&typeof g=="object"){if(b.endsWith(u,"{}"))u=a?u:u.slice(0,-2),g=JSON.stringify(g);else if(b.isArray(g)&&Gs(g)||(b.isFileList(g)||b.endsWith(u,"[]"))&&(k=b.toArray(g)))return u=xt(u),k.forEach(function(y,d){!(b.isUndefined(y)||y===null)&&i.append(r===!0?Ke([u],d,o):r===null?u:u+"[]",f(y))}),!1}return Ye(g)?!0:(i.append(Ke(m,u,o),f(g)),!1)}const _=[],c=Object.assign(Xs,{defaultVisitor:p,convertValue:f,isVisitable:Ye});function C(g,u){if(!b.isUndefined(g)){if(_.indexOf(g)!==-1)throw Error("Circular reference detected in "+u.join("."));_.push(g),b.forEach(g,function(k,O){(!(b.isUndefined(k)||k===null)&&n.call(i,k,b.isString(O)?O.trim():O,u,c))===!0&&C(k,u?u.concat(O):[O])}),_.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return C(t),i}function Wt(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Ze(t,i){this._pairs=[],t&&Be(t,this,i)}const qt=Ze.prototype;qt.append=function(i,s){this._pairs.push([i,s])},qt.toString=function(i){const s=i?function(a){return i.call(this,a,Wt)}:Wt;return this._pairs.map(function(n){return s(n[0])+"="+s(n[1])},"").join("&")};function Js(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gt(t,i,s){if(!i)return t;const a=s&&s.encode||Js,n=b.isFunction(s)?{serialize:s}:s,o=n&&n.serialize;let r;if(o?r=o(i,n):r=b.isURLSearchParams(i)?i.toString():new Ze(i,n).toString(a),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class Xt{constructor(){this.handlers=[]}use(i,s,a){return this.handlers.push({fulfilled:i,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){b.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ys={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ze,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ve=typeof window<"u"&&typeof document<"u",et=typeof navigator=="object"&&navigator||void 0,Ks=ve&&(!et||["ReactNative","NativeScript","NS"].indexOf(et.product)<0),Zs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qs=ve&&window.location.href||"http://localhost",W={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ve,hasStandardBrowserEnv:Ks,hasStandardBrowserWebWorkerEnv:Zs,navigator:et,origin:Qs},Symbol.toStringTag,{value:"Module"})),...Ys};function vs(t,i){return Be(t,new W.classes.URLSearchParams,{visitor:function(s,a,n,o){return W.isNode&&b.isBuffer(s)?(this.append(a,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...i})}function ea(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function ta(t){const i={},s=Object.keys(t);let a;const n=s.length;let o;for(a=0;a<n;a++)o=s[a],i[o]=t[o];return i}function Jt(t){function i(s,a,n,o){let r=s[o++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),h=o>=s.length;return r=!r&&b.isArray(n)?n.length:r,h?(b.hasOwnProp(n,r)?n[r]=[n[r],a]:n[r]=a,!l):((!n[r]||!b.isObject(n[r]))&&(n[r]=[]),i(s,a,n[r],o)&&b.isArray(n[r])&&(n[r]=ta(n[r])),!l)}if(b.isFormData(t)&&b.isFunction(t.entries)){const s={};return b.forEachEntry(t,(a,n)=>{i(ea(a),n,s,0)}),s}return null}function ia(t,i,s){if(b.isString(t))try{return(i||JSON.parse)(t),b.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const ke={transitional:Qe,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const a=s.getContentType()||"",n=a.indexOf("application/json")>-1,o=b.isObject(i);if(o&&b.isHTMLForm(i)&&(i=new FormData(i)),b.isFormData(i))return n?JSON.stringify(Jt(i)):i;if(b.isArrayBuffer(i)||b.isBuffer(i)||b.isStream(i)||b.isFile(i)||b.isBlob(i)||b.isReadableStream(i))return i;if(b.isArrayBufferView(i))return i.buffer;if(b.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let l;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return vs(i,this.formSerializer).toString();if((l=b.isFileList(i))||a.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Be(l?{"files[]":i}:i,h&&new h,this.formSerializer)}}return o||n?(s.setContentType("application/json",!1),ia(i)):i}],transformResponse:[function(i){const s=this.transitional||ke.transitional,a=s&&s.forcedJSONParsing,n=this.responseType==="json";if(b.isResponse(i)||b.isReadableStream(i))return i;if(i&&b.isString(i)&&(a&&!this.responseType||n)){const r=!(s&&s.silentJSONParsing)&&n;try{return JSON.parse(i,this.parseReviver)}catch(l){if(r)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,this.response):l}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:W.classes.FormData,Blob:W.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{ke.headers[t]={}});const sa=b.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"]),aa=t=>{const i={};let s,a,n;return t&&t.split(`
2
+ `).forEach(function(r){n=r.indexOf(":"),s=r.substring(0,n).trim().toLowerCase(),a=r.substring(n+1).trim(),!(!s||i[s]&&sa[s])&&(s==="set-cookie"?i[s]?i[s].push(a):i[s]=[a]:i[s]=i[s]?i[s]+", "+a:a)}),i},Yt=Symbol("internals"),na=t=>!/[\r\n]/.test(t);function Kt(t,i){if(!(t===!1||t==null)){if(b.isArray(t)){t.forEach(s=>Kt(s,i));return}if(!na(String(t)))throw new Error(`Invalid character in header content ["${i}"]`)}}function Se(t){return t&&String(t).trim().toLowerCase()}function oa(t){let i=t.length;for(;i>0;){const s=t.charCodeAt(i-1);if(s!==10&&s!==13)break;i-=1}return i===t.length?t:t.slice(0,i)}function Re(t){return t===!1||t==null?t:b.isArray(t)?t.map(Re):oa(String(t))}function ra(t){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(t);)i[a[1]]=a[2];return i}const la=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function tt(t,i,s,a,n){if(b.isFunction(a))return a.call(this,i,s);if(n&&(i=s),!!b.isString(i)){if(b.isString(a))return i.indexOf(a)!==-1;if(b.isRegExp(a))return a.test(i)}}function ca(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,a)=>s.toUpperCase()+a)}function da(t,i){const s=b.toCamelCase(" "+i);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+s,{value:function(n,o,r){return this[a].call(this,i,n,o,r)},configurable:!0})})}let J=class{constructor(i){i&&this.set(i)}set(i,s,a){const n=this;function o(l,h,f){const p=Se(h);if(!p)throw new Error("header name must be a non-empty string");const _=b.findKey(n,p);(!_||n[_]===void 0||f===!0||f===void 0&&n[_]!==!1)&&(Kt(l,h),n[_||h]=Re(l))}const r=(l,h)=>b.forEach(l,(f,p)=>o(f,p,h));if(b.isPlainObject(i)||i instanceof this.constructor)r(i,s);else if(b.isString(i)&&(i=i.trim())&&!la(i))r(aa(i),s);else if(b.isObject(i)&&b.isIterable(i)){let l={},h,f;for(const p of i){if(!b.isArray(p))throw TypeError("Object iterator must return a key-value pair");l[f=p[0]]=(h=l[f])?b.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}r(l,s)}else i!=null&&o(s,i,a);return this}get(i,s){if(i=Se(i),i){const a=b.findKey(this,i);if(a){const n=this[a];if(!s)return n;if(s===!0)return ra(n);if(b.isFunction(s))return s.call(this,n,a);if(b.isRegExp(s))return s.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=Se(i),i){const a=b.findKey(this,i);return!!(a&&this[a]!==void 0&&(!s||tt(this,this[a],a,s)))}return!1}delete(i,s){const a=this;let n=!1;function o(r){if(r=Se(r),r){const l=b.findKey(a,r);l&&(!s||tt(a,a[l],l,s))&&(delete a[l],n=!0)}}return b.isArray(i)?i.forEach(o):o(i),n}clear(i){const s=Object.keys(this);let a=s.length,n=!1;for(;a--;){const o=s[a];(!i||tt(this,this[o],o,i,!0))&&(delete this[o],n=!0)}return n}normalize(i){const s=this,a={};return b.forEach(this,(n,o)=>{const r=b.findKey(a,o);if(r){s[r]=Re(n),delete s[o];return}const l=i?ca(o):String(o).trim();l!==o&&delete s[o],s[l]=Re(n),a[l]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return b.forEach(this,(a,n)=>{a!=null&&a!==!1&&(s[n]=i&&b.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const a=new this(i);return s.forEach(n=>a.set(n)),a}static accessor(i){const a=(this[Yt]=this[Yt]={accessors:{}}).accessors,n=this.prototype;function o(r){const l=Se(r);a[l]||(da(n,r),a[l]=!0)}return b.isArray(i)?i.forEach(o):o(i),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(J.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(a){this[s]=a}}}),b.freezeMethods(J);function it(t,i){const s=this||ke,a=i||s,n=J.from(a.headers);let o=a.data;return b.forEach(t,function(l){o=l.call(s,o,n.normalize(),i?i.status:void 0)}),n.normalize(),o}function Zt(t){return!!(t&&t.__CANCEL__)}let Ee=class extends T{constructor(i,s,a){super(i??"canceled",T.ERR_CANCELED,s,a),this.name="CanceledError",this.__CANCEL__=!0}};function Qt(t,i,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):i(new T("Request failed with status code "+s.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ma(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function ha(t,i){t=t||10;const s=new Array(t),a=new Array(t);let n=0,o=0,r;return i=i!==void 0?i:1e3,function(h){const f=Date.now(),p=a[o];r||(r=f),s[n]=h,a[n]=f;let _=o,c=0;for(;_!==n;)c+=s[_++],_=_%t;if(n=(n+1)%t,n===o&&(o=(o+1)%t),f-r<i)return;const C=p&&f-p;return C?Math.round(c*1e3/C):void 0}}function pa(t,i){let s=0,a=1e3/i,n,o;const r=(f,p=Date.now())=>{s=p,n=null,o&&(clearTimeout(o),o=null),t(...f)};return[(...f)=>{const p=Date.now(),_=p-s;_>=a?r(f,p):(n=f,o||(o=setTimeout(()=>{o=null,r(n)},a-_)))},()=>n&&r(n)]}const ze=(t,i,s=3)=>{let a=0;const n=ha(50,250);return pa(o=>{const r=o.loaded,l=o.lengthComputable?o.total:void 0,h=r-a,f=n(h),p=r<=l;a=r;const _={loaded:r,total:l,progress:l?r/l:void 0,bytes:h,rate:f||void 0,estimated:f&&l&&p?(l-r)/f:void 0,event:o,lengthComputable:l!=null,[i?"download":"upload"]:!0};t(_)},s)},vt=(t,i)=>{const s=t!=null;return[a=>i[0]({lengthComputable:s,total:t,loaded:a}),i[1]]},ei=t=>(...i)=>b.asap(()=>t(...i)),fa=W.hasStandardBrowserEnv?((t,i)=>s=>(s=new URL(s,W.origin),t.protocol===s.protocol&&t.host===s.host&&(i||t.port===s.port)))(new URL(W.origin),W.navigator&&/(msie|trident)/i.test(W.navigator.userAgent)):()=>!0,ga=W.hasStandardBrowserEnv?{write(t,i,s,a,n,o,r){if(typeof document>"u")return;const l=[`${t}=${encodeURIComponent(i)}`];b.isNumber(s)&&l.push(`expires=${new Date(s).toUTCString()}`),b.isString(a)&&l.push(`path=${a}`),b.isString(n)&&l.push(`domain=${n}`),o===!0&&l.push("secure"),b.isString(r)&&l.push(`SameSite=${r}`),document.cookie=l.join("; ")},read(t){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ua(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ya(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function ti(t,i,s){let a=!ua(i);return t&&(a||s==!1)?ya(t,i):i}const ii=t=>t instanceof J?{...t}:t;function he(t,i){i=i||{};const s={};function a(f,p,_,c){return b.isPlainObject(f)&&b.isPlainObject(p)?b.merge.call({caseless:c},f,p):b.isPlainObject(p)?b.merge({},p):b.isArray(p)?p.slice():p}function n(f,p,_,c){if(b.isUndefined(p)){if(!b.isUndefined(f))return a(void 0,f,_,c)}else return a(f,p,_,c)}function o(f,p){if(!b.isUndefined(p))return a(void 0,p)}function r(f,p){if(b.isUndefined(p)){if(!b.isUndefined(f))return a(void 0,f)}else return a(void 0,p)}function l(f,p,_){if(_ in i)return a(f,p);if(_ in t)return a(void 0,f)}const h={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(f,p,_)=>n(ii(f),ii(p),_,!0)};return b.forEach(Object.keys({...t,...i}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const _=b.hasOwnProp(h,p)?h[p]:n,c=_(t[p],i[p],p);b.isUndefined(c)&&_!==l||(s[p]=c)}),s}const si=t=>{const i=he({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:r,auth:l}=i;if(i.headers=r=J.from(r),i.url=Gt(ti(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&r.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),b.isFormData(s)){if(W.hasStandardBrowserEnv||W.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(b.isFunction(s.getHeaders)){const h=s.getHeaders(),f=["content-type","content-length"];Object.entries(h).forEach(([p,_])=>{f.includes(p.toLowerCase())&&r.set(p,_)})}}if(W.hasStandardBrowserEnv&&(a&&b.isFunction(a)&&(a=a(i)),a||a!==!1&&fa(i.url))){const h=n&&o&&ga.read(o);h&&r.set(n,h)}return i},_a=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(s,a){const n=si(t);let o=n.data;const r=J.from(n.headers).normalize();let{responseType:l,onUploadProgress:h,onDownloadProgress:f}=n,p,_,c,C,g;function u(){C&&C(),g&&g(),n.cancelToken&&n.cancelToken.unsubscribe(p),n.signal&&n.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function k(){if(!m)return;const y=J.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:t,request:m};Qt(function(R){s(R),u()},function(R){a(R),u()},w),m=null}"onloadend"in m?m.onloadend=k:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(k)},m.onabort=function(){m&&(a(new T("Request aborted",T.ECONNABORTED,t,m)),m=null)},m.onerror=function(d){const w=d&&d.message?d.message:"Network Error",E=new T(w,T.ERR_NETWORK,t,m);E.event=d||null,a(E),m=null},m.ontimeout=function(){let d=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const w=n.transitional||Qe;n.timeoutErrorMessage&&(d=n.timeoutErrorMessage),a(new T(d,w.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,m)),m=null},o===void 0&&r.setContentType(null),"setRequestHeader"in m&&b.forEach(r.toJSON(),function(d,w){m.setRequestHeader(w,d)}),b.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),l&&l!=="json"&&(m.responseType=n.responseType),f&&([c,g]=ze(f,!0),m.addEventListener("progress",c)),h&&m.upload&&([_,C]=ze(h),m.upload.addEventListener("progress",_),m.upload.addEventListener("loadend",C)),(n.cancelToken||n.signal)&&(p=y=>{m&&(a(!y||y.type?new Ee(null,t,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(p),n.signal&&(n.signal.aborted?p():n.signal.addEventListener("abort",p)));const O=ma(n.url);if(O&&W.protocols.indexOf(O)===-1){a(new T("Unsupported protocol "+O+":",T.ERR_BAD_REQUEST,t));return}m.send(o||null)})},ba=(t,i)=>{const{length:s}=t=t?t.filter(Boolean):[];if(i||s){let a=new AbortController,n;const o=function(f){if(!n){n=!0,l();const p=f instanceof Error?f:this.reason;a.abort(p instanceof T?p:new Ee(p instanceof Error?p.message:p))}};let r=i&&setTimeout(()=>{r=null,o(new T(`timeout of ${i}ms exceeded`,T.ETIMEDOUT))},i);const l=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:h}=a;return h.unsubscribe=()=>b.asap(l),h}},wa=function*(t,i){let s=t.byteLength;if(s<i){yield t;return}let a=0,n;for(;a<s;)n=a+i,yield t.slice(a,n),a=n},Ca=async function*(t,i){for await(const s of ka(t))yield*wa(s,i)},ka=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:s,value:a}=await i.read();if(s)break;yield a}}finally{await i.cancel()}},ai=(t,i,s,a)=>{const n=Ca(t,i);let o=0,r,l=h=>{r||(r=!0,a&&a(h))};return new ReadableStream({async pull(h){try{const{done:f,value:p}=await n.next();if(f){l(),h.close();return}let _=p.byteLength;if(s){let c=o+=_;s(c)}h.enqueue(new Uint8Array(p))}catch(f){throw l(f),f}},cancel(h){return l(h),n.return()}},{highWaterMark:2})},ni=64*1024,{isFunction:De}=b,Sa=(({Request:t,Response:i})=>({Request:t,Response:i}))(b.global),{ReadableStream:oi,TextEncoder:ri}=b.global,li=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Ea=t=>{t=b.merge.call({skipUndefined:!0},Sa,t);const{fetch:i,Request:s,Response:a}=t,n=i?De(i):typeof fetch=="function",o=De(s),r=De(a);if(!n)return!1;const l=n&&De(oi),h=n&&(typeof ri=="function"?(g=>u=>g.encode(u))(new ri):async g=>new Uint8Array(await new s(g).arrayBuffer())),f=o&&l&&li(()=>{let g=!1;const u=new oi,m=new s(W.origin,{body:u,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return u.cancel(),g&&!m}),p=r&&l&&li(()=>b.isReadableStream(new a("").body)),_={stream:p&&(g=>g.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!_[g]&&(_[g]=(u,m)=>{let k=u&&u[g];if(k)return k.call(u);throw new T(`Response type '${g}' is not supported`,T.ERR_NOT_SUPPORT,m)})});const c=async g=>{if(g==null)return 0;if(b.isBlob(g))return g.size;if(b.isSpecCompliantForm(g))return(await new s(W.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(b.isArrayBufferView(g)||b.isArrayBuffer(g))return g.byteLength;if(b.isURLSearchParams(g)&&(g=g+""),b.isString(g))return(await h(g)).byteLength},C=async(g,u)=>{const m=b.toFiniteNumber(g.getContentLength());return m??c(u)};return async g=>{let{url:u,method:m,data:k,signal:O,cancelToken:y,timeout:d,onDownloadProgress:w,onUploadProgress:E,responseType:R,headers:V,withCredentials:A="same-origin",fetchOptions:Y}=si(g),ae=i||fetch;R=R?(R+"").toLowerCase():"text";let D=ba([O,y&&y.toAbortSignal()],d),U=null;const M=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let ye;try{if(E&&f&&m!=="get"&&m!=="head"&&(ye=await C(V,k))!==0){let B=new s(u,{method:"POST",body:k,duplex:"half"}),K;if(b.isFormData(k)&&(K=B.headers.get("content-type"))&&V.setContentType(K),B.body){const[te,oe]=vt(ye,ze(ei(E)));k=ai(B.body,ni,te,oe)}}b.isString(A)||(A=A?"include":"omit");const j=o&&"credentials"in s.prototype,G={...Y,signal:D,method:m.toUpperCase(),headers:V.normalize().toJSON(),body:k,duplex:"half",credentials:j?A:void 0};U=o&&new s(u,G);let q=await(o?ae(U,Y):ae(u,G));const S=p&&(R==="stream"||R==="response");if(p&&(w||S&&M)){const B={};["status","statusText","headers"].forEach(_e=>{B[_e]=q[_e]});const K=b.toFiniteNumber(q.headers.get("content-length")),[te,oe]=w&&vt(K,ze(ei(w),!0))||[];q=new a(ai(q.body,ni,te,()=>{oe&&oe(),M&&M()}),B)}R=R||"text";let I=await _[b.findKey(_,R)||"text"](q,g);return!S&&M&&M(),await new Promise((B,K)=>{Qt(B,K,{data:I,headers:J.from(q.headers),status:q.status,statusText:q.statusText,config:g,request:U})})}catch(j){throw M&&M(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,g,U,j&&j.response),{cause:j.cause||j}):T.from(j,j&&j.code,g,U,j&&j.response)}}},Ia=new Map,ci=t=>{let i=t&&t.env||{};const{fetch:s,Request:a,Response:n}=i,o=[a,n,s];let r=o.length,l=r,h,f,p=Ia;for(;l--;)h=o[l],f=p.get(h),f===void 0&&p.set(h,f=l?new Map:Ea(i)),p=f;return f};ci();const st={http:qs,xhr:_a,fetch:{get:ci}};b.forEach(st,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const di=t=>`- ${t}`,Va=t=>b.isFunction(t)||t===null||t===!1;function Na(t,i){t=b.isArray(t)?t:[t];const{length:s}=t;let a,n;const o={};for(let r=0;r<s;r++){a=t[r];let l;if(n=a,!Va(a)&&(n=st[(l=String(a)).toLowerCase()],n===void 0))throw new T(`Unknown adapter '${l}'`);if(n&&(b.isFunction(n)||(n=n.get(i))))break;o[l||"#"+r]=n}if(!n){const r=Object.entries(o).map(([h,f])=>`adapter ${h} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=s?r.length>1?`since :
4
+ `+r.map(di).join(`
5
+ `):" "+di(r[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return n}const mi={getAdapter:Na,adapters:st};function at(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ee(null,t)}function hi(t){return at(t),t.headers=J.from(t.headers),t.data=it.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),mi.getAdapter(t.adapter||ke.adapter,t)(t).then(function(a){return at(t),a.data=it.call(t,t.transformResponse,a),a.headers=J.from(a.headers),a},function(a){return Zt(a)||(at(t),a&&a.response&&(a.response.data=it.call(t,t.transformResponse,a.response),a.response.headers=J.from(a.response.headers))),Promise.reject(a)})}const pi="1.15.0",Ae={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ae[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const fi={};Ae.transitional=function(i,s,a){function n(o,r){return"[Axios v"+pi+"] Transitional option '"+o+"'"+r+(a?". "+a:"")}return(o,r,l)=>{if(i===!1)throw new T(n(r," has been removed"+(s?" in "+s:"")),T.ERR_DEPRECATED);return s&&!fi[r]&&(fi[r]=!0,console.warn(n(r," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(o,r,l):!0}},Ae.spelling=function(i){return(s,a)=>(console.warn(`${a} is likely a misspelling of ${i}`),!0)};function Ta(t,i,s){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let n=a.length;for(;n-- >0;){const o=a[n],r=i[o];if(r){const l=t[o],h=l===void 0||r(l,o,t);if(h!==!0)throw new T("option "+o+" must be "+h,T.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new T("Unknown option "+o,T.ERR_BAD_OPTION)}}const Me={assertOptions:Ta,validators:Ae},Z=Me.validators;let pe=class{constructor(i){this.defaults=i||{},this.interceptors={request:new Xt,response:new Xt}}async request(i,s){try{return await this._request(i,s)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=(()=>{if(!n.stack)return"";const r=n.stack.indexOf(`
6
6
  `);return r===-1?"":n.stack.slice(r+1)})();try{if(!a.stack)a.stack=o;else if(o){const r=o.indexOf(`
7
7
  `),l=r===-1?-1:o.indexOf(`
8
- `,r+1),d=l===-1?"":o.slice(l+1);String(a.stack).endsWith(d)||(a.stack+=`
9
- `+o)}}catch{}}throw a}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=Ce(this.defaults,s);const{transitional:a,paramsSerializer:n,headers:o}=s;a!==void 0&&Qe.assertOptions(a,{silentJSONParsing:G.transitional(G.boolean),forcedJSONParsing:G.transitional(G.boolean),clarifyTimeoutError:G.transitional(G.boolean),legacyInterceptorReqResOrdering:G.transitional(G.boolean),advertiseZstdAcceptEncoding:G.transitional(G.boolean),validateStatusUndefinedResolves:G.transitional(G.boolean)},!1),n!=null&&(f.isFunction(n)?s.paramsSerializer={serialize:n}:Qe.assertOptions(n,{encode:G.function,serialize:G.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Qe.assertOptions(s,{baseUrl:G.spelling("baseURL"),withXsrfToken:G.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=o&&f.merge(o.common,o[s.method]);o&&f.forEach(["delete","get","head","post","put","patch","query","common"],k=>{delete o[k]}),s.headers=J.concat(r,o);const l=[];let d=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(s)===!1)return;d=d&&b.synchronous;const h=s.transitional||_t;h&&h.legacyInterceptorReqResOrdering?l.unshift(b.fulfilled,b.rejected):l.push(b.fulfilled,b.rejected)});const g=[];this.interceptors.response.forEach(function(b){g.push(b.fulfilled,b.rejected)});let p,y=0,c;if(!d){const k=[It.bind(this),void 0];for(k.unshift(...l),k.push(...g),c=k.length,p=Promise.resolve(s);y<c;)p=p.then(k[y++],k[y++]);return p}c=l.length;let C=s;for(;y<c;){const k=l[y++],b=l[y++];try{C=k?k(C):C}catch(h){if(!b){p=Promise.reject(h);break}try{const u=b.call(this,h);f.isThenable(u)&&(p=Promise.resolve(u).then(()=>It.call(this,C)))}catch(u){p=Promise.reject(u)}break}}if(!p)try{p=It.call(this,C)}catch(k){p=Promise.reject(k)}for(y=0,c=g.length;y<c;)p=p.then(g[y++],g[y++]);return p}getUri(i){i=Ce(this.defaults,i);const s=ki(i.baseURL,i.url,i.allowAbsoluteUrls,i);return hi(s,i.params,i.paramsSerializer)}};f.forEach(["delete","get","head","options"],function(i){ke.prototype[i]=function(s,a){return this.request(Ce(a||{},{method:i,url:s,data:a&&f.hasOwnProp(a,"data")?a.data:void 0}))}}),f.forEach(["post","put","patch","query"],function(i){function s(a){return function(o,r,l){return this.request(Ce(l||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}ke.prototype[i]=s(),i!=="query"&&(ke.prototype[i+"Form"]=s(!0))});let wn=class ys{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const r=new Promise(l=>{a.subscribe(l),o=l}).then(n);return r.cancel=function(){a.unsubscribe(o)},r},i(function(o,r,l){a.reason||(a.reason=new Ae(o,r,l),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=a=>{i.abort(a)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new ys(function(n){i=n}),cancel:i}}};function Cn(e){return function(s){return e.apply(null,s)}}function kn(e){return f.isObject(e)&&e.isAxiosError===!0}const Vt={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vt).forEach(([e,i])=>{Vt[i]=e});function Ai(e){const i=new ke(e),s=Gt(ke.prototype.request,i);return f.extend(s,ke.prototype,i,{allOwnKeys:!0}),f.extend(s,i,null,{allOwnKeys:!0}),s.create=function(n){return Ai(Ce(e,n))},s}const z=Ai(ze);z.Axios=ke,z.CanceledError=Ae,z.CancelToken=wn,z.isCancel=yi,z.VERSION=kt,z.toFormData=Ge,z.AxiosError=V,z.Cancel=z.CanceledError,z.all=function(i){return Promise.all(i)},z.spread=Cn,z.isAxiosError=kn,z.mergeConfig=Ce,z.AxiosHeaders=J,z.formToJSON=e=>ui(f.isHTMLForm(e)?new FormData(e):e),z.getAdapter=Di.getAdapter,z.HttpStatusCode=Vt,z.default=z;const{Axios:gd,AxiosError:ud,CanceledError:yd,isCancel:_d,CancelToken:bd,VERSION:wd,all:Cd,Cancel:kd,isAxiosError:Sd,spread:Ed,toFormData:Id,AxiosHeaders:Vd,HttpStatusCode:Nd,formToJSON:Od,getAdapter:Td,mergeConfig:Rd,create:Fd}=z,le=Object.create(null);le.open="0",le.close="1",le.ping="2",le.pong="3",le.message="4",le.upgrade="5",le.noop="6";const ve=Object.create(null);Object.keys(le).forEach(e=>{ve[le[e]]=e});const Nt={type:"error",data:"parser error"},Pi=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Mi=typeof ArrayBuffer=="function",Ui=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ot=({type:e,data:i},s,a)=>Pi&&i instanceof Blob?s?a(i):Li(i,a):Mi&&(i instanceof ArrayBuffer||Ui(i))?s?a(i):Li(new Blob([i]),a):a(le[e]+(i||"")),Li=(e,i)=>{const s=new FileReader;return s.onload=function(){const a=s.result.split(",")[1];i("b"+(a||""))},s.readAsDataURL(e)};function ji(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Tt;function Sn(e,i){if(Pi&&e.data instanceof Blob)return e.data.arrayBuffer().then(ji).then(i);if(Mi&&(e.data instanceof ArrayBuffer||Ui(e.data)))return i(ji(e.data));Ot(e,!1,s=>{Tt||(Tt=new TextEncoder),i(Tt.encode(s))})}const Hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Hi.length;e++)Pe[Hi.charCodeAt(e)]=e;const En=e=>{let i=e.length*.75,s=e.length,a,n=0,o,r,l,d;e[e.length-1]==="="&&(i--,e[e.length-2]==="="&&i--);const g=new ArrayBuffer(i),p=new Uint8Array(g);for(a=0;a<s;a+=4)o=Pe[e.charCodeAt(a)],r=Pe[e.charCodeAt(a+1)],l=Pe[e.charCodeAt(a+2)],d=Pe[e.charCodeAt(a+3)],p[n++]=o<<2|r>>4,p[n++]=(r&15)<<4|l>>2,p[n++]=(l&3)<<6|d&63;return g},In=typeof ArrayBuffer=="function",Rt=(e,i)=>{if(typeof e!="string")return{type:"message",data:xi(e,i)};const s=e.charAt(0);return s==="b"?{type:"message",data:Vn(e.substring(1),i)}:ve[s]?e.length>1?{type:ve[s],data:e.substring(1)}:{type:ve[s]}:Nt},Vn=(e,i)=>{if(In){const s=En(e);return xi(s,i)}else return{base64:!0,data:e}},xi=(e,i)=>{switch(i){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Wi="",Nn=(e,i)=>{const s=e.length,a=new Array(s);let n=0;e.forEach((o,r)=>{Ot(o,!1,l=>{a[r]=l,++n===s&&i(a.join(Wi))})})},On=(e,i)=>{const s=e.split(Wi),a=[];for(let n=0;n<s.length;n++){const o=Rt(s[n],i);if(a.push(o),o.type==="error")break}return a};function Tn(){return new TransformStream({transform(e,i){Sn(e,s=>{const a=s.length;let n;if(a<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,a);else if(a<65536){n=new Uint8Array(3);const o=new DataView(n.buffer);o.setUint8(0,126),o.setUint16(1,a)}else{n=new Uint8Array(9);const o=new DataView(n.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(n[0]|=128),i.enqueue(n),i.enqueue(s)})}})}let Ft;function et(e){return e.reduce((i,s)=>i+s.length,0)}function tt(e,i){if(e[0].length===i)return e.shift();const s=new Uint8Array(i);let a=0;for(let n=0;n<i;n++)s[n]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),s}function Rn(e,i){Ft||(Ft=new TextDecoder);const s=[];let a=0,n=-1,o=!1;return new TransformStream({transform(r,l){for(s.push(r);;){if(a===0){if(et(s)<1)break;const d=tt(s,1);o=(d[0]&128)===128,n=d[0]&127,n<126?a=3:n===126?a=1:a=2}else if(a===1){if(et(s)<2)break;const d=tt(s,2);n=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),a=3}else if(a===2){if(et(s)<8)break;const d=tt(s,8),g=new DataView(d.buffer,d.byteOffset,d.length),p=g.getUint32(0);if(p>Math.pow(2,21)-1){l.enqueue(Nt);break}n=p*Math.pow(2,32)+g.getUint32(4),a=3}else{if(et(s)<n)break;const d=tt(s,n);l.enqueue(Rt(o?d:Ft.decode(d),i)),a=0}if(n===0||n>e){l.enqueue(Nt);break}}}})}const qi=4;function H(e){if(e)return Fn(e)}function Fn(e){for(var i in H.prototype)e[i]=H.prototype[i];return e}H.prototype.on=H.prototype.addEventListener=function(e,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(i),this},H.prototype.once=function(e,i){function s(){this.off(e,s),i.apply(this,arguments)}return s.fn=i,this.on(e,s),this},H.prototype.off=H.prototype.removeListener=H.prototype.removeAllListeners=H.prototype.removeEventListener=function(e,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+e];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,n=0;n<s.length;n++)if(a=s[n],a===i||a.fn===i){s.splice(n,1);break}return s.length===0&&delete this._callbacks["$"+e],this},H.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),s=this._callbacks["$"+e],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(s){s=s.slice(0);for(var a=0,n=s.length;a<n;++a)s[a].apply(this,i)}return this},H.prototype.emitReserved=H.prototype.emit,H.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},H.prototype.hasListeners=function(e){return!!this.listeners(e).length};const it=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,s)=>s(i,0),ie=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Bn="arraybuffer";function Bd(){}function Xi(e,...i){return i.reduce((s,a)=>(e.hasOwnProperty(a)&&(s[a]=e[a]),s),{})}const $n=ie.setTimeout,Dn=ie.clearTimeout;function st(e,i){i.useNativeTimers?(e.setTimeoutFn=$n.bind(ie),e.clearTimeoutFn=Dn.bind(ie)):(e.setTimeoutFn=ie.setTimeout.bind(ie),e.clearTimeoutFn=ie.clearTimeout.bind(ie))}const zn=1.33;function An(e){return typeof e=="string"?Pn(e):Math.ceil((e.byteLength||e.size)*zn)}function Pn(e){let i=0,s=0;for(let a=0,n=e.length;a<n;a++)i=e.charCodeAt(a),i<128?s+=1:i<2048?s+=2:i<55296||i>=57344?s+=3:(a++,s+=4);return s}function Ji(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Mn(e){let i="";for(let s in e)e.hasOwnProperty(s)&&(i.length&&(i+="&"),i+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return i}function Un(e){let i={},s=e.split("&");for(let a=0,n=s.length;a<n;a++){let o=s[a].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return i}class Ln extends Error{constructor(i,s,a){super(i),this.description=s,this.context=a,this.type="TransportError"}}class Bt extends H{constructor(i){super(),this.writable=!1,st(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,s,a){return super.emitReserved("error",new Ln(i,s,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const s=Rt(i,this.socket.binaryType);this.onPacket(s)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,s={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const s=Mn(i);return s.length?"?"+s:""}}class jn extends Bt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const s=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||s()})),this.writable||(a++,this.once("drain",function(){--a||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const s=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};On(i,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Nn(i,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=Ji()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(i,s)}}let Gi=!1;try{Gi=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Hn=Gi;function xn(){}class Wn extends jn{constructor(i){if(super(i),typeof location<"u"){const s=location.protocol==="https:";let a=location.port;a||(a=s?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||a!==i.port}}doWrite(i,s){const a=this.request({method:"POST",data:i});a.on("success",s),a.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(s,a)=>{this.onError("xhr poll error",s,a)}),this.pollXhr=i}}class ce extends H{constructor(i,s,a){super(),this.createRequest=i,st(this,a),this._opts=a,this._method=a.method||"GET",this._uri=s,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var i;const s=Xi(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(s);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&a.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var n;a.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=ce.requestsCount++,ce.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=xn,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ce.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(ce.requestsCount=0,ce.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Yi);else if(typeof addEventListener=="function"){const e="onpagehide"in ie?"pagehide":"unload";addEventListener(e,Yi,!1)}}function Yi(){for(let e in ce.requests)ce.requests.hasOwnProperty(e)&&ce.requests[e].abort()}const qn=(function(){const e=Ki({xdomain:!1});return e&&e.responseType!==null})();class Xn extends Wn{constructor(i){super(i);const s=i&&i.forceBase64;this.supportsBinary=qn&&!s}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new ce(Ki,this.uri(),i)}}function Ki(e){const i=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Hn))return new XMLHttpRequest}catch{}if(!i)try{return new ie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Zi=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Jn extends Bt{get name(){return"websocket"}doOpen(){const i=this.uri(),s=this.opts.protocols,a=Zi?{}:Xi(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,s,a)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;Ot(a,this.supportsBinary,o=>{try{this.doWrite(a,o)}catch{}n&&it(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=Ji()),this.supportsBinary||(s.b64=1),this.createUri(i,s)}}const $t=ie.WebSocket||ie.MozWebSocket;class Gn extends Jn{createSocket(i,s,a){return Zi?new $t(i,s,a):s?new $t(i,s):new $t(i)}doWrite(i,s){this.ws.send(s)}}class Yn extends Bt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const s=Rn(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=i.readable.pipeThrough(s).getReader(),n=Tn();n.readable.pipeTo(i.writable),this._writer=n.writable.getWriter();const o=()=>{a.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this._writer.write(r).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;this._writer.write(a).then(()=>{n&&it(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const Kn={websocket:Gn,webtransport:Yn,polling:Xn},Zn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Dt(e){if(e.length>8e3)throw"URI too long";const i=e,s=e.indexOf("["),a=e.indexOf("]");s!=-1&&a!=-1&&(e=e.substring(0,s)+e.substring(s,a).replace(/:/g,";")+e.substring(a,e.length));let n=Zn.exec(e||""),o={},r=14;for(;r--;)o[Qn[r]]=n[r]||"";return s!=-1&&a!=-1&&(o.source=i,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=vn(o,o.path),o.queryKey=eo(o,o.query),o}function vn(e,i){const s=/\/{2,9}/g,a=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&a.splice(0,1),i.slice(-1)=="/"&&a.splice(a.length-1,1),a}function eo(e,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,n,o){n&&(s[n]=o)}),s}const zt=typeof addEventListener=="function"&&typeof removeEventListener=="function",at=[];zt&&addEventListener("offline",()=>{at.forEach(e=>e())},!1);class fe extends H{constructor(i,s){if(super(),this.binaryType=Bn,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(s=i,i=null),i){const a=Dt(i);s.hostname=a.host,s.secure=a.protocol==="https"||a.protocol==="wss",s.port=a.port,a.query&&(s.query=a.query)}else s.host&&(s.hostname=Dt(s.host).host);st(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(a=>{const n=a.prototype.name;this.transports.push(n),this._transportsByName[n]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Un(this.opts.query)),zt&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},at.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const s=Object.assign({},this.opts.query);s.EIO=qi,s.transport=i,this.id&&(s.sid=this.id);const a=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&fe.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(i);s.open(),this.setTransport(s)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",fe.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=i.data,this._onError(s);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let a=0;a<this.writeBuffer.length;a++){const n=this.writeBuffer[a].data;if(n&&(s+=An(n)),a>0&&s>this._maxPayload)return this.writeBuffer.slice(0,a);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,it(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,s,a){return this._sendPacket("message",i,s,a),this}send(i,s,a){return this._sendPacket("message",i,s,a),this}_sendPacket(i,s,a,n){if(typeof s=="function"&&(n=s,s=void 0),typeof a=="function"&&(n=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const o={type:i,data:s,options:a};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),i()},a=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():i()}):this.upgrading?a():i()),this}_onError(i){if(fe.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),zt&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=at.indexOf(this._offlineEventListener);a!==-1&&at.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,s),this.writeBuffer=[],this._prevBufferLen=0}}}fe.protocol=qi;class to extends fe{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let s=this.createTransport(i),a=!1;fe.priorWebsocketSuccess=!1;const n=()=>{a||(s.send([{type:"ping",data:"probe"}]),s.once("packet",y=>{if(!a)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;fe.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(p(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const c=new Error("probe error");c.transport=s.name,this.emitReserved("upgradeError",c)}}))};function o(){a||(a=!0,p(),s.close(),s=null)}const r=y=>{const c=new Error("probe error: "+y);c.transport=s.name,o(),this.emitReserved("upgradeError",c)};function l(){r("transport closed")}function d(){r("socket closed")}function g(y){s&&y.name!==s.name&&o()}const p=()=>{s.removeListener("open",n),s.removeListener("error",r),s.removeListener("close",l),this.off("close",d),this.off("upgrading",g)};s.once("open",n),s.once("error",r),s.once("close",l),this.once("close",d),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{a||s.open()},200):s.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const s=[];for(let a=0;a<i.length;a++)~this.transports.indexOf(i[a])&&s.push(i[a]);return s}}let io=class extends to{constructor(i,s={}){const a=typeof i=="object",n=a?{...i}:{...s};(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Kn[o]).filter(o=>!!o)),super(a?n:i,n)}};function so(e,i="",s){let a=e;s=s||typeof location<"u"&&location,e==null&&(e=s.protocol+"//"+s.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=s.protocol+e:e=s.host+e),/^(https?|wss?):\/\//.test(e)||(typeof s<"u"?e=s.protocol+"//"+e:e="https://"+e),a=Dt(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const o=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+o+":"+a.port+i,a.href=a.protocol+"://"+o+(s&&s.port===a.port?"":":"+a.port),a}const ao=typeof ArrayBuffer=="function",no=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Qi=Object.prototype.toString,oo=typeof Blob=="function"||typeof Blob<"u"&&Qi.call(Blob)==="[object BlobConstructor]",ro=typeof File=="function"||typeof File<"u"&&Qi.call(File)==="[object FileConstructor]";function At(e){return ao&&(e instanceof ArrayBuffer||no(e))||oo&&e instanceof Blob||ro&&e instanceof File}function nt(e,i){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let s=0,a=e.length;s<a;s++)if(nt(e[s]))return!0;return!1}if(At(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return nt(e.toJSON(),!0);for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&nt(e[s]))return!0;return!1}function lo(e){const i=[],s=e.data,a=e;return a.data=ot(s,i),a.attachments=i.length,{packet:a,buffers:i}}function ot(e,i,s){if(!e)return e;if(At(e)){const a={_placeholder:!0,num:i.length};return i.push(e),a}else if(Array.isArray(e)){const a=new Array(e.length);for(let n=0;n<e.length;n++)a[n]=ot(e[n],i);return a}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!s)return ot(e.toJSON(),i,!0);const a={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=ot(e[n],i));return a}return e}function co(e,i){return e.data=Pt(e.data,i),delete e.attachments,e}function Pt(e,i){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<i.length)return i[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=Pt(e[s],i);else if(typeof e=="object")for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=Pt(e[s],i));return e}const mo=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var B;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(B||(B={}));class ho{constructor(i){this.replacer=i}encode(i){return(i.type===B.EVENT||i.type===B.ACK)&&nt(i)?this.encodeAsBinary({type:i.type===B.EVENT?B.BINARY_EVENT:B.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let s=""+i.type;return(i.type===B.BINARY_EVENT||i.type===B.BINARY_ACK)&&(s+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(s+=i.nsp+","),i.id!=null&&(s+=i.id),i.data!=null&&(s+=JSON.stringify(i.data,this.replacer)),s}encodeAsBinary(i){const s=lo(i),a=this.encodeAsString(s.packet),n=s.buffers;return n.unshift(a),n}}class Mt extends H{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let s;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(i);const a=s.type===B.BINARY_EVENT;a||s.type===B.BINARY_ACK?(s.type=a?B.EVENT:B.ACK,this.reconstructor=new po(s)):super.emitReserved("decoded",s)}else if(At(i)||i.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(i),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let s=0;const a={type:Number(i.charAt(0))};if(B[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===B.BINARY_EVENT||a.type===B.BINARY_ACK){const o=s+1;for(;i.charAt(++s)!=="-"&&s!=i.length;);const r=i.substring(o,s);if(r!=Number(r)||i.charAt(s)!=="-")throw new Error("Illegal attachments");const l=Number(r);if(!fo(l)||l<1)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");a.attachments=l}if(i.charAt(s+1)==="/"){const o=s+1;for(;++s&&!(i.charAt(s)===","||s===i.length););a.nsp=i.substring(o,s)}else a.nsp="/";const n=i.charAt(s+1);if(n!==""&&Number(n)==n){const o=s+1;for(;++s;){const r=i.charAt(s);if(r==null||Number(r)!=r){--s;break}if(s===i.length)break}a.id=Number(i.substring(o,s+1))}if(i.charAt(++s)){const o=this.tryParse(i.substr(s));if(Mt.isPayloadValid(a.type,o))a.data=o;else throw new Error("invalid payload")}return a}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,s){switch(i){case B.CONNECT:return vi(s);case B.DISCONNECT:return s===void 0;case B.CONNECT_ERROR:return typeof s=="string"||vi(s);case B.EVENT:case B.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&mo.indexOf(s[0])===-1);case B.ACK:case B.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class po{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const s=co(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fo=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function vi(e){return Object.prototype.toString.call(e)==="[object Object]"}const go=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Mt,Encoder:ho,get PacketType(){return B}},Symbol.toStringTag,{value:"Module"}));function ne(e,i,s){return e.on(i,s),function(){e.off(i,s)}}const uo=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class es extends H{constructor(i,s,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=s,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[ne(i,"open",this.onopen.bind(this)),ne(i,"packet",this.onpacket.bind(this)),ne(i,"error",this.onerror.bind(this)),ne(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...s){var a,n,o;if(uo.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(s.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const r={type:B.EVENT,data:s};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const p=this.ids++,y=s.pop();this._registerAckCallback(p,y),r.id=p}const l=(n=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||n===void 0?void 0:n.writable,d=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(d?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(i,s){var a;const n=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(n===void 0){this.acks[i]=s;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===i&&this.sendBuffer.splice(l,1);s.call(this,new Error("operation has timed out"))},n),r=(...l)=>{this.io.clearTimeoutFn(o),s.apply(this,l)};r.withError=!0,this.acks[i]=r}emitWithAck(i,...s){return new Promise((a,n)=>{const o=(r,l)=>r?n(r):a(l);o.withError=!0,s.push(o),this.emit(i,...s)})}_addToQueue(i){let s;typeof i[i.length-1]=="function"&&(s=i.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((n,...o)=>(this._queue[0],n!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(n)):(this._queue.shift(),s&&s(null,...o)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!i||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:B.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(a=>String(a.id)===i)){const a=this.acks[i];delete this.acks[i],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case B.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case B.EVENT:case B.BINARY_EVENT:this.onevent(i);break;case B.ACK:case B.BINARY_ACK:this.onack(i);break;case B.DISCONNECT:this.ondisconnect();break;case B.CONNECT_ERROR:this.destroy();const a=new Error(i.data.message);a.data=i.data.data,this.emitReserved("connect_error",a);break}}onevent(i){const s=i.data||[];i.id!=null&&s.push(this.ack(i.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const a of s)a.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const s=this;let a=!1;return function(...n){a||(a=!0,s.packet({type:B.ACK,id:i,data:n}))}}onack(i){const s=this.acks[i.id];typeof s=="function"&&(delete this.acks[i.id],s.withError&&i.data.unshift(null),s.apply(this,i.data))}onconnect(i,s){this.id=i,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:B.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const s=this._anyListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const s=this._anyOutgoingListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const a of s)a.apply(this,i.data)}}}function Ne(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ne.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),s=Math.floor(i*this.jitter*e);e=(Math.floor(i*10)&1)==0?e-s:e+s}return Math.min(e,this.max)|0},Ne.prototype.reset=function(){this.attempts=0},Ne.prototype.setMin=function(e){this.ms=e},Ne.prototype.setMax=function(e){this.max=e},Ne.prototype.setJitter=function(e){this.jitter=e};class Ut extends H{constructor(i,s){var a;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(s=i,i=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,st(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((a=s.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new Ne({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=i;const n=s.parser||go;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var s;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(s=this.backoff)===null||s===void 0||s.setMin(i),this)}randomizationFactor(i){var s;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(s=this.backoff)===null||s===void 0||s.setJitter(i),this)}reconnectionDelayMax(i){var s;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(s=this.backoff)===null||s===void 0||s.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new io(this.uri,this.opts);const s=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const n=ne(s,"open",function(){a.onopen(),i&&i()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),i?i(l):this.maybeReconnectOnOpen()},r=ne(s,"error",o);if(this._timeout!==!1){const l=this._timeout,d=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),s.close()},l);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(n),this.subs.push(r),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(ne(i,"ping",this.onping.bind(this)),ne(i,"data",this.ondata.bind(this)),ne(i,"error",this.onerror.bind(this)),ne(i,"close",this.onclose.bind(this)),ne(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(s){this.onclose("parse error",s)}}ondecoded(i){it(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,s){let a=this.nsps[i];return a?this._autoConnect&&!a.active&&a.connect():(a=new es(this,i,s),this.nsps[i]=a),a}_destroy(i){const s=Object.keys(this.nsps);for(const a of s)if(this.nsps[a].active)return;this._close()}_packet(i){const s=this.encoder.encode(i);for(let a=0;a<s.length;a++)this.engine.write(s[a],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,s){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(n=>{n?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",n)):i.onreconnect()}))},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Me={};function rt(e,i){typeof e=="object"&&(i=e,e=void 0),i=i||{};const s=so(e,i.path||"/socket.io"),a=s.source,n=s.id,o=s.path,r=Me[n]&&o in Me[n].nsps,l=i.forceNew||i["force new connection"]||i.multiplex===!1||r;let d;return l?d=new Ut(a,i):(Me[n]||(Me[n]=new Ut(a,i)),d=Me[n]),s.query&&!i.query&&(i.query=s.queryKey),d.socket(s.path,i)}Object.assign(rt,{Manager:Ut,Socket:es,io:rt,connect:rt});const yo=rt("https://golstats-live-server-sockets.azurewebsites.net/",{autoConnect:!1,transports:["websocket"]});function _o(){return yo}function Lt(e,i){const s=i||_o();s.connected&&s.emit("subscribe",{channel:e})}function ge(e,i,s){if(!i||i<=1)return e;const a=s?`https://dev-apis.golstats.com/${i}/`:`https://apis.golstats.com/${i}/`,r=new URL(e).pathname.replace(/^\//,"").split("/"),l=r[0].toLowerCase(),d=l==="prod"||l==="qa"?r.slice(1).join("/"):r.join("/");return a+d}function $(e,i){if(!i||i<=1)return e;const s=new URL(e),a=s.pathname.split("/").filter(l=>l!=="");if(a.length===0)return e;const[n,...o]=a,r=[n,i,...o].join("/");return`${s.origin}/${r}${s.search}`}const me=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},bo={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){(e.section!=="Historicos"||e.type==="Postmatch")&&this.$emit("open-profile",e)}},mounted(){}},wo={key:0,class:"gsc-item-player"},Co={class:"gsc-num-player"},ko={class:"gsc-cont-info-by-player"},So={class:"gsc-cont-info-by-player-row1"},Eo={class:"shield-player-cont"},Io=["src"],Vo={class:"gsc-cont-info-by-player-row2"},No={class:"gsc-cont-info-by-player-row2-line-data"},Oo={class:"cont-display-gsc"},To=["src"],Ro={class:"gsc-cont-cards"},Fo={key:0,class:"gsc-yellow_card_div"},Bo={key:1,class:"gsc-red_card_div"},$o={key:2,class:"gsc-yellowred_card_div"},Do={key:5,class:"gsc-goal_card_div_wrapper"},zo={key:1,class:"gsc-item-player"},Ao={class:"gsc-num-player2"},Po={class:"gsc-cont-info-by-player2"},Mo={class:"gsc-cont-info-by-player-row2"},Uo={class:"gsc-cont-info-by-player-row2-line-data"},Lo={class:"gsc-cont-cards2"},jo={key:0,class:"gsc-yellow_card_div"},Ho={key:1,class:"gsc-red_card_div"},xo={key:2,class:"gsc-yellowred_card_div"},Wo={key:5,class:"gsc-goal_card_div_wrapper"},qo={class:"cont-display-gsc"},Xo=["src"],Jo={class:"gsc-cont-info-by-player-row1"},Go={class:"shield-player-cont"},Yo=["src"];function Ko(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock(t.Fragment,null,[s.type==1?(t.openBlock(),t.createElementBlock("div",wo,[t.createElementVNode("div",Co,[s.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.data.shirt),1)]),t.createElementVNode("div",ko,[t.createElementVNode("div",So,[t.createElementVNode("div",Eo,[t.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,Io)])]),t.createElementVNode("div",Vo,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[0]||(i[0]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},t.toDisplayString(s.data.name),5),t.createElementVNode("div",No,[t.createElementVNode("div",Oo,[t.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,To),t.createElementVNode("div",{class:t.normalizeClass(s.position)},t.toDisplayString(s.data.position),3)]),t.createElementVNode("div",Ro,[s.data.yellowcard>=1&&s.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Fo)):t.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Bo)):t.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",$o)):t.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(s.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),s.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(s.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.data.goalsMin,(r,l)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:l},[i[2]||(i[2]=t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Do,[i[3]||(i[3]=t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),t.createElementVNode("div",null,"'"+t.toDisplayString(s.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",zo,[t.createElementVNode("div",Ao,[s.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.data.shirt),1)]),t.createElementVNode("div",Po,[t.createElementVNode("div",Mo,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[1]||(i[1]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},t.toDisplayString(s.data.name),5),t.createElementVNode("div",Uo,[t.createElementVNode("div",Lo,[s.data.yellowcard>=1&&s.data.redcard==0?(t.openBlock(),t.createElementBlock("div",jo)):t.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Ho)):t.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",xo)):t.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(s.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),s.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(s.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.data.goalsMin,(r,l)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:l},[i[4]||(i[4]=t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Wo,[i[5]||(i[5]=t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),t.createElementVNode("div",null,"'"+t.toDisplayString(s.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qo,[t.createElementVNode("div",{class:t.normalizeClass(s.position)},t.toDisplayString(s.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,Xo)])])]),t.createElementVNode("div",Jo,[t.createElementVNode("div",Go,[t.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,Yo)])])])])):t.createCommentVNode("",!0)],64)}const Zo=me(bo,[["render",Ko],["__scopeId","data-v-46dbaa9c"]]);/**
8
+ `,r+1),h=l===-1?"":o.slice(l+1);String(a.stack).endsWith(h)||(a.stack+=`
9
+ `+o)}}catch{}}throw a}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=he(this.defaults,s);const{transitional:a,paramsSerializer:n,headers:o}=s;a!==void 0&&Me.assertOptions(a,{silentJSONParsing:Z.transitional(Z.boolean),forcedJSONParsing:Z.transitional(Z.boolean),clarifyTimeoutError:Z.transitional(Z.boolean),legacyInterceptorReqResOrdering:Z.transitional(Z.boolean)},!1),n!=null&&(b.isFunction(n)?s.paramsSerializer={serialize:n}:Me.assertOptions(n,{encode:Z.function,serialize:Z.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Me.assertOptions(s,{baseUrl:Z.spelling("baseURL"),withXsrfToken:Z.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=o&&b.merge(o.common,o[s.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),s.headers=J.concat(r,o);const l=[];let h=!0;this.interceptors.request.forEach(function(u){if(typeof u.runWhen=="function"&&u.runWhen(s)===!1)return;h=h&&u.synchronous;const m=s.transitional||Qe;m&&m.legacyInterceptorReqResOrdering?l.unshift(u.fulfilled,u.rejected):l.push(u.fulfilled,u.rejected)});const f=[];this.interceptors.response.forEach(function(u){f.push(u.fulfilled,u.rejected)});let p,_=0,c;if(!h){const g=[hi.bind(this),void 0];for(g.unshift(...l),g.push(...f),c=g.length,p=Promise.resolve(s);_<c;)p=p.then(g[_++],g[_++]);return p}c=l.length;let C=s;for(;_<c;){const g=l[_++],u=l[_++];try{C=g(C)}catch(m){u.call(this,m);break}}try{p=hi.call(this,C)}catch(g){return Promise.reject(g)}for(_=0,c=f.length;_<c;)p=p.then(f[_++],f[_++]);return p}getUri(i){i=he(this.defaults,i);const s=ti(i.baseURL,i.url,i.allowAbsoluteUrls);return Gt(s,i.params,i.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(i){pe.prototype[i]=function(s,a){return this.request(he(a||{},{method:i,url:s,data:(a||{}).data}))}}),b.forEach(["post","put","patch"],function(i){function s(a){return function(o,r,l){return this.request(he(l||{},{method:i,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}pe.prototype[i]=s(),pe.prototype[i+"Form"]=s(!0)});let Oa=class ss{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const r=new Promise(l=>{a.subscribe(l),o=l}).then(n);return r.cancel=function(){a.unsubscribe(o)},r},i(function(o,r,l){a.reason||(a.reason=new Ee(o,r,l),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=a=>{i.abort(a)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new ss(function(n){i=n}),cancel:i}}};function $a(t){return function(s){return t.apply(null,s)}}function Fa(t){return b.isObject(t)&&t.isAxiosError===!0}const nt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(nt).forEach(([t,i])=>{nt[i]=t});function gi(t){const i=new pe(t),s=Bt(pe.prototype.request,i);return b.extend(s,pe.prototype,i,{allOwnKeys:!0}),b.extend(s,i,null,{allOwnKeys:!0}),s.create=function(n){return gi(he(t,n))},s}const z=gi(ke);z.Axios=pe,z.CanceledError=Ee,z.CancelToken=Oa,z.isCancel=Zt,z.VERSION=pi,z.toFormData=Be,z.AxiosError=T,z.Cancel=z.CanceledError,z.all=function(i){return Promise.all(i)},z.spread=$a,z.isAxiosError=Fa,z.mergeConfig=he,z.AxiosHeaders=J,z.formToJSON=t=>Jt(b.isHTMLForm(t)?new FormData(t):t),z.getAdapter=mi.getAdapter,z.HttpStatusCode=nt,z.default=z;const{Axios:Vc,AxiosError:Nc,CanceledError:Tc,isCancel:Oc,CancelToken:$c,VERSION:Fc,all:Bc,Cancel:Rc,isAxiosError:zc,spread:Dc,toFormData:Ac,AxiosHeaders:Mc,HttpStatusCode:Uc,formToJSON:Pc,getAdapter:Lc,mergeConfig:jc}=z,ie=Object.create(null);ie.open="0",ie.close="1",ie.ping="2",ie.pong="3",ie.message="4",ie.upgrade="5",ie.noop="6";const Ue=Object.create(null);Object.keys(ie).forEach(t=>{Ue[ie[t]]=t});const ot={type:"error",data:"parser error"},ui=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",yi=typeof ArrayBuffer=="function",_i=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,rt=({type:t,data:i},s,a)=>ui&&i instanceof Blob?s?a(i):bi(i,a):yi&&(i instanceof ArrayBuffer||_i(i))?s?a(i):bi(new Blob([i]),a):a(ie[t]+(i||"")),bi=(t,i)=>{const s=new FileReader;return s.onload=function(){const a=s.result.split(",")[1];i("b"+(a||""))},s.readAsDataURL(t)};function wi(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let lt;function Ba(t,i){if(ui&&t.data instanceof Blob)return t.data.arrayBuffer().then(wi).then(i);if(yi&&(t.data instanceof ArrayBuffer||_i(t.data)))return i(wi(t.data));rt(t,!1,s=>{lt||(lt=new TextEncoder),i(lt.encode(s))})}const Ci="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Ci.length;t++)Ie[Ci.charCodeAt(t)]=t;const Ra=t=>{let i=t.length*.75,s=t.length,a,n=0,o,r,l,h;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const f=new ArrayBuffer(i),p=new Uint8Array(f);for(a=0;a<s;a+=4)o=Ie[t.charCodeAt(a)],r=Ie[t.charCodeAt(a+1)],l=Ie[t.charCodeAt(a+2)],h=Ie[t.charCodeAt(a+3)],p[n++]=o<<2|r>>4,p[n++]=(r&15)<<4|l>>2,p[n++]=(l&3)<<6|h&63;return f},za=typeof ArrayBuffer=="function",ct=(t,i)=>{if(typeof t!="string")return{type:"message",data:ki(t,i)};const s=t.charAt(0);return s==="b"?{type:"message",data:Da(t.substring(1),i)}:Ue[s]?t.length>1?{type:Ue[s],data:t.substring(1)}:{type:Ue[s]}:ot},Da=(t,i)=>{if(za){const s=Ra(t);return ki(s,i)}else return{base64:!0,data:t}},ki=(t,i)=>{switch(i){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Si="",Aa=(t,i)=>{const s=t.length,a=new Array(s);let n=0;t.forEach((o,r)=>{rt(o,!1,l=>{a[r]=l,++n===s&&i(a.join(Si))})})},Ma=(t,i)=>{const s=t.split(Si),a=[];for(let n=0;n<s.length;n++){const o=ct(s[n],i);if(a.push(o),o.type==="error")break}return a};function Ua(){return new TransformStream({transform(t,i){Ba(t,s=>{const a=s.length;let n;if(a<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,a);else if(a<65536){n=new Uint8Array(3);const o=new DataView(n.buffer);o.setUint8(0,126),o.setUint16(1,a)}else{n=new Uint8Array(9);const o=new DataView(n.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(a))}t.data&&typeof t.data!="string"&&(n[0]|=128),i.enqueue(n),i.enqueue(s)})}})}let dt;function Pe(t){return t.reduce((i,s)=>i+s.length,0)}function Le(t,i){if(t[0].length===i)return t.shift();const s=new Uint8Array(i);let a=0;for(let n=0;n<i;n++)s[n]=t[0][a++],a===t[0].length&&(t.shift(),a=0);return t.length&&a<t[0].length&&(t[0]=t[0].slice(a)),s}function Pa(t,i){dt||(dt=new TextDecoder);const s=[];let a=0,n=-1,o=!1;return new TransformStream({transform(r,l){for(s.push(r);;){if(a===0){if(Pe(s)<1)break;const h=Le(s,1);o=(h[0]&128)===128,n=h[0]&127,n<126?a=3:n===126?a=1:a=2}else if(a===1){if(Pe(s)<2)break;const h=Le(s,2);n=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),a=3}else if(a===2){if(Pe(s)<8)break;const h=Le(s,8),f=new DataView(h.buffer,h.byteOffset,h.length),p=f.getUint32(0);if(p>Math.pow(2,21)-1){l.enqueue(ot);break}n=p*Math.pow(2,32)+f.getUint32(4),a=3}else{if(Pe(s)<n)break;const h=Le(s,n);l.enqueue(ct(o?h:dt.decode(h),i)),a=0}if(n===0||n>t){l.enqueue(ot);break}}}})}const Ei=4;function P(t){if(t)return La(t)}function La(t){for(var i in P.prototype)t[i]=P.prototype[i];return t}P.prototype.on=P.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this},P.prototype.once=function(t,i){function s(){this.off(t,s),i.apply(this,arguments)}return s.fn=i,this.on(t,s),this},P.prototype.off=P.prototype.removeListener=P.prototype.removeAllListeners=P.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+t];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var a,n=0;n<s.length;n++)if(a=s[n],a===i||a.fn===i){s.splice(n,1);break}return s.length===0&&delete this._callbacks["$"+t],this},P.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),s=this._callbacks["$"+t],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(s){s=s.slice(0);for(var a=0,n=s.length;a<n;++a)s[a].apply(this,i)}return this},P.prototype.emitReserved=P.prototype.emit,P.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},P.prototype.hasListeners=function(t){return!!this.listeners(t).length};const je=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,s)=>s(i,0),Q=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ja="arraybuffer";function Hc(){}function Ii(t,...i){return i.reduce((s,a)=>(t.hasOwnProperty(a)&&(s[a]=t[a]),s),{})}const Ha=Q.setTimeout,xa=Q.clearTimeout;function He(t,i){i.useNativeTimers?(t.setTimeoutFn=Ha.bind(Q),t.clearTimeoutFn=xa.bind(Q)):(t.setTimeoutFn=Q.setTimeout.bind(Q),t.clearTimeoutFn=Q.clearTimeout.bind(Q))}const Wa=1.33;function qa(t){return typeof t=="string"?Ga(t):Math.ceil((t.byteLength||t.size)*Wa)}function Ga(t){let i=0,s=0;for(let a=0,n=t.length;a<n;a++)i=t.charCodeAt(a),i<128?s+=1:i<2048?s+=2:i<55296||i>=57344?s+=3:(a++,s+=4);return s}function Vi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Xa(t){let i="";for(let s in t)t.hasOwnProperty(s)&&(i.length&&(i+="&"),i+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return i}function Ja(t){let i={},s=t.split("&");for(let a=0,n=s.length;a<n;a++){let o=s[a].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return i}class Ya extends Error{constructor(i,s,a){super(i),this.description=s,this.context=a,this.type="TransportError"}}class mt extends P{constructor(i){super(),this.writable=!1,He(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,s,a){return super.emitReserved("error",new Ya(i,s,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const s=ct(i,this.socket.binaryType);this.onPacket(s)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,s={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const s=Xa(i);return s.length?"?"+s:""}}class Ka extends mt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const s=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||s()})),this.writable||(a++,this.once("drain",function(){--a||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const s=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};Ma(i,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Aa(i,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=Vi()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(i,s)}}let Ni=!1;try{Ni=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Za=Ni;function Qa(){}class va extends Ka{constructor(i){if(super(i),typeof location<"u"){const s=location.protocol==="https:";let a=location.port;a||(a=s?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||a!==i.port}}doWrite(i,s){const a=this.request({method:"POST",data:i});a.on("success",s),a.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(s,a)=>{this.onError("xhr poll error",s,a)}),this.pollXhr=i}}class se extends P{constructor(i,s,a){super(),this.createRequest=i,He(this,a),this._opts=a,this._method=a.method||"GET",this._uri=s,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var i;const s=Ii(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(s);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&a.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var n;a.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=se.requestsCount++,se.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Qa,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete se.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(se.requestsCount=0,se.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ti);else if(typeof addEventListener=="function"){const t="onpagehide"in Q?"pagehide":"unload";addEventListener(t,Ti,!1)}}function Ti(){for(let t in se.requests)se.requests.hasOwnProperty(t)&&se.requests[t].abort()}const en=(function(){const t=Oi({xdomain:!1});return t&&t.responseType!==null})();class tn extends va{constructor(i){super(i);const s=i&&i.forceBase64;this.supportsBinary=en&&!s}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new se(Oi,this.uri(),i)}}function Oi(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Za))return new XMLHttpRequest}catch{}if(!i)try{return new Q[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const $i=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sn extends mt{get name(){return"websocket"}doOpen(){const i=this.uri(),s=this.opts.protocols,a=$i?{}:Ii(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,s,a)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;rt(a,this.supportsBinary,o=>{try{this.doWrite(a,o)}catch{}n&&je(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=Vi()),this.supportsBinary||(s.b64=1),this.createUri(i,s)}}const ht=Q.WebSocket||Q.MozWebSocket;class an extends sn{createSocket(i,s,a){return $i?new ht(i,s,a):s?new ht(i,s):new ht(i)}doWrite(i,s){this.ws.send(s)}}class nn extends mt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const s=Pa(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=i.readable.pipeThrough(s).getReader(),n=Ua();n.readable.pipeTo(i.writable),this._writer=n.writable.getWriter();const o=()=>{a.read().then(({done:l,value:h})=>{l||(this.onPacket(h),o())}).catch(l=>{})};o();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this._writer.write(r).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let s=0;s<i.length;s++){const a=i[s],n=s===i.length-1;this._writer.write(a).then(()=>{n&&je(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const on={websocket:an,webtransport:nn,polling:tn},rn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ln=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function pt(t){if(t.length>8e3)throw"URI too long";const i=t,s=t.indexOf("["),a=t.indexOf("]");s!=-1&&a!=-1&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));let n=rn.exec(t||""),o={},r=14;for(;r--;)o[ln[r]]=n[r]||"";return s!=-1&&a!=-1&&(o.source=i,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=cn(o,o.path),o.queryKey=dn(o,o.query),o}function cn(t,i){const s=/\/{2,9}/g,a=i.replace(s,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&a.splice(0,1),i.slice(-1)=="/"&&a.splice(a.length-1,1),a}function dn(t,i){const s={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,n,o){n&&(s[n]=o)}),s}const ft=typeof addEventListener=="function"&&typeof removeEventListener=="function",xe=[];ft&&addEventListener("offline",()=>{xe.forEach(t=>t())},!1);class le extends P{constructor(i,s){if(super(),this.binaryType=ja,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(s=i,i=null),i){const a=pt(i);s.hostname=a.host,s.secure=a.protocol==="https"||a.protocol==="wss",s.port=a.port,a.query&&(s.query=a.query)}else s.host&&(s.hostname=pt(s.host).host);He(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(a=>{const n=a.prototype.name;this.transports.push(n),this._transportsByName[n]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ja(this.opts.query)),ft&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},xe.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const s=Object.assign({},this.opts.query);s.EIO=Ei,s.transport=i,this.id&&(s.sid=this.id);const a=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&le.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(i);s.open(),this.setTransport(s)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",le.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=i.data,this._onError(s);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let a=0;a<this.writeBuffer.length;a++){const n=this.writeBuffer[a].data;if(n&&(s+=qa(n)),a>0&&s>this._maxPayload)return this.writeBuffer.slice(0,a);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,je(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,s,a){return this._sendPacket("message",i,s,a),this}send(i,s,a){return this._sendPacket("message",i,s,a),this}_sendPacket(i,s,a,n){if(typeof s=="function"&&(n=s,s=void 0),typeof a=="function"&&(n=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const o={type:i,data:s,options:a};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),i()},a=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():i()}):this.upgrading?a():i()),this}_onError(i){if(le.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ft&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=xe.indexOf(this._offlineEventListener);a!==-1&&xe.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,s),this.writeBuffer=[],this._prevBufferLen=0}}}le.protocol=Ei;class mn extends le{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let s=this.createTransport(i),a=!1;le.priorWebsocketSuccess=!1;const n=()=>{a||(s.send([{type:"ping",data:"probe"}]),s.once("packet",_=>{if(!a)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;le.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(p(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const c=new Error("probe error");c.transport=s.name,this.emitReserved("upgradeError",c)}}))};function o(){a||(a=!0,p(),s.close(),s=null)}const r=_=>{const c=new Error("probe error: "+_);c.transport=s.name,o(),this.emitReserved("upgradeError",c)};function l(){r("transport closed")}function h(){r("socket closed")}function f(_){s&&_.name!==s.name&&o()}const p=()=>{s.removeListener("open",n),s.removeListener("error",r),s.removeListener("close",l),this.off("close",h),this.off("upgrading",f)};s.once("open",n),s.once("error",r),s.once("close",l),this.once("close",h),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{a||s.open()},200):s.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const s=[];for(let a=0;a<i.length;a++)~this.transports.indexOf(i[a])&&s.push(i[a]);return s}}let hn=class extends mn{constructor(i,s={}){const a=typeof i=="object"?i:s;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(n=>on[n]).filter(n=>!!n)),super(i,a)}};function pn(t,i="",s){let a=t;s=s||typeof location<"u"&&location,t==null&&(t=s.protocol+"//"+s.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=s.protocol+t:t=s.host+t),/^(https?|wss?):\/\//.test(t)||(typeof s<"u"?t=s.protocol+"//"+t:t="https://"+t),a=pt(t)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const o=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+o+":"+a.port+i,a.href=a.protocol+"://"+o+(s&&s.port===a.port?"":":"+a.port),a}const fn=typeof ArrayBuffer=="function",gn=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Fi=Object.prototype.toString,un=typeof Blob=="function"||typeof Blob<"u"&&Fi.call(Blob)==="[object BlobConstructor]",yn=typeof File=="function"||typeof File<"u"&&Fi.call(File)==="[object FileConstructor]";function gt(t){return fn&&(t instanceof ArrayBuffer||gn(t))||un&&t instanceof Blob||yn&&t instanceof File}function We(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)if(We(t[s]))return!0;return!1}if(gt(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return We(t.toJSON(),!0);for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&We(t[s]))return!0;return!1}function _n(t){const i=[],s=t.data,a=t;return a.data=ut(s,i),a.attachments=i.length,{packet:a,buffers:i}}function ut(t,i){if(!t)return t;if(gt(t)){const s={_placeholder:!0,num:i.length};return i.push(t),s}else if(Array.isArray(t)){const s=new Array(t.length);for(let a=0;a<t.length;a++)s[a]=ut(t[a],i);return s}else if(typeof t=="object"&&!(t instanceof Date)){const s={};for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(s[a]=ut(t[a],i));return s}return t}function bn(t,i){return t.data=yt(t.data,i),delete t.attachments,t}function yt(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let s=0;s<t.length;s++)t[s]=yt(t[s],i);else if(typeof t=="object")for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(t[s]=yt(t[s],i));return t}const wn=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var F;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(F||(F={}));class Cn{constructor(i){this.replacer=i}encode(i){return(i.type===F.EVENT||i.type===F.ACK)&&We(i)?this.encodeAsBinary({type:i.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let s=""+i.type;return(i.type===F.BINARY_EVENT||i.type===F.BINARY_ACK)&&(s+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(s+=i.nsp+","),i.id!=null&&(s+=i.id),i.data!=null&&(s+=JSON.stringify(i.data,this.replacer)),s}encodeAsBinary(i){const s=_n(i),a=this.encodeAsString(s.packet),n=s.buffers;return n.unshift(a),n}}class _t extends P{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let s;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(i);const a=s.type===F.BINARY_EVENT;a||s.type===F.BINARY_ACK?(s.type=a?F.EVENT:F.ACK,this.reconstructor=new kn(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(gt(i)||i.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(i),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let s=0;const a={type:Number(i.charAt(0))};if(F[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===F.BINARY_EVENT||a.type===F.BINARY_ACK){const o=s+1;for(;i.charAt(++s)!=="-"&&s!=i.length;);const r=i.substring(o,s);if(r!=Number(r)||i.charAt(s)!=="-")throw new Error("Illegal attachments");const l=Number(r);if(!Sn(l)||l<0)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");a.attachments=l}if(i.charAt(s+1)==="/"){const o=s+1;for(;++s&&!(i.charAt(s)===","||s===i.length););a.nsp=i.substring(o,s)}else a.nsp="/";const n=i.charAt(s+1);if(n!==""&&Number(n)==n){const o=s+1;for(;++s;){const r=i.charAt(s);if(r==null||Number(r)!=r){--s;break}if(s===i.length)break}a.id=Number(i.substring(o,s+1))}if(i.charAt(++s)){const o=this.tryParse(i.substr(s));if(_t.isPayloadValid(a.type,o))a.data=o;else throw new Error("invalid payload")}return a}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,s){switch(i){case F.CONNECT:return Bi(s);case F.DISCONNECT:return s===void 0;case F.CONNECT_ERROR:return typeof s=="string"||Bi(s);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&wn.indexOf(s[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class kn{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const s=bn(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Sn=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Bi(t){return Object.prototype.toString.call(t)==="[object Object]"}const En=Object.freeze(Object.defineProperty({__proto__:null,Decoder:_t,Encoder:Cn,get PacketType(){return F}},Symbol.toStringTag,{value:"Module"}));function ee(t,i,s){return t.on(i,s),function(){t.off(i,s)}}const In=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ri extends P{constructor(i,s,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=s,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[ee(i,"open",this.onopen.bind(this)),ee(i,"packet",this.onpacket.bind(this)),ee(i,"error",this.onerror.bind(this)),ee(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...s){var a,n,o;if(In.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(s.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const r={type:F.EVENT,data:s};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const p=this.ids++,_=s.pop();this._registerAckCallback(p,_),r.id=p}const l=(n=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||n===void 0?void 0:n.writable,h=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(h?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(i,s){var a;const n=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(n===void 0){this.acks[i]=s;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===i&&this.sendBuffer.splice(l,1);s.call(this,new Error("operation has timed out"))},n),r=(...l)=>{this.io.clearTimeoutFn(o),s.apply(this,l)};r.withError=!0,this.acks[i]=r}emitWithAck(i,...s){return new Promise((a,n)=>{const o=(r,l)=>r?n(r):a(l);o.withError=!0,s.push(o),this.emit(i,...s)})}_addToQueue(i){let s;typeof i[i.length-1]=="function"&&(s=i.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((n,...o)=>(this._queue[0],n!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(n)):(this._queue.shift(),s&&s(null,...o)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!i||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:F.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(a=>String(a.id)===i)){const a=this.acks[i];delete this.acks[i],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case F.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case F.EVENT:case F.BINARY_EVENT:this.onevent(i);break;case F.ACK:case F.BINARY_ACK:this.onack(i);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();const a=new Error(i.data.message);a.data=i.data.data,this.emitReserved("connect_error",a);break}}onevent(i){const s=i.data||[];i.id!=null&&s.push(this.ack(i.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const a of s)a.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const s=this;let a=!1;return function(...n){a||(a=!0,s.packet({type:F.ACK,id:i,data:n}))}}onack(i){const s=this.acks[i.id];typeof s=="function"&&(delete this.acks[i.id],s.withError&&i.data.unshift(null),s.apply(this,i.data))}onconnect(i,s){this.id=i,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:F.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const s=this._anyListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const s=this._anyOutgoingListeners;for(let a=0;a<s.length;a++)if(i===s[a])return s.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const a of s)a.apply(this,i.data)}}}function ue(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ue.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),s=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-s:t+s}return Math.min(t,this.max)|0},ue.prototype.reset=function(){this.attempts=0},ue.prototype.setMin=function(t){this.ms=t},ue.prototype.setMax=function(t){this.max=t},ue.prototype.setJitter=function(t){this.jitter=t};class bt extends P{constructor(i,s){var a;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(s=i,i=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,He(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((a=s.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new ue({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=i;const n=s.parser||En;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var s;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(s=this.backoff)===null||s===void 0||s.setMin(i),this)}randomizationFactor(i){var s;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(s=this.backoff)===null||s===void 0||s.setJitter(i),this)}reconnectionDelayMax(i){var s;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(s=this.backoff)===null||s===void 0||s.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new hn(this.uri,this.opts);const s=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const n=ee(s,"open",function(){a.onopen(),i&&i()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),i?i(l):this.maybeReconnectOnOpen()},r=ee(s,"error",o);if(this._timeout!==!1){const l=this._timeout,h=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),s.close()},l);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(n),this.subs.push(r),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(ee(i,"ping",this.onping.bind(this)),ee(i,"data",this.ondata.bind(this)),ee(i,"error",this.onerror.bind(this)),ee(i,"close",this.onclose.bind(this)),ee(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(s){this.onclose("parse error",s)}}ondecoded(i){je(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,s){let a=this.nsps[i];return a?this._autoConnect&&!a.active&&a.connect():(a=new Ri(this,i,s),this.nsps[i]=a),a}_destroy(i){const s=Object.keys(this.nsps);for(const a of s)if(this.nsps[a].active)return;this._close()}_packet(i){const s=this.encoder.encode(i);for(let a=0;a<s.length;a++)this.engine.write(s[a],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,s){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(n=>{n?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",n)):i.onreconnect()}))},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ve={};function qe(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const s=pn(t,i.path||"/socket.io"),a=s.source,n=s.id,o=s.path,r=Ve[n]&&o in Ve[n].nsps,l=i.forceNew||i["force new connection"]||i.multiplex===!1||r;let h;return l?h=new bt(a,i):(Ve[n]||(Ve[n]=new bt(a,i)),h=Ve[n]),s.query&&!i.query&&(i.query=s.queryKey),h.socket(s.path,i)}Object.assign(qe,{Manager:bt,Socket:Ri,io:qe,connect:qe});const Vn=qe("https://golstats-live-server-sockets.azurewebsites.net/",{autoConnect:!1,transports:["websocket"]});function Nn(){return Vn}function wt(t,i){const s=i||Nn();s.connected&&s.emit("subscribe",{channel:t})}function ce(t,i,s){if(!i||i<=1)return t;const a=s?`https://dev-apis.golstats.com/${i}/`:`https://apis.golstats.com/${i}/`,r=new URL(t).pathname.replace(/^\//,"").split("/"),l=r[0].toLowerCase(),h=l==="prod"||l==="qa"?r.slice(1).join("/"):r.join("/");return a+h}function N(t,i){if(!i||i<=1)return t;const s=new URL(t),a=s.pathname.split("/").filter(l=>l!=="");if(a.length===0)return t;const[n,...o]=a,r=[n,i,...o].join("/");return`${s.origin}/${r}${s.search}`}const ne=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Tn={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(t){(t.section!=="Historicos"||t.type==="Postmatch")&&this.$emit("open-profile",t)}},mounted(){}},On={key:0,class:"gsc-item-player"},$n={class:"gsc-num-player"},Fn={class:"gsc-cont-info-by-player"},Bn={class:"gsc-cont-info-by-player-row1"},Rn={class:"shield-player-cont"},zn=["src"],Dn={class:"gsc-cont-info-by-player-row2"},An={class:"gsc-cont-info-by-player-row2-line-data"},Mn={class:"cont-display-gsc"},Un=["src"],Pn={class:"gsc-cont-cards"},Ln={key:0,class:"gsc-yellow_card_div"},jn={key:1,class:"gsc-red_card_div"},Hn={key:2,class:"gsc-yellowred_card_div"},xn={key:5,class:"gsc-goal_card_div_wrapper"},Wn={key:1,class:"gsc-item-player"},qn={class:"gsc-num-player2"},Gn={class:"gsc-cont-info-by-player2"},Xn={class:"gsc-cont-info-by-player-row2"},Jn={class:"gsc-cont-info-by-player-row2-line-data"},Yn={class:"gsc-cont-cards2"},Kn={key:0,class:"gsc-yellow_card_div"},Zn={key:1,class:"gsc-red_card_div"},Qn={key:2,class:"gsc-yellowred_card_div"},vn={key:5,class:"gsc-goal_card_div_wrapper"},eo={class:"cont-display-gsc"},to=["src"],io={class:"gsc-cont-info-by-player-row1"},so={class:"shield-player-cont"},ao=["src"];function no(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock(e.Fragment,null,[s.type==1?(e.openBlock(),e.createElementBlock("div",On,[e.createElementVNode("div",$n,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",Fn,[e.createElementVNode("div",Bn,[e.createElementVNode("div",Rn,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,zn)])]),e.createElementVNode("div",Dn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[0]||(i[0]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",An,[e.createElementVNode("div",Mn,[e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,Un),e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3)]),e.createElementVNode("div",Pn,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Ln)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",jn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",Hn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:l},[i[2]||(i[2]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",xn,[i[3]||(i[3]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)])])])])])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",Wn,[e.createElementVNode("div",qn,[s.data.shirt<10?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("0")],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.data.shirt),1)]),e.createElementVNode("div",Gn,[e.createElementVNode("div",Xn,[e.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:e.normalizeStyle(s.data.section=="Historicos"&&s.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:i[1]||(i[1]=r=>o.openProfile({playerId:s.data.playerid,teamId:s.data.teamid,seasonId:s.data.season,section:s.data.section,type:s.data.type}))},e.toDisplayString(s.data.name),5),e.createElementVNode("div",Jn,[e.createElementVNode("div",Yn,[s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock("div",Kn)):e.createCommentVNode("",!0),s.data.redcard>=1&&s.data.yellowcard==0?(e.openBlock(),e.createElementBlock("div",Zn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard>=1?(e.openBlock(),e.createElementBlock("div",Qn)):e.createCommentVNode("",!0),s.data.yellowcard>=1&&s.data.redcard==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createTextVNode("'"+e.toDisplayString(s.data.yellowcardmin),1)],64)):e.createCommentVNode("",!0),s.data.redcard>=1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode("'"+e.toDisplayString(s.data.redcardmin),1)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.data.goalsMin,(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:l},[i[4]||(i[4]=e.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(r),1)]))),128)),s.data.substitutionIn||s.data.substitutionOut?(e.openBlock(),e.createElementBlock("div",vn,[i[5]||(i[5]=e.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),e.createElementVNode("div",null,"'"+e.toDisplayString(s.data.substitutionMin),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",eo,[e.createElementVNode("div",{class:e.normalizeClass(s.position)},e.toDisplayString(s.data.position),3),e.createElementVNode("img",{class:"gsc-img-country",src:s.data.nation},null,8,to)])])]),e.createElementVNode("div",io,[e.createElementVNode("div",so,[e.createElementVNode("img",{class:"gsc-logo-player",src:s.data.img},null,8,ao)])])])])):e.createCommentVNode("",!0)],64)}const oo=ne(Tn,[["render",no],["__scopeId","data-v-46dbaa9c"]]);/**
10
10
  * Vue 3 Carousel 0.3.1
11
11
  * (c) 2023
12
12
  * @license MIT
13
- */const X={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},ts={itemsToShow:{default:X.itemsToShow,type:Number},itemsToScroll:{default:X.itemsToScroll,type:Number},wrapAround:{default:X.wrapAround,type:Boolean},throttle:{default:X.throttle,type:Number},snapAlign:{default:X.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:X.transition,type:Number},breakpoints:{default:X.breakpoints,type:Object},autoplay:{default:X.autoplay,type:Number},pauseAutoplayOnHover:{default:X.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:X.mouseDrag,type:Boolean},touchDrag:{default:X.touchDrag,type:Boolean},dir:{default:X.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:X.i18n,type:Object},settings:{default(){return{}},type:Object}};function Qo({config:e,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=e;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function vo({config:e,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=e;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function jt({val:e,max:i,min:s}){return i<s?e:Math.min(Math.max(e,s),i)}function er({config:e,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=e;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:jt({val:r,max:s-o,min:0})}function is(e){return e?e.reduce((i,s)=>{var a;return s.type===t.Fragment?[...i,...is(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function Ht({val:e,max:i,min:s=0}){return e>i?Ht({val:e-(i+1),max:i,min:s}):e<s?Ht({val:e+(i+1),max:i,min:s}):e}function tr(e,i){let s;return i?function(...a){const n=this;s||(e.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:e}function ir(e,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{e(...a),s=null},i)}}function sr(e="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),e)}var ar=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},X))),i=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},sr(e.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),nr=t.defineComponent({name:"Carousel",props:ts,setup(e,{slots:i,emit:s,expose:a}){var n;const o=t.ref(null),r=t.ref([]),l=t.ref(0),d=t.ref(0),g=t.reactive(Object.assign({},X));let p=Object.assign({},X),y;const c=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),C=t.ref(0),k=t.ref(0),b=t.ref(0),h=t.ref(0);let u,E;t.provide("config",g),t.provide("slidesCount",d),t.provide("currentSlide",c),t.provide("maxSlide",b),t.provide("minSlide",h),t.provide("slideWidth",l);function _(){y=Object.assign({},e.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),e),{i18n:Object.assign(Object.assign({},p.i18n),e.i18n),breakpoints:void 0}),w(p)}function m(){if(!y||!Object.keys(y).length)return;const R=Object.keys(y).map(O=>Number(O)).sort((O,j)=>+j-+O);let M=Object.assign({},p);R.some(O=>{const j=window.matchMedia(`(min-width: ${O}px)`).matches;return j&&(M=Object.assign(Object.assign({},M),y[O])),j}),w(M)}function w(R){Object.entries(R).forEach(([M,O])=>g[M]=O)}const I=ir(()=>{m(),P()},16);function P(){if(!o.value)return;const R=o.value.getBoundingClientRect();l.value=R.width/g.itemsToShow}function T(){d.value<=0||(k.value=Math.ceil((d.value-1)/2),b.value=Qo({config:g,slidesCount:d.value}),h.value=vo({config:g,slidesCount:d.value}),g.wrapAround||(c.value=jt({val:c.value,max:b.value,min:h.value})))}t.onMounted(()=>{t.nextTick(()=>P()),setTimeout(()=>P(),1e3),m(),N(),window.addEventListener("resize",I,{passive:!0}),s("init")}),t.onUnmounted(()=>{E&&clearTimeout(E),u&&clearInterval(u),window.removeEventListener("resize",I,{passive:!0})});let L=!1;const x={x:0,y:0},Y={x:0,y:0},A=t.reactive({x:0,y:0}),W=t.ref(!1),U=t.ref(!1),ue=()=>{W.value=!0},he=()=>{W.value=!1};function K(R){["INPUT","TEXTAREA","SELECT"].includes(R.target.tagName)||(L=R.type==="touchstart",L||R.preventDefault(),!(!L&&R.button!==0||Z.value)&&(x.x=L?R.touches[0].clientX:R.clientX,x.y=L?R.touches[0].clientY:R.clientY,document.addEventListener(L?"touchmove":"mousemove",pe,!0),document.addEventListener(L?"touchend":"mouseup",S,!0)))}const pe=tr(R=>{U.value=!0,Y.x=L?R.touches[0].clientX:R.clientX,Y.y=L?R.touches[0].clientY:R.clientY;const M=Y.x-x.x,O=Y.y-x.y;A.y=O,A.x=M},g.throttle);function S(){const R=g.dir==="rtl"?-1:1,M=Math.sign(A.x)*.4,O=Math.round(A.x/l.value+M)*R;if(O&&!L){const j=ae=>{ae.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}ee(c.value-O),A.x=0,A.y=0,U.value=!1,document.removeEventListener(L?"touchmove":"mousemove",pe,!0),document.removeEventListener(L?"touchend":"mouseup",S,!0)}function N(){!g.autoplay||g.autoplay<=0||(u=setInterval(()=>{g.pauseAutoplayOnHover&&W.value||de()},g.autoplay))}function F(){u&&(clearInterval(u),u=null),N()}const Z=t.ref(!1);function ee(R){const M=g.wrapAround?R:jt({val:R,max:b.value,min:h.value});c.value===M||Z.value||(s("slide-start",{slidingToIndex:R,currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:d.value}),Z.value=!0,C.value=c.value,c.value=M,E=setTimeout(()=>{if(g.wrapAround){const O=Ht({val:M,max:b.value,min:0});O!==c.value&&(c.value=O,s("loop",{currentSlideIndex:c.value,slidingToIndex:R}))}s("update:modelValue",c.value),s("slide-end",{currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:d.value}),Z.value=!1,F()},g.transition))}function de(){ee(c.value+g.itemsToScroll)}function Oe(){ee(c.value-g.itemsToScroll)}const D={slideTo:ee,next:de,prev:Oe};t.provide("nav",D),t.provide("isSliding",Z);const Q=t.computed(()=>er({config:g,currentSlide:c.value,slidesCount:d.value}));t.provide("slidesToScroll",Q);const Te=t.computed(()=>{const R=g.dir==="rtl"?-1:1,M=Q.value*l.value*R;return{transform:`translateX(${A.x-M}px)`,transition:`${Z.value?g.transition:0}ms`,margin:g.wrapAround?`0 -${d.value*l.value}px`:"",width:"100%"}});function Ue(){_(),m(),T(),P(),F()}Object.keys(ts).forEach(R=>{["modelValue"].includes(R)||t.watch(()=>e[R],Ue)}),t.watch(()=>e.modelValue,R=>{R!==c.value&&ee(Number(R))}),t.watch(d,T),s("before-init"),_();const ct={config:g,slidesCount:d,slideWidth:l,next:de,prev:Oe,slideTo:ee,currentSlide:c,maxSlide:b,minSlide:h,middleSlide:k};a({updateBreakpointsConfigs:m,updateSlidesData:T,updateSlideWidth:P,initDefaultConfigs:_,restartCarousel:Ue,slideTo:ee,next:de,prev:Oe,nav:D,data:ct});const Le=i.default||i.slides,se=i.addons,je=t.reactive(ct);return()=>{const R=is(Le==null?void 0:Le(je)),M=(se==null?void 0:se(je))||[];R.forEach((oe,Re)=>oe.props.index=Re);let O=R;if(g.wrapAround){const oe=R.map((He,re)=>t.cloneVNode(He,{index:-R.length+re,isClone:!0,key:`clone-before-${re}`})),Re=R.map((He,re)=>t.cloneVNode(He,{index:R.length+re,isClone:!0,key:`clone-after-${re}`}));O=[...oe,...R,...Re]}r.value=R,d.value=Math.max(R.length,1);const j=t.h("ol",{class:"carousel__track",style:Te.value,onMousedownCapture:g.mouseDrag?K:null,onTouchstartPassiveCapture:g.touchDrag?K:null},O),ae=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:o,class:{carousel:!0,"is-sliding":Z.value,"is-dragging":U.value,"is-hover":W.value,"carousel--rtl":g.dir==="rtl"},dir:g.dir,"aria-label":g.i18n.ariaGallery,tabindex:"0",onMouseenter:ue,onMouseleave:he},[ae,M,t.h(ar)])}}}),ss;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ss||(ss={}));var or=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:i}){const s=t.inject("config",t.reactive(Object.assign({},X))),a=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),o=t.inject("isSliding",t.ref(!1)),r=()=>e.index===a.value,l=()=>e.index===a.value-1,d=()=>e.index===a.value+1,g=()=>{const p=Math.floor(n.value),y=Math.ceil(n.value+s.itemsToShow-1);return e.index>=p&&e.index<=y};return()=>{var p;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":g(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":d(),"carousel__slide--sliding":o.value},"aria-hidden":!g()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const rr=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},lr=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),cr={class:"gsc-carousel"},dr={key:0},mr=lr(()=>t.createElementVNode("div",null,"no hay",-1)),hr=[mr],pr={class:"gsc-carousel__2d__slides"},fr={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gr=["fill"],ur={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yr=["fill"],_r={class:"gsc-carousel__2d__navigation"},br={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wr=["stroke"],Cr={key:1,class:"gsc-carousel__2d__navigation__pagination"},kr=["onClick"],Sr={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Er=["stroke"],Ir={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(i=>i in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:i,emit:s}){const a=e;t.useCssVars(b=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const n=t.ref(null),o=t.ref({}),r=t.ref(0),l=t.ref(!1);t.watch(n,b=>{b&&l.value?(l.value=!1,d(a.items)):b&&b.slideTo&&b.slideTo(r.value)},{deep:!0}),t.watch(()=>a.currentItemIndex,b=>{r.value!==b&&c(b)}),t.watch(()=>a.defaultItemByIndex,b=>{r.value!==b&&c(b)}),t.watch(()=>a.items,b=>{n.value?d(b):l.value=!0},{immediate:!0});function d(b){b&&b.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const h=a.items.findIndex(u=>u[a.defaultItemByProp.propName]===a.defaultItemByProp.value);h!==-1?(r.value=h,o.value=b[h]):(r.value=0,o.value=b[0])}else r.value=a.defaultItemByIndex,o.value=b[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function g(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function y(){n.value&&n.value.updateSlideWidth()}function c(b){n.value&&n.value.slideTo(b)}function C(b){n.value.slideTo(b)}function k(b){const h=b.slidingToIndex<0?a.items.length-1:b.slidingToIndex===a.items.length?0:b.slidingToIndex;r.value=h,o.value=a.items[h],s("update:currentItemIndex",h),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:g,updateSlideWidth:y,slideTo:c}),(b,h)=>(t.openBlock(),t.createElementBlock("div",cr,[a.is3d?(t.openBlock(),t.createElementBlock("div",dr,hr)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",pr,[t.createVNode(t.unref(nr),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:k},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,E)=>(t.openBlock(),t.createBlock(t.unref(or),{key:E},{default:t.withCtx(()=>[t.renderSlot(b.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:h[0]||(h[0]=u=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",fr,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,gr)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:h[1]||(h[1]=u=>g())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",ur,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,yr)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",_r,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:h[2]||(h[2]=u=>p())},[(t.openBlock(),t.createElementBlock("svg",br,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:a.arrowsColor},null,8,wr)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Cr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,E)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${E}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===E?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===E?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:_=>C(E)},null,12,kr))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:h[3]||(h[3]=u=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",Sr,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:a.arrowsColor},null,8,Er)]))])):t.createCommentVNode("",!0)])],2))]))}},xt=rr(Ir,[["__scopeId","data-v-54620d25"]]);function Vr(e){const i=t.ref({width:0,height:0});function s(){const a=e.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const Nr=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},Wt={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,i=this.$refs.content.scrollWidth;i>0&&e>0&&(i>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},as=()=>{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}))},ns=Wt.setup;Wt.setup=ns?(e,i)=>(as(),ns(e,i)):as;const Or={ref:"gscScrollableContainer",class:"scrollable-container"},Tr={class:"scrollable-arrows"},Rr=["width","height","viewBox"],Fr=["stroke"],Br={class:"scrollable-wrapper"},$r={class:"scrollable-arrows"},Dr=["width","height","viewBox"],zr=["stroke"];function Ar(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("div",Or,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[t.createElementVNode("div",Tr,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.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:s.arrowsColor},null,8,Fr)],8,Rr))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[t.createElementVNode("div",Br,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),s.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[t.createElementVNode("div",$r,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.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:s.arrowsColor},null,8,zr)],8,Dr))])],2)):t.createCommentVNode("",!0)],512)}const Pr=Nr(Wt,[["render",Ar],["__scopeId","data-v-b548a08d"]]),Mr=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},qt={components:{GSCSlider:Pr},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:i}=Vr(e);return{myDivRef:e,elementSize:i}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var i={};return e.width>768?i={fontSize:"16px"}:e.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},os=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},rs=qt.setup;qt.setup=rs?(e,i)=>(os(),rs(e,i)):os;const Ur={ref:"myDivRef"},Lr={key:0,class:"gs-switch-container"},jr=["onClick"],Hr={key:1,class:"gs-switch-container-type"},xr=["onClick"],Wr={key:2,class:"gs-switch-container-carousel"},qr=["onClick"];function Xr(e,i,s,a,n,o){const r=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Ur,[s.type==0?(t.openBlock(),t.createElementBlock("div",Lr,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([o.customGrid(a.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(l,d)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:d,onClick:g=>(s.selectedOption=l,o.clickEmitEvent(l))},t.toDisplayString(l),13,jr))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",Hr,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([o.customGrid(a.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(l,d)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:d,onClick:g=>(s.selectedOption=l,o.clickEmitEvent(l))},t.toDisplayString(l),13,xr))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",Wr,[t.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(l,d)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:d,onClick:g=>(s.selectedOption=l,o.clickEmitEvent(l))},t.toDisplayString(l),13,qr))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const lt=Mr(qt,[["render",Xr],["__scopeId","data-v-8a86dfaf"]]),Jr={selectoritem:"_selectoritem_1nisl_69",selectoritem2:"_selectoritem2_1nisl_79",gscheaderlineup:"_gscheaderlineup_1nisl_89",anNoEstn:"_anNoEstn_1nisl_96",groupsLeague:"_groupsLeague_1nisl_99",jugadores:"_jugadores_1nisl_105",switchOption:"_switchOption_1nisl_110",jugadores1:"_jugadores1_1nisl_120",switchOption1:"_switchOption1_1nisl_125",switchStatesBig:"_switchStatesBig_1nisl_133",groupsLeagueParent:"_groupsLeagueParent_1nisl_142",imgHomeTeamIcon:"_imgHomeTeamIcon_1nisl_151",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1nisl_157",teamContainer:"_teamContainer_1nisl_169",name:"_name_1nisl_181",homeTeamContainer:"_homeTeamContainer_1nisl_187",div:"_div_1nisl_197",scoreContainer:"_scoreContainer_1nisl_201",scoreContainerWrapper:"_scoreContainerWrapper_1nisl_211",teamContainer1:"_teamContainer1_1nisl_224",awayTeamContainer:"_awayTeamContainer_1nisl_236",matchContainer:"_matchContainer_1nisl_246",sliderMatchesChild:"_sliderMatchesChild_1nisl_255",manchesterUnited:"_manchesterUnited_1nisl_261",sliderMatchesItem:"_sliderMatchesItem_1nisl_267",sliderMatches:"_sliderMatches_1nisl_255",sortIcon:"_sortIcon_1nisl_285",filtros:"_filtros_1nisl_292",sortParent:"_sortParent_1nisl_300",shapeIcon:"_shapeIcon_1nisl_307",btnFilter:"_btnFilter_1nisl_312",btnFilter1:"_btnFilter1_1nisl_326",btnFilterParent:"_btnFilterParent_1nisl_340",backArrowIcon:"_backArrowIcon_1nisl_348",teamContainer2:"_teamContainer2_1nisl_354",homeTeam:"_homeTeam_1nisl_187",div4:"_div4_1nisl_368",finalScore:"_finalScore_1nisl_373",manchesterUnited1:"_manchesterUnited1_1nisl_386",scoreContainer1:"_scoreContainer1_1nisl_393",match:"_match_1nisl_246",manchesterUnited2:"_manchesterUnited2_1nisl_411",btnDetails:"_btnDetails_1nisl_416",matchContainer1:"_matchContainer1_1nisl_426",goalChild:"_goalChild_1nisl_434",goal:"_goal_1nisl_434",manchesterUnited3:"_manchesterUnited3_1nisl_447",minuteEvent:"_minuteEvent_1nisl_454",yellowCard:"_yellowCard_1nisl_461",awayTeamEvents:"_awayTeamEvents_1nisl_468",rectangle:"_rectangle_1nisl_475",homeTeamEvents:"_homeTeamEvents_1nisl_482",totalEvents:"_totalEvents_1nisl_490",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1nisl_498",switchOption3:"_switchOption3_1nisl_509",switchOption4:"_switchOption4_1nisl_521",switchStatesBig1:"_switchStatesBig1_1nisl_531",manchesterUnited13:"_manchesterUnited13_1nisl_538",homeTeamContainer1:"_homeTeamContainer1_1nisl_543",scoreContainer2:"_scoreContainer2_1nisl_550",matchContainer2:"_matchContainer2_1nisl_564",manchesterUnited14:"_manchesterUnited14_1nisl_574",sliderMatchesInner:"_sliderMatchesInner_1nisl_581",rectangleIcon:"_rectangleIcon_1nisl_591",sliderMatches1:"_sliderMatches1_1nisl_601",containerData:"_containerData_1nisl_609",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1nisl_623",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1nisl_498",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1nisl_647",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1nisl_650",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1nisl_654"},Gr={components:{GSCCarousel:xt,GscSwitchComponent:lt},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:$,changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Yr=["src"],Kr=["src"],Zr=["src"],Qr=["src"],vr=["src"],el=["src"];function tl(e,i,s,a,n,o){const r=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[0]||(i[0]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,Yr)):t.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,Kr)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[s.gameHistoric.length>0?(t.openBlock(),t.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(d.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,Zr)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[s.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,Qr)):t.createCommentVNode("",!0),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,vr)):t.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,el)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[s.gameHistoric.length>0?(t.openBlock(),t.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(d.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const il=me(Gr,[["render",tl],["__cssModules",{$style:Jr}]]),sl=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},Xt={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ls=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},cs=Xt.setup;Xt.setup=cs?(e,i)=>(ls(),cs(e,i)):ls;const al=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),nl=["src"],ol={key:1,class:"text"},rl=["src"],ll={class:"stats"},cl=al(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),dl={class:"numstats"},ml={class:"leyend"};function hl(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,nl)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",ol,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,rl)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[t.createElementVNode("div",ll,[cl,t.createElementVNode("div",dl,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",ml,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const pl=sl(Xt,[["render",hl],["__scopeId","data-v-f3ee6b2b"]]),fl={class:"gsc-dropdown__main-container__item-selected"},gl=["height","width"],ul=["stroke"],yl={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_l=["fill"],bl={class:"gsc-dropdown__items-container"},wl=["onClick"],Cl={key:0,class:"gsc-dropdown__items-footer"},ds={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(i=>i in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:i}){const s=e,a=t.ref({}),n=t.ref(null),o=t.ref(s.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>s.items,(C,k)=>{if(!s.modelValue&&(!s.onlyFirstTime||!k||!k.length)&&C&&C.length){if(s.defaultItemByProp){const b=s.items.findIndex(h=>h[s.defaultItemByProp.propName]===s.defaultItemByProp.value);b!==-1?(o.value=b,a.value=C[b]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),t.watch(()=>s.modelValue,C=>{if(C){const k=s.items.findIndex(b=>typeof C=="object"?JSON.stringify(b)===JSON.stringify(C):b===C);k!==-1&&(o.value=k,a.value=s.items[k],i("update:modelValue",a.value))}},{immediate:!0});const l=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),d=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function g(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function y(C,k){s.isMultipleOption?o.value=-1:(o.value=k,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function c(){r.value=!1,i("click-ready")}return t.onMounted(()=>{document.addEventListener("click",p)}),t.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,k)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:g},[t.createElementVNode("div",fl,[t.renderSlot(C.$slots,"default",{selectedItem:a.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:t.normalizeStyle(d.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ul)],8,gl)):(t.openBlock(),t.createElementBlock("svg",yl,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,_l)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",bl,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(b,h)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:h===o.value}]),key:h,onClick:u=>y(b,h)},[t.renderSlot(C.$slots,"availableItem",{item:b})],10,wl)),[[t.vShow,!b.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Cl,[t.createVNode(t.unref(pl),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:c})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}},kl=["for"],Sl=["name"],El={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ms={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(e,{emit:i}){const s=i;return(a,n)=>(t.openBlock(),t.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:e.label,style:{"margin-right":"6px"},class:"checkbox__label"},t.toDisplayString(e.label),9,kl)):t.createCommentVNode("",!0),a.modelValue?(t.openBlock(),t.createElementBlock("svg",{key:1,name:e.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...n[1]||(n[1]=[t.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)])],8,Sl)):(t.openBlock(),t.createElementBlock("svg",El,[...n[2]||(n[2]=[t.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))]))}},Il=["value"],Vl={class:"filter-modal__padding"},Nl={class:"filter-modal__content-header"},Ol={class:"filter-modal__content-options"},Tl=["onClick"],Rl={class:"filter-modal__content-header"},Fl={class:"filter-modal__content-options"},Bl=["onClick"],$l=me({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:i}){t.useCssVars(m=>({v62819590:e.marginModal}));const s=e,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=t.ref(null),r=i,l=t.ref(["local","visit"]),d=t.ref(["win","draw","lose"]),g=t.ref(!0),p=t.ref(!0),y=t.ref(!0),c=t.ref(!0),C=t.ref(["local","visit"]),k=t.ref(["win","draw","lose"]),b=()=>{o.value.focus(),l.value=JSON.parse(JSON.stringify(C.value)),d.value=JSON.parse(JSON.stringify(k.value)),g.value=y.value,p.value=c.value};t.watch(()=>s.itemSelect,m=>{m&&(C.value=m.selectedFilterTeam,k.value=m.selectedFilterResults)}),t.watch(()=>s.reset,m=>{m&&u()});const h=(m,w)=>{let I;w==="team"?I=C.value:I=k.value;const P=I.findIndex(T=>T===m);P==-1?I.push(m):w=="team"&&C.value.length==2?I.splice(P,1):(w=="team"&&I.push(m),k.value.length>1&&I.splice(P,1)),y.value=C.value.length==2,c.value=k.value.length==3},u=()=>{C.value=["local","visit"],k.value=["win","draw","lose"],y.value=!0,c.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:k.value})},E=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:k.value})},_=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:k.value})};return(m,w)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:b},[w[5]||(w[5]=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-54105a29><g id="vuesax/outline/sort" data-v-54105a29><g id="sort" data-v-54105a29><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-54105a29></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-54105a29></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-54105a29></path></g></g></svg>',1)),t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,Il),w[6]||(w[6]=t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:w[4]||(w[4]=I=>{e.isOpen=!1,_()})},[t.createElementVNode("div",Vl,[t.createElementVNode("div",Nl,[w[7]||(w[7]=t.createElementVNode("h3",null,"Jugando como:",-1)),t.createVNode(ms,{modelValue:y.value,"onUpdate:modelValue":[w[0]||(w[0]=I=>y.value=I),w[1]||(w[1]=I=>I&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Ol,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(a,I=>t.createElementVNode("li",{onClick:P=>h(I.id,"team"),class:t.normalizeClass({active:C.value.includes(I.id)})},t.toDisplayString(I.name),11,Tl)),64))]),t.createElementVNode("div",Rl,[w[8]||(w[8]=t.createElementVNode("h3",null,"Resultados:",-1)),t.createVNode(ms,{modelValue:c.value,"onUpdate:modelValue":[w[2]||(w[2]=I=>c.value=I),w[3]||(w[3]=I=>I&&(k.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Fl,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,I=>t.createElementVNode("li",{onClick:P=>h(I.id,"player"),class:t.normalizeClass({active:k.value.includes(I.id)})},t.toDisplayString(I.name),11,Bl)),64))])]),w[9]||(w[9]=t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:u},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:E},"Listo")])],34)],4))}},[["__scopeId","data-v-54105a29"]]),Dl={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},zl={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Al={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(e){return(i,s)=>e.icon==="goal"?(t.openBlock(),t.createElementBlock("svg",Dl,[...s[0]||(s[0]=[t.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)])])):e.icon==="yellow-card"?(t.openBlock(),t.createElementBlock("svg",zl,[...s[1]||(s[1]=[t.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)])])):e.icon==="red-card"?(t.openBlock(),t.createElementBlock("svg",Al,[...s[2]||(s[2]=[t.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)])])):t.createCommentVNode("",!0)}},Pl={class:"match-details"},Ml={class:"match-details__list"},Ul={class:"match-details__list right"},Ll=me({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(e){return(i,s)=>(t.openBlock(),t.createElementBlock("div",Pl,[t.createElementVNode("ul",Ml,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.localDetails,a=>(t.openBlock(),t.createElementBlock("li",null,[t.createVNode(hs,{class:"icon",icon:a.icon},null,8,["icon"]),t.createElementVNode("span",null,t.toDisplayString(a.description),1)]))),256))]),t.createElementVNode("ul",Ul,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.foreignDetails,a=>(t.openBlock(),t.createElementBlock("li",null,[t.createElementVNode("span",null,t.toDisplayString(a.description),1),t.createVNode(hs,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-de53a54c"]]),jl=(e,i)=>{const s=e.__vccOpts||e;for(const[a,n]of i)s[a]=n;return s},Jt={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(i){throw new Error(i)}}}},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)}}},ps=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},fs=Jt.setup;Jt.setup=fs?(e,i)=>(ps(),fs(e,i)):ps;const Hl={key:0,class:"text-left"},xl=["width","src"],Wl=["checked"],ql=["width","src"],Xl={key:3,class:"text-right"};function Jl(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Hl,t.toDisplayString(s.textOptionLeft),1)):t.createCommentVNode("",!0),s.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,xl)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,Wl),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,ql)):t.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Xl,t.toDisplayString(s.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Gl=jl(Jt,[["render",Jl],["__scopeId","data-v-e2a20444"]]),Yl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_90ydj_80","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_90ydj_86","btn-delete-filters":"_btn-delete-filters_90ydj_92",btndeletefilters:"_btndeletefilters_90ydj_108",leyenddeleteshow:"_leyenddeleteshow_90ydj_124",selectoritem:"_selectoritem_90ydj_131",anNoEstn:"_anNoEstn_90ydj_140",groupsLeague:"_groupsLeague_90ydj_144",historicas:"_historicas_90ydj_149",switchOption:"_switchOption_90ydj_155",recientes:"_recientes_90ydj_166",switchOption1:"_switchOption1_90ydj_172",switchOption2:"_switchOption2_90ydj_185",switchStatesBig:"_switchStatesBig_90ydj_194",groupsLeagueParent:"_groupsLeagueParent_90ydj_204",imgHomeTeamIcon:"_imgHomeTeamIcon_90ydj_214",imgHomeTeamWrapper:"_imgHomeTeamWrapper_90ydj_221",teamContainer:"_teamContainer_90ydj_234",name:"_name_90ydj_247",homeTeamContainer:"_homeTeamContainer_90ydj_254",div:"_div_90ydj_265",scoreContainer:"_scoreContainer_90ydj_270",scoreContainerWrapper:"_scoreContainerWrapper_90ydj_281",teamContainer1:"_teamContainer1_90ydj_294",awayTeamContainer:"_awayTeamContainer_90ydj_307",matchContainer:"_matchContainer_90ydj_318",sliderMatchesChild:"_sliderMatchesChild_90ydj_328",manchesterUnited:"_manchesterUnited_90ydj_335",sliderMatchesItem:"_sliderMatchesItem_90ydj_342",sliderMatches:"_sliderMatches_90ydj_328",sortIcon:"_sortIcon_90ydj_360",filtros:"_filtros_90ydj_368",sortParent:"_sortParent_90ydj_377",shapeIcon:"_shapeIcon_90ydj_385",btnFilter:"_btnFilter_90ydj_391",btnFilter1:"_btnFilter1_90ydj_407",btnFilterParent:"_btnFilterParent_90ydj_422",backArrowIcon:"_backArrowIcon_90ydj_431",teamContainer2:"_teamContainer2_90ydj_438",homeTeam:"_homeTeam_90ydj_254",div4:"_div4_90ydj_454",finalScore:"_finalScore_90ydj_460",manchesterUnited1:"_manchesterUnited1_90ydj_474",scoreContainer1:"_scoreContainer1_90ydj_482",match:"_match_90ydj_318",manchesterUnited2:"_manchesterUnited2_90ydj_499",btnDetails:"_btnDetails_90ydj_512",matchContainer1:"_matchContainer1_90ydj_523",goalChild:"_goalChild_90ydj_532",goal:"_goal_90ydj_532",manchesterUnited3:"_manchesterUnited3_90ydj_547",minuteEvent:"_minuteEvent_90ydj_555",yellowCard:"_yellowCard_90ydj_563",awayTeamEvents:"_awayTeamEvents_90ydj_571",rectangle:"_rectangle_90ydj_579",homeTeamEvents:"_homeTeamEvents_90ydj_587",totalEvents:"_totalEvents_90ydj_596",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_90ydj_605",sliderMatchesInner:"_sliderMatchesInner_90ydj_616",btnFilter2:"_btnFilter2_90ydj_623",btnDetails1:"_btnDetails1_90ydj_640",matchContainer3:"_matchContainer3_90ydj_649",backArrowIcon1:"_backArrowIcon1_90ydj_660",match1:"_match1_90ydj_667",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_90ydj_673",jugadores2:"_jugadores2_90ydj_684",switchOption6:"_switchOption6_90ydj_691",switchOption7:"_switchOption7_90ydj_702",switchStatesBig2:"_switchStatesBig2_90ydj_715",manchesterUnited26:"_manchesterUnited26_90ydj_723",homeTeamContainer2:"_homeTeamContainer2_90ydj_729",vectorIcon:"_vectorIcon_90ydj_737",teamSwitch:"_teamSwitch_90ydj_743",matchContainer5:"_matchContainer5_90ydj_756",manchesterUnited27:"_manchesterUnited27_90ydj_767",sliderMatchesChild1:"_sliderMatchesChild1_90ydj_775",sliderMatchesChild2:"_sliderMatchesChild2_90ydj_786",sliderMatches2:"_sliderMatches2_90ydj_797",filtros2:"_filtros2_90ydj_807",btnFilter4:"_btnFilter4_90ydj_817",jornada2:"_jornada2_90ydj_833",filterMatchday:"_filterMatchday_90ydj_840",btnDetails2:"_btnDetails2_90ydj_851",filtersContainer:"_filtersContainer_90ydj_862",matchContainer6:"_matchContainer6_90ydj_872",matchDetailContainer:"_matchDetailContainer_90ydj_881",containerData:"_containerData_90ydj_891",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_90ydj_906",headerSeccionAlineaciones:"_headerSeccionAlineaciones_90ydj_605",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_90ydj_932",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_90ydj_945",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_90ydj_958",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_90ydj_970",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_90ydj_983",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_90ydj_997",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_90ydj_1008",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_90ydj_1019",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_90ydj_1033",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_90ydj_1045",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_90ydj_1056"},Kl={components:{GSCCarousel:xt,GscSwitchComponent:lt,GSCDropdown:ds,GSCFilter:$l,GSCSwitchRadio:Gl,GSCMatchDetails:Ll},props:{provider:{type:Number,default:1},widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(e){e=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&e.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&e.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&e.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&e.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&e.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&e.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&e.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&e.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&e.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)e.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)e.push(this.matchdaysFiltersUpdate[i]);return e.sort((i,s)=>s.id-i.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&e.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&e.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&e.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&e.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&e.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&e.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&e.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&e.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&e.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)e.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)e.push(this.gamesFiltersUpdate[i]);return e.sort((i,s)=>i.matchday_id-s.matchday_id),e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{getImageUrl:$,clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var e=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)e.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=e},getRound(e){let i=e.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<e.home_goals_minutes.length;i++)this.localDetails.push({description:e.home_goals_minutes[i],icon:"goal"});for(let i=0;i<e.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:e.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<e.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:e.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<e.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<e.home_red_cards_minutes.length;i++)this.localDetails.push({description:e.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<e.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:e.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(e){setTimeout(()=>{JSON.stringify(e)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e&&(e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=e,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",e),this.getMinutesData(e.selectedItem.minutes),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==e.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={key:1},sc=["src"],ac=["src"],nc={class:"selector-tournaments"},oc=["src"],rc=["src"],lc={key:1},cc=["src"],dc=["src"],mc={class:"selector-tournaments"},hc=["src"],pc=["src"],fc={key:1};function gc(e,i,s,a,n,o){const r=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCSwitchRadio"),d=t.resolveComponent("GSCFilter"),g=t.resolveComponent("GSCDropdown"),p=t.resolveComponent("GSCCarousel"),y=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[9]||(i[9]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Zl)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Ql)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:i[0]||(i[0]=(...c)=>o.openFilter&&o.openFilter(...c))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),t.createVNode(d,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(g,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",vl,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,ec)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(c.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(c.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,tc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",ic,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[...i[11]||(i[11]=[t.createTextVNode(" No hay resultados con los criterios",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("de búsqueda aplicados. ",-1)])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:i[1]||(i[1]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[12]||(i[12]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,sc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,ac)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:i[3]||(i[3]=(...c)=>o.openFilter&&o.openFilter(...c))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),t.createVNode(d,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(g,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",nc,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,oc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(c.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(c.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,rc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(t.openBlock(),t.createElementBlock("div",lc,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[...i[14]||(i[14]=[t.createTextVNode(" No hay resultados con los criterios",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("de búsqueda aplicados. ",-1)])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:i[5]||(i[5]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,cc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,dc)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:i[6]||(i[6]=(...c)=>o.openFilter&&o.openFilter(...c))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),t.createVNode(d,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(g,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",mc,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[o.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,hc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(c.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(c).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(c.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),c.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),c.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,pc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",fc,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[...i[15]||(i[15]=[t.createTextVNode(" No hay resultados con los criterios",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("de búsqueda aplicados. ",-1)])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:i[8]||(i[8]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const uc=me(Kl,[["render",gc],["__cssModules",{$style:Yl}]]),yc={selectoritem:"_selectoritem_1f2kb_90",selectoritem2:"_selectoritem2_1f2kb_100",gscheaderlineup:"_gscheaderlineup_1f2kb_110",anNoEstn:"_anNoEstn_1f2kb_117",groupsLeague:"_groupsLeague_1f2kb_120",jugadores:"_jugadores_1f2kb_125",switchOption:"_switchOption_1f2kb_130",jugadores1:"_jugadores1_1f2kb_140",switchOption1:"_switchOption1_1f2kb_145",switchStatesBig:"_switchStatesBig_1f2kb_153",groupsLeagueParent:"_groupsLeagueParent_1f2kb_162",imgHomeTeamIcon:"_imgHomeTeamIcon_1f2kb_171",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1f2kb_177",teamContainer:"_teamContainer_1f2kb_189",name:"_name_1f2kb_201",homeTeamContainer:"_homeTeamContainer_1f2kb_207",div:"_div_1f2kb_217",titleSession:"_titleSession_1f2kb_221",scoreContainer:"_scoreContainer_1f2kb_231",scoreContainerWrapper:"_scoreContainerWrapper_1f2kb_241",teamContainer1:"_teamContainer1_1f2kb_253",awayTeamContainer:"_awayTeamContainer_1f2kb_265",matchContainer:"_matchContainer_1f2kb_275",sliderMatchesChild:"_sliderMatchesChild_1f2kb_284",manchesterUnited:"_manchesterUnited_1f2kb_290",sliderMatchesItem:"_sliderMatchesItem_1f2kb_296",sliderMatches:"_sliderMatches_1f2kb_284",sortIcon:"_sortIcon_1f2kb_314",filtros:"_filtros_1f2kb_321",sortParent:"_sortParent_1f2kb_329",shapeIcon:"_shapeIcon_1f2kb_336",btnFilter:"_btnFilter_1f2kb_341",btnFilter1:"_btnFilter1_1f2kb_355",btnFilterParent:"_btnFilterParent_1f2kb_369",backArrowIcon:"_backArrowIcon_1f2kb_377",teamContainer2:"_teamContainer2_1f2kb_383",homeTeam:"_homeTeam_1f2kb_207",div4:"_div4_1f2kb_397",finalScore:"_finalScore_1f2kb_402",manchesterUnited1:"_manchesterUnited1_1f2kb_415",scoreContainer1:"_scoreContainer1_1f2kb_422",match:"_match_1f2kb_275",manchesterUnited2:"_manchesterUnited2_1f2kb_440",btnDetails:"_btnDetails_1f2kb_445",matchContainer1:"_matchContainer1_1f2kb_455",goalChild:"_goalChild_1f2kb_463",goal:"_goal_1f2kb_463",manchesterUnited3:"_manchesterUnited3_1f2kb_476",minuteEvent:"_minuteEvent_1f2kb_483",yellowCard:"_yellowCard_1f2kb_490",awayTeamEvents:"_awayTeamEvents_1f2kb_497",rectangle:"_rectangle_1f2kb_504",homeTeamEvents:"_homeTeamEvents_1f2kb_511",totalEvents:"_totalEvents_1f2kb_519",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1f2kb_527",switchOption3:"_switchOption3_1f2kb_538",switchOption4:"_switchOption4_1f2kb_550",switchStatesBig1:"_switchStatesBig1_1f2kb_560",manchesterUnited13:"_manchesterUnited13_1f2kb_567",homeTeamContainer1:"_homeTeamContainer1_1f2kb_572",scoreContainer2:"_scoreContainer2_1f2kb_579",matchContainer2:"_matchContainer2_1f2kb_593",manchesterUnited14:"_manchesterUnited14_1f2kb_603",sliderMatchesInner:"_sliderMatchesInner_1f2kb_610",rectangleIcon:"_rectangleIcon_1f2kb_620",sliderMatches1:"_sliderMatches1_1f2kb_630",containerData:"_containerData_1f2kb_638",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1f2kb_652",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1f2kb_527",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1f2kb_676",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1f2kb_679",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1f2kb_683"},_c={components:{GSCCarousel:xt,GscSwitchComponent:lt},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:$,remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},bc=["src"],wc=["src"],Cc=["src"],kc=["src"],Sc=["src"],Ec=["src"];function Ic(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[0]||(i[0]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,bc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[s.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+"  |  "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+"  |  "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,wc)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Cc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[s.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(s.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(s.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[s.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,kc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Sc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(s.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Ec)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Vc=me(_c,[["render",Ic],["__cssModules",{$style:yc}]]),Nc={anNoEstn:"_anNoEstn_1k66p_70",groupsLeague:"_groupsLeague_1k66p_73",historicas:"_historicas_1k66p_77",switchOption:"_switchOption_1k66p_82",switchOption1:"_switchOption1_1k66p_92",probables:"_probables_1k66p_102",switchOption2:"_switchOption2_1k66p_107",switchStatesBig:"_switchStatesBig_1k66p_119",groupsLeagueParent:"_groupsLeagueParent_1k66p_128",imgHomeTeamIcon:"_imgHomeTeamIcon_1k66p_137",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1k66p_143",teamContainer:"_teamContainer_1k66p_155",name:"_name_1k66p_167",jor:"_jor_1k66p_173",jorParent:"_jorParent_1k66p_179",shapeIcon:"_shapeIcon_1k66p_187",frameParent:"_frameParent_1k66p_192",manchesterUnited:"_manchesterUnited_1k66p_207",necaxaIcon:"_necaxaIcon_1k66p_218",manchesterUnited1:"_manchesterUnited1_1k66p_224",team:"_team_1k66p_155",homeTeamContainer:"_homeTeamContainer_1k66p_238",div1:"_div1_1k66p_248",scoreContainer:"_scoreContainer_1k66p_252",scoreContainerWrapper:"_scoreContainerWrapper_1k66p_263",team1:"_team1_1k66p_275",name1:"_name1_1k66p_282",teamContainer1:"_teamContainer1_1k66p_289",awayTeamContainer:"_awayTeamContainer_1k66p_301",matchContainer:"_matchContainer_1k66p_312",goalChild:"_goalChild_1k66p_321",goal:"_goal_1k66p_321",manchesterUnited4:"_manchesterUnited4_1k66p_334",minuteEvent:"_minuteEvent_1k66p_341",yellowCard:"_yellowCard_1k66p_348",awayTeamEvents:"_awayTeamEvents_1k66p_355",rectangle:"_rectangle_1k66p_362",homeTeamEvents:"_homeTeamEvents_1k66p_369",totalEvents:"_totalEvents_1k66p_377",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1k66p_385",homeTeamContainer1:"_homeTeamContainer1_1k66p_395",awayTeamContainer1:"_awayTeamContainer1_1k66p_407",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1k66p_419",jugadores:"_jugadores_1k66p_429",switchOption6:"_switchOption6_1k66p_435",switchOption8:"_switchOption8_1k66p_445",switchStatesBig2:"_switchStatesBig2_1k66p_457",manchesterUnited28:"_manchesterUnited28_1k66p_464",homeTeamContainer2:"_homeTeamContainer2_1k66p_468",matchContainer2:"_matchContainer2_1k66p_475",manchesterUnited29:"_manchesterUnited29_1k66p_486",sliderMatchesChild:"_sliderMatchesChild_1k66p_493",sliderMatchesItem:"_sliderMatchesItem_1k66p_503",sliderMatches:"_sliderMatches_1k66p_493",jorParent2:"_jorParent2_1k66p_523",filterMatchday:"_filterMatchday_1k66p_530",necaxaIcon4:"_necaxaIcon4_1k66p_541",team4:"_team4_1k66p_547",filterMatchdayParent:"_filterMatchdayParent_1k66p_557",filterMatchday1:"_filterMatchday1_1k66p_564",teamParent:"_teamParent_1k66p_579",filtersContainer:"_filtersContainer_1k66p_589",containerData:"_containerData_1k66p_598",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1k66p_612",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1k66p_385"},Oc={components:{GSCDropdown:ds,GscSwitchComponent:lt},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(i){throw new Error(i)}}}},methods:{getImageUrl:$,clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png",this.provider):$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.provider),this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(e){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png",this.provider):$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.provider),this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},Tc=["src"],Rc={class:"selector-tournaments"},Fc=["src"],Bc=["src"],$c={class:"selector-tournaments"},Dc=["src"],zc=["src"],Ac={class:"selector-tournaments"},Pc=["src"],Mc=["src"],Uc={class:"selector-tournaments"},Lc=["src"],jc=["src"],Hc=["src"],xc={class:"selector-tournaments"},Wc=["src"],qc=["src"],Xc={class:"selector-tournaments"};function Jc(e,i,s,a,n,o){const r=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[0]||(i[0]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Tc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3),t.createVNode(l,{class:t.normalizeClass(e.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",Rc,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Fc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Bc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(l,{class:t.normalizeClass(e.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",$c,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Dc)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[i[2]||(i[2]=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,zc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",Ac,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Pc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Mc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",Uc,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Lc)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,jc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(s.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Hc)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",xc,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,Wc)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,qc),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(d=>[t.createElementVNode("div",Xc,t.toDisplayString(d.selectedItem.name),1)]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const Gc=me(Oc,[["render",Jc],["__cssModules",{$style:Nc}]]);let gs=null;const Yc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},components:{CardPlayer:Zo,HeaderPlayerHistorico:il,HeaderPlayerRecientes:uc,HeaderPlayerProbables:Gc,HeaderPlayerPostmatch:Vc},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],lineupLoadingLocks:{general:!1,home:!1,away:!1,probables:!1},pendingRequests:new Set,debounceTimer:null,probablesDebounceTimer:null,matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=600?"info-name-player-item600":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=600?"info-player-item600":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650||e<=700?"jerseyitemplayer700":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const e=this.gamesContainerWidth;return e<=300||e<=325||e<=350||e<=390||e<=440?"num-item-new440":e<=490||e<=540||e<=600?"num-item-new600":e<=650?"num-item-new650":e<=700||e<=740?"num-item-new740":e<=820||e<=840||e<=900||e<=940||e<=1040?"num-item-new1040":(e<=1140,"num-item-new")},numitemnewway(){const e=this.gamesContainerWidth;return e<=300||e<=325||e<=350||e<=390||e<=440?"num-item-new-away440":e<=490||e<=540||e<=600?"num-item-new-away600":e<=650?"num-item-new-away650":e<=700||e<=740?"num-item-new-away740":e<=820||e<=840||e<=900||e<=940||e<=1040?"num-item-new-away1040":(e<=1140,"num-item-new-away")},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=390?"cancha-container390":e<=440?"cancha-container440":e<=490?"cancha-container490":e<=540?"cancha-container540":e<=600?"cancha-container600":e<=640?"cancha-container640":e<=700?"cancha-container700":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=900?"cancha-container900":e<=940?"cancha-container940":e<=1040?"cancha-container1040":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},shouldShowNoLineupsMessage(){const e=(this.gameForAnalysis.game_status==4||this.gameForAnalysis.game_status==1)&&this.gameForAnalysis.is_live==0&&this.numPlayer==0;return console.log(`🔍 Condición mensaje: status=${this.gameForAnalysis.game_status}, is_live=${this.gameForAnalysis.is_live}, numPlayer=${this.numPlayer} -> ${e}`),e},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},beforeUnmount(){this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.debounceTimer&&clearTimeout(this.debounceTimer)},watch:{selectOptMenuheader:{immediate:!0,async handler(e,i){e!=i&&this.selectedOption!=="Postmatch"&&(e==="Probables"&&(this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.probablesDebounceTimer=setTimeout(async()=>{var s,a;if(this.gamehome&&this.gamehome.game_id&&this.gamehome.game_id!==0&&this.gameaway&&this.gameaway.game_id&&this.gameaway.game_id!==0){const n=this.areProbablesAlreadyLoaded(this.gamehome.game_id,this.gameaway.game_id);if(this.areProbablesRequestsPending(this.gamehome.game_id,this.gameaway.game_id)){console.log("⏳ Peticiones de alineaciones probables ya en curso, saltando...");return}if(n)console.log("⏭️ Alineaciones probables ya cargadas para estos game_ids - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id);else{console.log("✅ Cargando alineaciones probables - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id),this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,console.log("🧹 Limpiando datos antes de cargar nuevas alineaciones..."),this.cleaneDataAway(),this.cleaneDataHome(),console.log("📊 Estado después de limpiar - Home:",this.playersHome.length,"Away:",this.playersAway.length),console.log("📋 Obteniendo información del header para probables...");try{if(!this.game||!this.game.game_id){console.warn("❌ Prop game no disponible para obtener header info");return}await this.getHeaderInfo(this.game),console.log("✅ Header info obtenido para el partido principal:",this.game.game_id)}catch(r){console.error("❌ Error obteniendo header info:",r)}this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),setTimeout(()=>{console.log(`📊 Estado después de iniciar peticiones - Home: ${this.playersHome.length}, Away: ${this.playersAway.length}, numPlayer: ${this.numPlayer}`)},100)}}else console.warn("❌ No se pueden cargar alineaciones probables - game_id inválidos:",{home:(s=this.gamehome)==null?void 0:s.game_id,away:(a=this.gameaway)==null?void 0:a.game_id});this.lastSection=e},1e3)),e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},numPlayer:{handler(e,i){e!==i&&console.log(`👥 numPlayer cambió de ${i} a ${e} (Home: ${this.playersHome.length}, Away: ${this.playersAway.length})`)}},"gameForAnalysis.game_status":{handler(e){console.log(`🎮 game_status cambió a: ${e}`)}},"gameForAnalysis.is_live":{handler(e){console.log(`📡 is_live cambió a: ${e}`)}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e,i){if(e&&(!i||e.game_id!==i.game_id))try{if(e){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(e);const n=[z.get(ge(this.urlGames+e.season_id+"/games/"+e.game_id,this.provider,this.isDevApis),s)];let o=null;const r=this.selectedOption==="Postmatch"?e.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==0&&r!==this.lastGetLineUpGameId?(console.log("✅ Haciendo petición de alineaciones para game_id:",r),o=z.get(ge(this.url+r,this.provider,this.isDevApis),s),n.push(o)):r===0&&console.warn("❌ Se evitó petición con game_id = 0");const[l,d]=await Promise.all(n);await this.gameDataInfo(e,l),r&&r!==0&&await this.getLineUp(r,d)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([e,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(h){return!h.isbench});for(let h=0;h<i[this.home_team_id].length;h++)if(!i[this.home_team_id][h].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][h].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,d=this.dataPlayersHome.findIndex(u=>u.player_id==i[this.home_team_id][h].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][h].playerName,position:d!=-1?this.isFemale?this.positions[this.dataPlayersHome[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[d].position_id-1].name:"",position_id:this.dataPlayersHome[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][h].playerID+".png",nationality:d!=-1&&this.dataPlayersHome[d].nationality?this.dataPlayersHome[d].nationality.substring(0,3):"",imgNationality:d!=-1?this.dataPlayersHome[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][h].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][h].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((h,u)=>h.position_id>u.position_id?1:u.position_id>h.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(h){return!h.isbench});for(let h=0;h<i[this.away_team_id].length;h++)if(!i[this.away_team_id][h].isTitular){this.subsTitle=!0;var g=i[this.away_team_id][h].playerName.split(","),p=g[0].split(" "),y=s[1].trim().split(" "),c="";p.length==2||p.length==1?p[0].length<4?c=p[0]+" "+p[1]:c=p[0]:p.length==3?c=p[0]+" "+p[1]:p.length==4&&(c=p[1]+" "+p[2]+" "+p[3]);var C=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";c=c.replace(",","");var k=C+". "+c,b=this.dataPlayersAway.findIndex(u=>u.player_id==i[this.away_team_id][h].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][h].playerName,position:b!=-1?this.isFemale?this.positions[this.dataPlayersAway[b].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[b].position_id-1].name:"",position_id:this.dataPlayersAway[b].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][h].playerID+".png",nationality:b!=-1&&this.dataPlayersAway[b].nationality?this.dataPlayersAway[b].nationality.substring(0,3):"",imgNationality:b!=-1?this.dataPlayersAway[b].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:k,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][h].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][h].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((h,u)=>h.position_id>u.position_id?1:u.position_id>h.position_id?-1:0)}},new_lineup([e,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let m=0;m<i.data.length;m++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[m].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,d=i.data[m].x,g=d*50/100,p=i.home_team.players.findIndex(w=>w.player_id==i.data[m].player_id);this.playersHome.push({played:!0,name:i.data[m].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[m].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[m].jersey_number,positionX:i.data[m].y-13,positionY:g*.9,positionXOrigin:i.data[m].y-17,positionYOrigin:i.data[m].x-2,playerId:i.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersHome.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let m=0;m<i.data.length;m++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var y=i.data[m].player_name.split(","),c=y[0].split(" "),C=y[1].trim().split(" "),k="";c.length==2||c.length==1?c[0].length<4?k=c[0]+" "+c[1]:k=c[0]:c.length==3?k=c[0]+" "+c[1]:c.length==4&&(k=c[1]+" "+c[2]+" "+c[3]);var b=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";k=k.replace(",","");var h=b+". "+k,u=i.data[m].x,E=100-(100-u)*50/100;E=E*.9;var _=i.away_team.players.findIndex(w=>w.player_id==i.data[m].player_id);this.playersAway.push({played:!0,name:i.data[m].player_name,position:_!=-1?this.isFemale?this.positions[i.away_team.players[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[_].position_id-1].name:"",position_id:i.away_team.players[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[m].player_id+".png",nationality:_!=-1&&i.away_team.players[_].nationality?i.away_team.players[_].nationality.substring(0,3):"",imgNationality:_!=-1?i.away_team.players[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:h,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[m].jersey_number,positionX:i.data[m].y-13,positionY:E+2,positionXOrigin:i.data[m].y-17,positionYOrigin:i.data[m].x-7,playerId:i.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}},update_mxm([e,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(T=>T.idredcards==i.play_id),o=this.playersHome.findIndex(T=>T.idyellowcards==i.play_id),r=this.playersHome.findIndex(T=>T.idSubstitution==i.play_id);for(let T=0;T<this.playersHome.length;T++){var l=this.playersHome[T].idsGoals.findIndex(L=>L==i.play_id);l!=-1&&(s=l,a=T)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var d=this.playersAway.findIndex(T=>T.idredcards==i.play_id),g=this.playersAway.findIndex(T=>T.idyellowcards==i.play_id),p=this.playersAway.findIndex(T=>T.idSubstitution==i.play_id);for(let T=0;T<this.playersAway.length;T++){var y=this.playersAway[T].idsGoals.findIndex(L=>L==i.play_id);y!=-1&&(s=y,a=T)}d!=-1&&this.resetPlayUpdate("RedCard","Away",d,a),g!=-1&&this.resetPlayUpdate("YellowCard","Away",g,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=i.player_id.split("@"),C=this.playersHome.findIndex(T=>T.playerId==c[0]),k=this.playersHome.findIndex(T=>T.playerId==c[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersHome[k].idSubstitution=i.play_id,this.playersHome[k].substitutionIn=!0,this.playersHome[k].substitutionMin=i.minute,this.playersHome[k].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var b=i.player_id.split("@"),h=this.playersAway.findIndex(T=>T.playerId==b[0]),u=this.playersAway.findIndex(T=>T.playerId==b[1]);C!=-1&&(this.playersAway[h].idSubstitution=i.play_id,this.playersAway[h].substitutionOut=!0,this.playersAway[h].substitutionMin=i.minute,this.playersAway[h].substitutionDataID=i.team_id+"@"+i.player_id),u!=-1&&(this.playersAway[u].idSubstitution=i.play_id,this.playersAway[u].substitutionIn=!0,this.playersAway[u].substitutionMin=i.minute,this.playersAway[u].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(T=>T.playerId==i.player_id);E!=-1&&(this.playersHome[E].goals+=1,this.playersHome[E].goalsMin.push(i.minute),this.playersHome[E].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(T=>T.playerId==i.player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(i.minute),this.playersAway[_].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(T=>T.playerId==i.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=i.minute,this.playersHome[m].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(T=>T.playerId==i.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=i.minute,this.playersAway[w].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var I=this.playersHome.findIndex(T=>T.playerId==i.player_id);I!=-1&&(this.playersHome[I].redcards+=1,this.playersHome[I].redcardsMin=i.minute,this.playersHome[I].idredcards=i.play_id)}}else if(this.playersAway.length>0){var P=this.playersAway.findIndex(T=>T.playerId==i.player_id);P!=-1&&(this.playersAway[P].redcards+=1,this.playersAway[P].redcardsMin=i.minute,this.playersAway[P].idredcards=i.play_id)}}}},delete_mxm([e,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([e,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(k=>k.playerId==s[0]),n=this.playersHome.findIndex(k=>k.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(k=>k.playerId==o[0]),l=this.playersAway.findIndex(k=>k.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),l!=-1&&(this.playersAway[l].idSubstitution=i.play_id,this.playersAway[l].substitutionIn=!0,this.playersAway[l].substitutionMin=i.minute,this.playersAway[l].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(k=>k.playerId==i.player_id);d!=-1&&(this.playersHome[d].goals+=1,this.playersHome[d].goalsMin.push(i.minute),this.playersHome[d].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var g=this.playersAway.findIndex(k=>k.playerId==i.player_id);g!=-1&&(this.playersAway[g].goals+=1,this.playersAway[g].goalsMin.push(i.minute),this.playersAway[g].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(k=>k.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(k=>k.playerId==i.player_id);y!=-1&&(this.playersAway[y].yellowcards+=1,this.playersAway[y].yellowcardsMin=i.minute,this.playersAway[y].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(k=>k.playerId==i.player_id);c!=-1&&(this.playersHome[c].redcards+=1,this.playersHome[c].redcardsMin=i.minute,this.playersHome[c].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(k=>k.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{isRequestPending(e,i="general"){const s=`${i}_${e}`;return this.pendingRequests.has(s)},markRequestPending(e,i="general"){const s=`${i}_${e}`;this.pendingRequests.add(s),console.log(`🔒 Marcando petición como pendiente: ${s}`)},removeRequestPending(e,i="general"){const s=`${i}_${e}`;this.pendingRequests.delete(s),console.log(`🔓 Removiendo petición pendiente: ${s}`)},areProbablesAlreadyLoaded(e,i){return this.auxProbablesIDGameHome===e&&this.auxProbablesIDGameAway===i},areProbablesRequestsPending(e,i){return this.isRequestPending(e,"home")||this.isRequestPending(i,"away")},calculatePerspectiveAdjustment(e){const s=Math.max(0,Math.min(100,e)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(e){const s=Math.max(0,Math.min(100,e)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){if(console.log("🏠 Iniciando petición de alineaciones probables HOME para game_id:",e),e==null||e===0){console.warn("❌ getLineUpProbablesHome3D: Se intentó hacer petición con game_id inválido:",e);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesHome3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesHome3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(e,"home")){console.warn(`🔒 getLineUpProbablesHome3D: Ya hay una petición en curso para game_id: ${e}`);return}this.markRequestPending(e,"home");try{const m=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(ge(this.url+e,this.provider,this.isDevApis));if(!m||!m.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,m.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=m.data.home_team.players,m.data.home_team.starting_lineup[0].lineup.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0);for(let w=0;w<m.data.home_team.starting_lineup[0].lineup.length;w++){this.home_team_id=m.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+m.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+m.data.home_team.team_id+"_g.svg","home",0);var i=m.data.home_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=m.data.home_team.starting_lineup[0].lineup[w].x,d=l*50/100,g=m.data.home_team.players.findIndex(I=>I.player_id==m.data.home_team.starting_lineup[0].lineup[w].player_id);console.log(`🏠 Agregando jugador HOME: ${m.data.home_team.starting_lineup[0].lineup[w].player_name}`),this.playersHome.push({played:!0,name:m.data.home_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[m.data.home_team.players[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[m.data.home_team.players[g].position_id-1].name,position_id:m.data.home_team.players[g].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+m.data.home_team.starting_lineup[0].lineup[w].player_id+".png",nationality:m.data.home_team.players[g].nationality?m.data.home_team.players[g].nationality.substring(0,3):"",imgNationality:m.data.home_team.players[g].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:m.data.home_team.starting_lineup[0].lineup[w].jersey_number,positionX:m.data.home_team.starting_lineup[0].lineup[w].y-13,positionY:d*.9,positionXOrigin:m.data.home_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:m.data.home_team.starting_lineup[0].lineup[w].x-2,playerId:m.data.home_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:m.data.home_team.team_id}),this.homeTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.home_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0),m.data.home_team.bench){for(let w=0;w<m.data.home_team.bench.length;w++){this.subsTitle=!0;var p=m.data.home_team.bench[w].playerName.split(","),y=p[0].split(" "),c=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var k=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var b=k+". "+C,h=m.data.home_team.players.findIndex(I=>I.player_id==m.data.home_team.bench[w].playerID);this.playersHome.push({played:!1,name:m.data.home_team.bench[w].playerName,position:h!=-1?this.isFemale?this.positions[m.data.home_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[m.data.home_team.players[h].position_id-1].name:"",position_id:m.data.home_team.players[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+m.data.home_team.bench[w].playerID+".png",nationality:h!=-1&&m.data.home_team.players[h].nationality?m.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:h!=-1?m.data.home_team.players[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:b,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:m.data.home_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:m.data.home_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:m.data.home_team.team_id})}this.playersHome.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0)}}if(m.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=m.data.away_team.players,m.data.away_team.starting_lineup[0].lineup.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0);for(let w=0;w<m.data.away_team.starting_lineup[0].lineup.length;w++){this.home_team_id=m.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+m.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+m.data.away_team.team_id+"_g.svg","home",0);var i=m.data.away_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,u=m.data.away_team.starting_lineup[0].lineup[w].x;u=Math.abs(u-100);var d=u*50/100,E=m.data.away_team.starting_lineup[0].lineup[w].y;E=Math.abs(E-100);var g=m.data.away_team.players.findIndex(U=>U.player_id==m.data.away_team.starting_lineup[0].lineup[w].player_id);this.playersHome.push({played:!0,name:m.data.away_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[m.data.away_team.players[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[m.data.away_team.players[g].position_id-1].name,position_id:m.data.away_team.players[g].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+m.data.away_team.starting_lineup[0].lineup[w].player_id+".png",nationality:m.data.away_team.players[g].nationality?m.data.away_team.players[g].nationality.substring(0,3):"",imgNationality:m.data.away_team.players[g].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:m.data.away_team.starting_lineup[0].lineup[w].jersey_number,positionX:E-20,positionY:d*.9,positionXOrigin:m.data.away_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:m.data.away_team.starting_lineup[0].lineup[w].x-2,playerId:m.data.away_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:m.data.away_team.team_id}),this.homeTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.away_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0),m.data.away_team.bench){for(let w=0;w<m.data.away_team.bench.length;w++){this.subsTitle=!0;var p=m.data.away_team.bench[w].playerName.split(","),y=p[0].split(" "),c=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var k=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var b=k+". "+C,h=m.data.away_team.players.findIndex(W=>W.player_id==m.data.away_team.bench[w].playerID);this.playersHome.push({played:!1,name:m.data.away_team.bench[w].playerName,position:h!=-1?this.isFemale?this.positions[m.data.away_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[m.data.away_team.players[h].position_id-1].name:"",position_id:m.data.away_team.players[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+m.data.away_team.bench[w].playerID+".png",nationality:h!=-1&&m.data.away_team.players[h].nationality?m.data.away_team.players[h].nationality.substring(0,3):"",imgNationality:h!=-1?m.data.away_team.players[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:b,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+m.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:m.data.away_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:m.data.away_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:m.data.away_team.team_id})}this.playersHome.sort((w,I)=>w.position_id>I.position_id?1:I.position_id>w.position_id?-1:0)}}await this.getMXM(e),this.removeRequestPending(e,"home"),console.log(`✅ getLineUpProbablesHome3D: Petición completada exitosamente para game_id: ${e}`),console.log(`📊 Jugadores HOME cargados: ${this.playersHome.length}`)}catch(_){return this.removeRequestPending(e,"home"),console.error(`❌ getLineUpProbablesHome3D: Error en petición para game_id: ${e}`,_),Promise.reject(_)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){if(console.log("✈️ Iniciando petición de alineaciones probables AWAY para game_id:",e),e==null||e===0){console.warn("❌ getLineUpProbablesAway3D: Se intentó hacer petición con game_id inválido:",e);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesAway3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesAway3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(e,"away")){console.warn(`🔒 getLineUpProbablesAway3D: Ya hay una petición en curso para game_id: ${e}`);return}this.markRequestPending(e,"away");try{const _=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(ge(this.url+e,this.provider,this.isDevApis));if(!_||!_.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let m=0;m<_.data.home_team.starting_lineup[0].lineup.length;m++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var i=_.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=_.data.home_team.starting_lineup[0].lineup[m].x;l=Math.abs(l-100);var d=_.data.home_team.starting_lineup[0].lineup[m].y;d=Math.abs(d-100);var g=100-(100-l)*50/100;g=g*.9;var p=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.starting_lineup[0].lineup[m].player_id);console.log(`✈️ Agregando jugador AWAY: ${_.data.home_team.starting_lineup[0].lineup[m].player_name}`),this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[_.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[p].position_id-1].name,position_id:_.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[m].player_id+".png",nationality:_.data.home_team.players[p].nationality?_.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[m].jersey_number,positionX:d-23,positionY:g,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[m].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",this.provider)}if(this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),_.data.home_team.bench){for(let m=0;m<_.data.home_team.bench.length;m++){this.subsTitle=!0;var y=_.data.home_team.bench[m].playerName.split(","),c=y[0].split(" "),C=y[1].trim().split(" "),k="";c.length==2||c.length==1?c[0].length<4?k=c[0]+" "+c[1]:k=c[0]:c.length==3?k=c[0]+" "+c[1]:c.length==4&&(k=c[1]+" "+c[2]+" "+c[3]);var b=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";k=k.replace(",","");var h=b+". "+k,u=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.bench[m].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[m].playerName,position:u!=-1?this.isFemale?this.positions[_.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[u].position_id-1].name:"",position_id:_.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.bench[m].playerID+".png",nationality:u!=-1&&_.data.home_team.players[u].nationality?_.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?_.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:h,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=_.data.away_team.players;for(let m=0;m<_.data.away_team.starting_lineup[0].lineup.length;m++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var i=_.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=_.data.away_team.starting_lineup[0].lineup[m].x,g=100-(100-l)*50/100;g=g*.9;var p=_.data.away_team.players.findIndex(U=>U.player_id==_.data.away_team.starting_lineup[0].lineup[m].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[_.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[p].position_id-1].name,position_id:_.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[m].player_id+".png",nationality:_.data.away_team.players[p].nationality?_.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[m].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[m].y-13,positionY:g,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[m].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",this.provider)}if(this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0),_.data.away_team.bench){for(let m=0;m<_.data.away_team.bench.length;m++){this.subsTitle=!0;var y=_.data.away_team.bench[m].playerName.split(","),c=y[0].split(" "),C=y[1].trim().split(" "),k="";c.length==2||c.length==1?c[0].length<4?k=c[0]+" "+c[1]:k=c[0]:c.length==3?k=c[0]+" "+c[1]:c.length==4&&(k=c[1]+" "+c[2]+" "+c[3]);var b=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";k=k.replace(",","");var h=b+". "+k,u=_.data.away_team.players.findIndex(A=>A.player_id==_.data.away_team.bench[m].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[m].playerName,position:u!=-1?this.isFemale?this.positions[_.data.away_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[u].position_id-1].name:"",position_id:_.data.away_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.bench[m].playerID+".png",nationality:u!=-1&&_.data.away_team.players[u].nationality?_.data.away_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?_.data.away_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:h,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((m,w)=>m.position_id>w.position_id?1:w.position_id>m.position_id?-1:0)}}await this.getMXM(e),this.removeRequestPending(e,"away"),console.log(`✅ getLineUpProbablesAway3D: Petición completada exitosamente para game_id: ${e}`),console.log(`📊 Jugadores AWAY cargados: ${this.playersAway.length}`)}catch(E){return this.removeRequestPending(e,"away"),console.error(`❌ getLineUpProbablesAway3D: Error en petición para game_id: ${e}`,E),Promise.reject(E)}},async getLineupProbablesHome(e){e&&e.id&&e.id!==0?this.auxProbablesIDGameHome!=e.id&&(console.log("✅ getLineupProbablesHome: Cargando alineaciones para game_id:",e.id),this.auxProbablesIDGameHome=e.id):console.warn("❌ getLineupProbablesHome: game_id inválido:",e==null?void 0:e.id)},async getLineupProbablesAway(e){e&&e.id&&e.id!==0?this.auxProbablesIDGameAway!=e.id&&(console.log("✅ getLineupProbablesAway: Cargando alineaciones para game_id:",e.id),this.auxProbablesIDGameAway=e.id):console.warn("❌ getLineupProbablesAway: game_id inválido:",e==null?void 0:e.id)},async getLineupProbables(e){if(e&&e.id&&e.id!==0){var i={season_id:e.season_id,game_id:e.id};this.lastGetGame!=i.game_id&&(console.log("✅ getLineupProbables: Cargando alineaciones para game_id:",e.id),this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id}else console.warn("❌ getLineupProbables: game_id inválido:",e==null?void 0:e.id)},async changeCarouselItem(e){e&&e.game_id&&e.game_id!==0&&typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id?this.auxHistoricGameID!=e.game_id&&(console.log("✅ changeCarouselItem: Cargando alineaciones para game_id:",e.game_id),this.auxHistoricGameID=e.game_id,this.cleaneData(),await this.getLineUp(e.game_id)):console.warn("❌ changeCarouselItem: game_id inválido:",e==null?void 0:e.game_id)},async changeCarouselItemRecent(e){var s;if(e.selectedItem&&e.selectedItem.id&&e.selectedItem.id!==0){var i={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};console.log("✅ changeCarouselItemRecent: Cargando alineaciones para game_id:",e.selectedItem.id),this.homeTeam.acronymrecientes=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}else console.warn("❌ changeCarouselItemRecent: game_id inválido:",(s=e.selectedItem)==null?void 0:s.id)},async getHeaderInfo(e,i=null){const s=z.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(ge("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups",this.provider,this.isDevApis));if(console.log("GAME INFO HEADER --------------------------------------------------------> ",e.game_id),this.gameInfoheader=a.data.game,console.log("📋 gameInfoheader establecido para game_id:",this.gameInfoheader.id,"del partido:",e.game_id),this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(e){let i=e.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(e){let i=e.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e,i=null){const s=z.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(ge(this.urlGames+e.season_id+"/games/"+e.game_id,this.provider,this.isDevApis));this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.pendingRequests.clear(),console.log("🧹 cleaneData: Limpiando todas las peticiones pendientes"),this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lt("lineups.game."+this.game.game_id,this.socket),Lt("mxm.game."+this.game.game_id,this.socket),Lt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,i,s,a){if(e=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var l=this.playersAway[s].substitutionDataID.split("@"),d=this.playersAway.findIndex(p=>p.playerId==l[1]),g=this.playersAway.findIndex(p=>p.playerId==l[2]);o!=-1&&(this.playersAway[d].substitutionOut=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0),g!=-1&&(this.playersAway[g].substitutionIn=!1,this.playersAway[g].substitutionMin="",this.playersAway[g].substitutionDataID="",this.playersAway[g].idSubstitution=0)}e=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),e=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),e=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)gs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),gs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const C=ge(this.urlMXM+e,this.provider,this.isDevApis);if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const b=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let h=0;h<this.playersHome.length;h++)this.playersHome[h].goalsMin=[],this.playersHome[h].idsGoals=[];for(let h=0;h<this.playersAway.length;h++)this.playersAway[h].goalsMin=[],this.playersAway[h].idsGoals=[];for(let h=0;h<b.data.plays.length;h++){if(b.data.plays[h].event_type_id==3){if(b.data.plays[h].team_id==this.home_team_id){if(this.playersHome.length>0){var i=b.data.plays[h].player_id.split("@"),s=this.playersHome.findIndex(u=>u.playerId==i[0]),a=this.playersHome.findIndex(u=>u.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=b.data.plays[h].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=b.data.plays[h].minute,this.playersHome[s].substitutionDataID=b.data.plays[h].team_id+"@"+b.data.plays[h].player_id),a!=-1&&(this.playersHome[a].idSubstitution=b.data.plays[h].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=b.data.plays[h].minute,this.playersHome[a].substitutionDataID=b.data.plays[h].team_id+"@"+b.data.plays[h].player_id)}}else if(this.playersAway.length>0){var n=b.data.plays[h].player_id.split("@"),o=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=b.data.plays[h].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=b.data.plays[h].minute,this.playersAway[o].substitutionDataID=b.data.plays[h].team_id+"@"+b.data.plays[h].player_id),r!=-1&&(this.playersAway[r].idSubstitution=b.data.plays[h].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=b.data.plays[h].minute,this.playersAway[r].substitutionDataID=b.data.plays[h].team_id+"@"+b.data.plays[h].player_id)}}if(b.data.plays[h].event_type_id==1){if(b.data.plays[h].team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(u=>u.playerId==b.data.plays[h].player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(b.data.plays[h].minute),this.playersHome[l].idsGoals.push(b.data.plays[h].play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(u=>u.playerId==b.data.plays[h].player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(b.data.plays[h].minute),this.playersAway[d].idsGoals.push(b.data.plays[h].play_id))}}if(b.data.plays[h].event_type_id==2){if(b.data.plays[h].category_id==8){if(b.data.plays[h].team_id==this.home_team_id){if(this.playersHome.length>0){var g=this.playersHome.findIndex(u=>u.playerId==b.data.plays[h].player_id);g!=-1&&(this.playersHome[g].yellowcards+=1,this.playersHome[g].yellowcardsMin=b.data.plays[h].minute,this.playersHome[g].idyellowcards=b.data.plays[h].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==b.data.plays[h].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=b.data.plays[h].minute,this.playersAway[p].idyellowcards=b.data.plays[h].play_id)}}if(b.data.plays[h].category_id==9){if(b.data.plays[h].team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(u=>u.playerId==b.data.plays[h].player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=b.data.plays[h].minute,this.playersHome[y].idredcards=b.data.plays[h].play_id)}}else if(this.playersAway.length>0){var c=this.playersAway.findIndex(u=>u.playerId==b.data.plays[h].player_id);c!=-1&&(this.playersAway[c].redcards+=1,this.playersAway[c].redcardsMin=b.data.plays[h].minute,this.playersAway[c].idredcards=b.data.plays[h].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(e,i){if(e==null||e===0){console.warn("❌ getLineUp: Se intentó hacer petición con game_id inválido:",e);return}if(console.log("------------------------------------------------> SE HIZO LA PETICION ----> DEL PARTIDO ID: ",e),this.isRequestPending(e,"general")){console.warn(`🔒 getLineUp: Ya hay una petición en curso para game_id: ${e}`);return}this.markRequestPending(e,"general");try{this.lastGetLineUpGameId=e,this.lastSection=this.selectOptMenuheader;const pe=z.create({headers:{Authorization:`${this.tokenPremium}`}}),S=i||await pe.get(ge(this.url+e,this.provider,this.isDevApis));if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((N,F)=>N.position_id>F.position_id?1:F.position_id>N.position_id?-1:0);for(let N=0;N<S.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,d=S.data.home_team.starting_lineup[0].lineup[N].x,g=d*50/100,p=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.starting_lineup[0].lineup[N].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:g*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.homeTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((N,F)=>N.position_id>F.position_id?1:F.position_id>N.position_id?-1:0),S.data.home_team.bench){for(let N=0;N<S.data.home_team.bench.length;N++){this.subsTitle=!0;var y=S.data.home_team.bench[N].playerName.split(","),c=y[0].split(" "),C=y[1].trim().split(" "),k="";c.length==2||c.length==1?c[0].length<4?k=c[0]+" "+c[1]:k=c[0]:c.length==3?k=c[0]+" "+c[1]:c.length==4&&(k=c[1]+" "+c[2]+" "+c[3]);var b=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";k=k.replace(",","");var h=b+". "+k,u=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[N].playerName,position:u!=-1?this.isFemale?this.positions[S.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[u].position_id-1].name:"",position_id:S.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[N].playerID+".png",nationality:u!=-1&&S.data.home_team.players[u].nationality?S.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?S.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:h,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((N,F)=>N.position_id>F.position_id?1:F.position_id>N.position_id?-1:0)}for(let N=0;N<S.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var E=S.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),_=E[0].split(" "),m=E[1].trim().split(" "),w="";_.length==2||_.length==1?_[0].length<4?w=_[0]+" "+_[1]:w=_[0]:_.length==3?w=_[0]+" "+_[1]:_.length==4&&(w=_[1]+" "+_[2]+" "+_[3]);var I=m[n.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";w=w.replace(",","");var P=I+". "+w,T=S.data.away_team.starting_lineup[0].lineup[N].x,L=100-(100-T)*50/100;L=L*.9;var x=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.starting_lineup[0].lineup[N].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.isFemale?this.positions[S.data.away_team.players[x].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[x].position_id-1].name,position_id:S.data.away_team.players[x].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:S.data.away_team.players[x].nationality?S.data.away_team.players[x].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[x].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:P,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:L,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo=$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((N,F)=>N.position_id>F.position_id?1:F.position_id>N.position_id?-1:0),S.data.away_team.bench){for(let N=0;N<S.data.away_team.bench.length;N++){this.subsTitle=!0;var Y=S.data.away_team.bench[N].playerName.split(","),A=Y[0].split(" "),W=Y[1].trim().split(" "),U="";A.length==2||A.length==1?A[0].length<4?U=A[0]+" "+A[1]:U=A[0]:A.length==3?U=A[0]+" "+A[1]:A.length==4&&(U=A[1]+" "+A[2]+" "+A[3]);var ue=W[W.length-1]!=""?W[W.length-1].charAt(0):W[W.length-2]?W[W.length-2].charAt(0):"";U=U.replace(",","");var he=ue+". "+U,K=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[N].playerName,position:K!=-1?this.isFemale?this.positions[S.data.away_team.players[K].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[K].position_id-1].name:"",position_id:S.data.away_team.players[K].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[N].playerID+".png",nationality:K!=-1&&S.data.away_team.players[K].nationality?S.data.away_team.players[K].nationality.substring(0,3):"",imgNationality:K!=-1?S.data.away_team.players[K].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:he,imgTeam:$("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((N,F)=>N.position_id>F.position_id?1:F.position_id>N.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(e)},500),this.removeRequestPending(e,"general"),console.log(`✅ getLineUp: Petición completada exitosamente para game_id: ${e}`)}catch(pe){return this.removeRequestPending(e,"general"),console.error(`❌ getLineUp: Error en petición para game_id: ${e}`,pe),Promise.reject(pe)}},closeChange(){this.subsActive=!1},imageExists(e,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",e,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",e,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",e,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",e,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":s==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var i=e.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Kc={style:{background:"#1d2a35"}},Zc={class:"size-browser-class"},Qc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},vc={class:"team-shield-left",style:{"margin-left":"16%"}},ed=["src"],td={class:"team-shield-right",style:{"margin-right":"16%"}},id=["src"],sd={class:"lineup-players is-centered"},ad=["onClick"],nd=["onClick"];function od(e,i,s,a,n,o){return t.openBlock(),t.createElementBlock("div",Kc,[t.createElementVNode("div",Zc,t.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=t.createElementVNode("div",{class:"size-browser-class2"},null,-1)),t.createElementVNode("div",Qc,[t.createElementVNode("div",vc,[t.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,ed)]),t.createElementVNode("div",td,[t.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,id)])]),t.createElementVNode("div",sd,[t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(o.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(o.canchacontainerClass)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(r,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l+"jersey_home"},[r.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(o.jerseyitemplayerClass),style:t.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(o.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(o.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(o.numitemnewhome)},t.toDisplayString(r.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.infochangeplayeritemClass),onClick:d=>o.viewChange(r.substitutionDataID)},[...i[0]||(i[0]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,ad)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(r,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l+"jersey_away"},[r.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(o.jerseyitemplayerClass),style:t.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(o.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(o.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(o.numitemnewway)},t.toDisplayString(r.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.infochangeplayeritemClass),onClick:d=>o.viewChange(r.substitutionDataID)},[...i[1]||(i[1]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,nd)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(o.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},[...i[2]||(i[2]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)])],2),t.createElementVNode("div",{class:t.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[...i[3]||(i[3]=[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("serán dadas minutos antes del inicio del partido. ",-1)])],2)],2)):t.createCommentVNode("",!0)],2)])])}const rd=me(Yc,[["render",od]]),ld=me({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameNumber:{type:Number,default:0},lastGames:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},setup(e){const i=e,s=o=>o?{game_id:o.game_id||null,season_id:o.season_id||null,prematch:o.prematch!==void 0?o.prematch:!0}:{game_id:null,season_id:null,prematch:!0},a=t.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_home_games){const o=i.gameNumber-1,r=i.lastGames.last_home_games[o];return s(r)}return s(null)}),n=t.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_visiting_games){const o=i.gameNumber-1,r=i.lastGames.last_visiting_games[o];return s(r)}return s(null)});return(o,r)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(rd,{game:e.game,gamehome:a.value,gameaway:n.value,"selected-option":e.selectedOption,provider:e.provider,"is-dev-apis":e.isDevApis},null,8,["game","gamehome","gameaway","selected-option","provider","is-dev-apis"])]))}},[["__scopeId","data-v-12d1fcd5"]]);ye.GSCLineupsReports=ld,Object.defineProperty(ye,Symbol.toStringTag,{value:"Module"})}));
13
+ */const H={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},zi={itemsToShow:{default:H.itemsToShow,type:Number},itemsToScroll:{default:H.itemsToScroll,type:Number},wrapAround:{default:H.wrapAround,type:Boolean},throttle:{default:H.throttle,type:Number},snapAlign:{default:H.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:H.transition,type:Number},breakpoints:{default:H.breakpoints,type:Object},autoplay:{default:H.autoplay,type:Number},pauseAutoplayOnHover:{default:H.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:H.mouseDrag,type:Boolean},touchDrag:{default:H.touchDrag,type:Boolean},dir:{default:H.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:H.i18n,type:Object},settings:{default(){return{}},type:Object}};function ro({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function lo({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function Ct({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function co({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:Ct({val:r,max:s-o,min:0})}function Di(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Di(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function kt({val:t,max:i,min:s=0}){return t>i?kt({val:t-(i+1),max:i,min:s}):t<s?kt({val:t+(i+1),max:i,min:s}):t}function mo(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function ho(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function po(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var fo=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},H))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},po(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),go=e.defineComponent({name:"Carousel",props:zi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),l=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},H));let p=Object.assign({},H),_;const c=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0);let k,O;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",c),e.provide("maxSlide",u),e.provide("minSlide",m),e.provide("slideWidth",l);function y(){_=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),w(p)}function d(){if(!_||!Object.keys(_).length)return;const $=Object.keys(_).map(L=>Number(L)).sort((L,re)=>+re-+L);let x=Object.assign({},p);$.some(L=>{const re=window.matchMedia(`(min-width: ${L}px)`).matches;return re&&(x=Object.assign(Object.assign({},x),_[L])),re}),w(x)}function w($){Object.entries($).forEach(([x,L])=>f[x]=L)}const E=ho(()=>{d(),R()},16);function R(){if(!o.value)return;const $=o.value.getBoundingClientRect();l.value=$.width/f.itemsToShow}function V(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=ro({config:f,slidesCount:h.value}),m.value=lo({config:f,slidesCount:h.value}),f.wrapAround||(c.value=Ct({val:c.value,max:u.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>R()),setTimeout(()=>R(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{O&&clearTimeout(O),k&&clearInterval(k),window.removeEventListener("resize",E,{passive:!0})});let A=!1;const Y={x:0,y:0},ae={x:0,y:0},D=e.reactive({x:0,y:0}),U=e.ref(!1),M=e.ref(!1),ye=()=>{U.value=!0},j=()=>{U.value=!1};function G($){["INPUT","TEXTAREA","SELECT"].includes($.target.tagName)||(A=$.type==="touchstart",A||$.preventDefault(),!(!A&&$.button!==0||K.value)&&(Y.x=A?$.touches[0].clientX:$.clientX,Y.y=A?$.touches[0].clientY:$.clientY,document.addEventListener(A?"touchmove":"mousemove",q,!0),document.addEventListener(A?"touchend":"mouseup",S,!0)))}const q=mo($=>{M.value=!0,ae.x=A?$.touches[0].clientX:$.clientX,ae.y=A?$.touches[0].clientY:$.clientY;const x=ae.x-Y.x,L=ae.y-Y.y;D.y=L,D.x=x},f.throttle);function S(){const $=f.dir==="rtl"?-1:1,x=Math.sign(D.x)*.4,L=Math.round(D.x/l.value+x)*$;if(L&&!A){const re=Tt=>{Tt.stopPropagation(),window.removeEventListener("click",re,!0)};window.addEventListener("click",re,!0)}te(c.value-L),D.x=0,D.y=0,M.value=!1,document.removeEventListener(A?"touchmove":"mousemove",q,!0),document.removeEventListener(A?"touchend":"mouseup",S,!0)}function I(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&U.value||oe()},f.autoplay))}function B(){k&&(clearInterval(k),k=null),I()}const K=e.ref(!1);function te($){const x=f.wrapAround?$:Ct({val:$,max:u.value,min:m.value});c.value===x||K.value||(s("slide-start",{slidingToIndex:$,currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!0,C.value=c.value,c.value=x,O=setTimeout(()=>{if(f.wrapAround){const L=kt({val:x,max:u.value,min:0});L!==c.value&&(c.value=L,s("loop",{currentSlideIndex:c.value,slidingToIndex:$}))}s("update:modelValue",c.value),s("slide-end",{currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!1,B()},f.transition))}function oe(){te(c.value+f.itemsToScroll)}function _e(){te(c.value-f.itemsToScroll)}const Yi={slideTo:te,next:oe,prev:_e};e.provide("nav",Yi),e.provide("isSliding",K);const Ki=e.computed(()=>co({config:f,currentSlide:c.value,slidesCount:h.value}));e.provide("slidesToScroll",Ki);const bc=e.computed(()=>{const $=f.dir==="rtl"?-1:1,x=Ki.value*l.value*$;return{transform:`translateX(${D.x-x}px)`,transition:`${K.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*l.value}px`:"",width:"100%"}});function Zi(){y(),d(),V(),R(),B()}Object.keys(zi).forEach($=>{["modelValue"].includes($)||e.watch(()=>t[$],Zi)}),e.watch(()=>t.modelValue,$=>{$!==c.value&&te(Number($))}),e.watch(h,V),s("before-init"),y();const Qi={config:f,slidesCount:h,slideWidth:l,next:oe,prev:_e,slideTo:te,currentSlide:c,maxSlide:u,minSlide:m,middleSlide:g};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:R,initDefaultConfigs:y,restartCarousel:Zi,slideTo:te,next:oe,prev:_e,nav:Yi,data:Qi});const vi=i.default||i.slides,es=i.addons,ts=e.reactive(Qi);return()=>{const $=Di(vi==null?void 0:vi(ts)),x=(es==null?void 0:es(ts))||[];$.forEach((Ot,$t)=>Ot.props.index=$t);let L=$;if(f.wrapAround){const Ot=$.map((Ft,Ne)=>e.cloneVNode(Ft,{index:-$.length+Ne,isClone:!0,key:`clone-before-${Ne}`})),$t=$.map((Ft,Ne)=>e.cloneVNode(Ft,{index:$.length+Ne,isClone:!0,key:`clone-after-${Ne}`}));L=[...Ot,...$,...$t]}r.value=$,h.value=Math.max($.length,1);const re=e.h("ol",{class:"carousel__track",style:bc.value,onMousedownCapture:f.mouseDrag?G:null,onTouchstartPassiveCapture:f.touchDrag?G:null},L),Tt=e.h("div",{class:"carousel__viewport"},re);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":K.value,"is-dragging":M.value,"is-hover":U.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:ye,onMouseleave:j},[Tt,x,e.h(fo)])}}}),Ai;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Ai||(Ai={}));var uo=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},H))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,l=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),_=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=_};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const yo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},_o=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),bo={class:"gsc-carousel"},wo={key:0},Co=_o(()=>e.createElementVNode("div",null,"no hay",-1)),ko=[Co],So={class:"gsc-carousel__2d__slides"},Eo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Io=["fill"],Vo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},No=["fill"],To={class:"gsc-carousel__2d__navigation"},Oo={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o=["stroke"],Fo={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bo=["onClick"],Ro={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zo=["stroke"],Do={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:s}){const a=t;e.useCssVars(u=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),l=e.ref(!1);e.watch(n,u=>{u&&l.value?(l.value=!1,h(a.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.defaultItemByIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.items,u=>{n.value?h(u):l.value=!0},{immediate:!0});function h(u){u&&u.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(k=>k[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=u[m]):(r.value=0,o.value=u[0])}else r.value=a.defaultItemByIndex,o.value=u[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function _(){n.value&&n.value.updateSlideWidth()}function c(u){n.value&&n.value.slideTo(u)}function C(u){n.value.slideTo(u)}function g(u){const m=u.slidingToIndex<0?a.items.length-1:u.slidingToIndex===a.items.length?0:u.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:_,slideTo:c}),(u,m)=>(e.openBlock(),e.createElementBlock("div",bo,[a.is3d?(e.openBlock(),e.createElementBlock("div",wo,ko)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",So,[e.createVNode(e.unref(go),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,O)=>(e.openBlock(),e.createBlock(e.unref(uo),{key:O},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{item:k},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=k=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Eo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:t.arrowsColor},null,8,Io)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=k=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Vo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:t.arrowsColor},null,8,No)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",To,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=k=>p())},[(e.openBlock(),e.createElementBlock("svg",Oo,[e.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:a.arrowsColor},null,8,$o)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,O)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${O}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===O?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===O?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:y=>C(O)},null,12,Bo))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=k=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Ro,[e.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:a.arrowsColor},null,8,zo)]))])):e.createCommentVNode("",!0)])],2))]))}},St=yo(Do,[["__scopeId","data-v-54620d25"]]);function Ao(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const Mo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Et={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 t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Mi=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Ui=Et.setup;Et.setup=Ui?(t,i)=>(Mi(),Ui(t,i)):Mi;const Uo={ref:"gscScrollableContainer",class:"scrollable-container"},Po={class:"scrollable-arrows"},Lo=["width","height","viewBox"],jo=["stroke"],Ho={class:"scrollable-wrapper"},xo={class:"scrollable-arrows"},Wo=["width","height","viewBox"],qo=["stroke"];function Go(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Uo,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",Po,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,jo)],8,Lo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",Ho,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",xo,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,qo)],8,Wo))])],2)):e.createCommentVNode("",!0)],512)}const Xo=Mo(Et,[["render",Go],["__scopeId","data-v-b548a08d"]]),Jo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},It={components:{GSCSlider:Xo},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Ao(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Pi=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},Li=It.setup;It.setup=Li?(t,i)=>(Pi(),Li(t,i)):Pi;const Yo={ref:"myDivRef"},Ko={key:0,class:"gs-switch-container"},Zo=["onClick"],Qo={key:1,class:"gs-switch-container-type"},vo=["onClick"],er={key:2,class:"gs-switch-container-carousel"},tr=["onClick"];function ir(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",Yo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,Zo))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,vo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",er,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,tr))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):e.createCommentVNode("",!0)],512)}const Ge=Jo(It,[["render",ir],["__scopeId","data-v-8a86dfaf"]]),sr={selectoritem:"_selectoritem_1nisl_69",selectoritem2:"_selectoritem2_1nisl_79",gscheaderlineup:"_gscheaderlineup_1nisl_89",anNoEstn:"_anNoEstn_1nisl_96",groupsLeague:"_groupsLeague_1nisl_99",jugadores:"_jugadores_1nisl_105",switchOption:"_switchOption_1nisl_110",jugadores1:"_jugadores1_1nisl_120",switchOption1:"_switchOption1_1nisl_125",switchStatesBig:"_switchStatesBig_1nisl_133",groupsLeagueParent:"_groupsLeagueParent_1nisl_142",imgHomeTeamIcon:"_imgHomeTeamIcon_1nisl_151",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1nisl_157",teamContainer:"_teamContainer_1nisl_169",name:"_name_1nisl_181",homeTeamContainer:"_homeTeamContainer_1nisl_187",div:"_div_1nisl_197",scoreContainer:"_scoreContainer_1nisl_201",scoreContainerWrapper:"_scoreContainerWrapper_1nisl_211",teamContainer1:"_teamContainer1_1nisl_224",awayTeamContainer:"_awayTeamContainer_1nisl_236",matchContainer:"_matchContainer_1nisl_246",sliderMatchesChild:"_sliderMatchesChild_1nisl_255",manchesterUnited:"_manchesterUnited_1nisl_261",sliderMatchesItem:"_sliderMatchesItem_1nisl_267",sliderMatches:"_sliderMatches_1nisl_255",sortIcon:"_sortIcon_1nisl_285",filtros:"_filtros_1nisl_292",sortParent:"_sortParent_1nisl_300",shapeIcon:"_shapeIcon_1nisl_307",btnFilter:"_btnFilter_1nisl_312",btnFilter1:"_btnFilter1_1nisl_326",btnFilterParent:"_btnFilterParent_1nisl_340",backArrowIcon:"_backArrowIcon_1nisl_348",teamContainer2:"_teamContainer2_1nisl_354",homeTeam:"_homeTeam_1nisl_187",div4:"_div4_1nisl_368",finalScore:"_finalScore_1nisl_373",manchesterUnited1:"_manchesterUnited1_1nisl_386",scoreContainer1:"_scoreContainer1_1nisl_393",match:"_match_1nisl_246",manchesterUnited2:"_manchesterUnited2_1nisl_411",btnDetails:"_btnDetails_1nisl_416",matchContainer1:"_matchContainer1_1nisl_426",goalChild:"_goalChild_1nisl_434",goal:"_goal_1nisl_434",manchesterUnited3:"_manchesterUnited3_1nisl_447",minuteEvent:"_minuteEvent_1nisl_454",yellowCard:"_yellowCard_1nisl_461",awayTeamEvents:"_awayTeamEvents_1nisl_468",rectangle:"_rectangle_1nisl_475",homeTeamEvents:"_homeTeamEvents_1nisl_482",totalEvents:"_totalEvents_1nisl_490",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1nisl_498",switchOption3:"_switchOption3_1nisl_509",switchOption4:"_switchOption4_1nisl_521",switchStatesBig1:"_switchStatesBig1_1nisl_531",manchesterUnited13:"_manchesterUnited13_1nisl_538",homeTeamContainer1:"_homeTeamContainer1_1nisl_543",scoreContainer2:"_scoreContainer2_1nisl_550",matchContainer2:"_matchContainer2_1nisl_564",manchesterUnited14:"_manchesterUnited14_1nisl_574",sliderMatchesInner:"_sliderMatchesInner_1nisl_581",rectangleIcon:"_rectangleIcon_1nisl_591",sliderMatches1:"_sliderMatches1_1nisl_601",containerData:"_containerData_1nisl_609",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1nisl_623",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1nisl_498",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1nisl_647",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1nisl_650",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1nisl_654"},ar={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:N,changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},nr=["src"],or=["src"],rr=["src"],lr=["src"],cr=["src"],dr=["src"];function mr(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,nr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,or)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,rr)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,lr)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,cr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,dr)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const hr=ne(ar,[["render",mr],["__cssModules",{$style:sr}]]),pr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Vt={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ji=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hi=Vt.setup;Vt.setup=Hi?(t,i)=>(ji(),Hi(t,i)):ji;const fr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),gr=["src"],ur={key:1,class:"text"},yr=["src"],_r={class:"stats"},br=fr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),wr={class:"numstats"},Cr={class:"leyend"};function kr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,gr)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",ur,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,yr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",_r,[br,e.createElementVNode("div",wr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",Cr,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const Sr=pr(Vt,[["render",kr],["__scopeId","data-v-f3ee6b2b"]]),Er={class:"gsc-dropdown__main-container__item-selected"},Ir=["height","width"],Vr=["stroke"],Nr={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tr=["fill"],Or={class:"gsc-dropdown__items-container"},$r=["onClick"],Fr={key:0,class:"gsc-dropdown__items-footer"},xi={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,g)=>{if(!s.modelValue&&(!s.onlyFirstTime||!g||!g.length)&&C&&C.length){if(s.defaultItemByProp){const u=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);u!==-1?(o.value=u,a.value=C[u]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const g=s.items.findIndex(u=>typeof C=="object"?JSON.stringify(u)===JSON.stringify(C):u===C);g!==-1&&(o.value=g,a.value=s.items[g],i("update:modelValue",a.value))}},{immediate:!0});const l=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function _(C,g){s.isMultipleOption?o.value=-1:(o.value=g,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function c(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",Er,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,Vr)],8,Ir)):(e.openBlock(),e.createElementBlock("svg",Nr,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,Tr)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Or,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:k=>_(u,m)},[e.renderSlot(C.$slots,"availableItem",{item:u})],10,$r)),[[e.vShow,!u.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(e.unref(Sr),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:c})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},Br=["for"],Rr=["name"],zr={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,Br)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)])],8,Rr)):(e.openBlock(),e.createElementBlock("svg",zr,[...n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))]))}},Dr=["value"],Ar={class:"filter-modal__padding"},Mr={class:"filter-modal__content-header"},Ur={class:"filter-modal__content-options"},Pr=["onClick"],Lr={class:"filter-modal__content-header"},jr={class:"filter-modal__content-options"},Hr=["onClick"],xr=ne({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({v62819590:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,l=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),_=e.ref(!0),c=e.ref(!0),C=e.ref(["local","visit"]),g=e.ref(["win","draw","lose"]),u=()=>{o.value.focus(),l.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(g.value)),f.value=_.value,p.value=c.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,g.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&k()});const m=(d,w)=>{let E;w==="team"?E=C.value:E=g.value;const R=E.findIndex(V=>V===d);R==-1?E.push(d):w=="team"&&C.value.length==2?E.splice(R,1):(w=="team"&&E.push(d),g.value.length>1&&E.splice(R,1)),_.value=C.value.length==2,c.value=g.value.length==3},k=()=>{C.value=["local","visit"],g.value=["win","draw","lose"],_.value=!0,c.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},O=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},y=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})};return(d,w)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:u},[w[5]||(w[5]=e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-54105a29><g id="vuesax/outline/sort" data-v-54105a29><g id="sort" data-v-54105a29><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-54105a29></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-54105a29></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-54105a29></path></g></g></svg>',1)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Dr),w[6]||(w[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:w[4]||(w[4]=E=>{t.isOpen=!1,y()})},[e.createElementVNode("div",Ar,[e.createElementVNode("div",Mr,[w[7]||(w[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(Wi,{modelValue:_.value,"onUpdate:modelValue":[w[0]||(w[0]=E=>_.value=E),w[1]||(w[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Ur,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,Pr)),64))]),e.createElementVNode("div",Lr,[w[8]||(w[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(Wi,{modelValue:c.value,"onUpdate:modelValue":[w[2]||(w[2]=E=>c.value=E),w[3]||(w[3]=E=>E&&(g.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",jr,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"player"),class:e.normalizeClass({active:g.value.includes(E.id)})},e.toDisplayString(E.name),11,Hr)),64))])]),w[9]||(w[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:k},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:O},"Listo")])],34)],4))}},[["__scopeId","data-v-54105a29"]]),Wr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},qr={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gr={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Wr,[...s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)])])):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",qr,[...s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)])])):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Gr,[...s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)])])):e.createCommentVNode("",!0)}},Xr={class:"match-details"},Jr={class:"match-details__list"},Yr={class:"match-details__list right"},Kr=ne({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",Xr,[e.createElementVNode("ul",Jr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",Yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-de53a54c"]]),Zr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Nt={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(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},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(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Gi=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Xi=Nt.setup;Nt.setup=Xi?(t,i)=>(Gi(),Xi(t,i)):Gi;const Qr={key:0,class:"text-left"},vr=["width","src"],el=["checked"],tl=["width","src"],il={key:3,class:"text-right"};function sl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Qr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,vr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,el),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,tl)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const al=Zr(Nt,[["render",sl],["__scopeId","data-v-e2a20444"]]),nl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_90ydj_80","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_90ydj_86","btn-delete-filters":"_btn-delete-filters_90ydj_92",btndeletefilters:"_btndeletefilters_90ydj_108",leyenddeleteshow:"_leyenddeleteshow_90ydj_124",selectoritem:"_selectoritem_90ydj_131",anNoEstn:"_anNoEstn_90ydj_140",groupsLeague:"_groupsLeague_90ydj_144",historicas:"_historicas_90ydj_149",switchOption:"_switchOption_90ydj_155",recientes:"_recientes_90ydj_166",switchOption1:"_switchOption1_90ydj_172",switchOption2:"_switchOption2_90ydj_185",switchStatesBig:"_switchStatesBig_90ydj_194",groupsLeagueParent:"_groupsLeagueParent_90ydj_204",imgHomeTeamIcon:"_imgHomeTeamIcon_90ydj_214",imgHomeTeamWrapper:"_imgHomeTeamWrapper_90ydj_221",teamContainer:"_teamContainer_90ydj_234",name:"_name_90ydj_247",homeTeamContainer:"_homeTeamContainer_90ydj_254",div:"_div_90ydj_265",scoreContainer:"_scoreContainer_90ydj_270",scoreContainerWrapper:"_scoreContainerWrapper_90ydj_281",teamContainer1:"_teamContainer1_90ydj_294",awayTeamContainer:"_awayTeamContainer_90ydj_307",matchContainer:"_matchContainer_90ydj_318",sliderMatchesChild:"_sliderMatchesChild_90ydj_328",manchesterUnited:"_manchesterUnited_90ydj_335",sliderMatchesItem:"_sliderMatchesItem_90ydj_342",sliderMatches:"_sliderMatches_90ydj_328",sortIcon:"_sortIcon_90ydj_360",filtros:"_filtros_90ydj_368",sortParent:"_sortParent_90ydj_377",shapeIcon:"_shapeIcon_90ydj_385",btnFilter:"_btnFilter_90ydj_391",btnFilter1:"_btnFilter1_90ydj_407",btnFilterParent:"_btnFilterParent_90ydj_422",backArrowIcon:"_backArrowIcon_90ydj_431",teamContainer2:"_teamContainer2_90ydj_438",homeTeam:"_homeTeam_90ydj_254",div4:"_div4_90ydj_454",finalScore:"_finalScore_90ydj_460",manchesterUnited1:"_manchesterUnited1_90ydj_474",scoreContainer1:"_scoreContainer1_90ydj_482",match:"_match_90ydj_318",manchesterUnited2:"_manchesterUnited2_90ydj_499",btnDetails:"_btnDetails_90ydj_512",matchContainer1:"_matchContainer1_90ydj_523",goalChild:"_goalChild_90ydj_532",goal:"_goal_90ydj_532",manchesterUnited3:"_manchesterUnited3_90ydj_547",minuteEvent:"_minuteEvent_90ydj_555",yellowCard:"_yellowCard_90ydj_563",awayTeamEvents:"_awayTeamEvents_90ydj_571",rectangle:"_rectangle_90ydj_579",homeTeamEvents:"_homeTeamEvents_90ydj_587",totalEvents:"_totalEvents_90ydj_596",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_90ydj_605",sliderMatchesInner:"_sliderMatchesInner_90ydj_616",btnFilter2:"_btnFilter2_90ydj_623",btnDetails1:"_btnDetails1_90ydj_640",matchContainer3:"_matchContainer3_90ydj_649",backArrowIcon1:"_backArrowIcon1_90ydj_660",match1:"_match1_90ydj_667",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_90ydj_673",jugadores2:"_jugadores2_90ydj_684",switchOption6:"_switchOption6_90ydj_691",switchOption7:"_switchOption7_90ydj_702",switchStatesBig2:"_switchStatesBig2_90ydj_715",manchesterUnited26:"_manchesterUnited26_90ydj_723",homeTeamContainer2:"_homeTeamContainer2_90ydj_729",vectorIcon:"_vectorIcon_90ydj_737",teamSwitch:"_teamSwitch_90ydj_743",matchContainer5:"_matchContainer5_90ydj_756",manchesterUnited27:"_manchesterUnited27_90ydj_767",sliderMatchesChild1:"_sliderMatchesChild1_90ydj_775",sliderMatchesChild2:"_sliderMatchesChild2_90ydj_786",sliderMatches2:"_sliderMatches2_90ydj_797",filtros2:"_filtros2_90ydj_807",btnFilter4:"_btnFilter4_90ydj_817",jornada2:"_jornada2_90ydj_833",filterMatchday:"_filterMatchday_90ydj_840",btnDetails2:"_btnDetails2_90ydj_851",filtersContainer:"_filtersContainer_90ydj_862",matchContainer6:"_matchContainer6_90ydj_872",matchDetailContainer:"_matchDetailContainer_90ydj_881",containerData:"_containerData_90ydj_891",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_90ydj_906",headerSeccionAlineaciones:"_headerSeccionAlineaciones_90ydj_605",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_90ydj_932",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_90ydj_945",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_90ydj_958",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_90ydj_970",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_90ydj_983",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_90ydj_997",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_90ydj_1008",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_90ydj_1019",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_90ydj_1033",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_90ydj_1045",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_90ydj_1056"},ol={components:{GSCCarousel:St,GscSwitchComponent:Ge,GSCDropdown:xi,GSCFilter:xr,GSCSwitchRadio:al,GSCMatchDetails:Kr},props:{provider:{type:Number,default:1},widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{getImageUrl:N,clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},rl=["src"],ll=["src"],cl={class:"selector-tournaments"},dl=["src"],ml=["src"],hl={key:1},pl=["src"],fl=["src"],gl={class:"selector-tournaments"},ul=["src"],yl=["src"],_l={key:1},bl=["src"],wl=["src"],Cl={class:"selector-tournaments"},kl=["src"],Sl=["src"],El={key:1};function Il(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),_=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,ll)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,ml),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[11]||(i[11]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,fl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",gl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,ul)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,yl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[14]||(i[14]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,bl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,wl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",Cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,kl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,Sl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[15]||(i[15]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const Vl=ne(ol,[["render",Il],["__cssModules",{$style:nl}]]),Nl={selectoritem:"_selectoritem_1f2kb_90",selectoritem2:"_selectoritem2_1f2kb_100",gscheaderlineup:"_gscheaderlineup_1f2kb_110",anNoEstn:"_anNoEstn_1f2kb_117",groupsLeague:"_groupsLeague_1f2kb_120",jugadores:"_jugadores_1f2kb_125",switchOption:"_switchOption_1f2kb_130",jugadores1:"_jugadores1_1f2kb_140",switchOption1:"_switchOption1_1f2kb_145",switchStatesBig:"_switchStatesBig_1f2kb_153",groupsLeagueParent:"_groupsLeagueParent_1f2kb_162",imgHomeTeamIcon:"_imgHomeTeamIcon_1f2kb_171",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1f2kb_177",teamContainer:"_teamContainer_1f2kb_189",name:"_name_1f2kb_201",homeTeamContainer:"_homeTeamContainer_1f2kb_207",div:"_div_1f2kb_217",titleSession:"_titleSession_1f2kb_221",scoreContainer:"_scoreContainer_1f2kb_231",scoreContainerWrapper:"_scoreContainerWrapper_1f2kb_241",teamContainer1:"_teamContainer1_1f2kb_253",awayTeamContainer:"_awayTeamContainer_1f2kb_265",matchContainer:"_matchContainer_1f2kb_275",sliderMatchesChild:"_sliderMatchesChild_1f2kb_284",manchesterUnited:"_manchesterUnited_1f2kb_290",sliderMatchesItem:"_sliderMatchesItem_1f2kb_296",sliderMatches:"_sliderMatches_1f2kb_284",sortIcon:"_sortIcon_1f2kb_314",filtros:"_filtros_1f2kb_321",sortParent:"_sortParent_1f2kb_329",shapeIcon:"_shapeIcon_1f2kb_336",btnFilter:"_btnFilter_1f2kb_341",btnFilter1:"_btnFilter1_1f2kb_355",btnFilterParent:"_btnFilterParent_1f2kb_369",backArrowIcon:"_backArrowIcon_1f2kb_377",teamContainer2:"_teamContainer2_1f2kb_383",homeTeam:"_homeTeam_1f2kb_207",div4:"_div4_1f2kb_397",finalScore:"_finalScore_1f2kb_402",manchesterUnited1:"_manchesterUnited1_1f2kb_415",scoreContainer1:"_scoreContainer1_1f2kb_422",match:"_match_1f2kb_275",manchesterUnited2:"_manchesterUnited2_1f2kb_440",btnDetails:"_btnDetails_1f2kb_445",matchContainer1:"_matchContainer1_1f2kb_455",goalChild:"_goalChild_1f2kb_463",goal:"_goal_1f2kb_463",manchesterUnited3:"_manchesterUnited3_1f2kb_476",minuteEvent:"_minuteEvent_1f2kb_483",yellowCard:"_yellowCard_1f2kb_490",awayTeamEvents:"_awayTeamEvents_1f2kb_497",rectangle:"_rectangle_1f2kb_504",homeTeamEvents:"_homeTeamEvents_1f2kb_511",totalEvents:"_totalEvents_1f2kb_519",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1f2kb_527",switchOption3:"_switchOption3_1f2kb_538",switchOption4:"_switchOption4_1f2kb_550",switchStatesBig1:"_switchStatesBig1_1f2kb_560",manchesterUnited13:"_manchesterUnited13_1f2kb_567",homeTeamContainer1:"_homeTeamContainer1_1f2kb_572",scoreContainer2:"_scoreContainer2_1f2kb_579",matchContainer2:"_matchContainer2_1f2kb_593",manchesterUnited14:"_manchesterUnited14_1f2kb_603",sliderMatchesInner:"_sliderMatchesInner_1f2kb_610",rectangleIcon:"_rectangleIcon_1f2kb_620",sliderMatches1:"_sliderMatches1_1f2kb_630",containerData:"_containerData_1f2kb_638",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1f2kb_652",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1f2kb_527",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1f2kb_676",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1f2kb_679",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1f2kb_683"},Tl={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:N,remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ol=["src"],$l=["src"],Fl=["src"],Bl=["src"],Rl=["src"],zl=["src"];function Dl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Ol)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+"  |  "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+"  |  "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,$l)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Fl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,zl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Al=ne(Tl,[["render",Dl],["__cssModules",{$style:Nl}]]),Ml={anNoEstn:"_anNoEstn_1k66p_70",groupsLeague:"_groupsLeague_1k66p_73",historicas:"_historicas_1k66p_77",switchOption:"_switchOption_1k66p_82",switchOption1:"_switchOption1_1k66p_92",probables:"_probables_1k66p_102",switchOption2:"_switchOption2_1k66p_107",switchStatesBig:"_switchStatesBig_1k66p_119",groupsLeagueParent:"_groupsLeagueParent_1k66p_128",imgHomeTeamIcon:"_imgHomeTeamIcon_1k66p_137",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1k66p_143",teamContainer:"_teamContainer_1k66p_155",name:"_name_1k66p_167",jor:"_jor_1k66p_173",jorParent:"_jorParent_1k66p_179",shapeIcon:"_shapeIcon_1k66p_187",frameParent:"_frameParent_1k66p_192",manchesterUnited:"_manchesterUnited_1k66p_207",necaxaIcon:"_necaxaIcon_1k66p_218",manchesterUnited1:"_manchesterUnited1_1k66p_224",team:"_team_1k66p_155",homeTeamContainer:"_homeTeamContainer_1k66p_238",div1:"_div1_1k66p_248",scoreContainer:"_scoreContainer_1k66p_252",scoreContainerWrapper:"_scoreContainerWrapper_1k66p_263",team1:"_team1_1k66p_275",name1:"_name1_1k66p_282",teamContainer1:"_teamContainer1_1k66p_289",awayTeamContainer:"_awayTeamContainer_1k66p_301",matchContainer:"_matchContainer_1k66p_312",goalChild:"_goalChild_1k66p_321",goal:"_goal_1k66p_321",manchesterUnited4:"_manchesterUnited4_1k66p_334",minuteEvent:"_minuteEvent_1k66p_341",yellowCard:"_yellowCard_1k66p_348",awayTeamEvents:"_awayTeamEvents_1k66p_355",rectangle:"_rectangle_1k66p_362",homeTeamEvents:"_homeTeamEvents_1k66p_369",totalEvents:"_totalEvents_1k66p_377",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1k66p_385",homeTeamContainer1:"_homeTeamContainer1_1k66p_395",awayTeamContainer1:"_awayTeamContainer1_1k66p_407",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1k66p_419",jugadores:"_jugadores_1k66p_429",switchOption6:"_switchOption6_1k66p_435",switchOption8:"_switchOption8_1k66p_445",switchStatesBig2:"_switchStatesBig2_1k66p_457",manchesterUnited28:"_manchesterUnited28_1k66p_464",homeTeamContainer2:"_homeTeamContainer2_1k66p_468",matchContainer2:"_matchContainer2_1k66p_475",manchesterUnited29:"_manchesterUnited29_1k66p_486",sliderMatchesChild:"_sliderMatchesChild_1k66p_493",sliderMatchesItem:"_sliderMatchesItem_1k66p_503",sliderMatches:"_sliderMatches_1k66p_493",jorParent2:"_jorParent2_1k66p_523",filterMatchday:"_filterMatchday_1k66p_530",necaxaIcon4:"_necaxaIcon4_1k66p_541",team4:"_team4_1k66p_547",filterMatchdayParent:"_filterMatchdayParent_1k66p_557",filterMatchday1:"_filterMatchday1_1k66p_564",teamParent:"_teamParent_1k66p_579",filtersContainer:"_filtersContainer_1k66p_589",containerData:"_containerData_1k66p_598",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1k66p_612",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1k66p_385"},Ul={components:{GSCDropdown:xi,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{getImageUrl:N,clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png",this.provider):N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.provider),this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png",this.provider):N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.provider),this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},Pl=["src"],Ll={class:"selector-tournaments"},jl=["src"],Hl=["src"],xl={class:"selector-tournaments"},Wl=["src"],ql=["src"],Gl={class:"selector-tournaments"},Xl=["src"],Jl=["src"],Yl={class:"selector-tournaments"},Kl=["src"],Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={class:"selector-tournaments"};function sc(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Ll,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Hl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",xl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Wl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Gl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Xl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Yl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Kl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Ql)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",vl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ec)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,tc),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",ic,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const ac=ne(Ul,[["render",sc],["__cssModules",{$style:Ml}]]);let Ji=null;const nc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},components:{CardPlayer:oo,HeaderPlayerHistorico:hr,HeaderPlayerRecientes:Vl,HeaderPlayerProbables:ac,HeaderPlayerPostmatch:Al},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],lineupLoadingLocks:{general:!1,home:!1,away:!1,probables:!1},pendingRequests:new Set,debounceTimer:null,probablesDebounceTimer:null,matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},shouldShowNoLineupsMessage(){const t=(this.gameForAnalysis.game_status==4||this.gameForAnalysis.game_status==1)&&this.gameForAnalysis.is_live==0&&this.numPlayer==0;return console.log(`🔍 Condición mensaje: status=${this.gameForAnalysis.game_status}, is_live=${this.gameForAnalysis.is_live}, numPlayer=${this.numPlayer} -> ${t}`),t},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(t){throw new Error(t)}},beforeUnmount(){this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.debounceTimer&&clearTimeout(this.debounceTimer)},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&(this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.probablesDebounceTimer=setTimeout(async()=>{var s,a;if(this.gamehome&&this.gamehome.game_id&&this.gamehome.game_id!==0&&this.gameaway&&this.gameaway.game_id&&this.gameaway.game_id!==0){const n=this.areProbablesAlreadyLoaded(this.gamehome.game_id,this.gameaway.game_id);if(this.areProbablesRequestsPending(this.gamehome.game_id,this.gameaway.game_id)){console.log("⏳ Peticiones de alineaciones probables ya en curso, saltando...");return}if(n)console.log("⏭️ Alineaciones probables ya cargadas para estos game_ids - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id);else{console.log("✅ Cargando alineaciones probables - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id),this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,console.log("🧹 Limpiando datos antes de cargar nuevas alineaciones..."),this.cleaneDataAway(),this.cleaneDataHome(),console.log("📊 Estado después de limpiar - Home:",this.playersHome.length,"Away:",this.playersAway.length),console.log("📋 Obteniendo información del header para probables...");try{if(!this.game||!this.game.game_id){console.warn("❌ Prop game no disponible para obtener header info");return}await this.getHeaderInfo(this.game),console.log("✅ Header info obtenido para el partido principal:",this.game.game_id)}catch(r){console.error("❌ Error obteniendo header info:",r)}this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),setTimeout(()=>{console.log(`📊 Estado después de iniciar peticiones - Home: ${this.playersHome.length}, Away: ${this.playersAway.length}, numPlayer: ${this.numPlayer}`)},100)}}else console.warn("❌ No se pueden cargar alineaciones probables - game_id inválidos:",{home:(s=this.gamehome)==null?void 0:s.game_id,away:(a=this.gameaway)==null?void 0:a.game_id});this.lastSection=t},1e3)),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},numPlayer:{handler(t,i){t!==i&&console.log(`👥 numPlayer cambió de ${i} a ${t} (Home: ${this.playersHome.length}, Away: ${this.playersAway.length})`)}},"gameForAnalysis.game_status":{handler(t){console.log(`🎮 game_status cambió a: ${t}`)}},"gameForAnalysis.is_live":{handler(t){console.log(`📡 is_live cambió a: ${t}`)}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[z.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis),s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==0&&r!==this.lastGetLineUpGameId?(console.log("✅ Haciendo petición de alineaciones para game_id:",r),o=z.get(ce(this.url+r,this.provider,this.isDevApis),s),n.push(o)):r===0&&console.warn("❌ Se evitó petición con game_id = 0");const[l,h]=await Promise.all(n);await this.gameDataInfo(t,l),r&&r!==0&&await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=this.dataPlayersHome.findIndex(k=>k.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].playerID+".png",this.provider),nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),_=s[1].trim().split(" "),c="";p.length==2||p.length==1?p[0].length<4?c=p[0]+" "+p[1]:c=p[0]:p.length==3?c=p[0]+" "+p[1]:p.length==4&&(c=p[1]+" "+p[2]+" "+p[3]);var C=_[_.length-1]!=""?_[_.length-1].charAt(0):_[_.length-2]?_[_.length-2].charAt(0):"";c=c.replace(",","");var g=C+". "+c,u=this.dataPlayersAway.findIndex(k=>k.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:u!=-1?this.isFemale?this.positions[this.dataPlayersAway[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].playerID+".png",this.provider),nationality:u!=-1&&this.dataPlayersAway[u].nationality?this.dataPlayersAway[u].nationality.substring(0,3):"",imgNationality:u!=-1?this.dataPlayersAway[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",this.provider),nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersHome.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var _=i.data[d].player_name.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=i.data[d].x,O=100-(100-k)*50/100;O=O*.9;var y=i.away_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:y!=-1?this.isFemale?this.positions[i.away_team.players[y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[y].position_id-1].name:"",position_id:i.away_team.players[y].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",this.provider),nationality:y!=-1&&i.away_team.players[y].nationality?i.away_team.players[y].nationality.substring(0,3):"",imgNationality:y!=-1?i.away_team.players[y].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:O+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var l=this.playersHome[V].idsGoals.findIndex(A=>A==i.play_id);l!=-1&&(s=l,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var _=this.playersAway[V].idsGoals.findIndex(A=>A==i.play_id);_!=-1&&(s=_,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==c[0]),g=this.playersHome.findIndex(V=>V.playerId==c[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),g!=-1&&(this.playersHome[g].idSubstitution=i.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=i.minute,this.playersHome[g].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var u=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==u[0]),k=this.playersAway.findIndex(V=>V.playerId==u[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersAway[k].idSubstitution=i.play_id,this.playersAway[k].substitutionIn=!0,this.playersAway[k].substitutionMin=i.minute,this.playersAway[k].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var O=this.playersHome.findIndex(V=>V.playerId==i.player_id);O!=-1&&(this.playersHome[O].goals+=1,this.playersHome[O].goalsMin.push(i.minute),this.playersHome[O].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(V=>V.playerId==i.player_id);y!=-1&&(this.playersAway[y].goals+=1,this.playersAway[y].goalsMin.push(i.minute),this.playersAway[y].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(V=>V.playerId==i.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=i.minute,this.playersAway[w].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var R=this.playersAway.findIndex(V=>V.playerId==i.player_id);R!=-1&&(this.playersAway[R].redcards+=1,this.playersAway[R].redcardsMin=i.minute,this.playersAway[R].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(g=>g.playerId==s[0]),n=this.playersHome.findIndex(g=>g.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==o[0]),l=this.playersAway.findIndex(g=>g.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),l!=-1&&(this.playersAway[l].idSubstitution=i.play_id,this.playersAway[l].substitutionIn=!0,this.playersAway[l].substitutionMin=i.minute,this.playersAway[l].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(g=>g.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(g=>g.playerId==i.player_id);_!=-1&&(this.playersAway[_].yellowcards+=1,this.playersAway[_].yellowcardsMin=i.minute,this.playersAway[_].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(g=>g.playerId==i.player_id);c!=-1&&(this.playersHome[c].redcards+=1,this.playersHome[c].redcardsMin=i.minute,this.playersHome[c].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(g=>g.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{isRequestPending(t,i="general"){const s=`${i}_${t}`;return this.pendingRequests.has(s)},markRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.add(s),console.log(`🔒 Marcando petición como pendiente: ${s}`)},removeRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.delete(s),console.log(`🔓 Removiendo petición pendiente: ${s}`)},areProbablesAlreadyLoaded(t,i){return this.auxProbablesIDGameHome===t&&this.auxProbablesIDGameAway===i},areProbablesRequestsPending(t,i){return this.isRequestPending(t,"home")||this.isRequestPending(i,"away")},calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){if(console.log("🏠 Iniciando petición de alineaciones probables HOME para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesHome3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesHome3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesHome3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"home")){console.warn(`🔒 getLineUpProbablesHome3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"home");try{const d=await z.create({headers:{Authorization:`${this.token}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.home_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=d.data.home_team.starting_lineup[0].lineup[w].x,h=l*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[w].player_id);console.log(`🏠 Agregando jugador HOME: ${d.data.home_team.starting_lineup[0].lineup[w].player_name}`),this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[w].player_id+".png",this.provider),nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[w].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[w].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.home_team.bench){for(let w=0;w<d.data.home_team.bench.length;w++){this.subsTitle=!0;var p=d.data.home_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[w].playerID+".png",this.provider),nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.away_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,k=d.data.away_team.starting_lineup[0].lineup[w].x;k=Math.abs(k-100);var h=k*50/100,O=d.data.away_team.starting_lineup[0].lineup[w].y;O=Math.abs(O-100);var f=d.data.away_team.players.findIndex(M=>M.player_id==d.data.away_team.starting_lineup[0].lineup[w].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[w].player_id+".png",this.provider),nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[w].jersey_number,positionX:O-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.away_team.bench){for(let w=0;w<d.data.away_team.bench.length;w++){this.subsTitle=!0;var p=d.data.away_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.away_team.players.findIndex(U=>U.player_id==d.data.away_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[w].playerID+".png",this.provider),nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"home"),console.log(`✅ getLineUpProbablesHome3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores HOME cargados: ${this.playersHome.length}`)}catch(y){return this.removeRequestPending(t,"home"),console.error(`❌ getLineUpProbablesHome3D: Error en petición para game_id: ${t}`,y),Promise.reject(y)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(t){if(console.log("✈️ Iniciando petición de alineaciones probables AWAY para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesAway3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesAway3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesAway3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"away")){console.warn(`🔒 getLineUpProbablesAway3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"away");try{const y=await z.create({headers:{Authorization:`${this.token}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!y||!y.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,y.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=y.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<y.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+"_g.svg","away",0);var i=y.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.home_team.starting_lineup[0].lineup[d].x;l=Math.abs(l-100);var h=y.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-l)*50/100;f=f*.9;var p=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.starting_lineup[0].lineup[d].player_id);console.log(`✈️ Agregando jugador AWAY: ${y.data.home_team.starting_lineup[0].lineup[d].player_name}`),this.playersAway.push({played:!0,name:y.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[p].position_id-1].name,position_id:y.data.home_team.players[p].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.starting_lineup[0].lineup[d].player_id+".png",this.provider),nationality:y.data.home_team.players[p].nationality?y.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:y.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.home_team.team_id}),this.awayTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.home_team.bench){for(let d=0;d<y.data.home_team.bench.length;d++){this.subsTitle=!0;var _=y.data.home_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.home_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[k].position_id-1].name:"",position_id:y.data.home_team.players[k].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.bench[d].playerID+".png",this.provider),nationality:k!=-1&&y.data.home_team.players[k].nationality?y.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.home_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}if(y.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=y.data.away_team.players;for(let d=0;d<y.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+"_g.svg","away",0);var i=y.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-l)*50/100;f=f*.9;var p=y.data.away_team.players.findIndex(M=>M.player_id==y.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:y.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[p].position_id-1].name,position_id:y.data.away_team.players[p].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.starting_lineup[0].lineup[d].player_id+".png",this.provider),nationality:y.data.away_team.players[p].nationality?y.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:y.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:y.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.away_team.team_id}),this.awayTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.away_team.bench){for(let d=0;d<y.data.away_team.bench.length;d++){this.subsTitle=!0;var _=y.data.away_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.away_team.players.findIndex(D=>D.player_id==y.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.away_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.away_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[k].position_id-1].name:"",position_id:y.data.away_team.players[k].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.bench[d].playerID+".png",this.provider),nationality:k!=-1&&y.data.away_team.players[k].nationality?y.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.away_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"away"),console.log(`✅ getLineUpProbablesAway3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores AWAY cargados: ${this.playersAway.length}`)}catch(O){return this.removeRequestPending(t,"away"),console.error(`❌ getLineUpProbablesAway3D: Error en petición para game_id: ${t}`,O),Promise.reject(O)}},async getLineupProbablesHome(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameHome!=t.id&&(console.log("✅ getLineupProbablesHome: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameHome=t.id):console.warn("❌ getLineupProbablesHome: game_id inválido:",t==null?void 0:t.id)},async getLineupProbablesAway(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameAway!=t.id&&(console.log("✅ getLineupProbablesAway: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameAway=t.id):console.warn("❌ getLineupProbablesAway: game_id inválido:",t==null?void 0:t.id)},async getLineupProbables(t){if(t&&t.id&&t.id!==0){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(console.log("✅ getLineupProbables: Cargando alineaciones para game_id:",t.id),this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id}else console.warn("❌ getLineupProbables: game_id inválido:",t==null?void 0:t.id)},async changeCarouselItem(t){t&&t.game_id&&t.game_id!==0&&typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id?this.auxHistoricGameID!=t.game_id&&(console.log("✅ changeCarouselItem: Cargando alineaciones para game_id:",t.game_id),this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id)):console.warn("❌ changeCarouselItem: game_id inválido:",t==null?void 0:t.game_id)},async changeCarouselItemRecent(t){var s;if(t.selectedItem&&t.selectedItem.id&&t.selectedItem.id!==0){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};console.log("✅ changeCarouselItemRecent: Cargando alineaciones para game_id:",t.selectedItem.id),this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}else console.warn("❌ changeCarouselItemRecent: game_id inválido:",(s=t.selectedItem)==null?void 0:s.id)},async getHeaderInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.token}`}}),a=i||await s.get(ce("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups",this.provider,this.isDevApis));if(console.log("GAME INFO HEADER --------------------------------------------------------> ",t.game_id),this.gameInfoheader=a.data.game,console.log("📋 gameInfoheader establecido para game_id:",this.gameInfoheader.id,"del partido:",t.game_id),this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.token}`}}),a=i||await s.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis));this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.pendingRequests.clear(),console.log("🧹 cleaneData: Limpiando todas las peticiones pendientes"),this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){wt("lineups.game."+this.game.game_id,this.socket),wt("mxm.game."+this.game.game_id,this.socket),wt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var l=this.playersAway[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==l[1]),f=this.playersAway.findIndex(p=>p.playerId==l[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)Ji=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ji.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=ce(this.urlMXM+t,this.provider,this.isDevApis);if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const u=await z.create({headers:{Authorization:`${this.token}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<u.data.plays.length;m++){if(u.data.plays[m].event_type_id==3){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=u.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(k=>k.playerId==i[0]),a=this.playersHome.findIndex(k=>k.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=u.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=u.data.plays[m].minute,this.playersHome[s].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=u.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=u.data.plays[m].minute,this.playersHome[a].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=u.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(k=>k.playerId==n[0]),r=this.playersAway.findIndex(k=>k.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=u.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=u.data.plays[m].minute,this.playersAway[o].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=u.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=u.data.plays[m].minute,this.playersAway[r].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}if(u.data.plays[m].event_type_id==1){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(u.data.plays[m].minute),this.playersHome[l].idsGoals.push(u.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(u.data.plays[m].minute),this.playersAway[h].idsGoals.push(u.data.plays[m].play_id))}}if(u.data.plays[m].event_type_id==2){if(u.data.plays[m].category_id==8){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=u.data.plays[m].minute,this.playersHome[f].idyellowcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=u.data.plays[m].minute,this.playersAway[p].idyellowcards=u.data.plays[m].play_id)}}if(u.data.plays[m].category_id==9){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);_!=-1&&(this.playersHome[_].redcards+=1,this.playersHome[_].redcardsMin=u.data.plays[m].minute,this.playersHome[_].idredcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var c=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);c!=-1&&(this.playersAway[c].redcards+=1,this.playersAway[c].redcardsMin=u.data.plays[m].minute,this.playersAway[c].idredcards=u.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t==null||t===0){console.warn("❌ getLineUp: Se intentó hacer petición con game_id inválido:",t);return}if(console.log("------------------------------------------------> SE HIZO LA PETICION ----> DEL PARTIDO ID: ",t),this.isRequestPending(t,"general")){console.warn(`🔒 getLineUp: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"general");try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const q=z.create({headers:{Authorization:`${this.token}`}}),S=i||await q.get(ce(this.url+t,this.provider,this.isDevApis));if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((I,B)=>I.position_id>B.position_id?1:B.position_id>I.position_id?-1:0);for(let I=0;I<S.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=S.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=S.data.home_team.players.findIndex(B=>B.player_id==S.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[I].player_id+".png",this.provider),nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.homeTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,B)=>I.position_id>B.position_id?1:B.position_id>I.position_id?-1:0),S.data.home_team.bench){for(let I=0;I<S.data.home_team.bench.length;I++){this.subsTitle=!0;var _=S.data.home_team.bench[I].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=S.data.home_team.players.findIndex(B=>B.player_id==S.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[I].playerName,position:k!=-1?this.isFemale?this.positions[S.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[k].position_id-1].name:"",position_id:S.data.home_team.players[k].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[I].playerID+".png",this.provider),nationality:k!=-1&&S.data.home_team.players[k].nationality?S.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?S.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((I,B)=>I.position_id>B.position_id?1:B.position_id>I.position_id?-1:0)}for(let I=0;I<S.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var O=S.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),y=O[0].split(" "),d=O[1].trim().split(" "),w="";y.length==2||y.length==1?y[0].length<4?w=y[0]+" "+y[1]:w=y[0]:y.length==3?w=y[0]+" "+y[1]:y.length==4&&(w=y[1]+" "+y[2]+" "+y[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";w=w.replace(",","");var R=E+". "+w,V=S.data.away_team.starting_lineup[0].lineup[I].x,A=100-(100-V)*50/100;A=A*.9;var Y=S.data.away_team.players.findIndex(B=>B.player_id==S.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[Y].position_id-1].name,position_id:S.data.away_team.players[Y].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[I].player_id+".png",this.provider),nationality:S.data.away_team.players[Y].nationality?S.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:R,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:A,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo=N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,B)=>I.position_id>B.position_id?1:B.position_id>I.position_id?-1:0),S.data.away_team.bench){for(let I=0;I<S.data.away_team.bench.length;I++){this.subsTitle=!0;var ae=S.data.away_team.bench[I].playerName.split(","),D=ae[0].split(" "),U=ae[1].trim().split(" "),M="";D.length==2||D.length==1?D[0].length<4?M=D[0]+" "+D[1]:M=D[0]:D.length==3?M=D[0]+" "+D[1]:D.length==4&&(M=D[1]+" "+D[2]+" "+D[3]);var ye=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";M=M.replace(",","");var j=ye+". "+M,G=S.data.away_team.players.findIndex(B=>B.player_id==S.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[I].playerName,position:G!=-1?this.isFemale?this.positions[S.data.away_team.players[G].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[G].position_id-1].name:"",position_id:S.data.away_team.players[G].position_id,imgPlayer:N("https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[I].playerID+".png",this.provider),nationality:G!=-1&&S.data.away_team.players[G].nationality?S.data.away_team.players[G].nationality.substring(0,3):"",imgNationality:G!=-1?S.data.away_team.players[G].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:j,imgTeam:N("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((I,B)=>I.position_id>B.position_id?1:B.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500),this.removeRequestPending(t,"general"),console.log(`✅ getLineUp: Petición completada exitosamente para game_id: ${t}`)}catch(q){return this.removeRequestPending(t,"general"),console.error(`❌ getLineUp: Error en petición para game_id: ${t}`,q),Promise.reject(q)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(t){this.teamActive=t}}},oc={style:{background:"#1d2a35"}},rc={class:"size-browser-class"},lc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},cc={class:"team-shield-left",style:{"margin-left":"16%"}},dc=["src"],mc={class:"team-shield-right",style:{"margin-right":"16%"}},hc=["src"],pc={class:"lineup-players is-centered"},fc=["onClick"],gc=["onClick"];function uc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",oc,[e.createElementVNode("div",rc,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",lc,[e.createElementVNode("div",cc,[e.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,dc)]),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,hc)])]),e.createElementVNode("div",pc,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[0]||(i[0]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,fc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[1]||(i[1]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,gc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},[...i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)])],2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[...i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas ",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ",-1)])],2)],2)):e.createCommentVNode("",!0)],2)])])}const yc=ne(nc,[["render",uc]]),_c=ne({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameNumber:{type:Number,default:0},lastGames:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},setup(t){const i=t,s=o=>o?{game_id:o.game_id||null,season_id:o.season_id||null,prematch:o.prematch!==void 0?o.prematch:!0}:{game_id:null,season_id:null,prematch:!0},a=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_home_games){const o=i.gameNumber-1,r=i.lastGames.last_home_games[o];return s(r)}return s(null)}),n=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_visiting_games){const o=i.gameNumber-1,r=i.lastGames.last_visiting_games[o];return s(r)}return s(null)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(yc,{game:t.game,gamehome:a.value,gameaway:n.value,"selected-option":t.selectedOption,provider:t.provider,"is-dev-apis":t.isDevApis},null,8,["game","gamehome","gameaway","selected-option","provider","is-dev-apis"])]))}},[["__scopeId","data-v-12d1fcd5"]]);de.GSCLineupsReports=_c,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));