@golstats/gsc-game-data 1.0.243 → 1.0.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-d48a19d8-c4990767.js → FilterConditions-d48a19d8-48f01eca.js} +1 -1
- package/dist/{FilterConditions-d48a19d8-BaOW8wbz-f111ff88.js → FilterConditions-d48a19d8-BaOW8wbz-15c732e2.js} +1 -1
- package/dist/{FilterField-f0b75cf7-Dt2ZN6_r-4f36f6b0.js → FilterField-f0b75cf7-Dt2ZN6_r-f2cb1159.js} +1 -1
- package/dist/{FilterField-f0b75cf7-37ea8e50.js → FilterField-f0b75cf7-a796a570.js} +1 -1
- package/dist/{FilterSubcategories-0a921721-ac43004e.js → FilterSubcategories-0a921721-2422d905.js} +1 -1
- package/dist/{FilterSubcategories-0a921721-Da8PVP1K-92e01978.js → FilterSubcategories-0a921721-Da8PVP1K-74b16632.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-c7d3b67a.js → index-93eef0a0.js} +13 -16
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* (c) 2021 Evan You
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/var xP="store";function ix(e){return e===void 0&&(e=null),t.inject(e!==null?e:xP)}function Q0(e,n){Object.keys(e).forEach(function(i){return n(e[i],i)})}function wP(e){return e!==null&&typeof e=="object"}function Dre(e){return e&&typeof e.then=="function"}function Np(e,n){if(!e)throw new Error("[vuex] "+n)}function Lre(e,n){return function(){return e(n)}}function kP(e,n,i){return n.indexOf(e)<0&&(i&&i.prepend?n.unshift(e):n.push(e)),function(){var B=n.indexOf(e);B>-1&&n.splice(B,1)}}function CP(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;ox(e,i,[],e._modules.root,!0),v8(e,i,n)}function v8(e,n,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var z=e._wrappedGetters,c={};Q0(z,function(m,a){c[a]=Lre(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:n}),e.strict&&$re(e),B&&i&&e._withCommit(function(){B.data=null})}function ox(e,n,i,B,z){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!z){var a=_8(n,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Fre(e,m,i);B.forEachMutation(function(r,v){var _=m+v;zre(e,_,r,f)}),B.forEachAction(function(r,v){var _=r.root?v:m+v,p=r.handler||r;Rre(e,_,p,f)}),B.forEachGetter(function(r,v){var _=m+v;Vre(e,_,r,f)}),B.forEachChild(function(r,v){ox(e,n,i.concat(v),r,z)})}function Fre(e,n,i){var B=n==="",z={dispatch:B?e.dispatch:function(c,m,a){var y=sx(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=sx(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,r)}};return Object.defineProperties(z,{getters:{get:B?function(){return e.getters}:function(){return SP(e,n)}},state:{get:function(){return _8(e.state,i)}}}),z}function SP(e,n){if(!e._makeLocalGettersCache[n]){var i={},B=n.length;Object.keys(e.getters).forEach(function(z){if(z.slice(0,B)===n){var c=z.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[z]},enumerable:!0})}}),e._makeLocalGettersCache[n]=i}return e._makeLocalGettersCache[n]}function zre(e,n,i,B){var z=e._mutations[n]||(e._mutations[n]=[]);z.push(function(m){i.call(e,B.state,m)})}function Rre(e,n,i,B){var z=e._actions[n]||(e._actions[n]=[]);z.push(function(m){var a=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},m);return Dre(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(y){throw e._devtoolHook.emit("vuex:error",y),y}):a})}function Vre(e,n,i,B){if(e._wrappedGetters[n]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+n);return}e._wrappedGetters[n]=function(c){return i(B.state,B.getters,c.state,c.getters)}}function $re(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Np(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function _8(e,n){return n.reduce(function(i,B){return i[B]},e)}function sx(e,n,i){return wP(e)&&e.type&&(i=n,n=e,e=e.type),process.env.NODE_ENV!=="production"&&Np(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:n,options:i}}var jre="vuex bindings",TP="vuex:mutations",b8="vuex:actions",U1="vuex",Ure=0;function Gre(e,n){Ore({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[jre]},function(i){i.addTimelineLayer({id:TP,label:"Vuex Mutations",color:EP}),i.addTimelineLayer({id:b8,label:"Vuex Actions",color:EP}),i.addInspector({id:U1,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===U1)if(B.filter){var z=[];PP(z,n._modules.root,B.filter,""),B.rootNodes=z}else B.rootNodes=[IP(n._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===U1){var z=B.nodeId;SP(n,z),B.state=qre(Xre(n._modules,z),z==="root"?n.getters:n._makeLocalGettersCache,z)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===U1){var z=B.nodeId,c=B.path;z!=="root"&&(c=z.split("/").filter(Boolean).concat(c)),n._withCommit(function(){B.set(n._state.data,c,B.state.value)})}}),n.subscribe(function(B,z){var c={};B.payload&&(c.payload=B.payload),c.state=z,i.notifyComponentUpdate(),i.sendInspectorTree(U1),i.sendInspectorState(U1),i.addTimelineEvent({layerId:TP,event:{time:Date.now(),title:B.type,data:c}})}),n.subscribeAction({before:function(B,z){var c={};B.payload&&(c.payload=B.payload),B._id=Ure++,B._time=Date.now(),c.state=z,i.addTimelineEvent({layerId:b8,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,z){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=z,i.addTimelineEvent({layerId:b8,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var EP=8702998,Hre=6710886,Wre=16777215,AP={label:"namespaced",textColor:Wre,backgroundColor:Hre};function MP(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function IP(e,n){return{id:n||"root",label:MP(n),tags:e.namespaced?[AP]:[],children:Object.keys(e._children).map(function(i){return IP(e._children[i],n+i+"/")})}}function PP(e,n,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:n.namespaced?[AP]:[]}),Object.keys(n._children).forEach(function(z){PP(e,n._children[z],i,B+z+"/")})}function qre(e,n,i){n=i==="root"?n:n[i];var B=Object.keys(n),z={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=Yre(n);z.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?MP(m):m,editable:!1,value:x8(function(){return c[m]})}})}return z}function Yre(e){var n={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var z=n,c=B.pop();B.forEach(function(m){z[m]||(z[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),z=z[m]._custom.value}),z[c]=x8(function(){return e[i]})}else n[i]=x8(function(){return e[i]})}),n}function Xre(e,n){var i=n.split("/").filter(function(B){return B});return i.reduce(function(B,z,c){var m=B[z];if(!m)throw new Error('Missing module "'+z+'" for path "'+n+'".');return c===i.length-1?m:m._children},n==="root"?e:e.root._children)}function x8(e){try{return e()}catch(n){return n}}var Op=function(n,i){this.runtime=i,this._children=Object.create(null),this._rawModule=n;var B=n.state;this.state=(typeof B=="function"?B():B)||{}},BP={namespaced:{configurable:!0}};BP.namespaced.get=function(){return!!this._rawModule.namespaced},Op.prototype.addChild=function(n,i){this._children[n]=i},Op.prototype.removeChild=function(n){delete this._children[n]},Op.prototype.getChild=function(n){return this._children[n]},Op.prototype.hasChild=function(n){return n in this._children},Op.prototype.update=function(n){this._rawModule.namespaced=n.namespaced,n.actions&&(this._rawModule.actions=n.actions),n.mutations&&(this._rawModule.mutations=n.mutations),n.getters&&(this._rawModule.getters=n.getters)},Op.prototype.forEachChild=function(n){Q0(this._children,n)},Op.prototype.forEachGetter=function(n){this._rawModule.getters&&Q0(this._rawModule.getters,n)},Op.prototype.forEachAction=function(n){this._rawModule.actions&&Q0(this._rawModule.actions,n)},Op.prototype.forEachMutation=function(n){this._rawModule.mutations&&Q0(this._rawModule.mutations,n)},Object.defineProperties(Op.prototype,BP);var eg=function(n){this.register([],n,!1)};eg.prototype.get=function(n){return n.reduce(function(i,B){return i.getChild(B)},this.root)},eg.prototype.getNamespace=function(n){var i=this.root;return n.reduce(function(B,z){return i=i.getChild(z),B+(i.namespaced?z+"/":"")},"")},eg.prototype.update=function(n){NP([],this.root,n)},eg.prototype.register=function(n,i,B){var z=this;B===void 0&&(B=!0),process.env.NODE_ENV!=="production"&&LP(n,i);var c=new Op(i,B);if(n.length===0)this.root=c;else{var m=this.get(n.slice(0,-1));m.addChild(n[n.length-1],c)}i.modules&&Q0(i.modules,function(a,y){z.register(n.concat(y),a,B)})},eg.prototype.unregister=function(n){var i=this.get(n.slice(0,-1)),B=n[n.length-1],z=i.getChild(B);if(!z){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+B+"', which is not registered");return}z.runtime&&i.removeChild(B)},eg.prototype.isRegistered=function(n){var i=this.get(n.slice(0,-1)),B=n[n.length-1];return i?i.hasChild(B):!1};function NP(e,n,i){if(process.env.NODE_ENV!=="production"&&LP(e,i),n.update(i),i.modules)for(var B in i.modules){if(!n.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}NP(e.concat(B),n.getChild(B),i.modules[B])}}var OP={assert:function(e){return typeof e=="function"},expected:"function"},Zre={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},DP={getters:OP,mutations:OP,actions:Zre};function LP(e,n){Object.keys(DP).forEach(function(i){if(n[i]){var B=DP[i];Q0(n[i],function(z,c){Np(B.assert(z),Jre(e,i,c,z,B.expected))})}})}function Jre(e,n,i,B,z){var c=n+" should be "+z+' but "'+n+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var yh=function e(n){var i=this;n===void 0&&(n={}),process.env.NODE_ENV!=="production"&&(Np(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Np(this instanceof e,"store must be called with the new operator."));var B=n.plugins;B===void 0&&(B=[]);var z=n.strict;z===void 0&&(z=!1);var c=n.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new eg(n),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(_,p){return y.call(m,_,p)},this.commit=function(_,p,l){return f.call(m,_,p,l)},this.strict=z;var r=this._modules.root.state;ox(this,r,[],this._modules.root),v8(this,r),B.forEach(function(v){return v(i)})},w8={state:{configurable:!0}};yh.prototype.install=function(n,i){n.provide(i||xP,this),n.config.globalProperties.$store=this;var B=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;B&&Gre(n,this)},w8.state.get=function(){return this._state.data},w8.state.set=function(e){process.env.NODE_ENV!=="production"&&Np(!1,"use store.replaceState() to explicit replace store state.")},yh.prototype.commit=function(n,i,B){var z=this,c=sx(n,i,B),m=c.type,a=c.payload,y=c.options,f={type:m,payload:a},r=this._mutations[m];if(!r){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+m);return}this._withCommit(function(){r.forEach(function(_){_(a)})}),this._subscribers.slice().forEach(function(v){return v(f,z.state)}),process.env.NODE_ENV!=="production"&&y&&y.silent&&console.warn("[vuex] mutation type: "+m+". Silent option has been removed. Use the filter functionality in the vue-devtools")},yh.prototype.dispatch=function(n,i){var B=this,z=sx(n,i),c=z.type,m=z.payload,a={type:c,payload:m},y=this._actions[c];if(!y){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+c);return}try{this._actionSubscribers.slice().filter(function(r){return r.before}).forEach(function(r){return r.before(a,B.state)})}catch(r){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(r))}var f=y.length>1?Promise.all(y.map(function(r){return r(m)})):y[0](m);return new Promise(function(r,v){f.then(function(_){try{B._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,B.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(p))}r(_)},function(_){try{B._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,B.state,_)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(p))}v(_)})})},yh.prototype.subscribe=function(n,i){return kP(n,this._subscribers,i)},yh.prototype.subscribeAction=function(n,i){var B=typeof n=="function"?{before:n}:n;return kP(B,this._actionSubscribers,i)},yh.prototype.watch=function(n,i,B){var z=this;return process.env.NODE_ENV!=="production"&&Np(typeof n=="function","store.watch only accepts a function."),t.watch(function(){return n(z.state,z.getters)},i,Object.assign({},B))},yh.prototype.replaceState=function(n){var i=this;this._withCommit(function(){i._state.data=n})},yh.prototype.registerModule=function(n,i,B){B===void 0&&(B={}),typeof n=="string"&&(n=[n]),process.env.NODE_ENV!=="production"&&(Np(Array.isArray(n),"module path must be a string or an Array."),Np(n.length>0,"cannot register the root module by using registerModule.")),this._modules.register(n,i),ox(this,this.state,n,this._modules.get(n),B.preserveState),v8(this,this.state)},yh.prototype.unregisterModule=function(n){var i=this;typeof n=="string"&&(n=[n]),process.env.NODE_ENV!=="production"&&Np(Array.isArray(n),"module path must be a string or an Array."),this._modules.unregister(n),this._withCommit(function(){var B=_8(i.state,n.slice(0,-1));delete B[n[n.length-1]]}),CP(this)},yh.prototype.hasModule=function(n){return typeof n=="string"&&(n=[n]),process.env.NODE_ENV!=="production"&&Np(Array.isArray(n),"module path must be a string or an Array."),this._modules.isRegistered(n)},yh.prototype.hotUpdate=function(n){this._modules.update(n),CP(this,!0)},yh.prototype._withCommit=function(n){var i=this._committing;this._committing=!0,n(),this._committing=i},Object.defineProperties(yh.prototype,w8);var eh=ux(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!Lv(n)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),cx(n).forEach(function(B){var z=B.key,c=B.val;i[z]=function(){var a=this.$store.state,y=this.$store.getters;if(e){var f=dx(this.$store,"mapState",e);if(!f)return;a=f.context.state,y=f.context.getters}return typeof c=="function"?c.call(this,a,y):a[c]},i[z].vuex=!0}),i}),Lm=ux(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!Lv(n)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),cx(n).forEach(function(B){var z=B.key,c=B.val;i[z]=function(){for(var a=[],y=arguments.length;y--;)a[y]=arguments[y];var f=this.$store.commit;if(e){var r=dx(this.$store,"mapMutations",e);if(!r)return;f=r.context.commit}return typeof c=="function"?c.apply(this,[f].concat(a)):f.apply(this.$store,[c].concat(a))}}),i}),eu=ux(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!Lv(n)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),cx(n).forEach(function(B){var z=B.key,c=B.val;c=e+c,i[z]=function(){if(!(e&&!dx(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(c in this.$store.getters)){console.error("[vuex] unknown getter: "+c);return}return this.$store.getters[c]}},i[z].vuex=!0}),i}),lx=ux(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!Lv(n)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),cx(n).forEach(function(B){var z=B.key,c=B.val;i[z]=function(){for(var a=[],y=arguments.length;y--;)a[y]=arguments[y];var f=this.$store.dispatch;if(e){var r=dx(this.$store,"mapActions",e);if(!r)return;f=r.context.dispatch}return typeof c=="function"?c.apply(this,[f].concat(a)):f.apply(this.$store,[c].concat(a))}}),i});function cx(e){return Lv(e)?Array.isArray(e)?e.map(function(n){return{key:n,val:n}}):Object.keys(e).map(function(n){return{key:n,val:e[n]}}):[]}function Lv(e){return Array.isArray(e)||wP(e)}function ux(e){return function(n,i){return typeof n!="string"?(i=n,n=""):n.charAt(n.length-1)!=="/"&&(n+="/"),e(n,i)}}function dx(e,n,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+n+"(): "+i),B}function k8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kre(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function B(){return this instanceof B?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(B){var z=Object.getOwnPropertyDescriptor(e,B);Object.defineProperty(i,B,z.get?z:{enumerable:!0,get:function(){return e[B]}})}),i}var C8={exports:{}},Qre=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eie=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],FP=function(n){var i=n,B=n.indexOf("["),z=n.indexOf("]");B!=-1&&z!=-1&&(n=n.substring(0,B)+n.substring(B,z).replace(/:/g,";")+n.substring(z,n.length));for(var c=Qre.exec(n||""),m={},a=14;a--;)m[eie[a]]=c[a]||"";return B!=-1&&z!=-1&&(m.source=i,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,":"),m.authority=m.authority.replace("[","").replace("]","").replace(/;/g,":"),m.ipv6uri=!0),m.pathNames=tie(m,m.path),m.queryKey=aie(m,m.query),m};function tie(e,n){var i=/\/{2,9}/g,B=n.replace(i,"/").split("/");return(n.substr(0,1)=="/"||n.length===0)&&B.splice(0,1),n.substr(n.length-1,1)=="/"&&B.splice(B.length-1,1),B}function aie(e,n){var i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(B,z,c){z&&(i[z]=c)}),i}var S8={exports:{}},T8={exports:{}},Fv=1e3,zv=Fv*60,Rv=zv*60,Vv=Rv*24,nie=Vv*365.25,rie=function(e,n){n=n||{};var i=typeof e;if(i==="string"&&e.length>0)return iie(e);if(i==="number"&&isNaN(e)===!1)return n.long?sie(e):oie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function iie(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var i=parseFloat(n[1]),B=(n[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*nie;case"days":case"day":case"d":return i*Vv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Rv;case"minutes":case"minute":case"mins":case"min":case"m":return i*zv;case"seconds":case"second":case"secs":case"sec":case"s":return i*Fv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function oie(e){return e>=Vv?Math.round(e/Vv)+"d":e>=Rv?Math.round(e/Rv)+"h":e>=zv?Math.round(e/zv)+"m":e>=Fv?Math.round(e/Fv)+"s":e+"ms"}function sie(e){return hx(e,Vv,"day")||hx(e,Rv,"hour")||hx(e,zv,"minute")||hx(e,Fv,"second")||e+" ms"}function hx(e,n,i){if(!(e<n))return e<n*1.5?Math.floor(e/n)+" "+i:Math.ceil(e/n)+" "+i+"s"}(function(e,n){n=e.exports=B.debug=B.default=B,n.coerce=y,n.disable=m,n.enable=c,n.enabled=a,n.humanize=rie,n.instances=[],n.names=[],n.skips=[],n.formatters={};function i(f){var r=0,v;for(v in f)r=(r<<5)-r+f.charCodeAt(v),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function B(f){var r;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(r||p);_.diff=l,_.prev=r,_.curr=p,r=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=n.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;d++;var b=n.formatters[g];if(typeof b=="function"){var w=o[d];h=b.call(_,w),o.splice(d,1),d--}return h}),n.formatArgs.call(_,o);var u=v.log||n.log||console.log.bind(console);u.apply(_,o)}}return v.namespace=f,v.enabled=n.enabled(f),v.useColors=n.useColors(),v.color=i(f),v.destroy=z,typeof n.init=="function"&&n.init(v),n.instances.push(v),v}function z(){var f=n.instances.indexOf(this);return f!==-1?(n.instances.splice(f,1),!0):!1}function c(f){n.save(f),n.names=[],n.skips=[];var r,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(f=v[r].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.substr(1)+"$")):n.names.push(new RegExp("^"+f+"$")));for(r=0;r<n.instances.length;r++){var p=n.instances[r];p.enabled=n.enabled(p.namespace)}}function m(){n.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var r,v;for(r=0,v=n.skips.length;r<v;r++)if(n.skips[r].test(f))return!1;for(r=0,v=n.names.length;r<v;r++)if(n.names[r].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(T8,T8.exports);var lie=T8.exports;(function(e,n){n=e.exports=lie,n.log=z,n.formatArgs=B,n.save=c,n.load=m,n.useColors=i,n.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+n.humanize(this.diff),!!f){var r="color: "+this.color;y.splice(1,0,r,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,r)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?n.storage.removeItem("debug"):n.storage.debug=y}catch{}}function m(){var y;try{y=n.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}n.enable(m());function a(){try{return window.localStorage}catch{}}})(S8,S8.exports);var px=S8.exports,cie=FP,zP=px("socket.io-client:url"),uie=die;function die(e,n){var i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(zP("protocol-less url %s",e),typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),zP("parse %s",e),i=cie(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var B=i.host.indexOf(":")!==-1,z=B?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+z+":"+i.port,i.href=i.protocol+"://"+z+(n&&n.port===i.port?"":":"+i.port),i}var fx={},E8={exports:{}},A8={exports:{}},$v=1e3,jv=$v*60,Uv=jv*60,Gv=Uv*24,hie=Gv*365.25,pie=function(e,n){n=n||{};var i=typeof e;if(i==="string"&&e.length>0)return fie(e);if(i==="number"&&isNaN(e)===!1)return n.long?gie(e):mie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function fie(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var i=parseFloat(n[1]),B=(n[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*hie;case"days":case"day":case"d":return i*Gv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Uv;case"minutes":case"minute":case"mins":case"min":case"m":return i*jv;case"seconds":case"second":case"secs":case"sec":case"s":return i*$v;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function mie(e){return e>=Gv?Math.round(e/Gv)+"d":e>=Uv?Math.round(e/Uv)+"h":e>=jv?Math.round(e/jv)+"m":e>=$v?Math.round(e/$v)+"s":e+"ms"}function gie(e){return mx(e,Gv,"day")||mx(e,Uv,"hour")||mx(e,jv,"minute")||mx(e,$v,"second")||e+" ms"}function mx(e,n,i){if(!(e<n))return e<n*1.5?Math.floor(e/n)+" "+i:Math.ceil(e/n)+" "+i+"s"}(function(e,n){n=e.exports=B.debug=B.default=B,n.coerce=y,n.disable=m,n.enable=c,n.enabled=a,n.humanize=pie,n.instances=[],n.names=[],n.skips=[],n.formatters={};function i(f){var r=0,v;for(v in f)r=(r<<5)-r+f.charCodeAt(v),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function B(f){var r;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(r||p);_.diff=l,_.prev=r,_.curr=p,r=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=n.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;d++;var b=n.formatters[g];if(typeof b=="function"){var w=o[d];h=b.call(_,w),o.splice(d,1),d--}return h}),n.formatArgs.call(_,o);var u=v.log||n.log||console.log.bind(console);u.apply(_,o)}}return v.namespace=f,v.enabled=n.enabled(f),v.useColors=n.useColors(),v.color=i(f),v.destroy=z,typeof n.init=="function"&&n.init(v),n.instances.push(v),v}function z(){var f=n.instances.indexOf(this);return f!==-1?(n.instances.splice(f,1),!0):!1}function c(f){n.save(f),n.names=[],n.skips=[];var r,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(f=v[r].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.substr(1)+"$")):n.names.push(new RegExp("^"+f+"$")));for(r=0;r<n.instances.length;r++){var p=n.instances[r];p.enabled=n.enabled(p.namespace)}}function m(){n.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var r,v;for(r=0,v=n.skips.length;r<v;r++)if(n.skips[r].test(f))return!1;for(r=0,v=n.names.length;r<v;r++)if(n.names[r].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(A8,A8.exports);var yie=A8.exports;(function(e,n){n=e.exports=yie,n.log=z,n.formatArgs=B,n.save=c,n.load=m,n.useColors=i,n.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+n.humanize(this.diff),!!f){var r="color: "+this.color;y.splice(1,0,r,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,r)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?n.storage.removeItem("debug"):n.storage.debug=y}catch{}}function m(){var y;try{y=n.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}n.enable(m());function a(){try{return window.localStorage}catch{}}})(E8,E8.exports);var vie=E8.exports,RP={exports:{}};(function(e){e.exports=n;function n(B){if(B)return i(B)}function i(B){for(var z in n.prototype)B[z]=n.prototype[z];return B}n.prototype.on=n.prototype.addEventListener=function(B,z){return this._callbacks=this._callbacks||{},(this._callbacks["$"+B]=this._callbacks["$"+B]||[]).push(z),this},n.prototype.once=function(B,z){function c(){this.off(B,c),z.apply(this,arguments)}return c.fn=z,this.on(B,c),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(B,z){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+B];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+B],this;for(var m,a=0;a<c.length;a++)if(m=c[a],m===z||m.fn===z){c.splice(a,1);break}return c.length===0&&delete this._callbacks["$"+B],this},n.prototype.emit=function(B){this._callbacks=this._callbacks||{};for(var z=new Array(arguments.length-1),c=this._callbacks["$"+B],m=1;m<arguments.length;m++)z[m-1]=arguments[m];if(c){c=c.slice(0);for(var m=0,a=c.length;m<a;++m)c[m].apply(this,z)}return this},n.prototype.listeners=function(B){return this._callbacks=this._callbacks||{},this._callbacks["$"+B]||[]},n.prototype.hasListeners=function(B){return!!this.listeners(B).length}})(RP);var G1=RP.exports,gx={},_ie={}.toString,M8=Array.isArray||function(e){return _ie.call(e)=="[object Array]"},VP=kie,bie=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",xie=typeof ArrayBuffer=="function",wie=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function kie(e){return bie&&Buffer.isBuffer(e)||xie&&(e instanceof ArrayBuffer||wie(e))}var I8=M8,$P=VP,jP=Object.prototype.toString,Cie=typeof Blob=="function"||typeof Blob<"u"&&jP.call(Blob)==="[object BlobConstructor]",Sie=typeof File=="function"||typeof File<"u"&&jP.call(File)==="[object FileConstructor]";gx.deconstructPacket=function(e){var n=[],i=e.data,B=e;return B.data=P8(i,n),B.attachments=n.length,{packet:B,buffers:n}};function P8(e,n){if(!e)return e;if($P(e)){var i={_placeholder:!0,num:n.length};return n.push(e),i}else if(I8(e)){for(var B=new Array(e.length),z=0;z<e.length;z++)B[z]=P8(e[z],n);return B}else if(typeof e=="object"&&!(e instanceof Date)){var B={};for(var c in e)B[c]=P8(e[c],n);return B}return e}gx.reconstructPacket=function(e,n){return e.data=B8(e.data,n),e.attachments=void 0,e};function B8(e,n){if(!e)return e;if(e&&e._placeholder===!0){var i=typeof e.num=="number"&&e.num>=0&&e.num<n.length;if(i)return n[e.num];throw new Error("illegal attachments")}else if(I8(e))for(var B=0;B<e.length;B++)e[B]=B8(e[B],n);else if(typeof e=="object")for(var z in e)e[z]=B8(e[z],n);return e}gx.removeBlobs=function(e,n){function i(c,m,a){if(!c)return c;if(Cie&&c instanceof Blob||Sie&&c instanceof File){B++;var y=new FileReader;y.onload=function(){a?a[m]=this.result:z=this.result,--B||n(z)},y.readAsArrayBuffer(c)}else if(I8(c))for(var f=0;f<c.length;f++)i(c[f],f,c);else if(typeof c=="object"&&!$P(c))for(var r in c)i(c[r],r,c)}var B=0,z=e;i(z),B||n(z)},function(e){var n=vie("socket.io-parser"),i=G1,B=gx,z=M8,c=VP;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=m,e.Decoder=v;function m(){}var a=e.ERROR+'"encode error"';m.prototype.encode=function(d,u){if(n("encoding packet %j",d),e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)r(d,u);else{var h=y(d);u([h])}};function y(d){var u=""+d.type;if((e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)&&(u+=d.attachments+"-"),d.nsp&&d.nsp!=="/"&&(u+=d.nsp+","),d.id!=null&&(u+=d.id),d.data!=null){var h=f(d.data);if(h!==!1)u+=h;else return a}return n("encoded %j as %s",d,u),u}function f(d){try{return JSON.stringify(d)}catch{return!1}}function r(d,u){function h(g){var b=B.deconstructPacket(g),w=y(b.packet),x=b.buffers;x.unshift(w),u(x)}B.removeBlobs(d,h)}function v(){this.reconstructor=null}i(v.prototype),v.prototype.add=function(d){var u;if(typeof d=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");u=p(d),e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type?(this.reconstructor=new o(u),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",u)):this.emit("decoded",u)}else if(c(d)||d.base64)if(this.reconstructor)u=this.reconstructor.takeBinaryData(d),u&&(this.reconstructor=null,this.emit("decoded",u));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+d)};function _(d,u){switch(d){case 0:return typeof u=="object";case 1:return u===void 0;case 4:return typeof u=="string"||typeof u=="object";case 2:case 5:return z(u)&&(typeof u[0]=="string"||typeof u[0]=="number");case 3:case 6:return z(u)}}function p(d){var u=0,h={type:Number(d.charAt(0))};if(e.types[h.type]==null)return s("unknown packet type "+h.type);if(e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type){for(var g=u+1;d.charAt(++u)!=="-"&&u!=d.length;);var b=d.substring(g,u);if(b!=Number(b)||d.charAt(u)!=="-")throw new Error("Illegal attachments");h.attachments=Number(b)}if(d.charAt(u+1)==="/"){for(var g=u+1;++u;){var w=d.charAt(u);if(w===","||u===d.length)break}h.nsp=d.substring(g,u)}else h.nsp="/";var x=d.charAt(u+1);if(x!==""&&Number(x)==x){for(var g=u+1;++u;){var w=d.charAt(u);if(w==null||Number(w)!=w){--u;break}if(u===d.length)break}h.id=Number(d.substring(g,u+1))}if(d.charAt(++u)){var T=l(d.substr(u));if(_(h.type,T))h.data=T;else throw new Error("invalid payload")}return n("decoded %s as %j",d,h),h}function l(d){try{return JSON.parse(d)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(d){this.reconPack=d,this.buffers=[]}o.prototype.takeBinaryData=function(d){if(this.buffers.push(d),this.buffers.length===this.reconPack.attachments){var u=B.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),u}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function s(d){return{type:e.ERROR,data:"parser error: "+d}}}(fx);var N8={exports:{}},yx={},O8={exports:{}};try{O8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{O8.exports=!1}var Tie=O8.exports,D8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Eie=Tie,Aie=D8,L8=function(e){var n=e.xdomain,i=e.xscheme,B=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!n||Eie))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!i&&B)return new XDomainRequest}catch{}if(!n)try{return new Aie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},F8={exports:{}},tg={},Mie=Object.keys||function(n){var i=[],B=Object.prototype.hasOwnProperty;for(var z in n)B.call(n,z)&&i.push(z);return i},Iie=M8,UP=Object.prototype.toString,Pie=typeof Blob=="function"||typeof Blob<"u"&&UP.call(Blob)==="[object BlobConstructor]",Bie=typeof File=="function"||typeof File<"u"&&UP.call(File)==="[object FileConstructor]",GP=vx;function vx(e){if(!e||typeof e!="object")return!1;if(Iie(e)){for(var n=0,i=e.length;n<i;n++)if(vx(e[n]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Pie&&e instanceof Blob||Bie&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return vx(e.toJSON(),!0);for(var B in e)if(Object.prototype.hasOwnProperty.call(e,B)&&vx(e[B]))return!0;return!1}var Nie=function(e,n,i){var B=e.byteLength;if(n=n||0,i=i||B,e.slice)return e.slice(n,i);if(n<0&&(n+=B),i<0&&(i+=B),i>B&&(i=B),n>=B||n>=i||B===0)return new ArrayBuffer(0);for(var z=new Uint8Array(e),c=new Uint8Array(i-n),m=n,a=0;m<i;m++,a++)c[a]=z[m];return c.buffer},Oie=Die;function Die(e,n,i){var B=!1;return i=i||Lie,z.count=e,e===0?n():z;function z(c,m){if(z.count<=0)throw new Error("after called too many times");--z.count,c?(B=!0,n(c),n=i):z.count===0&&!B&&n(null,m)}}function Lie(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Fm=String.fromCharCode;function HP(e){for(var n=[],i=0,B=e.length,z,c;i<B;)z=e.charCodeAt(i++),z>=55296&&z<=56319&&i<B?(c=e.charCodeAt(i++),(c&64512)==56320?n.push(((z&1023)<<10)+(c&1023)+65536):(n.push(z),i--)):n.push(z);return n}function Fie(e){for(var n=e.length,i=-1,B,z="";++i<n;)B=e[i],B>65535&&(B-=65536,z+=Fm(B>>>10&1023|55296),B=56320|B&1023),z+=Fm(B);return z}function WP(e,n){if(e>=55296&&e<=57343){if(n)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function z8(e,n){return Fm(e>>n&63|128)}function zie(e,n){if(!(e&4294967168))return Fm(e);var i="";return e&4294965248?e&4294901760?e&4292870144||(i=Fm(e>>18&7|240),i+=z8(e,12),i+=z8(e,6)):(WP(e,n)||(e=65533),i=Fm(e>>12&15|224),i+=z8(e,6)):i=Fm(e>>6&31|192),i+=Fm(e&63|128),i}function Rie(e,n){n=n||{};for(var i=n.strict!==!1,B=HP(e),z=B.length,c=-1,m,a="";++c<z;)m=B[c],a+=zie(m,i);return a}function H1(){if(zm>=bx)throw Error("Invalid byte index");var e=_x[zm]&255;if(zm++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function Vie(e){var n,i,B,z,c;if(zm>bx)throw Error("Invalid byte index");if(zm==bx)return!1;if(n=_x[zm]&255,zm++,!(n&128))return n;if((n&224)==192){if(i=H1(),c=(n&31)<<6|i,c>=128)return c;throw Error("Invalid continuation byte")}if((n&240)==224){if(i=H1(),B=H1(),c=(n&15)<<12|i<<6|B,c>=2048)return WP(c,e)?c:65533;throw Error("Invalid continuation byte")}if((n&248)==240&&(i=H1(),B=H1(),z=H1(),c=(n&7)<<18|i<<12|B<<6|z,c>=65536&&c<=1114111))return c;throw Error("Invalid UTF-8 detected")}var _x,bx,zm;function $ie(e,n){n=n||{};var i=n.strict!==!1;_x=HP(e),bx=_x.length,zm=0;for(var B=[],z;(z=Vie(i))!==!1;)B.push(z);return Fie(B)}var jie={version:"2.1.2",encode:Rie,decode:$ie},xx={},qP;function Uie(){return qP||(qP=1,function(e){xx.encode=function(n){var i=new Uint8Array(n),B,z=i.length,c="";for(B=0;B<z;B+=3)c+=e[i[B]>>2],c+=e[(i[B]&3)<<4|i[B+1]>>4],c+=e[(i[B+1]&15)<<2|i[B+2]>>6],c+=e[i[B+2]&63];return z%3===2?c=c.substring(0,c.length-1)+"=":z%3===1&&(c=c.substring(0,c.length-2)+"=="),c},xx.decode=function(n){var i=n.length*.75,B=n.length,z,c=0,m,a,y,f;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);var r=new ArrayBuffer(i),v=new Uint8Array(r);for(z=0;z<B;z+=4)m=e.indexOf(n[z]),a=e.indexOf(n[z+1]),y=e.indexOf(n[z+2]),f=e.indexOf(n[z+3]),v[c++]=m<<2|a>>4,v[c++]=(a&15)<<4|y>>2,v[c++]=(y&3)<<6|f&63;return r}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),xx}var R8,YP;function Gie(){if(YP)return R8;YP=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,n=function(){try{var a=new Blob(["hi"]);return a.size===2}catch{return!1}}(),i=n&&function(){try{var a=new Blob([new Uint8Array([1,2])]);return a.size===2}catch{return!1}}(),B=e&&e.prototype.append&&e.prototype.getBlob;function z(a){return a.map(function(y){if(y.buffer instanceof ArrayBuffer){var f=y.buffer;if(y.byteLength!==f.byteLength){var r=new Uint8Array(y.byteLength);r.set(new Uint8Array(f,y.byteOffset,y.byteLength)),f=r.buffer}return f}return y})}function c(a,y){y=y||{};var f=new e;return z(a).forEach(function(r){f.append(r)}),y.type?f.getBlob(y.type):f.getBlob()}function m(a,y){return new Blob(z(a),y||{})}return typeof Blob<"u"&&(c.prototype=Blob.prototype,m.prototype=Blob.prototype),R8=function(){return n?i?Blob:m:B?c:void 0}(),R8}(function(e){var n=Mie,i=GP,B=Nie,z=Oie,c=jie,m;typeof ArrayBuffer<"u"&&(m=Uie());var a=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),y=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=a||y;e.protocol=3;var r=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=n(r),_={type:"error",data:"parser error"},p=Gie();e.encodePacket=function(g,b,w,x){typeof b=="function"&&(x=b,b=!1),typeof w=="function"&&(x=w,w=null);var T=g.data===void 0?void 0:g.data.buffer||g.data;if(typeof ArrayBuffer<"u"&&T instanceof ArrayBuffer)return o(g,b,x);if(typeof p<"u"&&T instanceof p)return d(g,b,x);if(T&&T.base64)return l(g,x);var k=r[g.type];return g.data!==void 0&&(k+=w?c.encode(String(g.data),{strict:!1}):String(g.data)),x(""+k)};function l(g,b){var w="b"+e.packets[g.type]+g.data.data;return b(w)}function o(g,b,w){if(!b)return e.encodeBase64Packet(g,w);var x=g.data,T=new Uint8Array(x),k=new Uint8Array(1+x.byteLength);k[0]=r[g.type];for(var S=0;S<T.length;S++)k[S+1]=T[S];return w(k.buffer)}function s(g,b,w){if(!b)return e.encodeBase64Packet(g,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:g.type,data:x.result},b,!0,w)},x.readAsArrayBuffer(g.data)}function d(g,b,w){if(!b)return e.encodeBase64Packet(g,w);if(f)return s(g,b,w);var x=new Uint8Array(1);x[0]=r[g.type];var T=new p([x.buffer,g.data]);return w(T)}e.encodeBase64Packet=function(g,b){var w="b"+e.packets[g.type];if(typeof p<"u"&&g.data instanceof p){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];b(w+A)},x.readAsDataURL(g.data)}var T;try{T=String.fromCharCode.apply(null,new Uint8Array(g.data))}catch{for(var k=new Uint8Array(g.data),S=new Array(k.length),C=0;C<k.length;C++)S[C]=k[C];T=String.fromCharCode.apply(null,S)}return w+=btoa(T),b(w)},e.decodePacket=function(g,b,w){if(g===void 0)return _;if(typeof g=="string"){if(g.charAt(0)==="b")return e.decodeBase64Packet(g.substr(1),b);if(w&&(g=u(g),g===!1))return _;var T=g.charAt(0);return Number(T)!=T||!v[T]?_:g.length>1?{type:v[T],data:g.substring(1)}:{type:v[T]}}var x=new Uint8Array(g),T=x[0],k=B(g,1);return p&&b==="blob"&&(k=new p([k])),{type:v[T],data:k}};function u(g){try{g=c.decode(g,{strict:!1})}catch{return!1}return g}e.decodeBase64Packet=function(g,b){var w=v[g.charAt(0)];if(!m)return{type:w,data:{base64:!0,data:g.substr(1)}};var x=m.decode(g.substr(1));return b==="blob"&&p&&(x=new p([x])),{type:w,data:x}},e.encodePayload=function(g,b,w){typeof b=="function"&&(w=b,b=null);var x=i(g);if(b&&x)return p&&!f?e.encodePayloadAsBlob(g,w):e.encodePayloadAsArrayBuffer(g,w);if(!g.length)return w("0:");function T(S){return S.length+":"+S}function k(S,C){e.encodePacket(S,x?b:!1,!1,function(A){C(null,T(A))})}h(g,k,function(S,C){return w(C.join(""))})};function h(g,b,w){for(var x=new Array(g.length),T=z(g.length,w),k=function(C,A,E){b(A,function(M,I){x[C]=I,E(M,x)})},S=0;S<g.length;S++)k(S,g[S],T)}e.decodePayload=function(g,b,w){if(typeof g!="string")return e.decodePayloadAsBinary(g,b,w);typeof b=="function"&&(w=b,b=null);var x;if(g==="")return w(_,0,1);for(var T="",k,S,C=0,A=g.length;C<A;C++){var E=g.charAt(C);if(E!==":"){T+=E;continue}if(T===""||T!=(k=Number(T))||(S=g.substr(C+1,k),T!=S.length))return w(_,0,1);if(S.length){if(x=e.decodePacket(S,b,!1),_.type===x.type&&_.data===x.data)return w(_,0,1);var M=w(x,C+k,A);if(M===!1)return}C+=k,T=""}if(T!=="")return w(_,0,1)},e.encodePayloadAsArrayBuffer=function(g,b){if(!g.length)return b(new ArrayBuffer(0));function w(x,T){e.encodePacket(x,!0,!0,function(k){return T(null,k)})}h(g,w,function(x,T){var k=T.reduce(function(A,E){var M;return typeof E=="string"?M=E.length:M=E.byteLength,A+M.toString().length+M+2},0),S=new Uint8Array(k),C=0;return T.forEach(function(A){var E=typeof A=="string",M=A;if(E){for(var O=new Uint8Array(A.length),I=0;I<A.length;I++)O[I]=A.charCodeAt(I);M=O.buffer}E?S[C++]=0:S[C++]=1;for(var N=M.byteLength.toString(),I=0;I<N.length;I++)S[C++]=parseInt(N[I]);S[C++]=255;for(var O=new Uint8Array(M),I=0;I<O.length;I++)S[C++]=O[I]}),b(S.buffer)})},e.encodePayloadAsBlob=function(g,b){function w(x,T){e.encodePacket(x,!0,!0,function(k){var S=new Uint8Array(1);if(S[0]=1,typeof k=="string"){for(var C=new Uint8Array(k.length),A=0;A<k.length;A++)C[A]=k.charCodeAt(A);k=C.buffer,S[0]=0}for(var E=k instanceof ArrayBuffer?k.byteLength:k.size,M=E.toString(),I=new Uint8Array(M.length+1),A=0;A<M.length;A++)I[A]=parseInt(M[A]);if(I[M.length]=255,p){var N=new p([S.buffer,I.buffer,k]);T(null,N)}})}h(g,w,function(x,T){return b(new p(T))})},e.decodePayloadAsBinary=function(g,b,w){typeof b=="function"&&(w=b,b=null);for(var x=g,T=[];x.byteLength>0;){for(var k=new Uint8Array(x),S=k[0]===0,C="",A=1;k[A]!==255;A++){if(C.length>310)return w(_,0,1);C+=k[A]}x=B(x,2+C.length),C=parseInt(C);var E=B(x,0,C);if(S)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var M=new Uint8Array(E);E="";for(var A=0;A<M.length;A++)E+=String.fromCharCode(M[A])}T.push(E),x=B(x,C)}var I=T.length;T.forEach(function(N,O){w(e.decodePacket(N,b,!0),O,I)})}})(tg);var V8,XP;function $8(){if(XP)return V8;XP=1;var e=tg,n=G1;V8=i;function i(B){this.path=B.path,this.hostname=B.hostname,this.port=B.port,this.secure=B.secure,this.query=B.query,this.timestampParam=B.timestampParam,this.timestampRequests=B.timestampRequests,this.readyState="",this.agent=B.agent||!1,this.socket=B.socket,this.enablesXDR=B.enablesXDR,this.withCredentials=B.withCredentials,this.pfx=B.pfx,this.key=B.key,this.passphrase=B.passphrase,this.cert=B.cert,this.ca=B.ca,this.ciphers=B.ciphers,this.rejectUnauthorized=B.rejectUnauthorized,this.forceNode=B.forceNode,this.isReactNative=B.isReactNative,this.extraHeaders=B.extraHeaders,this.localAddress=B.localAddress}return n(i.prototype),i.prototype.onError=function(B,z){var c=new Error(B);return c.type="TransportError",c.description=z,this.emit("error",c),this},i.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},i.prototype.send=function(B){if(this.readyState==="open")this.write(B);else throw new Error("Transport not open")},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(B){var z=e.decodePacket(B,this.socket.binaryType);this.onPacket(z)},i.prototype.onPacket=function(B){this.emit("packet",B)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")},V8}var W1={};W1.encode=function(e){var n="";for(var i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n},W1.decode=function(e){for(var n={},i=e.split("&"),B=0,z=i.length;B<z;B++){var c=i[B].split("=");n[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return n};var wx=function(e,n){var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e},ZP="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),kx=64,JP={},KP=0,Rm=0,QP;function j8(e){var n="";do n=ZP[e%kx]+n,e=Math.floor(e/kx);while(e>0);return n}function Hie(e){var n=0;for(Rm=0;Rm<e.length;Rm++)n=n*kx+JP[e.charAt(Rm)];return n}function U8(){var e=j8(+new Date);return e!==QP?(KP=0,QP=e):e+"."+j8(KP++)}for(;Rm<kx;Rm++)JP[ZP[Rm]]=Rm;U8.encode=j8,U8.decode=Hie;var eB=U8,G8={exports:{}},H8={exports:{}},Hv=1e3,Wv=Hv*60,qv=Wv*60,Yv=qv*24,Wie=Yv*365.25,qie=function(e,n){n=n||{};var i=typeof e;if(i==="string"&&e.length>0)return Yie(e);if(i==="number"&&isNaN(e)===!1)return n.long?Zie(e):Xie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Yie(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var i=parseFloat(n[1]),B=(n[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*Wie;case"days":case"day":case"d":return i*Yv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*qv;case"minutes":case"minute":case"mins":case"min":case"m":return i*Wv;case"seconds":case"second":case"secs":case"sec":case"s":return i*Hv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Xie(e){return e>=Yv?Math.round(e/Yv)+"d":e>=qv?Math.round(e/qv)+"h":e>=Wv?Math.round(e/Wv)+"m":e>=Hv?Math.round(e/Hv)+"s":e+"ms"}function Zie(e){return Cx(e,Yv,"day")||Cx(e,qv,"hour")||Cx(e,Wv,"minute")||Cx(e,Hv,"second")||e+" ms"}function Cx(e,n,i){if(!(e<n))return e<n*1.5?Math.floor(e/n)+" "+i:Math.ceil(e/n)+" "+i+"s"}(function(e,n){n=e.exports=B.debug=B.default=B,n.coerce=y,n.disable=m,n.enable=c,n.enabled=a,n.humanize=qie,n.instances=[],n.names=[],n.skips=[],n.formatters={};function i(f){var r=0,v;for(v in f)r=(r<<5)-r+f.charCodeAt(v),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function B(f){var r;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(r||p);_.diff=l,_.prev=r,_.curr=p,r=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=n.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;d++;var b=n.formatters[g];if(typeof b=="function"){var w=o[d];h=b.call(_,w),o.splice(d,1),d--}return h}),n.formatArgs.call(_,o);var u=v.log||n.log||console.log.bind(console);u.apply(_,o)}}return v.namespace=f,v.enabled=n.enabled(f),v.useColors=n.useColors(),v.color=i(f),v.destroy=z,typeof n.init=="function"&&n.init(v),n.instances.push(v),v}function z(){var f=n.instances.indexOf(this);return f!==-1?(n.instances.splice(f,1),!0):!1}function c(f){n.save(f),n.names=[],n.skips=[];var r,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(f=v[r].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.substr(1)+"$")):n.names.push(new RegExp("^"+f+"$")));for(r=0;r<n.instances.length;r++){var p=n.instances[r];p.enabled=n.enabled(p.namespace)}}function m(){n.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var r,v;for(r=0,v=n.skips.length;r<v;r++)if(n.skips[r].test(f))return!1;for(r=0,v=n.names.length;r<v;r++)if(n.names[r].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(H8,H8.exports);var Jie=H8.exports;(function(e,n){n=e.exports=Jie,n.log=z,n.formatArgs=B,n.save=c,n.load=m,n.useColors=i,n.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}n.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+n.humanize(this.diff),!!f){var r="color: "+this.color;y.splice(1,0,r,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,r)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?n.storage.removeItem("debug"):n.storage.debug=y}catch{}}function m(){var y;try{y=n.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}n.enable(m());function a(){try{return window.localStorage}catch{}}})(G8,G8.exports);var Sx=G8.exports,tB=$8(),Kie=W1,aB=tg,Qie=wx,eoe=eB,Dp=Sx("engine.io-client:polling"),nB=Of,toe=function(){var e=L8,n=new e({xdomain:!1});return n.responseType!=null}();function Of(e){var n=e&&e.forceBase64;(!toe||n)&&(this.supportsBinary=!1),tB.call(this,e)}Qie(Of,tB),Of.prototype.name="polling",Of.prototype.doOpen=function(){this.poll()},Of.prototype.pause=function(e){var n=this;this.readyState="pausing";function i(){Dp("paused"),n.readyState="paused",e()}if(this.polling||!this.writable){var B=0;this.polling&&(Dp("we are currently polling - waiting to pause"),B++,this.once("pollComplete",function(){Dp("pre-pause polling complete"),--B||i()})),this.writable||(Dp("we are currently writing - waiting to pause"),B++,this.once("drain",function(){Dp("pre-pause writing complete"),--B||i()}))}else i()},Of.prototype.poll=function(){Dp("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Of.prototype.onData=function(e){var n=this;Dp("polling got data %s",e);var i=function(B,z,c){if(n.readyState==="opening"&&B.type==="open"&&n.onOpen(),B.type==="close")return n.onClose(),!1;n.onPacket(B)};aB.decodePayload(e,this.socket.binaryType,i),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Dp('ignoring poll - transport state "%s"',this.readyState))},Of.prototype.doClose=function(){var e=this;function n(){Dp("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Dp("transport open - closing"),n()):(Dp("transport not open - deferring close"),this.once("open",n))},Of.prototype.write=function(e){var n=this;this.writable=!1;var i=function(){n.writable=!0,n.emit("drain")};aB.encodePayload(e,this.supportsBinary,function(B){n.doWrite(B,i)})},Of.prototype.uri=function(){var e=this.query||{},n=this.secure?"https":"http",i="";this.timestampRequests!==!1&&(e[this.timestampParam]=eoe()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Kie.encode(e),this.port&&(n==="https"&&Number(this.port)!==443||n==="http"&&Number(this.port)!==80)&&(i=":"+this.port),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return n+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e};var aoe=L8,rB=nB,noe=G1,roe=wx,W8=Sx("engine.io-client:polling-xhr"),ioe=D8;F8.exports=q1,F8.exports.Request=Qu;function iB(){}function q1(e){if(rB.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var n=location.protocol==="https:",i=location.port;i||(i=n?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==n}}roe(q1,rB),q1.prototype.supportsBinary=!0,q1.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Qu(e)},q1.prototype.doWrite=function(e,n){var i=typeof e!="string"&&e!==void 0,B=this.request({method:"POST",data:e,isBinary:i}),z=this;B.on("success",n),B.on("error",function(c){z.onError("xhr post error",c)}),this.sendXhr=B},q1.prototype.doPoll=function(){W8("xhr poll");var e=this.request(),n=this;e.on("data",function(i){n.onData(i)}),e.on("error",function(i){n.onError("xhr poll error",i)}),this.pollXhr=e};function Qu(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(noe(Qu.prototype),Qu.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new aoe(e),i=this;try{W8("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var B in this.extraHeaders)this.extraHeaders.hasOwnProperty(B)&&n.setRequestHeader(B,this.extraHeaders[B])}}catch{}if(this.method==="POST")try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){i.onLoad()},n.onerror=function(){i.onError(n.responseText)}):n.onreadystatechange=function(){if(n.readyState===2)try{var z=n.getResponseHeader("Content-Type");(i.supportsBinary&&z==="application/octet-stream"||z==="application/octet-stream; charset=UTF-8")&&(n.responseType="arraybuffer")}catch{}n.readyState===4&&(n.status===200||n.status===1223?i.onLoad():setTimeout(function(){i.onError(typeof n.status=="number"?n.status:0)},0))},W8("xhr data %s",this.data),n.send(this.data)}catch(z){setTimeout(function(){i.onError(z)},0);return}typeof document<"u"&&(this.index=Qu.requestsCount++,Qu.requests[this.index]=this)},Qu.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Qu.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Qu.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Qu.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=iB:this.xhr.onreadystatechange=iB,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Qu.requests[this.index],this.xhr=null}},Qu.prototype.onLoad=function(){var e;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch{}n==="application/octet-stream"||n==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(i){this.onError(i)}e!=null&&this.onData(e)},Qu.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Qu.prototype.abort=function(){this.cleanup()},Qu.requestsCount=0,Qu.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",oB);else if(typeof addEventListener=="function"){var ooe="onpagehide"in ioe?"pagehide":"unload";addEventListener(ooe,oB,!1)}}function oB(){for(var e in Qu.requests)Qu.requests.hasOwnProperty(e)&&Qu.requests[e].abort()}var soe=F8.exports,q8=nB,loe=wx,sB=D8,coe=Y1,uoe=/\n/g,doe=/\\n/g,Tx;function hoe(){}function Y1(e){q8.call(this,e),this.query=this.query||{},Tx||(Tx=sB.___eio=sB.___eio||[]),this.index=Tx.length;var n=this;Tx.push(function(i){n.onData(i)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=hoe)},!1)}loe(Y1,q8),Y1.prototype.supportsBinary=!1,Y1.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),q8.prototype.doClose.call(this)},Y1.prototype.doPoll=function(){var e=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(z){e.onError("jsonp poll error",z)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(n,i):(document.head||document.body).appendChild(n),this.script=n;var B=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);B&&setTimeout(function(){var z=document.createElement("iframe");document.body.appendChild(z),document.body.removeChild(z)},100)},Y1.prototype.doWrite=function(e,n){var i=this;if(!this.form){var B=document.createElement("form"),z=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index,m;B.className="socketio",B.style.position="absolute",B.style.top="-1000px",B.style.left="-1000px",B.target=c,B.method="POST",B.setAttribute("accept-charset","utf-8"),z.name="d",B.appendChild(z),document.body.appendChild(B),this.form=B,this.area=z}this.form.action=this.uri();function a(){y(),n()}function y(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(r){i.onError("jsonp polling iframe removal error",r)}try{var f='<iframe src="javascript:0" name="'+i.iframeId+'">';m=document.createElement(f)}catch{m=document.createElement("iframe"),m.name=i.iframeId,m.src="javascript:0"}m.id=i.iframeId,i.form.appendChild(m),i.iframe=m}y(),e=e.replace(doe,`\\
|
|
19
|
-
`),this.area.value=e.replace(uoe,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&a()}:this.iframe.onload=a};const poe=Kre(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Y8=$8(),foe=tg,moe=W1,goe=wx,yoe=eB,voe=Sx("engine.io-client:websocket"),Ex,X8;if(typeof WebSocket<"u"?Ex=WebSocket:typeof self<"u"&&(Ex=self.WebSocket||self.MozWebSocket),typeof window>"u")try{X8=poe}catch{}var X1=Ex||X8,_oe=Zh;function Zh(e){var n=e&&e.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=Ex&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(X1=X8),Y8.call(this,e)}goe(Zh,Y8),Zh.prototype.name="websocket",Zh.prototype.supportsBinary=!0,Zh.prototype.doOpen=function(){if(this.check()){var e=this.uri(),n=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new X1(e,n):new X1(e):new X1(e,n,i)}catch(B){return this.emit("error",B)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},Zh.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(n){e.onData(n.data)},this.ws.onerror=function(n){e.onError("websocket error",n)}},Zh.prototype.write=function(e){var n=this;this.writable=!1;for(var i=e.length,B=0,z=i;B<z;B++)(function(m){foe.encodePacket(m,n.supportsBinary,function(a){if(!n.usingBrowserWebSocket){var y={};if(m.options&&(y.compress=m.options.compress),n.perMessageDeflate){var f=typeof a=="string"?Buffer.byteLength(a):a.length;f<n.perMessageDeflate.threshold&&(y.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(a):n.ws.send(a,y)}catch{voe("websocket closed before onclose event")}--i||c()})})(e[B]);function c(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}},Zh.prototype.onClose=function(){Y8.prototype.onClose.call(this)},Zh.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},Zh.prototype.uri=function(){var e=this.query||{},n=this.secure?"wss":"ws",i="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=yoe()),this.supportsBinary||(e.b64=1),e=moe.encode(e),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return n+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e},Zh.prototype.check=function(){return!!X1&&!("__initialize"in X1&&this.name===Zh.prototype.name)};var boe=L8,xoe=soe,woe=coe,koe=_oe;yx.polling=Coe,yx.websocket=koe;function Coe(e){var n,i=!1,B=!1,z=e.jsonp!==!1;if(typeof location<"u"){var c=location.protocol==="https:",m=location.port;m||(m=c?443:80),i=e.hostname!==location.hostname||m!==e.port,B=e.secure!==c}if(e.xdomain=i,e.xscheme=B,n=new boe(e),"open"in n&&!e.forceJSONP)return new xoe(e);if(!z)throw new Error("JSONP disabled");return new woe(e)}var Soe=[].indexOf,lB=function(e,n){if(Soe)return e.indexOf(n);for(var i=0;i<e.length;++i)if(e[i]===n)return i;return-1},Toe=yx,Eoe=G1,Iu=Sx("engine.io-client:socket"),Aoe=lB,cB=tg,uB=FP,Moe=W1,Ioe=ml;function ml(e,n){if(!(this instanceof ml))return new ml(e,n);n=n||{},e&&typeof e=="object"&&(n=e,e=null),e?(e=uB(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=uB(n.host).host),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=Moe.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}ml.priorWebsocketSuccess=!1,Eoe(ml.prototype),ml.protocol=cB.protocol,ml.Socket=ml,ml.Transport=$8(),ml.transports=yx,ml.parser=tg,ml.prototype.createTransport=function(e){Iu('creating transport "%s"',e);var n=Poe(this.query);n.EIO=cB.protocol,n.transport=e;var i=this.transportOptions[e]||{};this.id&&(n.sid=this.id);var B=new Toe[e]({query:n,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return B};function Poe(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}ml.prototype.open=function(){var e;if(this.rememberUpgrade&&ml.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},ml.prototype.setTransport=function(e){Iu("setting transport %s",e.name);var n=this;this.transport&&(Iu("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){n.onDrain()}).on("packet",function(i){n.onPacket(i)}).on("error",function(i){n.onError(i)}).on("close",function(){n.onClose("transport close")})},ml.prototype.probe=function(e){Iu('probing transport "%s"',e);var n=this.createTransport(e,{probe:1}),i=!1,B=this;ml.priorWebsocketSuccess=!1;function z(){if(B.onlyBinaryUpgrades){var v=!this.supportsBinary&&B.transport.supportsBinary;i=i||v}i||(Iu('probe transport "%s" opened',e),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(_){if(!i)if(_.type==="pong"&&_.data==="probe"){if(Iu('probe transport "%s" pong',e),B.upgrading=!0,B.emit("upgrading",n),!n)return;ml.priorWebsocketSuccess=n.name==="websocket",Iu('pausing current transport "%s"',B.transport.name),B.transport.pause(function(){i||B.readyState!=="closed"&&(Iu("changing transport and sending upgrade packet"),r(),B.setTransport(n),n.send([{type:"upgrade"}]),B.emit("upgrade",n),n=null,B.upgrading=!1,B.flush())})}else{Iu('probe transport "%s" failed',e);var p=new Error("probe error");p.transport=n.name,B.emit("upgradeError",p)}}))}function c(){i||(i=!0,r(),n.close(),n=null)}function m(v){var _=new Error("probe error: "+v);_.transport=n.name,c(),Iu('probe transport "%s" failed because of error: %s',e,v),B.emit("upgradeError",_)}function a(){m("transport closed")}function y(){m("socket closed")}function f(v){n&&v.name!==n.name&&(Iu('"%s" works - aborting "%s"',v.name,n.name),c())}function r(){n.removeListener("open",z),n.removeListener("error",m),n.removeListener("close",a),B.removeListener("close",y),B.removeListener("upgrading",f)}n.once("open",z),n.once("error",m),n.once("close",a),this.once("close",y),this.once("upgrading",f),n.open()},ml.prototype.onOpen=function(){if(Iu("socket open"),this.readyState="open",ml.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Iu("starting upgrade probes");for(var e=0,n=this.upgrades.length;e<n;e++)this.probe(this.upgrades[e])}},ml.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Iu('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Iu('packet received with socket readyState "%s"',this.readyState)},ml.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},ml.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},e||n.pingInterval+n.pingTimeout)},ml.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Iu("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},ml.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},ml.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},ml.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Iu("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},ml.prototype.write=ml.prototype.send=function(e,n,i){return this.sendPacket("message",e,n,i),this},ml.prototype.sendPacket=function(e,n,i,B){if(typeof n=="function"&&(B=n,n=void 0),typeof i=="function"&&(B=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var z={type:e,data:n,options:i};this.emit("packetCreate",z),this.writeBuffer.push(z),B&&this.once("flush",B),this.flush()}},ml.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?B():n()}):this.upgrading?B():n()}function n(){e.onClose("forced close"),Iu("socket closing - telling transport to close"),e.transport.close()}function i(){e.removeListener("upgrade",i),e.removeListener("upgradeError",i),n()}function B(){e.once("upgrade",i),e.once("upgradeError",i)}return this},ml.prototype.onError=function(e){Iu("socket error %j",e),ml.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},ml.prototype.onClose=function(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Iu('socket close with reason: "%s"',e);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,n),i.writeBuffer=[],i.prevBufferLen=0}},ml.prototype.filterUpgrades=function(e){for(var n=[],i=0,B=e.length;i<B;i++)~Aoe(this.transports,e[i])&&n.push(e[i]);return n},N8.exports=Ioe,N8.exports.parser=tg;var Boe=N8.exports,dB={exports:{}},Noe=Ooe;function Ooe(e,n){var i=[];n=n||0;for(var B=n||0;B<e.length;B++)i[B-n]=e[B];return i}var hB=Doe;function Doe(e,n,i){return e.on(n,i),{destroy:function(){e.removeListener(n,i)}}}var pB=[].slice,fB=function(e,n){if(typeof n=="string"&&(n=e[n]),typeof n!="function")throw new Error("bind() requires a function");var i=pB.call(arguments,2);return function(){return n.apply(e,i.concat(pB.call(arguments)))}};(function(e,n){var i=fx,B=G1,z=Noe,c=hB,m=fB,a=px("socket.io-client:socket"),y=W1,f=GP;e.exports=_;var r={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=B.prototype.emit;function _(p,l,o){this.io=p,this.nsp=l,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}B(_.prototype),_.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[c(p,"open",m(this,"onopen")),c(p,"packet",m(this,"onpacket")),c(p,"close",m(this,"onclose"))]}},_.prototype.open=_.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},_.prototype.send=function(){var p=z(arguments);return p.unshift("message"),this.emit.apply(this,p),this},_.prototype.emit=function(p){if(r.hasOwnProperty(p))return v.apply(this,arguments),this;var l=z(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:f(l))?i.BINARY_EVENT:i.EVENT,data:l};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof l[l.length-1]=="function"&&(a("emitting packet with ack id %d",this.ids),this.acks[this.ids]=l.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},_.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},_.prototype.onopen=function(){if(a("transport is open - connecting"),this.nsp!=="/")if(this.query){var p=typeof this.query=="object"?y.encode(this.query):this.query;a("sending connect packet with query %s",p),this.packet({type:i.CONNECT,query:p})}else this.packet({type:i.CONNECT})},_.prototype.onclose=function(p){a("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},_.prototype.onpacket=function(p){var l=p.nsp===this.nsp,o=p.type===i.ERROR&&p.nsp==="/";if(!(!l&&!o))switch(p.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(p);break;case i.BINARY_EVENT:this.onevent(p);break;case i.ACK:this.onack(p);break;case i.BINARY_ACK:this.onack(p);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",p.data);break}},_.prototype.onevent=function(p){var l=p.data||[];a("emitting event %j",l),p.id!=null&&(a("attaching ack callback to event"),l.push(this.ack(p.id))),this.connected?v.apply(this,l):this.receiveBuffer.push(l)},_.prototype.ack=function(p){var l=this,o=!1;return function(){if(!o){o=!0;var s=z(arguments);a("sending ack %j",s),l.packet({type:f(s)?i.BINARY_ACK:i.ACK,id:p,data:s})}}},_.prototype.onack=function(p){var l=this.acks[p.id];typeof l=="function"?(a("calling ack %s with %j",p.id,p.data),l.apply(this,p.data),delete this.acks[p.id]):a("bad ack %s",p.id)},_.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},_.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)v.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},_.prototype.ondisconnect=function(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},_.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},_.prototype.close=_.prototype.disconnect=function(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},_.prototype.compress=function(p){return this.flags.compress=p,this},_.prototype.binary=function(p){return this.flags.binary=p,this}})(dB);var mB=dB.exports,Loe=Z1;function Z1(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}Z1.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+i:e-i}return Math.min(e,this.max)|0},Z1.prototype.reset=function(){this.attempts=0},Z1.prototype.setMin=function(e){this.ms=e},Z1.prototype.setMax=function(e){this.max=e},Z1.prototype.setJitter=function(e){this.jitter=e};var Foe=Boe,zoe=mB,Roe=G1,Voe=fx,Vm=hB,J1=fB,Bd=px("socket.io-client:manager"),gB=lB,$oe=Loe,yB=Object.prototype.hasOwnProperty,vB=Yl;function Yl(e,n){if(!(this instanceof Yl))return new Yl(e,n);e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new $oe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=n.parser||Voe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}Yl.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)yB.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},Yl.prototype.updateSocketIds=function(){for(var e in this.nsps)yB.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},Yl.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},Roe(Yl.prototype),Yl.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},Yl.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},Yl.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},Yl.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},Yl.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},Yl.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},Yl.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},Yl.prototype.open=Yl.prototype.connect=function(e,n){if(Bd("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Bd("opening %s",this.uri),this.engine=Foe(this.uri,this.opts);var i=this.engine,B=this;this.readyState="opening",this.skipReconnect=!1;var z=Vm(i,"open",function(){B.onopen(),e&&e()}),c=Vm(i,"error",function(y){if(Bd("connect_error"),B.cleanup(),B.readyState="closed",B.emitAll("connect_error",y),e){var f=new Error("Connection error");f.data=y,e(f)}else B.maybeReconnectOnOpen()});if(this._timeout!==!1){var m=this._timeout;Bd("connect attempt will timeout after %d",m),m===0&&z.destroy();var a=setTimeout(function(){Bd("connect attempt timed out after %d",m),z.destroy(),i.close(),i.emit("error","timeout"),B.emitAll("connect_timeout",m)},m);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(z),this.subs.push(c),this},Yl.prototype.onopen=function(){Bd("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Vm(e,"data",J1(this,"ondata"))),this.subs.push(Vm(e,"ping",J1(this,"onping"))),this.subs.push(Vm(e,"pong",J1(this,"onpong"))),this.subs.push(Vm(e,"error",J1(this,"onerror"))),this.subs.push(Vm(e,"close",J1(this,"onclose"))),this.subs.push(Vm(this.decoder,"decoded",J1(this,"ondecoded")))},Yl.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Yl.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Yl.prototype.ondata=function(e){this.decoder.add(e)},Yl.prototype.ondecoded=function(e){this.emit("packet",e)},Yl.prototype.onerror=function(e){Bd("error",e),this.emitAll("error",e)},Yl.prototype.socket=function(e,n){var i=this.nsps[e];if(!i){i=new zoe(this,e,n),this.nsps[e]=i;var B=this;i.on("connecting",z),i.on("connect",function(){i.id=B.generateId(e)}),this.autoConnect&&z()}function z(){~gB(B.connecting,i)||B.connecting.push(i)}return i},Yl.prototype.destroy=function(e){var n=gB(this.connecting,e);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()},Yl.prototype.packet=function(e){Bd("writing packet %j",e);var n=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),n.encoding?n.packetBuffer.push(e):(n.encoding=!0,this.encoder.encode(e,function(i){for(var B=0;B<i.length;B++)n.engine.write(i[B],e.options);n.encoding=!1,n.processPacketQueue()}))},Yl.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},Yl.prototype.cleanup=function(){Bd("cleanup");for(var e=this.subs.length,n=0;n<e;n++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Yl.prototype.close=Yl.prototype.disconnect=function(){Bd("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Yl.prototype.onclose=function(e){Bd("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},Yl.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Bd("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();Bd("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var i=setTimeout(function(){e.skipReconnect||(Bd("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(B){B?(Bd("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",B.data)):(Bd("reconnect success"),e.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(i)}})}},Yl.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,n){var i=uie,B=fx,z=vB,c=px("socket.io-client");e.exports=n=a;var m=n.managers={};function a(y,f){typeof y=="object"&&(f=y,y=void 0),f=f||{};var r=i(y),v=r.source,_=r.id,p=r.path,l=m[_]&&p in m[_].nsps,o=f.forceNew||f["force new connection"]||f.multiplex===!1||l,s;return o?(c("ignoring socket cache for %s",v),s=z(v,f)):(m[_]||(c("new io instance for %s",v),m[_]=z(v,f)),s=m[_]),r.query&&!f.query&&(f.query=r.query),s.socket(r.path,f)}n.protocol=B.protocol,n.connect=a,n.Manager=vB,n.Socket=mB}(C8,C8.exports);var joe=C8.exports;const Uoe=k8(joe);var Z8={exports:{}};function J8(){}J8.prototype={on:function(e,n,i){var B=this.e||(this.e={});return(B[e]||(B[e]=[])).push({fn:n,ctx:i}),this},once:function(e,n,i){var B=this;function z(){B.off(e,z),n.apply(i,arguments)}return z._=n,this.on(e,z,i)},emit:function(e){var n=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),B=0,z=i.length;for(B;B<z;B++)i[B].fn.apply(i[B].ctx,n);return this},off:function(e,n){var i=this.e||(this.e={}),B=i[e],z=[];if(B&&n)for(var c=0,m=B.length;c<m;c++)B[c].fn!==n&&B[c].fn._!==n&&z.push(B[c]);return z.length?i[e]=z:delete i[e],this}},Z8.exports=J8,Z8.exports.TinyEmitter=J8;var Goe=Z8.exports,Hoe=Goe,Woe=new Hoe;const Jh=k8(Woe),qoe="https://golstats-live-server-sockets.azurewebsites.net";let _B="",Kh=Uoe(qoe,{autoConnect:!1,transports:["websocket"]});function bB(){return Kh}Kh.on("connect",()=>{Jh.emit("socket-connected")}),Kh.on("disconnect",()=>{Jh.emit("socket-disconnected")}),Kh.on("reconnect",()=>{Jh.emit("socket-reconnected")});function xB(){Kh.disconnected&&Kh.connect()}function wB(){Kh.connected&&(K8(),Kh.disconnect())}function Yoe(e){Kh.connected&&Kh.emit("subscribe",{channel:e})}function K8(){Kh.connected&&_B&&Kh.emit("unsubscribe",{channel:_B})}const Gma="",$i=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},kB=$i({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--white-space":i.whiteSpace,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function z(){n("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:z},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-bb7f8e4d"]]),Xoe=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Zoe={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":y.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),z=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),y=t.computed(()=>z.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0}),t.watch(z,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,d=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${d}px`}function r(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function v(){z.value=!z.value,n("update:modelValue",z.value)}function _(){z.value=!1,n("update:modelValue",z.value)}return t.onMounted(()=>{t.nextTick(()=>{r()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:v},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,z.value]])]),_:3})],4)],64))}},Joe=Xoe(Zoe,[["__scopeId","data-v-2f344053"]]),Wma="",Koe=(e=>(t.pushScopeId("data-v-2a796a00"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),Qoe={class:"button__text"},ese={key:0},tse={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ase=["fill"],nse=$i({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const n=e,i=t.computed(()=>({"--height":n.height,"--width":n.width,"--text-font-family":n.textFontFamily,"--text-font-size":n.textFontSize,"--background-color":n.backgroundColor,"--border-radius":n.borderRadius,"--border-color":n.isActive?n.borderColorActive:n.borderColor,"--border-width":n.borderWidth,"--padding":n.padding,"--font-color":n.fontColor})),B=t.computed(()=>({"--info-background-color":n.infoBackgroundColor,"--info-border-color":n.infoBorderColor,"--info-border-radius":n.infoBorderRadius,"--info-font-family":n.infoFontFamily,"--info-font-size":n.infoFontSize,"--info-font-color":n.infoFontColor,"--info-height":n.infoHeight,"--info-width":n.infoWidth}));return(z,c)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[Koe,t.createElementVNode("div",Qoe,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(B.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",ese,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",tse,[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,ase)]))],2)],4))}},[["__scopeId","data-v-2a796a00"]]),rse=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},ise={key:1},ose={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sse=["fill"],lse={key:0,class:"checkbox__teams"},cse={class:"checkbox__teams__logo"},use=["src"],dse={class:"checkbox__teams__logo"},hse=["src"],pse={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),z=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,n("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(z.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",ise,[(t.openBlock(),t.createElementBlock("svg",ose,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,sse)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",lse,[t.createElementVNode("div",cse,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,use)]),t.createElementVNode("div",dse,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,hse)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},K1=rse(pse,[["__scopeId","data-v-bcf3bcc6"]]),Xma="",Ax=e=>(t.pushScopeId("data-v-ce334c17"),e=e(),t.popScopeId(),e),fse={class:"details__header"},mse=Ax(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gse={class:"details__header__checkbox"},yse={class:"details__body"},vse={class:"details__body__playing-as"},_se=["onClick"],bse={class:"details__header"},xse=Ax(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wse={class:"details__header__checkbox"},kse={class:"details__body"},Cse=Ax(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Sse={class:"details__body__game-section"},Tse=["onClick"],Ese={class:"details__body"},Ase=Ax(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mse={class:"details__body__game-section"},Ise=["onClick"],Pse=$i({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2321d9a1":e.buttonsBackgroundColor,ccabcbfc:e.buttonsTextColor,"05a0a474":e.buttonsBorderWidth,"07cea13a":e.buttonsBorderColor,"67fac807":e.buttonsBackgroundColorActive,"728f7ba8":e.buttonsTextColorActive,"12a02c6c":e.buttonsBorderWidthActive,"5392776e":e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fse,[mse,t.createElementVNode("div",gse,[t.createVNode(t.unref(K1),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",yse,[t.createElementVNode("div",vse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_se))),128))])]),t.createElementVNode("div",bse,[xse,t.createElementVNode("div",wse,[t.createVNode(t.unref(K1),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kse,[Cse,t.createElementVNode("div",Sse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tse))),128))])]),t.createElementVNode("div",Ese,[Ase,t.createElementVNode("div",Mse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ise))),128))])])],4))}},[["__scopeId","data-v-ce334c17"]]),Bse={class:"statistics-filter-button"},Nse={__name:"StatisticsFilterButton",setup(e){const n=t.ref(!1);return(i,B)=>(t.openBlock(),t.createElementBlock("div",Bse,[t.createVNode(t.unref(Joe),{modelValue:n.value,"onUpdate:modelValue":B[0]||(B[0]=z=>n.value=z),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(nse,{text:"Filtros","is-active":n.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(Pse)]),_:1},8,["modelValue"])]))}},Jma="",CB=$i({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{z()},{immediate:!0});function z(){B.value&&(B.value.checked=i.modelValue)}function c(m){n("update:modelValue",m.target.checked)}return t.onMounted(()=>{z()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),Ose=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Dse=["name","value","checked"],Lse={class:"radio-button__radio"},Fse={class:"radio-button__radio__circle"},zse={class:"radio-button__label-logo"},Rse={class:"radio-button__label-logo__label"},Vse={key:0,class:"radio-button__label-logo__logo"},$se=["src"],jse={__name:"GSC-RadioButton",props:{label:{type:String,default:"Label"},labelColor:{type:String,default:"white"},labelFontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},name:{type:String,default:"name"},value:{type:[String,Number],required:!0},modelValue:{type:[String,Number],default:""},logoUrl:{type:String,default:""},radioPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},radioHeightAndWidth:{type:String,default:"16px"},radioBorderWidth:{type:String,default:"1px"},radioBorderColor:{type:String,default:"#FFFFFF"},radioCircleColor:{type:String,default:"#CBEE6B"},radioCircleHeightAndWidth:{type:String,default:"8px"},logoHeightAndWidth:{type:String,default:"24px"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(m=>({"09b3bbfe":e.radioHeightAndWidth,b2c41162:e.radioBorderWidth,b4f20e28:e.radioBorderColor,"999f2a9e":e.radioCircleHeightAndWidth,"74ee76c8":e.radioCircleColor,eb045952:e.labelFontFamily,"61eeb8b4":e.labelFontSize,"39a863c2":e.labelColor,"0b5aff5e":e.logoHeightAndWidth}));const B=t.ref(!1);t.watch(()=>i.modelValue,()=>{B.value=i.modelValue===i.value},{immediate:!0});function z(){n("update:modelValue",i.value)}function c(){n("update:modelValue",i.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-button",e.radioPosition]),onClick:c},[t.createElementVNode("input",{type:"radio",name:e.name,value:e.value,checked:B.value,onInput:z},null,40,Dse),t.createElementVNode("div",Lse,[t.withDirectives(t.createElementVNode("div",Fse,null,512),[[t.vShow,B.value]])]),t.createElementVNode("div",zse,[t.createElementVNode("div",Rse,t.toDisplayString(e.label),1),e.logoUrl?(t.openBlock(),t.createElementBlock("div",Vse,[t.createElementVNode("img",{src:e.logoUrl,alt:""},null,8,$se)])):t.createCommentVNode("",!0)])],2))}},SB=Ose(jse,[["__scopeId","data-v-10f54cda"]]),TB=navigator.userAgent||navigator.vendor||window.opera;function Use(e,n){let i=Array.isArray(e)&&Array.isArray(n)?e.length===n.length:!1;if(i){for(let B of e)if(!n.includes(B)){i=!1;break}}return i}function Q1(e){return e.reduce((n,i,B)=>(n[i]=B,n),{})}function EB(e,n,i){const B={statistics:n.statistics.value||0,playingAs:[...n.playingAs],matchResult:[...n.matchResult],sections:n.firstHalf.concat(n.secondHalf),requiresPlaysFiltering:n.requiresPlaysFiltering||!0};return B.teamId=i,B}function $m(e){return typeof e=="number"?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function Gse(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(TB)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(TB.substr(0,4))}function AB(e){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${e}.png`}const Qma="",Hse={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...eh("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...eu("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e=this.teamTypeSelected==="both"?["#cbee6b","#0033C5"]:this.teamTypeSelected==="homeTeam"?["#cbee6b"]:["#0033C5"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(n,i)=>n+" - <strong>"+i.w.globals.series[i.seriesIndex][i.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:n=>this.showPostMatchData?`${n} :`:`${n} (promedio)`},formatter:n=>this.showPostMatchData?Number(n):n},{title:{formatter:n=>this.showPostMatchData?`${n} :`:`${n} (promedio)`},formatter:n=>this.showPostMatchData?Number(n):n},{title:{formatter:n=>n}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return this.showLiveData?this.dataLive.map((n,i)=>({name:this.teamAcronyms[i],data:n})):this.dataStats.map((n,i)=>({name:this.teamAcronyms[i],data:n}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>$m(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>$m(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>$m(e))]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]},dataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,n)=>(e.push(n),e),[0])]},xaxisCategories(){return this.isAccumulatedType?["0'","15'","30'","45'","60'","75'","90'"]:["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return this.typeId===1},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){this.idAssetSelected===7&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,n){JSON.stringify(e)!==JSON.stringify(n)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,n)=>(e.push(n),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.8):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.7):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.6):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.5):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),this.idAssetSelected===7&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},Wse={class:"chart-trend-live container",ref:"containerChart"};function qse(e,n,i,B,z,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Wse,[(t.openBlock(),t.createBlock(m,{type:"area",options:c.chartOptions,series:c.series,key:c.key+z.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}const Yse=$i(Hse,[["render",qse],["__scopeId","data-v-c7837e23"]]),Xse=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Q8={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))}}},MB=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},IB=Q8.setup;Q8.setup=IB?(e,n)=>(MB(),IB(e,n)):MB;const Zse=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Jse=["src"],Kse={key:1,class:"text"},Qse=["src"],ele={class:"stats"},tle=Zse(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ale={class:"numstats"},nle={class:"leyend"};function rle(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",z.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,z.status&&i.typeOnOff&&c.customActive]),onClick:n[0]||(n[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,Jse)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",Kse,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,Qse)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",ele,[tle,t.createElementVNode("div",ale,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",nle,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const ile=Xse(Q8,[["render",rle],["__scopeId","data-v-fb269a1e"]]),ole={class:"gsc-dropdown__main-container__item-selected"},sle=["height","width"],lle=["stroke"],cle={class:"gsc-dropdown__items-container"},ule=["onClick"],dle={key:0,class:"gsc-dropdown__items-footer"},hle={__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(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:n}){const i=e,B=t.ref({}),z=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];n("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],n("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function r(p){z.value&&!z.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,n("input",B.value),n("update:modelValue",B.value)}function _(){m.value=!1,n("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:z,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",ole,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,lle)],8,sle))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",cle,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:d=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,ule))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",dle,[t.createVNode(t.unref(ile),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},e0a="",ple={class:"card-trend-live__dropdown-category"},fle={class:"selected-item"},mle={class:"card-trend-live__body__categories"},gle={class:"card-trend-live__body__chart"},yle=$i({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:n}){const i=e;let B=null;const z={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},c={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},m=t.ref({}),a=t.ref(null),y=t.ref(0);t.watch(()=>i.data,v=>{v&&v.subcategories&&v.subcategories.length&&(m.value=v.subcategories[0])},{immediate:!0});function f(v){m.value=v,n("update:subcategory-selected",{data:i.data,subcategorySelected:v})}function r(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{r()}),t.onUnmounted(()=>{}),(v,_)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:a,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":y.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",ple,[t.createVNode(t.unref(hle),t.mergeProps(c,{items:e.data.subcategories,"selected-item":m.value,"default-item-by-prop":{propName:"id",value:m.value.id},onInput:f}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",fle,t.toDisplayString(p.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,y.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":y.value<=760}])},[t.createElementVNode("div",mle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(p,l)=>(t.openBlock(),t.createElementBlock("div",{key:l},[t.createVNode(kB,t.mergeProps(z,{text:p.name,"is-active":m.value.id===p.id,onClick:o=>f(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",gle,[(t.openBlock(),t.createBlock(Yse,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":y.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-d2eb653a"]]),a0a="",PB=e=>(t.pushScopeId("data-v-00759835"),e=e(),t.popScopeId(),e),vle={class:"trending-live__header__radios"},_le={class:"trending-live__header__radios__group"},ble={class:"trending-live__header__switch"},xle={class:"trending-live__header__switch__control"},wle=PB(()=>t.createElementVNode("span",null,"Acumulado",-1)),kle=PB(()=>t.createElementVNode("span",null,"Por periodo",-1)),Cle={class:"trending-live__body"},Sle=$i({__name:"TrendLive",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const n=e,i=ix();let B=null;const z=t.ref(!1),c=t.ref("both"),m=t.ref([]),a=t.ref(null),y=t.ref(0),f=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:n.game.homeTeam?`${n.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:n.game.homeTeam?AB(n.game.homeTeam.team_id):""},{label:n.game.awayTeam?`${n.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:n.game.awayTeam?AB(n.game.awayTeam.team_id):""}]),r=t.computed(()=>c.value==="both"?"both":`${c.value==="home"?"home":"visiting"}Team`),v=t.computed(()=>z.value?2:1),_=t.computed(()=>n.game.homeTeam?c.value==="both"?[n.game.homeTeam.team_id,n.game.awayTeam.team_id]:[n.game[`${c.value}Team`].team_id]:[0,0]),p=t.computed(()=>n.game.homeTeam?c.value==="both"?[n.game.homeTeam.acronym,n.game.awayTeam.acronym]:[n.game[`${c.value}Team`].acronym]:[0,0]),l=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);t.watch(()=>i.getters["nextGeneral/arrayFilledDataSortedByPriority"],d=>{m.value.length===0&&(d&&d.length?m.value=d.map((u,h)=>{const g=Object.values(u.subcategories);return{id:`tL${h}`,...u,subcategories:g,objectGraphProps:{objectSubcategorySelected:g[0],numberCategoryId:g[0].id}}}):m.value=[])},{immediate:!0});function o({data:d,subcategorySelected:u}){d.objectGraphProps.numberCategoryId=u,d.objectGraphProps.objectSubcategorySelected=u}function s(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{s()}),(d,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:a,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":y.value<580}])},[t.createElementVNode("div",vle,[t.createElementVNode("div",_le,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{key:g},[t.createVNode(t.unref(SB),t.mergeProps({modelValue:c.value,"onUpdate:modelValue":u[0]||(u[0]=b=>c.value=b)},h),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",ble,[t.createElementVNode("div",xle,[wle,t.createVNode(CB,{modelValue:z.value,"onUpdate:modelValue":u[1]||(u[1]=h=>z.value=h)},null,8,["modelValue"]),kle])])],2),t.createElementVNode("div",Cle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:g},[t.createVNode(yle,{data:h,"trend-type-id":v.value,"team-type-selected":r.value,"team-ids":_.value,"team-acronyms":p.value,"trend-types":l.value,"onUpdate:subcategorySelected":o},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-00759835"]]),r0a="",Tle={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Ele=e=>(t.pushScopeId("data-v-49b2380c"),e=e(),t.popScopeId(),e),Ale={class:"custom-progress-bar"},Mle={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},Ile=Ele(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),Ple=["d","fill"];function Ble(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",Ale,[(t.openBlock(),t.createElementBlock("svg",Mle,[Ile,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Ple)]))])}const Nle=$i(Tle,[["render",Ble],["__scopeId","data-v-49b2380c"]]),i0a="",Ole={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...eh("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Dle=e=>(t.pushScopeId("data-v-054b26d4"),e=e(),t.popScopeId(),e),Lle={class:"custom-progress-bar"},Fle={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},zle=Dle(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),Rle=["d","fill"];function Vle(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",Lle,[(t.openBlock(),t.createElementBlock("svg",Fle,[zle,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Rle)]))])}const $le=$i(Ole,[["render",Vle],["__scopeId","data-v-054b26d4"]]);function BB(e,n){return function(){return e.apply(n,arguments)}}const{toString:jle}=Object.prototype,{getPrototypeOf:ek}=Object,Mx=(e=>n=>{const i=jle.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Lp=e=>(e=e.toLowerCase(),n=>Mx(n)===e),Ix=e=>n=>typeof n===e,{isArray:ey}=Array,Xv=Ix("undefined");function Ule(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&vh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NB=Lp("ArrayBuffer");function Gle(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NB(e.buffer),n}const Hle=Ix("string"),vh=Ix("function"),OB=Ix("number"),Px=e=>e!==null&&typeof e=="object",Wle=e=>e===!0||e===!1,Bx=e=>{if(Mx(e)!=="object")return!1;const n=ek(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qle=Lp("Date"),Yle=Lp("File"),Xle=Lp("Blob"),Zle=Lp("FileList"),Jle=e=>Px(e)&&vh(e.pipe),Kle=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||vh(e.append)&&((n=Mx(e))==="formdata"||n==="object"&&vh(e.toString)&&e.toString()==="[object FormData]"))},Qle=Lp("URLSearchParams"),[ece,tce,ace,nce]=["ReadableStream","Request","Response","Headers"].map(Lp),rce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,z;if(typeof e!="object"&&(e=[e]),ey(e))for(B=0,z=e.length;B<z;B++)n.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],n.call(null,e[a],a,e)}}function DB(e,n){n=n.toLowerCase();const i=Object.keys(e);let B=i.length,z;for(;B-- >0;)if(z=i[B],n===z.toLowerCase())return z;return null}const ag=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LB=e=>!Xv(e)&&e!==ag;function tk(){const{caseless:e}=LB(this)&&this||{},n={},i=(B,z)=>{const c=e&&DB(n,z)||z;Bx(n[c])&&Bx(B)?n[c]=tk(n[c],B):Bx(B)?n[c]=tk({},B):ey(B)?n[c]=B.slice():n[c]=B};for(let B=0,z=arguments.length;B<z;B++)arguments[B]&&Zv(arguments[B],i);return n}const ice=(e,n,i,{allOwnKeys:B}={})=>(Zv(n,(z,c)=>{i&&vh(z)?e[c]=BB(z,i):e[c]=z},{allOwnKeys:B}),e),oce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sce=(e,n,i,B)=>{e.prototype=Object.create(n.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},lce=(e,n,i,B)=>{let z,c,m;const a={};if(n=n||{},e==null)return n;do{for(z=Object.getOwnPropertyNames(e),c=z.length;c-- >0;)m=z[c],(!B||B(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=i!==!1&&ek(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},cce=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const B=e.indexOf(n,i);return B!==-1&&B===i},uce=e=>{if(!e)return null;if(ey(e))return e;let n=e.length;if(!OB(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},dce=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&ek(Uint8Array)),hce=(e,n)=>{const B=(e&&e[Symbol.iterator]).call(e);let z;for(;(z=B.next())&&!z.done;){const c=z.value;n.call(e,c[0],c[1])}},pce=(e,n)=>{let i;const B=[];for(;(i=e.exec(n))!==null;)B.push(i);return B},fce=Lp("HTMLFormElement"),mce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,B,z){return B.toUpperCase()+z}),FB=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),gce=Lp("RegExp"),zB=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(z,c)=>{let m;(m=n(z,c,e))!==!1&&(B[c]=m||z)}),Object.defineProperties(e,B)},yce=e=>{zB(e,(n,i)=>{if(vh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(vh(B)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},vce=(e,n)=>{const i={},B=z=>{z.forEach(c=>{i[c]=!0})};return ey(e)?B(e):B(String(e).split(n)),i},_ce=()=>{},bce=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,ak="abcdefghijklmnopqrstuvwxyz",RB="0123456789",VB={DIGIT:RB,ALPHA:ak,ALPHA_DIGIT:ak+ak.toUpperCase()+RB},xce=(e=16,n=VB.ALPHA_DIGIT)=>{let i="";const{length:B}=n;for(;e--;)i+=n[Math.random()*B|0];return i};function wce(e){return!!(e&&vh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kce=e=>{const n=new Array(10),i=(B,z)=>{if(Px(B)){if(n.indexOf(B)>=0)return;if(!("toJSON"in B)){n[z]=B;const c=ey(B)?[]:{};return Zv(B,(m,a)=>{const y=i(m,z+1);!Xv(y)&&(c[a]=y)}),n[z]=void 0,c}}return B};return i(e,0)},Cce=Lp("AsyncFunction"),Sce=e=>e&&(Px(e)||vh(e))&&vh(e.then)&&vh(e.catch),$B=((e,n)=>e?setImmediate:n?((i,B)=>(ag.addEventListener("message",({source:z,data:c})=>{z===ag&&c===i&&B.length&&B.shift()()},!1),z=>{B.push(z),ag.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",vh(ag.postMessage)),Tce=typeof queueMicrotask<"u"?queueMicrotask.bind(ag):typeof process<"u"&&process.nextTick||$B,cr={isArray:ey,isArrayBuffer:NB,isBuffer:Ule,isFormData:Kle,isArrayBufferView:Gle,isString:Hle,isNumber:OB,isBoolean:Wle,isObject:Px,isPlainObject:Bx,isReadableStream:ece,isRequest:tce,isResponse:ace,isHeaders:nce,isUndefined:Xv,isDate:qle,isFile:Yle,isBlob:Xle,isRegExp:gce,isFunction:vh,isStream:Jle,isURLSearchParams:Qle,isTypedArray:dce,isFileList:Zle,forEach:Zv,merge:tk,extend:ice,trim:rce,stripBOM:oce,inherits:sce,toFlatObject:lce,kindOf:Mx,kindOfTest:Lp,endsWith:cce,toArray:uce,forEachEntry:hce,matchAll:pce,isHTMLForm:fce,hasOwnProperty:FB,hasOwnProp:FB,reduceDescriptors:zB,freezeMethods:yce,toObjectSet:vce,toCamelCase:mce,noop:_ce,toFiniteNumber:bce,findKey:DB,global:ag,isContextDefined:LB,ALPHABET:VB,generateString:xce,isSpecCompliantForm:wce,toJSONObject:kce,isAsyncFn:Cce,isThenable:Sce,setImmediate:$B,asap:Tce};function qo(e,n,i,B,z){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),B&&(this.request=B),z&&(this.response=z,this.status=z.status?z.status:null)}cr.inherits(qo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:cr.toJSONObject(this.config),code:this.code,status:this.status}}});const jB=qo.prototype,UB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UB[e]={value:e}}),Object.defineProperties(qo,UB),Object.defineProperty(jB,"isAxiosError",{value:!0}),qo.from=(e,n,i,B,z,c)=>{const m=Object.create(jB);return cr.toFlatObject(e,m,function(y){return y!==Error.prototype},a=>a!=="isAxiosError"),qo.call(m,e.message,n,i,B,z),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Ece=null;function nk(e){return cr.isPlainObject(e)||cr.isArray(e)}function GB(e){return cr.endsWith(e,"[]")?e.slice(0,-2):e}function HB(e,n,i){return e?e.concat(n).map(function(z,c){return z=GB(z),!i&&c?"["+z+"]":z}).join(i?".":""):n}function Ace(e){return cr.isArray(e)&&!e.some(nk)}const Mce=cr.toFlatObject(cr,{},null,function(n){return/^is[A-Z]/.test(n)});function Nx(e,n,i){if(!cr.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=cr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,s){return!cr.isUndefined(s[o])});const B=i.metaTokens,z=i.visitor||r,c=i.dots,m=i.indexes,y=(i.Blob||typeof Blob<"u"&&Blob)&&cr.isSpecCompliantForm(n);if(!cr.isFunction(z))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(cr.isDate(l))return l.toISOString();if(!y&&cr.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return cr.isArrayBuffer(l)||cr.isTypedArray(l)?y&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function r(l,o,s){let d=l;if(l&&!s&&typeof l=="object"){if(cr.endsWith(o,"{}"))o=B?o:o.slice(0,-2),l=JSON.stringify(l);else if(cr.isArray(l)&&Ace(l)||(cr.isFileList(l)||cr.endsWith(o,"[]"))&&(d=cr.toArray(l)))return o=GB(o),d.forEach(function(h,g){!(cr.isUndefined(h)||h===null)&&n.append(m===!0?HB([o],g,c):m===null?o:o+"[]",f(h))}),!1}return nk(l)?!0:(n.append(HB(s,o,c),f(l)),!1)}const v=[],_=Object.assign(Mce,{defaultVisitor:r,convertValue:f,isVisitable:nk});function p(l,o){if(!cr.isUndefined(l)){if(v.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));v.push(l),cr.forEach(l,function(d,u){(!(cr.isUndefined(d)||d===null)&&z.call(n,d,cr.isString(u)?u.trim():u,o,_))===!0&&p(d,o?o.concat(u):[u])}),v.pop()}}if(!cr.isObject(e))throw new TypeError("data must be an object");return p(e),n}function WB(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(B){return n[B]})}function rk(e,n){this._pairs=[],e&&Nx(e,this,n)}const qB=rk.prototype;qB.append=function(n,i){this._pairs.push([n,i])},qB.toString=function(n){const i=n?function(B){return n.call(this,B,WB)}:WB;return this._pairs.map(function(z){return i(z[0])+"="+i(z[1])},"").join("&")};function Ice(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YB(e,n,i){if(!n)return e;const B=i&&i.encode||Ice,z=i&&i.serialize;let c;if(z?c=z(n,i):c=cr.isURLSearchParams(n)?n.toString():new rk(n,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Pce{constructor(){this.handlers=[]}use(n,i,B){return this.handlers.push({fulfilled:n,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){cr.forEach(this.handlers,function(B){B!==null&&n(B)})}}const XB=Pce,ZB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bce={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:rk,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ik=typeof window<"u"&&typeof document<"u",ok=typeof navigator=="object"&&navigator||void 0,Nce=ik&&(!ok||["ReactNative","NativeScript","NS"].indexOf(ok.product)<0),Oce=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dce=ik&&window.location.href||"http://localhost",th={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ik,hasStandardBrowserEnv:Nce,hasStandardBrowserWebWorkerEnv:Oce,navigator:ok,origin:Dce},Symbol.toStringTag,{value:"Module"})),...Bce};function Lce(e,n){return Nx(e,new th.classes.URLSearchParams,Object.assign({visitor:function(i,B,z,c){return th.isNode&&cr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function Fce(e){return cr.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function zce(e){const n={},i=Object.keys(e);let B;const z=i.length;let c;for(B=0;B<z;B++)c=i[B],n[c]=e[c];return n}function JB(e){function n(i,B,z,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&cr.isArray(z)?z.length:m,y?(cr.hasOwnProp(z,m)?z[m]=[z[m],B]:z[m]=B,!a):((!z[m]||!cr.isObject(z[m]))&&(z[m]=[]),n(i,B,z[m],c)&&cr.isArray(z[m])&&(z[m]=zce(z[m])),!a)}if(cr.isFormData(e)&&cr.isFunction(e.entries)){const i={};return cr.forEachEntry(e,(B,z)=>{n(Fce(B),z,i,0)}),i}return null}function Rce(e,n,i){if(cr.isString(e))try{return(n||JSON.parse)(e),cr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const sk={transitional:ZB,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const B=i.getContentType()||"",z=B.indexOf("application/json")>-1,c=cr.isObject(n);if(c&&cr.isHTMLForm(n)&&(n=new FormData(n)),cr.isFormData(n))return z?JSON.stringify(JB(n)):n;if(cr.isArrayBuffer(n)||cr.isBuffer(n)||cr.isStream(n)||cr.isFile(n)||cr.isBlob(n)||cr.isReadableStream(n))return n;if(cr.isArrayBufferView(n))return n.buffer;if(cr.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let a;if(c){if(B.indexOf("application/x-www-form-urlencoded")>-1)return Lce(n,this.formSerializer).toString();if((a=cr.isFileList(n))||B.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Nx(a?{"files[]":n}:n,y&&new y,this.formSerializer)}}return c||z?(i.setContentType("application/json",!1),Rce(n)):n}],transformResponse:[function(n){const i=this.transitional||sk.transitional,B=i&&i.forcedJSONParsing,z=this.responseType==="json";if(cr.isResponse(n)||cr.isReadableStream(n))return n;if(n&&cr.isString(n)&&(B&&!this.responseType||z)){const m=!(i&&i.silentJSONParsing)&&z;try{return JSON.parse(n)}catch(a){if(m)throw a.name==="SyntaxError"?qo.from(a,qo.ERR_BAD_RESPONSE,this,null,this.response):a}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:th.classes.FormData,Blob:th.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cr.forEach(["delete","get","head","post","put","patch"],e=>{sk.headers[e]={}});const lk=sk,Vce=cr.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"]),$ce=e=>{const n={};let i,B,z;return e&&e.split(`
|
|
19
|
+
`),this.area.value=e.replace(uoe,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&a()}:this.iframe.onload=a};const poe=Kre(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Y8=$8(),foe=tg,moe=W1,goe=wx,yoe=eB,voe=Sx("engine.io-client:websocket"),Ex,X8;if(typeof WebSocket<"u"?Ex=WebSocket:typeof self<"u"&&(Ex=self.WebSocket||self.MozWebSocket),typeof window>"u")try{X8=poe}catch{}var X1=Ex||X8,_oe=Zh;function Zh(e){var n=e&&e.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=Ex&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(X1=X8),Y8.call(this,e)}goe(Zh,Y8),Zh.prototype.name="websocket",Zh.prototype.supportsBinary=!0,Zh.prototype.doOpen=function(){if(this.check()){var e=this.uri(),n=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new X1(e,n):new X1(e):new X1(e,n,i)}catch(B){return this.emit("error",B)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},Zh.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(n){e.onData(n.data)},this.ws.onerror=function(n){e.onError("websocket error",n)}},Zh.prototype.write=function(e){var n=this;this.writable=!1;for(var i=e.length,B=0,z=i;B<z;B++)(function(m){foe.encodePacket(m,n.supportsBinary,function(a){if(!n.usingBrowserWebSocket){var y={};if(m.options&&(y.compress=m.options.compress),n.perMessageDeflate){var f=typeof a=="string"?Buffer.byteLength(a):a.length;f<n.perMessageDeflate.threshold&&(y.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(a):n.ws.send(a,y)}catch{voe("websocket closed before onclose event")}--i||c()})})(e[B]);function c(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}},Zh.prototype.onClose=function(){Y8.prototype.onClose.call(this)},Zh.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},Zh.prototype.uri=function(){var e=this.query||{},n=this.secure?"wss":"ws",i="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=yoe()),this.supportsBinary||(e.b64=1),e=moe.encode(e),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return n+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e},Zh.prototype.check=function(){return!!X1&&!("__initialize"in X1&&this.name===Zh.prototype.name)};var boe=L8,xoe=soe,woe=coe,koe=_oe;yx.polling=Coe,yx.websocket=koe;function Coe(e){var n,i=!1,B=!1,z=e.jsonp!==!1;if(typeof location<"u"){var c=location.protocol==="https:",m=location.port;m||(m=c?443:80),i=e.hostname!==location.hostname||m!==e.port,B=e.secure!==c}if(e.xdomain=i,e.xscheme=B,n=new boe(e),"open"in n&&!e.forceJSONP)return new xoe(e);if(!z)throw new Error("JSONP disabled");return new woe(e)}var Soe=[].indexOf,lB=function(e,n){if(Soe)return e.indexOf(n);for(var i=0;i<e.length;++i)if(e[i]===n)return i;return-1},Toe=yx,Eoe=G1,Iu=Sx("engine.io-client:socket"),Aoe=lB,cB=tg,uB=FP,Moe=W1,Ioe=ml;function ml(e,n){if(!(this instanceof ml))return new ml(e,n);n=n||{},e&&typeof e=="object"&&(n=e,e=null),e?(e=uB(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=uB(n.host).host),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=Moe.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||void 0,this.key=n.key||void 0,this.passphrase=n.passphrase||void 0,this.cert=n.cert||void 0,this.ca=n.ca||void 0,this.ciphers=n.ciphers||void 0,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}ml.priorWebsocketSuccess=!1,Eoe(ml.prototype),ml.protocol=cB.protocol,ml.Socket=ml,ml.Transport=$8(),ml.transports=yx,ml.parser=tg,ml.prototype.createTransport=function(e){Iu('creating transport "%s"',e);var n=Poe(this.query);n.EIO=cB.protocol,n.transport=e;var i=this.transportOptions[e]||{};this.id&&(n.sid=this.id);var B=new Toe[e]({query:n,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return B};function Poe(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}ml.prototype.open=function(){var e;if(this.rememberUpgrade&&ml.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},ml.prototype.setTransport=function(e){Iu("setting transport %s",e.name);var n=this;this.transport&&(Iu("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){n.onDrain()}).on("packet",function(i){n.onPacket(i)}).on("error",function(i){n.onError(i)}).on("close",function(){n.onClose("transport close")})},ml.prototype.probe=function(e){Iu('probing transport "%s"',e);var n=this.createTransport(e,{probe:1}),i=!1,B=this;ml.priorWebsocketSuccess=!1;function z(){if(B.onlyBinaryUpgrades){var v=!this.supportsBinary&&B.transport.supportsBinary;i=i||v}i||(Iu('probe transport "%s" opened',e),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(_){if(!i)if(_.type==="pong"&&_.data==="probe"){if(Iu('probe transport "%s" pong',e),B.upgrading=!0,B.emit("upgrading",n),!n)return;ml.priorWebsocketSuccess=n.name==="websocket",Iu('pausing current transport "%s"',B.transport.name),B.transport.pause(function(){i||B.readyState!=="closed"&&(Iu("changing transport and sending upgrade packet"),r(),B.setTransport(n),n.send([{type:"upgrade"}]),B.emit("upgrade",n),n=null,B.upgrading=!1,B.flush())})}else{Iu('probe transport "%s" failed',e);var p=new Error("probe error");p.transport=n.name,B.emit("upgradeError",p)}}))}function c(){i||(i=!0,r(),n.close(),n=null)}function m(v){var _=new Error("probe error: "+v);_.transport=n.name,c(),Iu('probe transport "%s" failed because of error: %s',e,v),B.emit("upgradeError",_)}function a(){m("transport closed")}function y(){m("socket closed")}function f(v){n&&v.name!==n.name&&(Iu('"%s" works - aborting "%s"',v.name,n.name),c())}function r(){n.removeListener("open",z),n.removeListener("error",m),n.removeListener("close",a),B.removeListener("close",y),B.removeListener("upgrading",f)}n.once("open",z),n.once("error",m),n.once("close",a),this.once("close",y),this.once("upgrading",f),n.open()},ml.prototype.onOpen=function(){if(Iu("socket open"),this.readyState="open",ml.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Iu("starting upgrade probes");for(var e=0,n=this.upgrades.length;e<n;e++)this.probe(this.upgrades[e])}},ml.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Iu('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Iu('packet received with socket readyState "%s"',this.readyState)},ml.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},ml.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},e||n.pingInterval+n.pingTimeout)},ml.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Iu("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},ml.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},ml.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},ml.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Iu("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},ml.prototype.write=ml.prototype.send=function(e,n,i){return this.sendPacket("message",e,n,i),this},ml.prototype.sendPacket=function(e,n,i,B){if(typeof n=="function"&&(B=n,n=void 0),typeof i=="function"&&(B=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var z={type:e,data:n,options:i};this.emit("packetCreate",z),this.writeBuffer.push(z),B&&this.once("flush",B),this.flush()}},ml.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?B():n()}):this.upgrading?B():n()}function n(){e.onClose("forced close"),Iu("socket closing - telling transport to close"),e.transport.close()}function i(){e.removeListener("upgrade",i),e.removeListener("upgradeError",i),n()}function B(){e.once("upgrade",i),e.once("upgradeError",i)}return this},ml.prototype.onError=function(e){Iu("socket error %j",e),ml.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},ml.prototype.onClose=function(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Iu('socket close with reason: "%s"',e);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,n),i.writeBuffer=[],i.prevBufferLen=0}},ml.prototype.filterUpgrades=function(e){for(var n=[],i=0,B=e.length;i<B;i++)~Aoe(this.transports,e[i])&&n.push(e[i]);return n},N8.exports=Ioe,N8.exports.parser=tg;var Boe=N8.exports,dB={exports:{}},Noe=Ooe;function Ooe(e,n){var i=[];n=n||0;for(var B=n||0;B<e.length;B++)i[B-n]=e[B];return i}var hB=Doe;function Doe(e,n,i){return e.on(n,i),{destroy:function(){e.removeListener(n,i)}}}var pB=[].slice,fB=function(e,n){if(typeof n=="string"&&(n=e[n]),typeof n!="function")throw new Error("bind() requires a function");var i=pB.call(arguments,2);return function(){return n.apply(e,i.concat(pB.call(arguments)))}};(function(e,n){var i=fx,B=G1,z=Noe,c=hB,m=fB,a=px("socket.io-client:socket"),y=W1,f=GP;e.exports=_;var r={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=B.prototype.emit;function _(p,l,o){this.io=p,this.nsp=l,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}B(_.prototype),_.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[c(p,"open",m(this,"onopen")),c(p,"packet",m(this,"onpacket")),c(p,"close",m(this,"onclose"))]}},_.prototype.open=_.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},_.prototype.send=function(){var p=z(arguments);return p.unshift("message"),this.emit.apply(this,p),this},_.prototype.emit=function(p){if(r.hasOwnProperty(p))return v.apply(this,arguments),this;var l=z(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:f(l))?i.BINARY_EVENT:i.EVENT,data:l};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof l[l.length-1]=="function"&&(a("emitting packet with ack id %d",this.ids),this.acks[this.ids]=l.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},_.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},_.prototype.onopen=function(){if(a("transport is open - connecting"),this.nsp!=="/")if(this.query){var p=typeof this.query=="object"?y.encode(this.query):this.query;a("sending connect packet with query %s",p),this.packet({type:i.CONNECT,query:p})}else this.packet({type:i.CONNECT})},_.prototype.onclose=function(p){a("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},_.prototype.onpacket=function(p){var l=p.nsp===this.nsp,o=p.type===i.ERROR&&p.nsp==="/";if(!(!l&&!o))switch(p.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(p);break;case i.BINARY_EVENT:this.onevent(p);break;case i.ACK:this.onack(p);break;case i.BINARY_ACK:this.onack(p);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",p.data);break}},_.prototype.onevent=function(p){var l=p.data||[];a("emitting event %j",l),p.id!=null&&(a("attaching ack callback to event"),l.push(this.ack(p.id))),this.connected?v.apply(this,l):this.receiveBuffer.push(l)},_.prototype.ack=function(p){var l=this,o=!1;return function(){if(!o){o=!0;var s=z(arguments);a("sending ack %j",s),l.packet({type:f(s)?i.BINARY_ACK:i.ACK,id:p,data:s})}}},_.prototype.onack=function(p){var l=this.acks[p.id];typeof l=="function"?(a("calling ack %s with %j",p.id,p.data),l.apply(this,p.data),delete this.acks[p.id]):a("bad ack %s",p.id)},_.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},_.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)v.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},_.prototype.ondisconnect=function(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},_.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},_.prototype.close=_.prototype.disconnect=function(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},_.prototype.compress=function(p){return this.flags.compress=p,this},_.prototype.binary=function(p){return this.flags.binary=p,this}})(dB);var mB=dB.exports,Loe=Z1;function Z1(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}Z1.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+i:e-i}return Math.min(e,this.max)|0},Z1.prototype.reset=function(){this.attempts=0},Z1.prototype.setMin=function(e){this.ms=e},Z1.prototype.setMax=function(e){this.max=e},Z1.prototype.setJitter=function(e){this.jitter=e};var Foe=Boe,zoe=mB,Roe=G1,Voe=fx,Vm=hB,J1=fB,Bd=px("socket.io-client:manager"),gB=lB,$oe=Loe,yB=Object.prototype.hasOwnProperty,vB=Yl;function Yl(e,n){if(!(this instanceof Yl))return new Yl(e,n);e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new $oe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=n.parser||Voe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}Yl.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)yB.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},Yl.prototype.updateSocketIds=function(){for(var e in this.nsps)yB.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},Yl.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},Roe(Yl.prototype),Yl.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},Yl.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},Yl.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},Yl.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},Yl.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},Yl.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},Yl.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},Yl.prototype.open=Yl.prototype.connect=function(e,n){if(Bd("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Bd("opening %s",this.uri),this.engine=Foe(this.uri,this.opts);var i=this.engine,B=this;this.readyState="opening",this.skipReconnect=!1;var z=Vm(i,"open",function(){B.onopen(),e&&e()}),c=Vm(i,"error",function(y){if(Bd("connect_error"),B.cleanup(),B.readyState="closed",B.emitAll("connect_error",y),e){var f=new Error("Connection error");f.data=y,e(f)}else B.maybeReconnectOnOpen()});if(this._timeout!==!1){var m=this._timeout;Bd("connect attempt will timeout after %d",m),m===0&&z.destroy();var a=setTimeout(function(){Bd("connect attempt timed out after %d",m),z.destroy(),i.close(),i.emit("error","timeout"),B.emitAll("connect_timeout",m)},m);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(z),this.subs.push(c),this},Yl.prototype.onopen=function(){Bd("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Vm(e,"data",J1(this,"ondata"))),this.subs.push(Vm(e,"ping",J1(this,"onping"))),this.subs.push(Vm(e,"pong",J1(this,"onpong"))),this.subs.push(Vm(e,"error",J1(this,"onerror"))),this.subs.push(Vm(e,"close",J1(this,"onclose"))),this.subs.push(Vm(this.decoder,"decoded",J1(this,"ondecoded")))},Yl.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Yl.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Yl.prototype.ondata=function(e){this.decoder.add(e)},Yl.prototype.ondecoded=function(e){this.emit("packet",e)},Yl.prototype.onerror=function(e){Bd("error",e),this.emitAll("error",e)},Yl.prototype.socket=function(e,n){var i=this.nsps[e];if(!i){i=new zoe(this,e,n),this.nsps[e]=i;var B=this;i.on("connecting",z),i.on("connect",function(){i.id=B.generateId(e)}),this.autoConnect&&z()}function z(){~gB(B.connecting,i)||B.connecting.push(i)}return i},Yl.prototype.destroy=function(e){var n=gB(this.connecting,e);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()},Yl.prototype.packet=function(e){Bd("writing packet %j",e);var n=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),n.encoding?n.packetBuffer.push(e):(n.encoding=!0,this.encoder.encode(e,function(i){for(var B=0;B<i.length;B++)n.engine.write(i[B],e.options);n.encoding=!1,n.processPacketQueue()}))},Yl.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},Yl.prototype.cleanup=function(){Bd("cleanup");for(var e=this.subs.length,n=0;n<e;n++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Yl.prototype.close=Yl.prototype.disconnect=function(){Bd("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Yl.prototype.onclose=function(e){Bd("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},Yl.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Bd("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();Bd("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var i=setTimeout(function(){e.skipReconnect||(Bd("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(B){B?(Bd("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",B.data)):(Bd("reconnect success"),e.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(i)}})}},Yl.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,n){var i=uie,B=fx,z=vB,c=px("socket.io-client");e.exports=n=a;var m=n.managers={};function a(y,f){typeof y=="object"&&(f=y,y=void 0),f=f||{};var r=i(y),v=r.source,_=r.id,p=r.path,l=m[_]&&p in m[_].nsps,o=f.forceNew||f["force new connection"]||f.multiplex===!1||l,s;return o?(c("ignoring socket cache for %s",v),s=z(v,f)):(m[_]||(c("new io instance for %s",v),m[_]=z(v,f)),s=m[_]),r.query&&!f.query&&(f.query=r.query),s.socket(r.path,f)}n.protocol=B.protocol,n.connect=a,n.Manager=vB,n.Socket=mB}(C8,C8.exports);var joe=C8.exports;const Uoe=k8(joe);var Z8={exports:{}};function J8(){}J8.prototype={on:function(e,n,i){var B=this.e||(this.e={});return(B[e]||(B[e]=[])).push({fn:n,ctx:i}),this},once:function(e,n,i){var B=this;function z(){B.off(e,z),n.apply(i,arguments)}return z._=n,this.on(e,z,i)},emit:function(e){var n=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),B=0,z=i.length;for(B;B<z;B++)i[B].fn.apply(i[B].ctx,n);return this},off:function(e,n){var i=this.e||(this.e={}),B=i[e],z=[];if(B&&n)for(var c=0,m=B.length;c<m;c++)B[c].fn!==n&&B[c].fn._!==n&&z.push(B[c]);return z.length?i[e]=z:delete i[e],this}},Z8.exports=J8,Z8.exports.TinyEmitter=J8;var Goe=Z8.exports,Hoe=Goe,Woe=new Hoe;const Jh=k8(Woe),qoe="https://golstats-live-server-sockets.azurewebsites.net";let _B="",Kh=Uoe(qoe,{autoConnect:!1,transports:["websocket"]});function bB(){return Kh}Kh.on("connect",()=>{Jh.emit("socket-connected")}),Kh.on("disconnect",()=>{Jh.emit("socket-disconnected")}),Kh.on("reconnect",()=>{Jh.emit("socket-reconnected")});function xB(){Kh.disconnected&&Kh.connect()}function wB(){Kh.connected&&(K8(),Kh.disconnect())}function Yoe(e){Kh.connected&&Kh.emit("subscribe",{channel:e})}function K8(){Kh.connected&&_B&&Kh.emit("unsubscribe",{channel:_B})}const Gma="",$i=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},kB=$i({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--white-space":i.whiteSpace,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function z(){n("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:z},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-bb7f8e4d"]]),Xoe=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Zoe={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":y.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),z=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),y=t.computed(()=>z.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==z.value&&(z.value=p)},{immediate:!0}),t.watch(z,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,d=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${d}px`}function r(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function v(){z.value=!z.value,n("update:modelValue",z.value)}function _(){z.value=!1,n("update:modelValue",z.value)}return t.onMounted(()=>{t.nextTick(()=>{r()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:v},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,z.value]])]),_:3})],4)],64))}},Joe=Xoe(Zoe,[["__scopeId","data-v-2f344053"]]),Wma="",Koe=(e=>(t.pushScopeId("data-v-2a796a00"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),Qoe={class:"button__text"},ese={key:0},tse={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ase=["fill"],nse=$i({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const n=e,i=t.computed(()=>({"--height":n.height,"--width":n.width,"--text-font-family":n.textFontFamily,"--text-font-size":n.textFontSize,"--background-color":n.backgroundColor,"--border-radius":n.borderRadius,"--border-color":n.isActive?n.borderColorActive:n.borderColor,"--border-width":n.borderWidth,"--padding":n.padding,"--font-color":n.fontColor})),B=t.computed(()=>({"--info-background-color":n.infoBackgroundColor,"--info-border-color":n.infoBorderColor,"--info-border-radius":n.infoBorderRadius,"--info-font-family":n.infoFontFamily,"--info-font-size":n.infoFontSize,"--info-font-color":n.infoFontColor,"--info-height":n.infoHeight,"--info-width":n.infoWidth}));return(z,c)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[Koe,t.createElementVNode("div",Qoe,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(B.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",ese,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",tse,[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,ase)]))],2)],4))}},[["__scopeId","data-v-2a796a00"]]),rse=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},ise={key:1},ose={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sse=["fill"],lse={key:0,class:"checkbox__teams"},cse={class:"checkbox__teams__logo"},use=["src"],dse={class:"checkbox__teams__logo"},hse=["src"],pse={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),z=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,n("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(z.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",ise,[(t.openBlock(),t.createElementBlock("svg",ose,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,sse)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",lse,[t.createElementVNode("div",cse,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,use)]),t.createElementVNode("div",dse,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,hse)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},K1=rse(pse,[["__scopeId","data-v-bcf3bcc6"]]),Xma="",Ax=e=>(t.pushScopeId("data-v-ce334c17"),e=e(),t.popScopeId(),e),fse={class:"details__header"},mse=Ax(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gse={class:"details__header__checkbox"},yse={class:"details__body"},vse={class:"details__body__playing-as"},_se=["onClick"],bse={class:"details__header"},xse=Ax(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wse={class:"details__header__checkbox"},kse={class:"details__body"},Cse=Ax(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Sse={class:"details__body__game-section"},Tse=["onClick"],Ese={class:"details__body"},Ase=Ax(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mse={class:"details__body__game-section"},Ise=["onClick"],Pse=$i({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2321d9a1":e.buttonsBackgroundColor,ccabcbfc:e.buttonsTextColor,"05a0a474":e.buttonsBorderWidth,"07cea13a":e.buttonsBorderColor,"67fac807":e.buttonsBackgroundColorActive,"728f7ba8":e.buttonsTextColorActive,"12a02c6c":e.buttonsBorderWidthActive,"5392776e":e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fse,[mse,t.createElementVNode("div",gse,[t.createVNode(t.unref(K1),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",yse,[t.createElementVNode("div",vse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_se))),128))])]),t.createElementVNode("div",bse,[xse,t.createElementVNode("div",wse,[t.createVNode(t.unref(K1),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kse,[Cse,t.createElementVNode("div",Sse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tse))),128))])]),t.createElementVNode("div",Ese,[Ase,t.createElementVNode("div",Mse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ise))),128))])])],4))}},[["__scopeId","data-v-ce334c17"]]),Bse={class:"statistics-filter-button"},Nse={__name:"StatisticsFilterButton",setup(e){const n=t.ref(!1);return(i,B)=>(t.openBlock(),t.createElementBlock("div",Bse,[t.createVNode(t.unref(Joe),{modelValue:n.value,"onUpdate:modelValue":B[0]||(B[0]=z=>n.value=z),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(nse,{text:"Filtros","is-active":n.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(Pse)]),_:1},8,["modelValue"])]))}},Jma="",CB=$i({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{z()},{immediate:!0});function z(){B.value&&(B.value.checked=i.modelValue)}function c(m){n("update:modelValue",m.target.checked)}return t.onMounted(()=>{z()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),Ose=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Dse=["name","value","checked"],Lse={class:"radio-button__radio"},Fse={class:"radio-button__radio__circle"},zse={class:"radio-button__label-logo"},Rse={class:"radio-button__label-logo__label"},Vse={key:0,class:"radio-button__label-logo__logo"},$se=["src"],jse={__name:"GSC-RadioButton",props:{label:{type:String,default:"Label"},labelColor:{type:String,default:"white"},labelFontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},name:{type:String,default:"name"},value:{type:[String,Number],required:!0},modelValue:{type:[String,Number],default:""},logoUrl:{type:String,default:""},radioPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},radioHeightAndWidth:{type:String,default:"16px"},radioBorderWidth:{type:String,default:"1px"},radioBorderColor:{type:String,default:"#FFFFFF"},radioCircleColor:{type:String,default:"#CBEE6B"},radioCircleHeightAndWidth:{type:String,default:"8px"},logoHeightAndWidth:{type:String,default:"24px"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;t.useCssVars(m=>({"09b3bbfe":e.radioHeightAndWidth,b2c41162:e.radioBorderWidth,b4f20e28:e.radioBorderColor,"999f2a9e":e.radioCircleHeightAndWidth,"74ee76c8":e.radioCircleColor,eb045952:e.labelFontFamily,"61eeb8b4":e.labelFontSize,"39a863c2":e.labelColor,"0b5aff5e":e.logoHeightAndWidth}));const B=t.ref(!1);t.watch(()=>i.modelValue,()=>{B.value=i.modelValue===i.value},{immediate:!0});function z(){n("update:modelValue",i.value)}function c(){n("update:modelValue",i.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-button",e.radioPosition]),onClick:c},[t.createElementVNode("input",{type:"radio",name:e.name,value:e.value,checked:B.value,onInput:z},null,40,Dse),t.createElementVNode("div",Lse,[t.withDirectives(t.createElementVNode("div",Fse,null,512),[[t.vShow,B.value]])]),t.createElementVNode("div",zse,[t.createElementVNode("div",Rse,t.toDisplayString(e.label),1),e.logoUrl?(t.openBlock(),t.createElementBlock("div",Vse,[t.createElementVNode("img",{src:e.logoUrl,alt:""},null,8,$se)])):t.createCommentVNode("",!0)])],2))}},SB=Ose(jse,[["__scopeId","data-v-10f54cda"]]),TB=navigator.userAgent||navigator.vendor||window.opera;function Use(e,n){let i=Array.isArray(e)&&Array.isArray(n)?e.length===n.length:!1;if(i){for(let B of e)if(!n.includes(B)){i=!1;break}}return i}function Q1(e){return e.reduce((n,i,B)=>(n[i]=B,n),{})}function EB(e,n,i){const B={statistics:n.statistics.value||0,playingAs:[...n.playingAs],matchResult:[...n.matchResult],sections:n.firstHalf.concat(n.secondHalf),requiresPlaysFiltering:n.requiresPlaysFiltering||!0};return B.teamId=i,B}function $m(e){return typeof e=="number"?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function Gse(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(TB)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(TB.substr(0,4))}function AB(e){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${e}.png`}const Qma="",Hse={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...eh("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...eu("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e=this.teamTypeSelected==="both"?["#cbee6b","#0033C5"]:this.teamTypeSelected==="homeTeam"?["#cbee6b"]:["#0033C5"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(n,i)=>n+" - <strong>"+i.w.globals.series[i.seriesIndex][i.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:n=>this.showPostMatchData?`${n} :`:`${n} (promedio)`},formatter:n=>this.showPostMatchData?Number(n):n},{title:{formatter:n=>this.showPostMatchData?`${n} :`:`${n} (promedio)`},formatter:n=>this.showPostMatchData?Number(n):n},{title:{formatter:n=>n}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?this.dataLive.map((n,i)=>({name:this.teamAcronyms[i],data:n})):this.dataStats.map((n,i)=>({name:this.teamAcronyms[i],data:n}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>$m(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>$m(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>$m(e))]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]},dataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,n)=>(e.push($m(n)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,n)=>(e.push(n),e),[0])]},xaxisCategories(){return this.isAccumulatedType?["0'","15'","30'","45'","60'","75'","90'"]:["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return this.typeId===1},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){this.idAssetSelected===7&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,n){JSON.stringify(e)!==JSON.stringify(n)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,n)=>(e.push(n),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.8):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.7):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.6):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.5):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),this.idAssetSelected===7&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},Wse={class:"chart-trend-live container",ref:"containerChart"};function qse(e,n,i,B,z,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Wse,[(t.openBlock(),t.createBlock(m,{type:"area",options:c.chartOptions,series:c.series,key:c.key+z.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}const Yse=$i(Hse,[["render",qse],["__scopeId","data-v-07792768"]]),Xse=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},Q8={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))}}},MB=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},IB=Q8.setup;Q8.setup=IB?(e,n)=>(MB(),IB(e,n)):MB;const Zse=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Jse=["src"],Kse={key:1,class:"text"},Qse=["src"],ele={class:"stats"},tle=Zse(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ale={class:"numstats"},nle={class:"leyend"};function rle(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",z.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,z.status&&i.typeOnOff&&c.customActive]),onClick:n[0]||(n[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,Jse)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",Kse,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,Qse)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",ele,[tle,t.createElementVNode("div",ale,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",nle,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const ile=Xse(Q8,[["render",rle],["__scopeId","data-v-fb269a1e"]]),ole={class:"gsc-dropdown__main-container__item-selected"},sle=["height","width"],lle=["stroke"],cle={class:"gsc-dropdown__items-container"},ule=["onClick"],dle={key:0,class:"gsc-dropdown__items-footer"},hle={__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(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:n}){const i=e,B=t.ref({}),z=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];n("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],n("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function r(p){z.value&&!z.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,n("input",B.value),n("update:modelValue",B.value)}function _(){m.value=!1,n("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:z,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",ole,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,lle)],8,sle))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",cle,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:d=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,ule))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",dle,[t.createVNode(t.unref(ile),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},e0a="",ple={class:"card-trend-live__dropdown-category"},fle={class:"selected-item"},mle={class:"card-trend-live__body__categories"},gle={class:"card-trend-live__body__chart"},yle=$i({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:n}){const i=e;let B=null;const z={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},c={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},m=t.ref({}),a=t.ref(null),y=t.ref(0);t.watch(()=>i.data,v=>{v&&v.subcategories&&v.subcategories.length&&(m.value=v.subcategories[0])},{immediate:!0});function f(v){m.value=v,n("update:subcategory-selected",{data:i.data,subcategorySelected:v})}function r(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{r()}),t.onUnmounted(()=>{}),(v,_)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:a,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":y.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",ple,[t.createVNode(t.unref(hle),t.mergeProps(c,{items:e.data.subcategories,"selected-item":m.value,"default-item-by-prop":{propName:"id",value:m.value.id},onInput:f}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",fle,t.toDisplayString(p.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,y.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":y.value<=760}])},[t.createElementVNode("div",mle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(p,l)=>(t.openBlock(),t.createElementBlock("div",{key:l},[t.createVNode(kB,t.mergeProps(z,{text:p.name,"is-active":m.value.id===p.id,onClick:o=>f(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",gle,[(t.openBlock(),t.createBlock(Yse,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":y.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-d2eb653a"]]),a0a="",PB=e=>(t.pushScopeId("data-v-00759835"),e=e(),t.popScopeId(),e),vle={class:"trending-live__header__radios"},_le={class:"trending-live__header__radios__group"},ble={class:"trending-live__header__switch"},xle={class:"trending-live__header__switch__control"},wle=PB(()=>t.createElementVNode("span",null,"Acumulado",-1)),kle=PB(()=>t.createElementVNode("span",null,"Por periodo",-1)),Cle={class:"trending-live__body"},Sle=$i({__name:"TrendLive",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const n=e,i=ix();let B=null;const z=t.ref(!1),c=t.ref("both"),m=t.ref([]),a=t.ref(null),y=t.ref(0),f=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:n.game.homeTeam?`${n.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:n.game.homeTeam?AB(n.game.homeTeam.team_id):""},{label:n.game.awayTeam?`${n.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:n.game.awayTeam?AB(n.game.awayTeam.team_id):""}]),r=t.computed(()=>c.value==="both"?"both":`${c.value==="home"?"home":"visiting"}Team`),v=t.computed(()=>z.value?2:1),_=t.computed(()=>n.game.homeTeam?c.value==="both"?[n.game.homeTeam.team_id,n.game.awayTeam.team_id]:[n.game[`${c.value}Team`].team_id]:[0,0]),p=t.computed(()=>n.game.homeTeam?c.value==="both"?[n.game.homeTeam.acronym,n.game.awayTeam.acronym]:[n.game[`${c.value}Team`].acronym]:[0,0]),l=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);t.watch(()=>i.getters["nextGeneral/arrayFilledDataSortedByPriority"],d=>{m.value.length===0&&(d&&d.length?m.value=d.map((u,h)=>{const g=Object.values(u.subcategories);return{id:`tL${h}`,...u,subcategories:g,objectGraphProps:{objectSubcategorySelected:g[0],numberCategoryId:g[0].id}}}):m.value=[])},{immediate:!0});function o({data:d,subcategorySelected:u}){d.objectGraphProps.numberCategoryId=u,d.objectGraphProps.objectSubcategorySelected=u}function s(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{s()}),(d,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:a,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":y.value<580}])},[t.createElementVNode("div",vle,[t.createElementVNode("div",_le,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{key:g},[t.createVNode(t.unref(SB),t.mergeProps({modelValue:c.value,"onUpdate:modelValue":u[0]||(u[0]=b=>c.value=b)},h),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",ble,[t.createElementVNode("div",xle,[wle,t.createVNode(CB,{modelValue:z.value,"onUpdate:modelValue":u[1]||(u[1]=h=>z.value=h)},null,8,["modelValue"]),kle])])],2),t.createElementVNode("div",Cle,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:g},[t.createVNode(yle,{data:h,"trend-type-id":v.value,"team-type-selected":r.value,"team-ids":_.value,"team-acronyms":p.value,"trend-types":l.value,"onUpdate:subcategorySelected":o},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-00759835"]]),r0a="",Tle={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Ele=e=>(t.pushScopeId("data-v-49b2380c"),e=e(),t.popScopeId(),e),Ale={class:"custom-progress-bar"},Mle={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},Ile=Ele(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),Ple=["d","fill"];function Ble(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",Ale,[(t.openBlock(),t.createElementBlock("svg",Mle,[Ile,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Ple)]))])}const Nle=$i(Tle,[["render",Ble],["__scopeId","data-v-49b2380c"]]),i0a="",Ole={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...eh("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Dle=e=>(t.pushScopeId("data-v-054b26d4"),e=e(),t.popScopeId(),e),Lle={class:"custom-progress-bar"},Fle={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},zle=Dle(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),Rle=["d","fill"];function Vle(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",Lle,[(t.openBlock(),t.createElementBlock("svg",Fle,[zle,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Rle)]))])}const $le=$i(Ole,[["render",Vle],["__scopeId","data-v-054b26d4"]]);function BB(e,n){return function(){return e.apply(n,arguments)}}const{toString:jle}=Object.prototype,{getPrototypeOf:ek}=Object,Mx=(e=>n=>{const i=jle.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Lp=e=>(e=e.toLowerCase(),n=>Mx(n)===e),Ix=e=>n=>typeof n===e,{isArray:ey}=Array,Xv=Ix("undefined");function Ule(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&vh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NB=Lp("ArrayBuffer");function Gle(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NB(e.buffer),n}const Hle=Ix("string"),vh=Ix("function"),OB=Ix("number"),Px=e=>e!==null&&typeof e=="object",Wle=e=>e===!0||e===!1,Bx=e=>{if(Mx(e)!=="object")return!1;const n=ek(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qle=Lp("Date"),Yle=Lp("File"),Xle=Lp("Blob"),Zle=Lp("FileList"),Jle=e=>Px(e)&&vh(e.pipe),Kle=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||vh(e.append)&&((n=Mx(e))==="formdata"||n==="object"&&vh(e.toString)&&e.toString()==="[object FormData]"))},Qle=Lp("URLSearchParams"),[ece,tce,ace,nce]=["ReadableStream","Request","Response","Headers"].map(Lp),rce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,z;if(typeof e!="object"&&(e=[e]),ey(e))for(B=0,z=e.length;B<z;B++)n.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],n.call(null,e[a],a,e)}}function DB(e,n){n=n.toLowerCase();const i=Object.keys(e);let B=i.length,z;for(;B-- >0;)if(z=i[B],n===z.toLowerCase())return z;return null}const ag=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LB=e=>!Xv(e)&&e!==ag;function tk(){const{caseless:e}=LB(this)&&this||{},n={},i=(B,z)=>{const c=e&&DB(n,z)||z;Bx(n[c])&&Bx(B)?n[c]=tk(n[c],B):Bx(B)?n[c]=tk({},B):ey(B)?n[c]=B.slice():n[c]=B};for(let B=0,z=arguments.length;B<z;B++)arguments[B]&&Zv(arguments[B],i);return n}const ice=(e,n,i,{allOwnKeys:B}={})=>(Zv(n,(z,c)=>{i&&vh(z)?e[c]=BB(z,i):e[c]=z},{allOwnKeys:B}),e),oce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sce=(e,n,i,B)=>{e.prototype=Object.create(n.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},lce=(e,n,i,B)=>{let z,c,m;const a={};if(n=n||{},e==null)return n;do{for(z=Object.getOwnPropertyNames(e),c=z.length;c-- >0;)m=z[c],(!B||B(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=i!==!1&&ek(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},cce=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const B=e.indexOf(n,i);return B!==-1&&B===i},uce=e=>{if(!e)return null;if(ey(e))return e;let n=e.length;if(!OB(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},dce=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&ek(Uint8Array)),hce=(e,n)=>{const B=(e&&e[Symbol.iterator]).call(e);let z;for(;(z=B.next())&&!z.done;){const c=z.value;n.call(e,c[0],c[1])}},pce=(e,n)=>{let i;const B=[];for(;(i=e.exec(n))!==null;)B.push(i);return B},fce=Lp("HTMLFormElement"),mce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,B,z){return B.toUpperCase()+z}),FB=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),gce=Lp("RegExp"),zB=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(z,c)=>{let m;(m=n(z,c,e))!==!1&&(B[c]=m||z)}),Object.defineProperties(e,B)},yce=e=>{zB(e,(n,i)=>{if(vh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(vh(B)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},vce=(e,n)=>{const i={},B=z=>{z.forEach(c=>{i[c]=!0})};return ey(e)?B(e):B(String(e).split(n)),i},_ce=()=>{},bce=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,ak="abcdefghijklmnopqrstuvwxyz",RB="0123456789",VB={DIGIT:RB,ALPHA:ak,ALPHA_DIGIT:ak+ak.toUpperCase()+RB},xce=(e=16,n=VB.ALPHA_DIGIT)=>{let i="";const{length:B}=n;for(;e--;)i+=n[Math.random()*B|0];return i};function wce(e){return!!(e&&vh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kce=e=>{const n=new Array(10),i=(B,z)=>{if(Px(B)){if(n.indexOf(B)>=0)return;if(!("toJSON"in B)){n[z]=B;const c=ey(B)?[]:{};return Zv(B,(m,a)=>{const y=i(m,z+1);!Xv(y)&&(c[a]=y)}),n[z]=void 0,c}}return B};return i(e,0)},Cce=Lp("AsyncFunction"),Sce=e=>e&&(Px(e)||vh(e))&&vh(e.then)&&vh(e.catch),$B=((e,n)=>e?setImmediate:n?((i,B)=>(ag.addEventListener("message",({source:z,data:c})=>{z===ag&&c===i&&B.length&&B.shift()()},!1),z=>{B.push(z),ag.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",vh(ag.postMessage)),Tce=typeof queueMicrotask<"u"?queueMicrotask.bind(ag):typeof process<"u"&&process.nextTick||$B,cr={isArray:ey,isArrayBuffer:NB,isBuffer:Ule,isFormData:Kle,isArrayBufferView:Gle,isString:Hle,isNumber:OB,isBoolean:Wle,isObject:Px,isPlainObject:Bx,isReadableStream:ece,isRequest:tce,isResponse:ace,isHeaders:nce,isUndefined:Xv,isDate:qle,isFile:Yle,isBlob:Xle,isRegExp:gce,isFunction:vh,isStream:Jle,isURLSearchParams:Qle,isTypedArray:dce,isFileList:Zle,forEach:Zv,merge:tk,extend:ice,trim:rce,stripBOM:oce,inherits:sce,toFlatObject:lce,kindOf:Mx,kindOfTest:Lp,endsWith:cce,toArray:uce,forEachEntry:hce,matchAll:pce,isHTMLForm:fce,hasOwnProperty:FB,hasOwnProp:FB,reduceDescriptors:zB,freezeMethods:yce,toObjectSet:vce,toCamelCase:mce,noop:_ce,toFiniteNumber:bce,findKey:DB,global:ag,isContextDefined:LB,ALPHABET:VB,generateString:xce,isSpecCompliantForm:wce,toJSONObject:kce,isAsyncFn:Cce,isThenable:Sce,setImmediate:$B,asap:Tce};function qo(e,n,i,B,z){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),B&&(this.request=B),z&&(this.response=z,this.status=z.status?z.status:null)}cr.inherits(qo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:cr.toJSONObject(this.config),code:this.code,status:this.status}}});const jB=qo.prototype,UB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UB[e]={value:e}}),Object.defineProperties(qo,UB),Object.defineProperty(jB,"isAxiosError",{value:!0}),qo.from=(e,n,i,B,z,c)=>{const m=Object.create(jB);return cr.toFlatObject(e,m,function(y){return y!==Error.prototype},a=>a!=="isAxiosError"),qo.call(m,e.message,n,i,B,z),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Ece=null;function nk(e){return cr.isPlainObject(e)||cr.isArray(e)}function GB(e){return cr.endsWith(e,"[]")?e.slice(0,-2):e}function HB(e,n,i){return e?e.concat(n).map(function(z,c){return z=GB(z),!i&&c?"["+z+"]":z}).join(i?".":""):n}function Ace(e){return cr.isArray(e)&&!e.some(nk)}const Mce=cr.toFlatObject(cr,{},null,function(n){return/^is[A-Z]/.test(n)});function Nx(e,n,i){if(!cr.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=cr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,s){return!cr.isUndefined(s[o])});const B=i.metaTokens,z=i.visitor||r,c=i.dots,m=i.indexes,y=(i.Blob||typeof Blob<"u"&&Blob)&&cr.isSpecCompliantForm(n);if(!cr.isFunction(z))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(cr.isDate(l))return l.toISOString();if(!y&&cr.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return cr.isArrayBuffer(l)||cr.isTypedArray(l)?y&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function r(l,o,s){let d=l;if(l&&!s&&typeof l=="object"){if(cr.endsWith(o,"{}"))o=B?o:o.slice(0,-2),l=JSON.stringify(l);else if(cr.isArray(l)&&Ace(l)||(cr.isFileList(l)||cr.endsWith(o,"[]"))&&(d=cr.toArray(l)))return o=GB(o),d.forEach(function(h,g){!(cr.isUndefined(h)||h===null)&&n.append(m===!0?HB([o],g,c):m===null?o:o+"[]",f(h))}),!1}return nk(l)?!0:(n.append(HB(s,o,c),f(l)),!1)}const v=[],_=Object.assign(Mce,{defaultVisitor:r,convertValue:f,isVisitable:nk});function p(l,o){if(!cr.isUndefined(l)){if(v.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));v.push(l),cr.forEach(l,function(d,u){(!(cr.isUndefined(d)||d===null)&&z.call(n,d,cr.isString(u)?u.trim():u,o,_))===!0&&p(d,o?o.concat(u):[u])}),v.pop()}}if(!cr.isObject(e))throw new TypeError("data must be an object");return p(e),n}function WB(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(B){return n[B]})}function rk(e,n){this._pairs=[],e&&Nx(e,this,n)}const qB=rk.prototype;qB.append=function(n,i){this._pairs.push([n,i])},qB.toString=function(n){const i=n?function(B){return n.call(this,B,WB)}:WB;return this._pairs.map(function(z){return i(z[0])+"="+i(z[1])},"").join("&")};function Ice(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YB(e,n,i){if(!n)return e;const B=i&&i.encode||Ice,z=i&&i.serialize;let c;if(z?c=z(n,i):c=cr.isURLSearchParams(n)?n.toString():new rk(n,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Pce{constructor(){this.handlers=[]}use(n,i,B){return this.handlers.push({fulfilled:n,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){cr.forEach(this.handlers,function(B){B!==null&&n(B)})}}const XB=Pce,ZB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bce={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:rk,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ik=typeof window<"u"&&typeof document<"u",ok=typeof navigator=="object"&&navigator||void 0,Nce=ik&&(!ok||["ReactNative","NativeScript","NS"].indexOf(ok.product)<0),Oce=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dce=ik&&window.location.href||"http://localhost",th={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ik,hasStandardBrowserEnv:Nce,hasStandardBrowserWebWorkerEnv:Oce,navigator:ok,origin:Dce},Symbol.toStringTag,{value:"Module"})),...Bce};function Lce(e,n){return Nx(e,new th.classes.URLSearchParams,Object.assign({visitor:function(i,B,z,c){return th.isNode&&cr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function Fce(e){return cr.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function zce(e){const n={},i=Object.keys(e);let B;const z=i.length;let c;for(B=0;B<z;B++)c=i[B],n[c]=e[c];return n}function JB(e){function n(i,B,z,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&cr.isArray(z)?z.length:m,y?(cr.hasOwnProp(z,m)?z[m]=[z[m],B]:z[m]=B,!a):((!z[m]||!cr.isObject(z[m]))&&(z[m]=[]),n(i,B,z[m],c)&&cr.isArray(z[m])&&(z[m]=zce(z[m])),!a)}if(cr.isFormData(e)&&cr.isFunction(e.entries)){const i={};return cr.forEachEntry(e,(B,z)=>{n(Fce(B),z,i,0)}),i}return null}function Rce(e,n,i){if(cr.isString(e))try{return(n||JSON.parse)(e),cr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const sk={transitional:ZB,adapter:["xhr","http","fetch"],transformRequest:[function(n,i){const B=i.getContentType()||"",z=B.indexOf("application/json")>-1,c=cr.isObject(n);if(c&&cr.isHTMLForm(n)&&(n=new FormData(n)),cr.isFormData(n))return z?JSON.stringify(JB(n)):n;if(cr.isArrayBuffer(n)||cr.isBuffer(n)||cr.isStream(n)||cr.isFile(n)||cr.isBlob(n)||cr.isReadableStream(n))return n;if(cr.isArrayBufferView(n))return n.buffer;if(cr.isURLSearchParams(n))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let a;if(c){if(B.indexOf("application/x-www-form-urlencoded")>-1)return Lce(n,this.formSerializer).toString();if((a=cr.isFileList(n))||B.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Nx(a?{"files[]":n}:n,y&&new y,this.formSerializer)}}return c||z?(i.setContentType("application/json",!1),Rce(n)):n}],transformResponse:[function(n){const i=this.transitional||sk.transitional,B=i&&i.forcedJSONParsing,z=this.responseType==="json";if(cr.isResponse(n)||cr.isReadableStream(n))return n;if(n&&cr.isString(n)&&(B&&!this.responseType||z)){const m=!(i&&i.silentJSONParsing)&&z;try{return JSON.parse(n)}catch(a){if(m)throw a.name==="SyntaxError"?qo.from(a,qo.ERR_BAD_RESPONSE,this,null,this.response):a}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:th.classes.FormData,Blob:th.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cr.forEach(["delete","get","head","post","put","patch"],e=>{sk.headers[e]={}});const lk=sk,Vce=cr.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"]),$ce=e=>{const n={};let i,B,z;return e&&e.split(`
|
|
20
20
|
`).forEach(function(m){z=m.indexOf(":"),i=m.substring(0,z).trim().toLowerCase(),B=m.substring(z+1).trim(),!(!i||n[i]&&Vce[i])&&(i==="set-cookie"?n[i]?n[i].push(B):n[i]=[B]:n[i]=n[i]?n[i]+", "+B:B)}),n},KB=Symbol("internals");function Jv(e){return e&&String(e).trim().toLowerCase()}function Ox(e){return e===!1||e==null?e:cr.isArray(e)?e.map(Ox):String(e)}function jce(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)n[B[1]]=B[2];return n}const Uce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ck(e,n,i,B,z){if(cr.isFunction(B))return B.call(this,n,i);if(z&&(n=i),!!cr.isString(n)){if(cr.isString(B))return n.indexOf(B)!==-1;if(cr.isRegExp(B))return B.test(n)}}function Gce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,B)=>i.toUpperCase()+B)}function Hce(e,n){const i=cr.toCamelCase(" "+n);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(z,c,m){return this[B].call(this,n,z,c,m)},configurable:!0})})}class Dx{constructor(n){n&&this.set(n)}set(n,i,B){const z=this;function c(a,y,f){const r=Jv(y);if(!r)throw new Error("header name must be a non-empty string");const v=cr.findKey(z,r);(!v||z[v]===void 0||f===!0||f===void 0&&z[v]!==!1)&&(z[v||y]=Ox(a))}const m=(a,y)=>cr.forEach(a,(f,r)=>c(f,r,y));if(cr.isPlainObject(n)||n instanceof this.constructor)m(n,i);else if(cr.isString(n)&&(n=n.trim())&&!Uce(n))m($ce(n),i);else if(cr.isHeaders(n))for(const[a,y]of n.entries())c(y,a,B);else n!=null&&c(i,n,B);return this}get(n,i){if(n=Jv(n),n){const B=cr.findKey(this,n);if(B){const z=this[B];if(!i)return z;if(i===!0)return jce(z);if(cr.isFunction(i))return i.call(this,z,B);if(cr.isRegExp(i))return i.exec(z);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=Jv(n),n){const B=cr.findKey(this,n);return!!(B&&this[B]!==void 0&&(!i||ck(this,this[B],B,i)))}return!1}delete(n,i){const B=this;let z=!1;function c(m){if(m=Jv(m),m){const a=cr.findKey(B,m);a&&(!i||ck(B,B[a],a,i))&&(delete B[a],z=!0)}}return cr.isArray(n)?n.forEach(c):c(n),z}clear(n){const i=Object.keys(this);let B=i.length,z=!1;for(;B--;){const c=i[B];(!n||ck(this,this[c],c,n,!0))&&(delete this[c],z=!0)}return z}normalize(n){const i=this,B={};return cr.forEach(this,(z,c)=>{const m=cr.findKey(B,c);if(m){i[m]=Ox(z),delete i[c];return}const a=n?Gce(c):String(c).trim();a!==c&&delete i[c],i[a]=Ox(z),B[a]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return cr.forEach(this,(B,z)=>{B!=null&&B!==!1&&(i[z]=n&&cr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
|
|
21
21
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const B=new this(n);return i.forEach(z=>B.set(z)),B}static accessor(n){const B=(this[KB]=this[KB]={accessors:{}}).accessors,z=this.prototype;function c(m){const a=Jv(m);B[a]||(Hce(z,m),B[a]=!0)}return cr.isArray(n)?n.forEach(c):c(n),this}}Dx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cr.reduceDescriptors(Dx.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(B){this[i]=B}}}),cr.freezeMethods(Dx);const Fp=Dx;function uk(e,n){const i=this||lk,B=n||i,z=Fp.from(B.headers);let c=B.data;return cr.forEach(e,function(a){c=a.call(i,c,z.normalize(),n?n.status:void 0)}),z.normalize(),c}function QB(e){return!!(e&&e.__CANCEL__)}function ty(e,n,i){qo.call(this,e??"canceled",qo.ERR_CANCELED,n,i),this.name="CanceledError"}cr.inherits(ty,qo,{__CANCEL__:!0});function eN(e,n,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):n(new qo("Request failed with status code "+i.status,[qo.ERR_BAD_REQUEST,qo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Wce(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function qce(e,n){e=e||10;const i=new Array(e),B=new Array(e);let z=0,c=0,m;return n=n!==void 0?n:1e3,function(y){const f=Date.now(),r=B[c];m||(m=f),i[z]=y,B[z]=f;let v=c,_=0;for(;v!==z;)_+=i[v++],v=v%e;if(z=(z+1)%e,z===c&&(c=(c+1)%e),f-m<n)return;const p=r&&f-r;return p?Math.round(_*1e3/p):void 0}}function Yce(e,n){let i=0,B=1e3/n,z,c;const m=(f,r=Date.now())=>{i=r,z=null,c&&(clearTimeout(c),c=null),e.apply(null,f)};return[(...f)=>{const r=Date.now(),v=r-i;v>=B?m(f,r):(z=f,c||(c=setTimeout(()=>{c=null,m(z)},B-v)))},()=>z&&m(z)]}const Lx=(e,n,i=3)=>{let B=0;const z=qce(50,250);return Yce(c=>{const m=c.loaded,a=c.lengthComputable?c.total:void 0,y=m-B,f=z(y),r=m<=a;B=m;const v={loaded:m,total:a,progress:a?m/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&r?(a-m)/f:void 0,event:c,lengthComputable:a!=null,[n?"download":"upload"]:!0};e(v)},i)},tN=(e,n)=>{const i=e!=null;return[B=>n[0]({lengthComputable:i,total:e,loaded:B}),n[1]]},aN=e=>(...n)=>cr.asap(()=>e(...n)),Xce=th.hasStandardBrowserEnv?function(){const n=th.navigator&&/(msie|trident)/i.test(th.navigator.userAgent),i=document.createElement("a");let B;function z(c){let m=c;return n&&(i.setAttribute("href",m),m=i.href),i.setAttribute("href",m),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return B=z(window.location.href),function(m){const a=cr.isString(m)?z(m):m;return a.protocol===B.protocol&&a.host===B.host}}():function(){return function(){return!0}}(),Zce=th.hasStandardBrowserEnv?{write(e,n,i,B,z,c){const m=[e+"="+encodeURIComponent(n)];cr.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),cr.isString(B)&&m.push("path="+B),cr.isString(z)&&m.push("domain="+z),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jce(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kce(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function nN(e,n){return e&&!Jce(n)?Kce(e,n):n}const rN=e=>e instanceof Fp?{...e}:e;function ng(e,n){n=n||{};const i={};function B(f,r,v){return cr.isPlainObject(f)&&cr.isPlainObject(r)?cr.merge.call({caseless:v},f,r):cr.isPlainObject(r)?cr.merge({},r):cr.isArray(r)?r.slice():r}function z(f,r,v){if(cr.isUndefined(r)){if(!cr.isUndefined(f))return B(void 0,f,v)}else return B(f,r,v)}function c(f,r){if(!cr.isUndefined(r))return B(void 0,r)}function m(f,r){if(cr.isUndefined(r)){if(!cr.isUndefined(f))return B(void 0,f)}else return B(void 0,r)}function a(f,r,v){if(v in n)return B(f,r);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:a,headers:(f,r)=>z(rN(f),rN(r),!0)};return cr.forEach(Object.keys(Object.assign({},e,n)),function(r){const v=y[r]||z,_=v(e[r],n[r],r);cr.isUndefined(_)&&v!==a||(i[r]=_)}),i}const iN=e=>{const n=ng({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:z,xsrfCookieName:c,headers:m,auth:a}=n;n.headers=m=Fp.from(m),n.url=YB(nN(n.baseURL,n.url),e.params,e.paramsSerializer),a&&m.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(cr.isFormData(i)){if(th.hasStandardBrowserEnv||th.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if((y=m.getContentType())!==!1){const[f,...r]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];m.setContentType([f||"multipart/form-data",...r].join("; "))}}if(th.hasStandardBrowserEnv&&(B&&cr.isFunction(B)&&(B=B(n)),B||B!==!1&&Xce(n.url))){const f=z&&c&&Zce.read(c);f&&m.set(z,f)}return n},Qce=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,B){const z=iN(e);let c=z.data;const m=Fp.from(z.headers).normalize();let{responseType:a,onUploadProgress:y,onDownloadProgress:f}=z,r,v,_,p,l;function o(){p&&p(),l&&l(),z.cancelToken&&z.cancelToken.unsubscribe(r),z.signal&&z.signal.removeEventListener("abort",r)}let s=new XMLHttpRequest;s.open(z.method.toUpperCase(),z.url,!0),s.timeout=z.timeout;function d(){if(!s)return;const h=Fp.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:h,config:e,request:s};eN(function(x){i(x),o()},function(x){B(x),o()},b),s=null}"onloadend"in s?s.onloadend=d:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(d)},s.onabort=function(){s&&(B(new qo("Request aborted",qo.ECONNABORTED,e,s)),s=null)},s.onerror=function(){B(new qo("Network Error",qo.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let g=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded";const b=z.transitional||ZB;z.timeoutErrorMessage&&(g=z.timeoutErrorMessage),B(new qo(g,b.clarifyTimeoutError?qo.ETIMEDOUT:qo.ECONNABORTED,e,s)),s=null},c===void 0&&m.setContentType(null),"setRequestHeader"in s&&cr.forEach(m.toJSON(),function(g,b){s.setRequestHeader(b,g)}),cr.isUndefined(z.withCredentials)||(s.withCredentials=!!z.withCredentials),a&&a!=="json"&&(s.responseType=z.responseType),f&&([_,l]=Lx(f,!0),s.addEventListener("progress",_)),y&&s.upload&&([v,p]=Lx(y),s.upload.addEventListener("progress",v),s.upload.addEventListener("loadend",p)),(z.cancelToken||z.signal)&&(r=h=>{s&&(B(!h||h.type?new ty(null,e,s):h),s.abort(),s=null)},z.cancelToken&&z.cancelToken.subscribe(r),z.signal&&(z.signal.aborted?r():z.signal.addEventListener("abort",r)));const u=Wce(z.url);if(u&&th.protocols.indexOf(u)===-1){B(new qo("Unsupported protocol "+u+":",qo.ERR_BAD_REQUEST,e));return}s.send(c||null)})},eue=(e,n)=>{const{length:i}=e=e?e.filter(Boolean):[];if(n||i){let B=new AbortController,z;const c=function(f){if(!z){z=!0,a();const r=f instanceof Error?f:this.reason;B.abort(r instanceof qo?r:new ty(r instanceof Error?r.message:r))}};let m=n&&setTimeout(()=>{m=null,c(new qo(`timeout ${n} of ms exceeded`,qo.ETIMEDOUT))},n);const a=()=>{e&&(m&&clearTimeout(m),m=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(c):f.removeEventListener("abort",c)}),e=null)};e.forEach(f=>f.addEventListener("abort",c));const{signal:y}=B;return y.unsubscribe=()=>cr.asap(a),y}},tue=function*(e,n){let i=e.byteLength;if(!n||i<n){yield e;return}let B=0,z;for(;B<i;)z=B+n,yield e.slice(B,z),B=z},aue=async function*(e,n,i){for await(const B of e)yield*tue(ArrayBuffer.isView(B)?B:await i(String(B)),n)},oN=(e,n,i,B,z)=>{const c=aue(e,n,z);let m=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:r,value:v}=await c.next();if(r){y(),f.close();return}let _=v.byteLength;if(i){let p=m+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(r){throw y(r),r}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},Fx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sN=Fx&&typeof ReadableStream=="function",dk=Fx&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lN=(e,...n)=>{try{return!!e(...n)}catch{return!1}},nue=sN&&lN(()=>{let e=!1;const n=new Request(th.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),cN=64*1024,hk=sN&&lN(()=>cr.isReadableStream(new Response("").body)),zx={stream:hk&&(e=>e.body)};Fx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!zx[n]&&(zx[n]=cr.isFunction(e[n])?i=>i[n]():(i,B)=>{throw new qo(`Response type '${n}' is not supported`,qo.ERR_NOT_SUPPORT,B)})})})(new Response);const rue=async e=>{if(e==null)return 0;if(cr.isBlob(e))return e.size;if(cr.isSpecCompliantForm(e))return(await new Request(th.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(cr.isArrayBufferView(e)||cr.isArrayBuffer(e))return e.byteLength;if(cr.isURLSearchParams(e)&&(e=e+""),cr.isString(e))return(await dk(e)).byteLength},iue=async(e,n)=>{const i=cr.toFiniteNumber(e.getContentLength());return i??rue(n)},pk={http:Ece,xhr:Qce,fetch:Fx&&(async e=>{let{url:n,method:i,data:B,signal:z,cancelToken:c,timeout:m,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:r,withCredentials:v="same-origin",fetchOptions:_}=iN(e);f=f?(f+"").toLowerCase():"text";let p=eue([z,c&&c.toAbortSignal()],m),l;const o=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let s;try{if(y&&nue&&i!=="get"&&i!=="head"&&(s=await iue(r,B))!==0){let b=new Request(n,{method:"POST",body:B,duplex:"half"}),w;if(cr.isFormData(B)&&(w=b.headers.get("content-type"))&&r.setContentType(w),b.body){const[x,T]=tN(s,Lx(aN(y)));B=oN(b.body,cN,x,T,dk)}}cr.isString(v)||(v=v?"include":"omit");const d="credentials"in Request.prototype;l=new Request(n,{..._,signal:p,method:i.toUpperCase(),headers:r.normalize().toJSON(),body:B,duplex:"half",credentials:d?v:void 0});let u=await fetch(l);const h=hk&&(f==="stream"||f==="response");if(hk&&(a||h&&o)){const b={};["status","statusText","headers"].forEach(k=>{b[k]=u[k]});const w=cr.toFiniteNumber(u.headers.get("content-length")),[x,T]=a&&tN(w,Lx(aN(a),!0))||[];u=new Response(oN(u.body,cN,x,()=>{T&&T(),o&&o()},dk),b)}f=f||"text";let g=await zx[cr.findKey(zx,f)||"text"](u,e);return!h&&o&&o(),await new Promise((b,w)=>{eN(b,w,{data:g,headers:Fp.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:l})})}catch(d){throw o&&o(),d&&d.name==="TypeError"&&/fetch/i.test(d.message)?Object.assign(new qo("Network Error",qo.ERR_NETWORK,e,l),{cause:d.cause||d}):qo.from(d,d&&d.code,e,l)}})};cr.forEach(pk,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const uN=e=>`- ${e}`,oue=e=>cr.isFunction(e)||e===null||e===!1,dN={getAdapter:e=>{e=cr.isArray(e)?e:[e];const{length:n}=e;let i,B;const z={};for(let c=0;c<n;c++){i=e[c];let m;if(B=i,!oue(i)&&(B=pk[(m=String(i)).toLowerCase()],B===void 0))throw new qo(`Unknown adapter '${m}'`);if(B)break;z[m||"#"+c]=B}if(!B){const c=Object.entries(z).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=n?c.length>1?`since :
|
|
22
22
|
`+c.map(uN).join(`
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div class="__title">${z}:</div>
|
|
32
32
|
<div class="__totals">${c}: ${m}</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}}}},getChartSeries(e,n){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((z,c)=>{n.xaxis.categories.push(this.prepareLabels(z,c)),n.arraySubcategories.push(z);const m=z.homeTeam[this.homeTeamStatisticsType].totalPostGame+z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(m?z.homeTeam[this.homeTeamStatisticsType].totalPostGame/m:0))),i.dataTotal.push(z.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(m?z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/m:0))),B.dataTotal.push(z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(i={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((z,c)=>{n.xaxis.categories.push(this.prepareLabels(z,c)),n.arraySubcategories.push(z);let m,a,y,f;const r=z.homeTeam.accomplished.avgPostGame+z.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&z.generalCategoriesIds.accomplished===3?(m=z.homeTeam.accomplished.avgPostGame/r,y=z.homeTeam.accomplished.totalPostGame):(m=r?z.homeTeam[this.homeTeamStatisticsType].avgPostGame/r:0,y=z.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=z.homeTeam[this.homeTeamStatisticsType].totalLive+z.visitingTeam[this.visitingTeamStatisticsType].totalLive;m=v?z.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=z.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&z.generalCategoriesIds.accomplished===3?(a=z.visitingTeam.accomplished.avgPostGame/r,f=z.visitingTeam.accomplished.totalPostGame):(a=r?z.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/r:0,f=z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=z.homeTeam[this.homeTeamStatisticsType].totalLive+z.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?z.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=z.visitingTeam[this.visitingTeamStatisticsType].totalLive}i.data.push(Math.round(120*m)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,i){const B=i===0?"homeTeam":"visitingTeam",z=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=z.id!=="3-0",this.tooltip.data=this.getSubcategoryData(z,B),this.tooltip.local=i===0,this.tooltip.names=z.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(z);const c=e.globals.clientX||0,m=e.globals.clientY||0;this.globals.x=c,this.globals.y=m,this.tooltip.x=c,this.tooltip.y=m>700?m-250:m;const a=z.generalCategoriesIds.accomplished===3;if(a){const y=z.homeTeam.accomplished.avgPostGame+z.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?z[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return i;const B=13;if(i.length>B){let z=i.split(" ");i=[];let c="",m="",a=z.slice(-1)[0];z.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(m.trim()),c=y),m=c,a===y&&i.push(m.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,i)=>n+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},Cde=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),Sde={class:"distribution"},Tde={class:"distribution__container"},Ede={class:"distribution__container__chart-type__title"},Ade=Cde(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Mde={class:"distribution__container__chart-type__chart"};function Ide(e,n,i,B,z,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Sde,[t.createElementVNode("div",Tde,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Ede,t.toDisplayString(a.name),1),Ade,t.createElementVNode("div",Mde,[t.createVNode(m,{ref_for:!0,ref:a.id,type:"radar",height:z.height,options:z.arrayChartOptions[y],series:z.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const Pde=$i(kde,[["render",Ide],["__scopeId","data-v-305d7521"]]),Bde=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},bk={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(n){throw new Error(n)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},wN=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},kN=bk.setup;bk.setup=kN?(e,n)=>(wN(),kN(e,n)):wN;const Nde={key:0,class:"text-left"},Ode=["width","src"],Dde=["checked"],Lde=["width","src"],Fde={key:3,class:"text-right"};function zde(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Nde,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Ode)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:z.OptionDefault},null,40,Dde),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,Lde)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Fde,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Rde=Bde(bk,[["render",zde],["__scopeId","data-v-e2a20444"]]),x0a="",w0a="",Vde={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function $de(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:n[0]||(n[0]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const CN=$i(Vde,[["render",$de],["__scopeId","data-v-0cf5a19c"]]),k0a="",jde={name:"SoccerChalkboardXg",components:{Tooltip:CN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,z)=>[...B,z.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,z)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,z));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:z.jersey_number,matchlapse:z.matchLapse,playerName:z.player_name,photo:z.photo,rivalLogo:z.rival_id,x1:c.invert.includes(z.categoryId)?100-z[`x${c.points[0]}`]:z[`x${c.points[0]}`],y1:c.invert.includes(z.categoryId)?100-z[`y${c.points[0]}`]:z[`y${c.points[0]}`],x2:c.invert.includes(z.categoryId)?100-z[`x${c.points[1]}`]:z[`x${c.points[1]}`],y2:c.invert.includes(z.categoryId)?100-z[`y${c.points[1]}`]:z[`y${c.points[1]}`],x3:c.invert.includes(z.categoryId)?100-z[`x${c.points[2]}`]:z[`x${c.points[2]}`],y3:c.invert.includes(z.categoryId)?100-z[`y${c.points[2]}`]:z[`y${c.points[2]}`],momentOfPlay:z.moment_of_play,isOwnGoal:c.invert.includes(z.categoryId),xGi:z.xGi,xGf:z.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,n){return e.find(i=>typeof i=="number"?i===n.categoryId:i.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Qv=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),Ude={class:"soccer-chalkboard-xg"},Gde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Hde={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Wde=Qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),qde=["id"],Yde=["fill"],Xde=Qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Zde=["id"],Jde=["x1","y1","x2","y2","stroke"],Kde=["x1","y1","x2","y2","stroke","marker-end"],Qde=["onMouseover"],ehe=["x","y","fill"],the=["x","y"],ahe={class:"tooltip-data has-text-left"},nhe={class:"bold"},rhe={class:"tooltip-image"},ihe={class:"tooltip-image"},ohe=["src"],she={class:"tooltip-xg"},lhe={key:0},che=Qv(()=>t.createElementVNode("span",null,"xGi:",-1)),uhe=Qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dhe={key:1},hhe=Qv(()=>t.createElementVNode("span",null,"xGf:",-1));function phe(e,n,i,B,z,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Ude,[(t.openBlock(),t.createElementBlock("svg",Gde,[(t.openBlock(),t.createElementBlock("svg",Hde,[t.createElementVNode("defs",null,[Wde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Yde)],8,qde))),128)),Xde]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Jde),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Kde),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:n[0]||(n[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ehe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,the)],40,Qde)],8,Zde))),128))]))])),t.createVNode(m,{data:z.data},{default:t.withCtx(()=>[t.createElementVNode("div",ahe,[t.createElementVNode("div",null,[t.createElementVNode("span",nhe,t.toDisplayString(z.dataPlay.isOwnGoal?"Autogol":z.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(z.dataPlay.playerName)+" ",1),t.createElementVNode("div",rhe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+z.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(z.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",ihe,[t.createElementVNode("img",{src:z.dataPlay.rivalLogo},null,8,ohe)])]),t.createElementVNode("div",she,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGi)&&z.dataPlay.xGi<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",lhe,[che,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),uhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGf)&&z.dataPlay.xGf<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dhe,[hhe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const SN=$i(jde,[["render",phe],["__scopeId","data-v-d2d32849"]]),$x=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],C0a="",fhe={name:"XgLocal",components:{SoccerChalkboard:SN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},TN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),mhe={class:"xg-container"},ghe={class:"xg-container__info"},yhe=TN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),vhe={class:"table"},_he={class:"table__row"},bhe={class:"table__row__title"},xhe={class:"table__row__value"},whe=["src"],khe={class:"table__row"},Che={class:"table__row__title"},She={class:"table__row__value"},The={class:"table__row"},Ehe={class:"table__row__title"},Ahe={class:"table__row__value"},Mhe=TN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Ihe={class:"xg-container__field"};function Phe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mhe,[t.createElementVNode("div",ghe,[yhe,t.createElementVNode("div",vhe,[t.createElementVNode("div",_he,[t.createElementVNode("div",bhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",xhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,whe)])]),t.createElementVNode("div",khe,[t.createElementVNode("div",Che,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",She,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",The,[t.createElementVNode("div",Ehe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Ahe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Mhe]),t.createElementVNode("div",Ihe,[t.createVNode(m,{plays:e.playsLocal,categories:z.categories,team:e.team},null,8,["plays","categories","team"])])])}const Bhe=$i(fhe,[["render",Phe],["__scopeId","data-v-a13ade42"]]),S0a="",Nhe={name:"XgAway",components:{SoccerChalkboard:SN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},EN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Ohe={class:"xg-container"},Dhe={class:"xg-container__info"},Lhe=EN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Fhe={class:"table"},zhe={class:"table__row"},Rhe={class:"table__row__title"},Vhe={class:"table__row__value"},$he=["src"],jhe={class:"table__row"},Uhe={class:"table__row__title"},Ghe={class:"table__row__value"},Hhe={class:"table__row"},Whe={class:"table__row__title"},qhe={class:"table__row__value"},Yhe=EN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Xhe={class:"xg-container__field"};function Zhe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Ohe,[t.createElementVNode("div",Dhe,[Lhe,t.createElementVNode("div",Fhe,[t.createElementVNode("div",zhe,[t.createElementVNode("div",Rhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Vhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,$he)])]),t.createElementVNode("div",jhe,[t.createElementVNode("div",Uhe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Ghe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Hhe,[t.createElementVNode("div",Whe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",qhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Yhe]),t.createElementVNode("div",Xhe,[t.createVNode(m,{plays:e.playsAway,categories:z.categories,team:i.team},null,8,["plays","categories","team"])])])])}const Jhe=$i(Nhe,[["render",Zhe],["__scopeId","data-v-ddcacec9"]]),T0a="",Khe={name:"SoccerChalkboardXgMobile",components:{Tooltip:CN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,z)=>[...B,z.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,z)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,z));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:z.jersey_number,matchlapse:z.matchLapse,playerName:z.player_name,photo:z.photo,rivalLogo:z.rival_id,x1:c.invert.includes(z.categoryId)?100-z[`x${c.points[0]}`]:z[`x${c.points[0]}`],y1:c.invert.includes(z.categoryId)?100-z[`y${c.points[0]}`]:z[`y${c.points[0]}`],x2:c.invert.includes(z.categoryId)?100-z[`x${c.points[1]}`]:z[`x${c.points[1]}`],y2:c.invert.includes(z.categoryId)?100-z[`y${c.points[1]}`]:z[`y${c.points[1]}`],x3:c.invert.includes(z.categoryId)?100-z[`x${c.points[2]}`]:z[`x${c.points[2]}`],y3:c.invert.includes(z.categoryId)?100-z[`y${c.points[2]}`]:z[`y${c.points[2]}`],momentOfPlay:z.moment_of_play,isOwnGoal:c.invert.includes(z.categoryId),xGi:z.xGi,xGf:z.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,n){return e.find(i=>typeof i=="number"?i===n.categoryId:i.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},e2=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Qhe={class:"soccer-chalkboard-xg"},epe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},tpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},ape=e2(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),npe=["id"],rpe=["fill"],ipe=e2(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ope=["id"],spe=["x1","y1","x2","y2","stroke"],lpe=["x1","y1","x2","y2","stroke","marker-end"],cpe=["onMouseover"],upe=["x","y","fill"],dpe=["x","y"],hpe={class:"tooltip-data has-text-left"},ppe={class:"bold"},fpe={class:"tooltip-image"},mpe={class:"tooltip-image"},gpe=["src"],ype={class:"tooltip-xg"},vpe={key:0},_pe=e2(()=>t.createElementVNode("span",null,"xGi:",-1)),bpe=e2(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),xpe={key:1},wpe=e2(()=>t.createElementVNode("span",null,"xGf:",-1));function kpe(e,n,i,B,z,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Qhe,[(t.openBlock(),t.createElementBlock("svg",epe,[(t.openBlock(),t.createElementBlock("svg",tpe,[t.createElementVNode("defs",null,[ape,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,rpe)],8,npe))),128)),ipe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,spe),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,lpe),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:n[0]||(n[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,upe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,dpe)],40,cpe)],8,ope))),128))]))])),t.createVNode(m,{data:z.data},{default:t.withCtx(()=>[t.createElementVNode("div",hpe,[t.createElementVNode("div",null,[t.createElementVNode("span",ppe,t.toDisplayString(z.dataPlay.isOwnGoal?"Autogol":z.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(z.dataPlay.playerName)+" ",1),t.createElementVNode("div",fpe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+z.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(z.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mpe,[t.createElementVNode("img",{src:z.dataPlay.rivalLogo},null,8,gpe)])]),t.createElementVNode("div",ype,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGi)&&z.dataPlay.xGi<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",vpe,[_pe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),bpe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGf)&&z.dataPlay.xGf<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",xpe,[wpe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const AN=$i(Khe,[["render",kpe],["__scopeId","data-v-9bd26437"]]),E0a="",Cpe={name:"Xg",components:{SoccerChalkboard:AN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},MN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),Spe={class:"xg-container"},Tpe=MN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Epe={class:"xg-container__field"},Ape={class:"xg-container__info"},Mpe={class:"table"},Ipe={class:"table__row"},Ppe={class:"table__row__title"},Bpe={class:"table__row__value"},Npe=["src"],Ope={class:"table__row"},Dpe={class:"table__row__title"},Lpe={class:"table__row__value"},Fpe={class:"table__row"},zpe={class:"table__row__title"},Rpe={class:"table__row__value"},Vpe=MN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function $pe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Spe,[Tpe,t.createElementVNode("div",Epe,[t.createVNode(m,{plays:e.playsLocal,categories:z.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Ape,[t.createElementVNode("div",Mpe,[t.createElementVNode("div",Ipe,[t.createElementVNode("div",Ppe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Bpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Npe)])]),t.createElementVNode("div",Ope,[t.createElementVNode("div",Dpe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Lpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Fpe,[t.createElementVNode("div",zpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Rpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Vpe])])}const jpe=$i(Cpe,[["render",$pe],["__scopeId","data-v-fe06617a"]]),A0a="",Upe={name:"Xg",components:{SoccerChalkboard:AN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},IN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),Gpe={class:"xg-container"},Hpe=IN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Wpe={class:"xg-container__field"},qpe={class:"xg-container__info"},Ype={class:"table"},Xpe={class:"table__row"},Zpe={class:"table__row__title"},Jpe={class:"table__row__value"},Kpe=["src"],Qpe={class:"table__row"},efe={class:"table__row__title"},tfe={class:"table__row__value"},afe={class:"table__row"},nfe={class:"table__row__title"},rfe={class:"table__row__value"},ife=IN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function ofe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Gpe,[Hpe,t.createElementVNode("div",Wpe,[t.createVNode(m,{plays:e.playsAway,categories:z.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",qpe,[t.createElementVNode("div",Ype,[t.createElementVNode("div",Xpe,[t.createElementVNode("div",Zpe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Jpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Kpe)])]),t.createElementVNode("div",Qpe,[t.createElementVNode("div",efe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",tfe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",afe,[t.createElementVNode("div",nfe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",rfe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),ife])])}const sfe=$i(Upe,[["render",ofe],["__scopeId","data-v-e1c76ea1"]]),M0a="";let PN=null;const lfe={name:"XgMain",components:{GSCSwitchRadio:Rde,SoccerChalkboardLocal:Bhe,SoccerChalkboardAway:Jhe,SoccerChalkboardLocalMobile:jpe,SoccerChalkboardAwayMobile:sfe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)PN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),PN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},cfe={class:"xg",ref:"gamesContainer"},ufe={key:0,class:"selector-team"};function dfe(e,n,i,B,z,c){const m=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),r=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",cfe,[z.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",ufe,[t.createVNode(m,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:z.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),z.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),z.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),z.gamesContainerWidth<655&&z.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),z.gamesContainerWidth<655&&z.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(r,{key:4})):t.createCommentVNode("",!0)],512)}const hfe=$i(lfe,[["render",dfe],["__scopeId","data-v-12759086"]]),I0a="",xk=e=>(t.pushScopeId("data-v-556acf41"),e=e(),t.popScopeId(),e),pfe={class:"statistics-main"},ffe={class:"statistics-main__header"},mfe={class:"statistics-main__header__filter"},gfe={key:0,class:"statistics-main__header__live-switch"},yfe=xk(()=>t.createElementVNode("div",null,"Este partido",-1)),vfe=xk(()=>t.createElementVNode("div",null,"Acumulado",-1)),_fe={class:"statistics-main__header__info"},bfe=xk(()=>t.createElementVNode("br",null,null,-1)),xfe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:Sle,Comparative:wde,Distribution:Pde,GSCSlider:Kv,XG:hfe}}),wfe=$i(Object.assign(xfe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const i=e,B=ix(),z=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),m=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),r=t.ref(0),v=t.computed(()=>{const d=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-d,g=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let T="";return x>0&&(T=x===1?x+" segundo":x+" segundos"),w>0&&(T=w===1?w+" minuto":w+" minutos"),b>0&&(T=b===1?b+" hora":b+" horas"),g>0&&(T=g===1?g+" día":g+" días"),T}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,d=>{const u={...d};f.value=!(i.game.is_live||i.game.game_status===0),i.game.is_live||K8(),p(u),r.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,d=>{B.commit("nextGeneral/updateShowLiveData",!d)},{immediate:!0});async function p(d){try{c.value.gameId!==d.gameId&&(c.value=d,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:d.gameId,currentSeasonId:d.seasonId,isTeamsAnalysis:!0,defaultFilter:m.value,gameInfo:d}))}catch(u){throw new Error(u)}}function l(d){y.value=d}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(d){B.state.nextGeneral.usePastSeasonId&&(d.seasonId=B.state.nextGeneral.pastSeasonId),n("openmedia",d)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(d,u)=>(t.openBlock(),t.createElementBlock("div",pfe,[t.createElementVNode("div",ffe,[t.createVNode(t.unref(Kv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(kB,t.mergeProps(z.value,{text:h.name,"is-active":y.value.id===h.id,onClick:g=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mfe,[t.createVNode(Nse)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",gfe,[yfe,t.createElementVNode("div",null,[t.createVNode(CB,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=h=>f.value=h)},null,8,["modelValue"])]),vfe],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",_fe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),bfe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:r.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-556acf41"]]);function BN(e,n){return function(){return e.apply(n,arguments)}}const{toString:kfe}=Object.prototype,{getPrototypeOf:wk}=Object,jx=(e=>n=>{const i=kfe.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zp=e=>(e=e.toLowerCase(),n=>jx(n)===e),Ux=e=>n=>typeof n===e,{isArray:ay}=Array,t2=Ux("undefined");function Cfe(e){return e!==null&&!t2(e)&&e.constructor!==null&&!t2(e.constructor)&&_h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NN=zp("ArrayBuffer");function Sfe(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NN(e.buffer),n}const Tfe=Ux("string"),_h=Ux("function"),ON=Ux("number"),Gx=e=>e!==null&&typeof e=="object",Efe=e=>e===!0||e===!1,Hx=e=>{if(jx(e)!=="object")return!1;const n=wk(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Afe=zp("Date"),Mfe=zp("File"),Ife=zp("Blob"),Pfe=zp("FileList"),Bfe=e=>Gx(e)&&_h(e.pipe),Nfe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||_h(e.append)&&((n=jx(e))==="formdata"||n==="object"&&_h(e.toString)&&e.toString()==="[object FormData]"))},Ofe=zp("URLSearchParams"),[Dfe,Lfe,Ffe,zfe]=["ReadableStream","Request","Response","Headers"].map(zp),Rfe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function a2(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,z;if(typeof e!="object"&&(e=[e]),ay(e))for(B=0,z=e.length;B<z;B++)n.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],n.call(null,e[a],a,e)}}function DN(e,n){n=n.toLowerCase();const i=Object.keys(e);let B=i.length,z;for(;B-- >0;)if(z=i[B],n===z.toLowerCase())return z;return null}const rg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LN=e=>!t2(e)&&e!==rg;function kk(){const{caseless:e}=LN(this)&&this||{},n={},i=(B,z)=>{const c=e&&DN(n,z)||z;Hx(n[c])&&Hx(B)?n[c]=kk(n[c],B):Hx(B)?n[c]=kk({},B):ay(B)?n[c]=B.slice():n[c]=B};for(let B=0,z=arguments.length;B<z;B++)arguments[B]&&a2(arguments[B],i);return n}const Vfe=(e,n,i,{allOwnKeys:B}={})=>(a2(n,(z,c)=>{i&&_h(z)?e[c]=BN(z,i):e[c]=z},{allOwnKeys:B}),e),$fe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jfe=(e,n,i,B)=>{e.prototype=Object.create(n.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},Ufe=(e,n,i,B)=>{let z,c,m;const a={};if(n=n||{},e==null)return n;do{for(z=Object.getOwnPropertyNames(e),c=z.length;c-- >0;)m=z[c],(!B||B(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=i!==!1&&wk(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},Gfe=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const B=e.indexOf(n,i);return B!==-1&&B===i},Hfe=e=>{if(!e)return null;if(ay(e))return e;let n=e.length;if(!ON(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},Wfe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&wk(Uint8Array)),qfe=(e,n)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const z=B.value;n.call(e,z[0],z[1])}},Yfe=(e,n)=>{let i;const B=[];for(;(i=e.exec(n))!==null;)B.push(i);return B},Xfe=zp("HTMLFormElement"),Zfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,B){return i.toUpperCase()+B}),FN=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),Jfe=zp("RegExp"),zN=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),B={};a2(i,(z,c)=>{let m;(m=n(z,c,e))!==!1&&(B[c]=m||z)}),Object.defineProperties(e,B)},Kfe=e=>{zN(e,(n,i)=>{if(_h(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(_h(B)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Qfe=(e,n)=>{const i={},B=z=>{z.forEach(c=>{i[c]=!0})};return ay(e)?B(e):B(String(e).split(n)),i},eme=()=>{},tme=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,Ck="abcdefghijklmnopqrstuvwxyz",RN="0123456789",VN={DIGIT:RN,ALPHA:Ck,ALPHA_DIGIT:Ck+Ck.toUpperCase()+RN},ame=(e=16,n=VN.ALPHA_DIGIT)=>{let i="";const{length:B}=n;for(;e--;)i+=n[Math.random()*B|0];return i};function nme(e){return!!(e&&_h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rme=e=>{const n=new Array(10),i=(B,z)=>{if(Gx(B)){if(n.indexOf(B)>=0)return;if(!("toJSON"in B)){n[z]=B;const c=ay(B)?[]:{};return a2(B,(m,a)=>{const y=i(m,z+1);!t2(y)&&(c[a]=y)}),n[z]=void 0,c}}return B};return i(e,0)},ime=zp("AsyncFunction"),ome=e=>e&&(Gx(e)||_h(e))&&_h(e.then)&&_h(e.catch),$N=((e,n)=>e?setImmediate:n?((i,B)=>(rg.addEventListener("message",({source:z,data:c})=>{z===rg&&c===i&&B.length&&B.shift()()},!1),z=>{B.push(z),rg.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",_h(rg.postMessage)),sme=typeof queueMicrotask<"u"?queueMicrotask.bind(rg):typeof process<"u"&&process.nextTick||$N,hr={isArray:ay,isArrayBuffer:NN,isBuffer:Cfe,isFormData:Nfe,isArrayBufferView:Sfe,isString:Tfe,isNumber:ON,isBoolean:Efe,isObject:Gx,isPlainObject:Hx,isReadableStream:Dfe,isRequest:Lfe,isResponse:Ffe,isHeaders:zfe,isUndefined:t2,isDate:Afe,isFile:Mfe,isBlob:Ife,isRegExp:Jfe,isFunction:_h,isStream:Bfe,isURLSearchParams:Ofe,isTypedArray:Wfe,isFileList:Pfe,forEach:a2,merge:kk,extend:Vfe,trim:Rfe,stripBOM:$fe,inherits:jfe,toFlatObject:Ufe,kindOf:jx,kindOfTest:zp,endsWith:Gfe,toArray:Hfe,forEachEntry:qfe,matchAll:Yfe,isHTMLForm:Xfe,hasOwnProperty:FN,hasOwnProp:FN,reduceDescriptors:zN,freezeMethods:Kfe,toObjectSet:Qfe,toCamelCase:Zfe,noop:eme,toFiniteNumber:tme,findKey:DN,global:rg,isContextDefined:LN,ALPHABET:VN,generateString:ame,isSpecCompliantForm:nme,toJSONObject:rme,isAsyncFn:ime,isThenable:ome,setImmediate:$N,asap:sme};function Yo(e,n,i,B,z){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),B&&(this.request=B),z&&(this.response=z)}hr.inherits(Yo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jN=Yo.prototype,UN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UN[e]={value:e}}),Object.defineProperties(Yo,UN),Object.defineProperty(jN,"isAxiosError",{value:!0}),Yo.from=(e,n,i,B,z,c)=>{const m=Object.create(jN);return hr.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Yo.call(m,e.message,n,i,B,z),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const lme=null;function Sk(e){return hr.isPlainObject(e)||hr.isArray(e)}function GN(e){return hr.endsWith(e,"[]")?e.slice(0,-2):e}function HN(e,n,i){return e?e.concat(n).map(function(B,z){return B=GN(B),!i&&z?"["+B+"]":B}).join(i?".":""):n}function cme(e){return hr.isArray(e)&&!e.some(Sk)}const ume=hr.toFlatObject(hr,{},null,function(e){return/^is[A-Z]/.test(e)});function Wx(e,n,i){if(!hr.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=hr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!hr.isUndefined(l[p])});const B=i.metaTokens,z=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&hr.isSpecCompliantForm(n);if(!hr.isFunction(z))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(hr.isDate(p))return p.toISOString();if(!a&&hr.isBlob(p))throw new Yo("Blob is not supported. Use a Buffer instead.");return hr.isArrayBuffer(p)||hr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(hr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(hr.isArray(p)&&cme(p)||(hr.isFileList(p)||hr.endsWith(l,"[]"))&&(s=hr.toArray(p)))return l=GN(l),s.forEach(function(d,u){!(hr.isUndefined(d)||d===null)&&n.append(m===!0?HN([l],u,c):m===null?l:l+"[]",y(d))}),!1}return Sk(p)?!0:(n.append(HN(o,l,c),y(p)),!1)}const r=[],v=Object.assign(ume,{defaultVisitor:f,convertValue:y,isVisitable:Sk});function _(p,l){if(!hr.isUndefined(p)){if(r.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));r.push(p),hr.forEach(p,function(o,s){(!(hr.isUndefined(o)||o===null)&&z.call(n,o,hr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),r.pop()}}if(!hr.isObject(e))throw new TypeError("data must be an object");return _(e),n}function WN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function Tk(e,n){this._pairs=[],e&&Wx(e,this,n)}const qN=Tk.prototype;qN.append=function(e,n){this._pairs.push([e,n])},qN.toString=function(e){const n=e?function(i){return e.call(this,i,WN)}:WN;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function dme(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YN(e,n,i){if(!n)return e;const B=i&&i.encode||dme,z=i&&i.serialize;let c;if(z?c=z(n,i):c=hr.isURLSearchParams(n)?n.toString():new Tk(n,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const XN=class{constructor(){this.handlers=[]}use(n,i,B){return this.handlers.push({fulfilled:n,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){hr.forEach(this.handlers,function(i){i!==null&&n(i)})}},ZN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hme=typeof URLSearchParams<"u"?URLSearchParams:Tk,pme=typeof FormData<"u"?FormData:null,fme=typeof Blob<"u"?Blob:null,mme={isBrowser:!0,classes:{URLSearchParams:hme,FormData:pme,Blob:fme},protocols:["http","https","file","blob","url","data"]},Ek=typeof window<"u"&&typeof document<"u",gme=(e=>Ek&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),yme=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vme=Ek&&window.location.href||"http://localhost",_me=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ek,hasStandardBrowserEnv:gme,hasStandardBrowserWebWorkerEnv:yme,origin:vme},Symbol.toStringTag,{value:"Module"})),Rp={..._me,...mme};function bme(e,n){return Wx(e,new Rp.classes.URLSearchParams,Object.assign({visitor:function(i,B,z,c){return Rp.isNode&&hr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function xme(e){return hr.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function wme(e){const n={},i=Object.keys(e);let B;const z=i.length;let c;for(B=0;B<z;B++)c=i[B],n[c]=e[c];return n}function JN(e){function n(i,B,z,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&hr.isArray(z)?z.length:m,y?(hr.hasOwnProp(z,m)?z[m]=[z[m],B]:z[m]=B,!a):((!z[m]||!hr.isObject(z[m]))&&(z[m]=[]),n(i,B,z[m],c)&&hr.isArray(z[m])&&(z[m]=wme(z[m])),!a)}if(hr.isFormData(e)&&hr.isFunction(e.entries)){const i={};return hr.forEachEntry(e,(B,z)=>{n(xme(B),z,i,0)}),i}return null}function kme(e,n,i){if(hr.isString(e))try{return(n||JSON.parse)(e),hr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const Ak={transitional:ZN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",B=i.indexOf("application/json")>-1,z=hr.isObject(e);if(z&&hr.isHTMLForm(e)&&(e=new FormData(e)),hr.isFormData(e))return B?JSON.stringify(JN(e)):e;if(hr.isArrayBuffer(e)||hr.isBuffer(e)||hr.isStream(e)||hr.isFile(e)||hr.isBlob(e)||hr.isReadableStream(e))return e;if(hr.isArrayBufferView(e))return e.buffer;if(hr.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(z){if(i.indexOf("application/x-www-form-urlencoded")>-1)return bme(e,this.formSerializer).toString();if((c=hr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Wx(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return z||B?(n.setContentType("application/json",!1),kme(e)):e}],transformResponse:[function(e){const n=this.transitional||Ak.transitional,i=n&&n.forcedJSONParsing,B=this.responseType==="json";if(hr.isResponse(e)||hr.isReadableStream(e))return e;if(e&&hr.isString(e)&&(i&&!this.responseType||B)){const z=!(n&&n.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(z)throw c.name==="SyntaxError"?Yo.from(c,Yo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rp.classes.FormData,Blob:Rp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hr.forEach(["delete","get","head","post","put","patch"],e=>{Ak.headers[e]={}});const Mk=Ak,Cme=hr.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"]),Sme=e=>{const n={};let i,B,z;return e&&e.split(`
|
|
34
|
+
`}}}},getChartSeries(e,n){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((z,c)=>{n.xaxis.categories.push(this.prepareLabels(z,c)),n.arraySubcategories.push(z);const m=z.homeTeam[this.homeTeamStatisticsType].totalPostGame+z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(m?z.homeTeam[this.homeTeamStatisticsType].totalPostGame/m:0))),i.dataTotal.push(z.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(m?z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/m:0))),B.dataTotal.push(z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(i={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((z,c)=>{n.xaxis.categories.push(this.prepareLabels(z,c)),n.arraySubcategories.push(z);let m,a,y,f;const r=z.homeTeam.accomplished.avgPostGame+z.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&z.generalCategoriesIds.accomplished===3?(m=z.homeTeam.accomplished.avgPostGame/r,y=z.homeTeam.accomplished.totalPostGame):(m=r?z.homeTeam[this.homeTeamStatisticsType].avgPostGame/r:0,y=z.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=z.homeTeam[this.homeTeamStatisticsType].totalLive+z.visitingTeam[this.visitingTeamStatisticsType].totalLive;m=v?z.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=z.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&z.generalCategoriesIds.accomplished===3?(a=z.visitingTeam.accomplished.avgPostGame/r,f=z.visitingTeam.accomplished.totalPostGame):(a=r?z.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/r:0,f=z.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=z.homeTeam[this.homeTeamStatisticsType].totalLive+z.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?z.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=z.visitingTeam[this.visitingTeamStatisticsType].totalLive}i.data.push(Math.round(120*m)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,i){const B=i===0?"homeTeam":"visitingTeam",z=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=z.id!=="3-0",this.tooltip.data=this.getSubcategoryData(z,B),this.tooltip.local=i===0,this.tooltip.names=z.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(z);const c=e.globals.clientX||0,m=e.globals.clientY||0;this.globals.x=c,this.globals.y=m,this.tooltip.x=c,this.tooltip.y=m>700?m-250:m;const a=z.generalCategoriesIds.accomplished===3;if(a){const y=z.homeTeam.accomplished.avgPostGame+z.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?z[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return i;const B=13;if(i.length>B){let z=i.split(" ");i=[];let c="",m="",a=z.slice(-1)[0];z.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(m.trim()),c=y),m=c,a===y&&i.push(m.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,i)=>n+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},Cde=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),Sde={class:"distribution"},Tde={class:"distribution__container"},Ede={class:"distribution__container__chart-type__title"},Ade=Cde(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Mde={class:"distribution__container__chart-type__chart"};function Ide(e,n,i,B,z,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Sde,[t.createElementVNode("div",Tde,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Ede,t.toDisplayString(a.name),1),Ade,t.createElementVNode("div",Mde,[t.createVNode(m,{ref_for:!0,ref:a.id,type:"radar",height:z.height,options:z.arrayChartOptions[y],series:z.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const Pde=$i(kde,[["render",Ide],["__scopeId","data-v-305d7521"]]),Bde=(e,n)=>{const i=e.__vccOpts||e;for(const[B,z]of n)i[B]=z;return i},bk={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(n){throw new Error(n)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},wN=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},kN=bk.setup;bk.setup=kN?(e,n)=>(wN(),kN(e,n)):wN;const Nde={key:0,class:"text-left"},Ode=["width","src"],Dde=["checked"],Lde=["width","src"],Fde={key:3,class:"text-right"};function zde(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Nde,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Ode)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:z.OptionDefault},null,40,Dde),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,Lde)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Fde,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Rde=Bde(bk,[["render",zde],["__scopeId","data-v-e2a20444"]]),x0a="",w0a="",Vde={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function $de(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:n[0]||(n[0]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const CN=$i(Vde,[["render",$de],["__scopeId","data-v-0cf5a19c"]]),k0a="",jde={name:"SoccerChalkboardXg",components:{Tooltip:CN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,z)=>[...B,z.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,z)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,z));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:z.jersey_number,matchlapse:z.matchLapse,playerName:z.player_name,photo:z.photo,rivalLogo:z.rival_id,x1:c.invert.includes(z.categoryId)?100-z[`x${c.points[0]}`]:z[`x${c.points[0]}`],y1:c.invert.includes(z.categoryId)?100-z[`y${c.points[0]}`]:z[`y${c.points[0]}`],x2:c.invert.includes(z.categoryId)?100-z[`x${c.points[1]}`]:z[`x${c.points[1]}`],y2:c.invert.includes(z.categoryId)?100-z[`y${c.points[1]}`]:z[`y${c.points[1]}`],x3:c.invert.includes(z.categoryId)?100-z[`x${c.points[2]}`]:z[`x${c.points[2]}`],y3:c.invert.includes(z.categoryId)?100-z[`y${c.points[2]}`]:z[`y${c.points[2]}`],momentOfPlay:z.moment_of_play,isOwnGoal:c.invert.includes(z.categoryId),xGi:z.xGi,xGf:z.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,n){return e.find(i=>typeof i=="number"?i===n.categoryId:i.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Qv=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),Ude={class:"soccer-chalkboard-xg"},Gde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Hde={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Wde=Qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),qde=["id"],Yde=["fill"],Xde=Qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Zde=["id"],Jde=["x1","y1","x2","y2","stroke"],Kde=["x1","y1","x2","y2","stroke","marker-end"],Qde=["onMouseover"],ehe=["x","y","fill"],the=["x","y"],ahe={class:"tooltip-data has-text-left"},nhe={class:"bold"},rhe={class:"tooltip-image"},ihe={class:"tooltip-image"},ohe=["src"],she={class:"tooltip-xg"},lhe={key:0},che=Qv(()=>t.createElementVNode("span",null,"xGi:",-1)),uhe=Qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dhe={key:1},hhe=Qv(()=>t.createElementVNode("span",null,"xGf:",-1));function phe(e,n,i,B,z,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Ude,[(t.openBlock(),t.createElementBlock("svg",Gde,[(t.openBlock(),t.createElementBlock("svg",Hde,[t.createElementVNode("defs",null,[Wde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Yde)],8,qde))),128)),Xde]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Jde),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Kde),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:n[0]||(n[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,ehe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,the)],40,Qde)],8,Zde))),128))]))])),t.createVNode(m,{data:z.data},{default:t.withCtx(()=>[t.createElementVNode("div",ahe,[t.createElementVNode("div",null,[t.createElementVNode("span",nhe,t.toDisplayString(z.dataPlay.isOwnGoal?"Autogol":z.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(z.dataPlay.playerName)+" ",1),t.createElementVNode("div",rhe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+z.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(z.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",ihe,[t.createElementVNode("img",{src:z.dataPlay.rivalLogo},null,8,ohe)])]),t.createElementVNode("div",she,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGi)&&z.dataPlay.xGi<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",lhe,[che,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),uhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGf)&&z.dataPlay.xGf<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dhe,[hhe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const SN=$i(jde,[["render",phe],["__scopeId","data-v-d2d32849"]]),$x=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],C0a="",fhe={name:"XgLocal",components:{SoccerChalkboard:SN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},TN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),mhe={class:"xg-container"},ghe={class:"xg-container__info"},yhe=TN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),vhe={class:"table"},_he={class:"table__row"},bhe={class:"table__row__title"},xhe={class:"table__row__value"},whe=["src"],khe={class:"table__row"},Che={class:"table__row__title"},She={class:"table__row__value"},The={class:"table__row"},Ehe={class:"table__row__title"},Ahe={class:"table__row__value"},Mhe=TN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Ihe={class:"xg-container__field"};function Phe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mhe,[t.createElementVNode("div",ghe,[yhe,t.createElementVNode("div",vhe,[t.createElementVNode("div",_he,[t.createElementVNode("div",bhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",xhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,whe)])]),t.createElementVNode("div",khe,[t.createElementVNode("div",Che,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",She,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",The,[t.createElementVNode("div",Ehe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Ahe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Mhe]),t.createElementVNode("div",Ihe,[t.createVNode(m,{plays:e.playsLocal,categories:z.categories,team:e.team},null,8,["plays","categories","team"])])])}const Bhe=$i(fhe,[["render",Phe],["__scopeId","data-v-a13ade42"]]),S0a="",Nhe={name:"XgAway",components:{SoccerChalkboard:SN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},EN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Ohe={class:"xg-container"},Dhe={class:"xg-container__info"},Lhe=EN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Fhe={class:"table"},zhe={class:"table__row"},Rhe={class:"table__row__title"},Vhe={class:"table__row__value"},$he=["src"],jhe={class:"table__row"},Uhe={class:"table__row__title"},Ghe={class:"table__row__value"},Hhe={class:"table__row"},Whe={class:"table__row__title"},qhe={class:"table__row__value"},Yhe=EN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),Xhe={class:"xg-container__field"};function Zhe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Ohe,[t.createElementVNode("div",Dhe,[Lhe,t.createElementVNode("div",Fhe,[t.createElementVNode("div",zhe,[t.createElementVNode("div",Rhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Vhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,$he)])]),t.createElementVNode("div",jhe,[t.createElementVNode("div",Uhe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Ghe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Hhe,[t.createElementVNode("div",Whe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",qhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Yhe]),t.createElementVNode("div",Xhe,[t.createVNode(m,{plays:e.playsAway,categories:z.categories,team:i.team},null,8,["plays","categories","team"])])])])}const Jhe=$i(Nhe,[["render",Zhe],["__scopeId","data-v-ddcacec9"]]),T0a="",Khe={name:"SoccerChalkboardXgMobile",components:{Tooltip:CN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,n)=>({id:n,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,z)=>[...B,z.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,z)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,z));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:z.jersey_number,matchlapse:z.matchLapse,playerName:z.player_name,photo:z.photo,rivalLogo:z.rival_id,x1:c.invert.includes(z.categoryId)?100-z[`x${c.points[0]}`]:z[`x${c.points[0]}`],y1:c.invert.includes(z.categoryId)?100-z[`y${c.points[0]}`]:z[`y${c.points[0]}`],x2:c.invert.includes(z.categoryId)?100-z[`x${c.points[1]}`]:z[`x${c.points[1]}`],y2:c.invert.includes(z.categoryId)?100-z[`y${c.points[1]}`]:z[`y${c.points[1]}`],x3:c.invert.includes(z.categoryId)?100-z[`x${c.points[2]}`]:z[`x${c.points[2]}`],y3:c.invert.includes(z.categoryId)?100-z[`y${c.points[2]}`]:z[`y${c.points[2]}`],momentOfPlay:z.moment_of_play,isOwnGoal:c.invert.includes(z.categoryId),xGi:z.xGi,xGf:z.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,n){return e.find(i=>typeof i=="number"?i===n.categoryId:i.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},e2=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Qhe={class:"soccer-chalkboard-xg"},epe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},tpe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},ape=e2(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),npe=["id"],rpe=["fill"],ipe=e2(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),ope=["id"],spe=["x1","y1","x2","y2","stroke"],lpe=["x1","y1","x2","y2","stroke","marker-end"],cpe=["onMouseover"],upe=["x","y","fill"],dpe=["x","y"],hpe={class:"tooltip-data has-text-left"},ppe={class:"bold"},fpe={class:"tooltip-image"},mpe={class:"tooltip-image"},gpe=["src"],ype={class:"tooltip-xg"},vpe={key:0},_pe=e2(()=>t.createElementVNode("span",null,"xGi:",-1)),bpe=e2(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),xpe={key:1},wpe=e2(()=>t.createElementVNode("span",null,"xGf:",-1));function kpe(e,n,i,B,z,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Qhe,[(t.openBlock(),t.createElementBlock("svg",epe,[(t.openBlock(),t.createElementBlock("svg",tpe,[t.createElementVNode("defs",null,[ape,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,rpe)],8,npe))),128)),ipe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,spe),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,lpe),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:n[0]||(n[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,upe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,dpe)],40,cpe)],8,ope))),128))]))])),t.createVNode(m,{data:z.data},{default:t.withCtx(()=>[t.createElementVNode("div",hpe,[t.createElementVNode("div",null,[t.createElementVNode("span",ppe,t.toDisplayString(z.dataPlay.isOwnGoal?"Autogol":z.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(z.dataPlay.playerName)+" ",1),t.createElementVNode("div",fpe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+z.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(z.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mpe,[t.createElementVNode("img",{src:z.dataPlay.rivalLogo},null,8,gpe)])]),t.createElementVNode("div",ype,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGi)&&z.dataPlay.xGi<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",vpe,[_pe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),bpe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(z.dataPlay.xGf)&&z.dataPlay.xGf<=1&&!z.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",xpe,[wpe,t.createTextVNode(" "+t.toDisplayString(Number(z.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const AN=$i(Khe,[["render",kpe],["__scopeId","data-v-9bd26437"]]),E0a="",Cpe={name:"Xg",components:{SoccerChalkboard:AN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},MN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),Spe={class:"xg-container"},Tpe=MN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Epe={class:"xg-container__field"},Ape={class:"xg-container__info"},Mpe={class:"table"},Ipe={class:"table__row"},Ppe={class:"table__row__title"},Bpe={class:"table__row__value"},Npe=["src"],Ope={class:"table__row"},Dpe={class:"table__row__title"},Lpe={class:"table__row__value"},Fpe={class:"table__row"},zpe={class:"table__row__title"},Rpe={class:"table__row__value"},Vpe=MN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function $pe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Spe,[Tpe,t.createElementVNode("div",Epe,[t.createVNode(m,{plays:e.playsLocal,categories:z.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Ape,[t.createElementVNode("div",Mpe,[t.createElementVNode("div",Ipe,[t.createElementVNode("div",Ppe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Bpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Npe)])]),t.createElementVNode("div",Ope,[t.createElementVNode("div",Dpe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Lpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Fpe,[t.createElementVNode("div",zpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Rpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Vpe])])}const jpe=$i(Cpe,[["render",$pe],["__scopeId","data-v-fe06617a"]]),A0a="",Upe={name:"Xg",components:{SoccerChalkboard:AN},props:{},data(){return{categories:$x}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...eu("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...eu("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...eu("loginGeneral",["getPremiumAccount","getIsGolstats"]),...eu("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,n){e!==n&&this.fillXgPlays()}}},methods:{...Lm("general",["setVideoSrc","setVideoModalVisibility"]),...Lm("xgGeneral",["setTeamSelected"]),...lx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},IN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),Gpe={class:"xg-container"},Hpe=IN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Wpe={class:"xg-container__field"},qpe={class:"xg-container__info"},Ype={class:"table"},Xpe={class:"table__row"},Zpe={class:"table__row__title"},Jpe={class:"table__row__value"},Kpe=["src"],Qpe={class:"table__row"},efe={class:"table__row__title"},tfe={class:"table__row__value"},afe={class:"table__row"},nfe={class:"table__row__title"},rfe={class:"table__row__value"},ife=IN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function ofe(e,n,i,B,z,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Gpe,[Hpe,t.createElementVNode("div",Wpe,[t.createVNode(m,{plays:e.playsAway,categories:z.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",qpe,[t.createElementVNode("div",Ype,[t.createElementVNode("div",Xpe,[t.createElementVNode("div",Zpe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Jpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Kpe)])]),t.createElementVNode("div",Qpe,[t.createElementVNode("div",efe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",tfe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",afe,[t.createElementVNode("div",nfe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",rfe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),ife])])}const sfe=$i(Upe,[["render",ofe],["__scopeId","data-v-e1c76ea1"]]),M0a="";let PN=null;const lfe={name:"XgMain",components:{GSCSwitchRadio:Rde,SoccerChalkboardLocal:Bhe,SoccerChalkboardAway:Jhe,SoccerChalkboardLocalMobile:jpe,SoccerChalkboardAwayMobile:sfe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...eu("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)PN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),PN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},cfe={class:"xg",ref:"gamesContainer"},ufe={key:0,class:"selector-team"};function dfe(e,n,i,B,z,c){const m=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),r=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",cfe,[z.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",ufe,[t.createVNode(m,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:z.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),z.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),z.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),z.gamesContainerWidth<655&&z.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),z.gamesContainerWidth<655&&z.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(r,{key:4})):t.createCommentVNode("",!0)],512)}const hfe=$i(lfe,[["render",dfe],["__scopeId","data-v-12759086"]]),I0a="",xk=e=>(t.pushScopeId("data-v-081beab5"),e=e(),t.popScopeId(),e),pfe={class:"statistics-main"},ffe={class:"statistics-main__header"},mfe={class:"statistics-main__header__filter"},gfe={key:0,class:"statistics-main__header__live-switch"},yfe=xk(()=>t.createElementVNode("div",null,"Este partido",-1)),vfe=xk(()=>t.createElementVNode("div",null,"Acumulado",-1)),_fe={class:"statistics-main__header__info"},bfe=xk(()=>t.createElementVNode("br",null,null,-1)),xfe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:Sle,Comparative:wde,Distribution:Pde,GSCSlider:Kv,XG:hfe}}),wfe=$i(Object.assign(xfe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const i=e,B=ix(),z=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),m=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),r=t.ref(0),v=t.computed(()=>{const d=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-d,g=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let T="";return x>0&&(T=x===1?x+" segundo":x+" segundos"),w>0&&(T=w===1?w+" minuto":w+" minutos"),b>0&&(T=b===1?b+" hora":b+" horas"),g>0&&(T=g===1?g+" día":g+" días"),T}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,d=>{const u={...d};i.game.is_live||K8(),p(u),r.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,d=>{B.commit("nextGeneral/updateShowLiveData",!d)},{immediate:!0});async function p(d){try{c.value.gameId!==d.gameId&&(c.value=d,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:d.gameId,currentSeasonId:d.seasonId,isTeamsAnalysis:!0,defaultFilter:m.value,gameInfo:d}))}catch(u){throw new Error(u)}}function l(d){y.value=d}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(d){B.state.nextGeneral.usePastSeasonId&&(d.seasonId=B.state.nextGeneral.pastSeasonId),n("openmedia",d)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(d,u)=>(t.openBlock(),t.createElementBlock("div",pfe,[t.createElementVNode("div",ffe,[t.createVNode(t.unref(Kv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(kB,t.mergeProps(z.value,{text:h.name,"is-active":y.value.id===h.id,onClick:g=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mfe,[t.createVNode(Nse)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",gfe,[yfe,t.createElementVNode("div",null,[t.createVNode(CB,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=h=>f.value=h)},null,8,["modelValue"])]),vfe],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",_fe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),bfe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:r.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-081beab5"]]);function BN(e,n){return function(){return e.apply(n,arguments)}}const{toString:kfe}=Object.prototype,{getPrototypeOf:wk}=Object,jx=(e=>n=>{const i=kfe.call(n);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zp=e=>(e=e.toLowerCase(),n=>jx(n)===e),Ux=e=>n=>typeof n===e,{isArray:ay}=Array,t2=Ux("undefined");function Cfe(e){return e!==null&&!t2(e)&&e.constructor!==null&&!t2(e.constructor)&&_h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NN=zp("ArrayBuffer");function Sfe(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&NN(e.buffer),n}const Tfe=Ux("string"),_h=Ux("function"),ON=Ux("number"),Gx=e=>e!==null&&typeof e=="object",Efe=e=>e===!0||e===!1,Hx=e=>{if(jx(e)!=="object")return!1;const n=wk(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Afe=zp("Date"),Mfe=zp("File"),Ife=zp("Blob"),Pfe=zp("FileList"),Bfe=e=>Gx(e)&&_h(e.pipe),Nfe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||_h(e.append)&&((n=jx(e))==="formdata"||n==="object"&&_h(e.toString)&&e.toString()==="[object FormData]"))},Ofe=zp("URLSearchParams"),[Dfe,Lfe,Ffe,zfe]=["ReadableStream","Request","Response","Headers"].map(zp),Rfe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function a2(e,n,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,z;if(typeof e!="object"&&(e=[e]),ay(e))for(B=0,z=e.length;B<z;B++)n.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],n.call(null,e[a],a,e)}}function DN(e,n){n=n.toLowerCase();const i=Object.keys(e);let B=i.length,z;for(;B-- >0;)if(z=i[B],n===z.toLowerCase())return z;return null}const rg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),LN=e=>!t2(e)&&e!==rg;function kk(){const{caseless:e}=LN(this)&&this||{},n={},i=(B,z)=>{const c=e&&DN(n,z)||z;Hx(n[c])&&Hx(B)?n[c]=kk(n[c],B):Hx(B)?n[c]=kk({},B):ay(B)?n[c]=B.slice():n[c]=B};for(let B=0,z=arguments.length;B<z;B++)arguments[B]&&a2(arguments[B],i);return n}const Vfe=(e,n,i,{allOwnKeys:B}={})=>(a2(n,(z,c)=>{i&&_h(z)?e[c]=BN(z,i):e[c]=z},{allOwnKeys:B}),e),$fe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jfe=(e,n,i,B)=>{e.prototype=Object.create(n.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),i&&Object.assign(e.prototype,i)},Ufe=(e,n,i,B)=>{let z,c,m;const a={};if(n=n||{},e==null)return n;do{for(z=Object.getOwnPropertyNames(e),c=z.length;c-- >0;)m=z[c],(!B||B(m,e,n))&&!a[m]&&(n[m]=e[m],a[m]=!0);e=i!==!1&&wk(e)}while(e&&(!i||i(e,n))&&e!==Object.prototype);return n},Gfe=(e,n,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=n.length;const B=e.indexOf(n,i);return B!==-1&&B===i},Hfe=e=>{if(!e)return null;if(ay(e))return e;let n=e.length;if(!ON(n))return null;const i=new Array(n);for(;n-- >0;)i[n]=e[n];return i},Wfe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&wk(Uint8Array)),qfe=(e,n)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const z=B.value;n.call(e,z[0],z[1])}},Yfe=(e,n)=>{let i;const B=[];for(;(i=e.exec(n))!==null;)B.push(i);return B},Xfe=zp("HTMLFormElement"),Zfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,B){return i.toUpperCase()+B}),FN=(({hasOwnProperty:e})=>(n,i)=>e.call(n,i))(Object.prototype),Jfe=zp("RegExp"),zN=(e,n)=>{const i=Object.getOwnPropertyDescriptors(e),B={};a2(i,(z,c)=>{let m;(m=n(z,c,e))!==!1&&(B[c]=m||z)}),Object.defineProperties(e,B)},Kfe=e=>{zN(e,(n,i)=>{if(_h(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(_h(B)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Qfe=(e,n)=>{const i={},B=z=>{z.forEach(c=>{i[c]=!0})};return ay(e)?B(e):B(String(e).split(n)),i},eme=()=>{},tme=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,Ck="abcdefghijklmnopqrstuvwxyz",RN="0123456789",VN={DIGIT:RN,ALPHA:Ck,ALPHA_DIGIT:Ck+Ck.toUpperCase()+RN},ame=(e=16,n=VN.ALPHA_DIGIT)=>{let i="";const{length:B}=n;for(;e--;)i+=n[Math.random()*B|0];return i};function nme(e){return!!(e&&_h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rme=e=>{const n=new Array(10),i=(B,z)=>{if(Gx(B)){if(n.indexOf(B)>=0)return;if(!("toJSON"in B)){n[z]=B;const c=ay(B)?[]:{};return a2(B,(m,a)=>{const y=i(m,z+1);!t2(y)&&(c[a]=y)}),n[z]=void 0,c}}return B};return i(e,0)},ime=zp("AsyncFunction"),ome=e=>e&&(Gx(e)||_h(e))&&_h(e.then)&&_h(e.catch),$N=((e,n)=>e?setImmediate:n?((i,B)=>(rg.addEventListener("message",({source:z,data:c})=>{z===rg&&c===i&&B.length&&B.shift()()},!1),z=>{B.push(z),rg.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",_h(rg.postMessage)),sme=typeof queueMicrotask<"u"?queueMicrotask.bind(rg):typeof process<"u"&&process.nextTick||$N,hr={isArray:ay,isArrayBuffer:NN,isBuffer:Cfe,isFormData:Nfe,isArrayBufferView:Sfe,isString:Tfe,isNumber:ON,isBoolean:Efe,isObject:Gx,isPlainObject:Hx,isReadableStream:Dfe,isRequest:Lfe,isResponse:Ffe,isHeaders:zfe,isUndefined:t2,isDate:Afe,isFile:Mfe,isBlob:Ife,isRegExp:Jfe,isFunction:_h,isStream:Bfe,isURLSearchParams:Ofe,isTypedArray:Wfe,isFileList:Pfe,forEach:a2,merge:kk,extend:Vfe,trim:Rfe,stripBOM:$fe,inherits:jfe,toFlatObject:Ufe,kindOf:jx,kindOfTest:zp,endsWith:Gfe,toArray:Hfe,forEachEntry:qfe,matchAll:Yfe,isHTMLForm:Xfe,hasOwnProperty:FN,hasOwnProp:FN,reduceDescriptors:zN,freezeMethods:Kfe,toObjectSet:Qfe,toCamelCase:Zfe,noop:eme,toFiniteNumber:tme,findKey:DN,global:rg,isContextDefined:LN,ALPHABET:VN,generateString:ame,isSpecCompliantForm:nme,toJSONObject:rme,isAsyncFn:ime,isThenable:ome,setImmediate:$N,asap:sme};function Yo(e,n,i,B,z){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),B&&(this.request=B),z&&(this.response=z)}hr.inherits(Yo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jN=Yo.prototype,UN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{UN[e]={value:e}}),Object.defineProperties(Yo,UN),Object.defineProperty(jN,"isAxiosError",{value:!0}),Yo.from=(e,n,i,B,z,c)=>{const m=Object.create(jN);return hr.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Yo.call(m,e.message,n,i,B,z),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const lme=null;function Sk(e){return hr.isPlainObject(e)||hr.isArray(e)}function GN(e){return hr.endsWith(e,"[]")?e.slice(0,-2):e}function HN(e,n,i){return e?e.concat(n).map(function(B,z){return B=GN(B),!i&&z?"["+B+"]":B}).join(i?".":""):n}function cme(e){return hr.isArray(e)&&!e.some(Sk)}const ume=hr.toFlatObject(hr,{},null,function(e){return/^is[A-Z]/.test(e)});function Wx(e,n,i){if(!hr.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,i=hr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!hr.isUndefined(l[p])});const B=i.metaTokens,z=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&hr.isSpecCompliantForm(n);if(!hr.isFunction(z))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(hr.isDate(p))return p.toISOString();if(!a&&hr.isBlob(p))throw new Yo("Blob is not supported. Use a Buffer instead.");return hr.isArrayBuffer(p)||hr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(hr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(hr.isArray(p)&&cme(p)||(hr.isFileList(p)||hr.endsWith(l,"[]"))&&(s=hr.toArray(p)))return l=GN(l),s.forEach(function(d,u){!(hr.isUndefined(d)||d===null)&&n.append(m===!0?HN([l],u,c):m===null?l:l+"[]",y(d))}),!1}return Sk(p)?!0:(n.append(HN(o,l,c),y(p)),!1)}const r=[],v=Object.assign(ume,{defaultVisitor:f,convertValue:y,isVisitable:Sk});function _(p,l){if(!hr.isUndefined(p)){if(r.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));r.push(p),hr.forEach(p,function(o,s){(!(hr.isUndefined(o)||o===null)&&z.call(n,o,hr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),r.pop()}}if(!hr.isObject(e))throw new TypeError("data must be an object");return _(e),n}function WN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function Tk(e,n){this._pairs=[],e&&Wx(e,this,n)}const qN=Tk.prototype;qN.append=function(e,n){this._pairs.push([e,n])},qN.toString=function(e){const n=e?function(i){return e.call(this,i,WN)}:WN;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function dme(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YN(e,n,i){if(!n)return e;const B=i&&i.encode||dme,z=i&&i.serialize;let c;if(z?c=z(n,i):c=hr.isURLSearchParams(n)?n.toString():new Tk(n,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const XN=class{constructor(){this.handlers=[]}use(n,i,B){return this.handlers.push({fulfilled:n,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){hr.forEach(this.handlers,function(i){i!==null&&n(i)})}},ZN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hme=typeof URLSearchParams<"u"?URLSearchParams:Tk,pme=typeof FormData<"u"?FormData:null,fme=typeof Blob<"u"?Blob:null,mme={isBrowser:!0,classes:{URLSearchParams:hme,FormData:pme,Blob:fme},protocols:["http","https","file","blob","url","data"]},Ek=typeof window<"u"&&typeof document<"u",gme=(e=>Ek&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),yme=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vme=Ek&&window.location.href||"http://localhost",_me=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ek,hasStandardBrowserEnv:gme,hasStandardBrowserWebWorkerEnv:yme,origin:vme},Symbol.toStringTag,{value:"Module"})),Rp={..._me,...mme};function bme(e,n){return Wx(e,new Rp.classes.URLSearchParams,Object.assign({visitor:function(i,B,z,c){return Rp.isNode&&hr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function xme(e){return hr.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function wme(e){const n={},i=Object.keys(e);let B;const z=i.length;let c;for(B=0;B<z;B++)c=i[B],n[c]=e[c];return n}function JN(e){function n(i,B,z,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&hr.isArray(z)?z.length:m,y?(hr.hasOwnProp(z,m)?z[m]=[z[m],B]:z[m]=B,!a):((!z[m]||!hr.isObject(z[m]))&&(z[m]=[]),n(i,B,z[m],c)&&hr.isArray(z[m])&&(z[m]=wme(z[m])),!a)}if(hr.isFormData(e)&&hr.isFunction(e.entries)){const i={};return hr.forEachEntry(e,(B,z)=>{n(xme(B),z,i,0)}),i}return null}function kme(e,n,i){if(hr.isString(e))try{return(n||JSON.parse)(e),hr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const Ak={transitional:ZN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",B=i.indexOf("application/json")>-1,z=hr.isObject(e);if(z&&hr.isHTMLForm(e)&&(e=new FormData(e)),hr.isFormData(e))return B?JSON.stringify(JN(e)):e;if(hr.isArrayBuffer(e)||hr.isBuffer(e)||hr.isStream(e)||hr.isFile(e)||hr.isBlob(e)||hr.isReadableStream(e))return e;if(hr.isArrayBufferView(e))return e.buffer;if(hr.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(z){if(i.indexOf("application/x-www-form-urlencoded")>-1)return bme(e,this.formSerializer).toString();if((c=hr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Wx(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return z||B?(n.setContentType("application/json",!1),kme(e)):e}],transformResponse:[function(e){const n=this.transitional||Ak.transitional,i=n&&n.forcedJSONParsing,B=this.responseType==="json";if(hr.isResponse(e)||hr.isReadableStream(e))return e;if(e&&hr.isString(e)&&(i&&!this.responseType||B)){const z=!(n&&n.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(z)throw c.name==="SyntaxError"?Yo.from(c,Yo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rp.classes.FormData,Blob:Rp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hr.forEach(["delete","get","head","post","put","patch"],e=>{Ak.headers[e]={}});const Mk=Ak,Cme=hr.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"]),Sme=e=>{const n={};let i,B,z;return e&&e.split(`
|
|
35
35
|
`).forEach(function(c){z=c.indexOf(":"),i=c.substring(0,z).trim().toLowerCase(),B=c.substring(z+1).trim(),!(!i||n[i]&&Cme[i])&&(i==="set-cookie"?n[i]?n[i].push(B):n[i]=[B]:n[i]=n[i]?n[i]+", "+B:B)}),n},KN=Symbol("internals");function n2(e){return e&&String(e).trim().toLowerCase()}function qx(e){return e===!1||e==null?e:hr.isArray(e)?e.map(qx):String(e)}function Tme(e){const n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)n[B[1]]=B[2];return n}const Eme=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ik(e,n,i,B,z){if(hr.isFunction(B))return B.call(this,n,i);if(z&&(n=i),!!hr.isString(n)){if(hr.isString(B))return n.indexOf(B)!==-1;if(hr.isRegExp(B))return B.test(n)}}function Ame(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,i,B)=>i.toUpperCase()+B)}function Mme(e,n){const i=hr.toCamelCase(" "+n);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(z,c,m){return this[B].call(this,n,z,c,m)},configurable:!0})})}let Yx=class{constructor(n){n&&this.set(n)}set(n,i,B){const z=this;function c(a,y,f){const r=n2(y);if(!r)throw new Error("header name must be a non-empty string");const v=hr.findKey(z,r);(!v||z[v]===void 0||f===!0||f===void 0&&z[v]!==!1)&&(z[v||y]=qx(a))}const m=(a,y)=>hr.forEach(a,(f,r)=>c(f,r,y));if(hr.isPlainObject(n)||n instanceof this.constructor)m(n,i);else if(hr.isString(n)&&(n=n.trim())&&!Eme(n))m(Sme(n),i);else if(hr.isHeaders(n))for(const[a,y]of n.entries())c(y,a,B);else n!=null&&c(i,n,B);return this}get(n,i){if(n=n2(n),n){const B=hr.findKey(this,n);if(B){const z=this[B];if(!i)return z;if(i===!0)return Tme(z);if(hr.isFunction(i))return i.call(this,z,B);if(hr.isRegExp(i))return i.exec(z);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,i){if(n=n2(n),n){const B=hr.findKey(this,n);return!!(B&&this[B]!==void 0&&(!i||Ik(this,this[B],B,i)))}return!1}delete(n,i){const B=this;let z=!1;function c(m){if(m=n2(m),m){const a=hr.findKey(B,m);a&&(!i||Ik(B,B[a],a,i))&&(delete B[a],z=!0)}}return hr.isArray(n)?n.forEach(c):c(n),z}clear(n){const i=Object.keys(this);let B=i.length,z=!1;for(;B--;){const c=i[B];(!n||Ik(this,this[c],c,n,!0))&&(delete this[c],z=!0)}return z}normalize(n){const i=this,B={};return hr.forEach(this,(z,c)=>{const m=hr.findKey(B,c);if(m){i[m]=qx(z),delete i[c];return}const a=n?Ame(c):String(c).trim();a!==c&&delete i[c],i[a]=qx(z),B[a]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const i=Object.create(null);return hr.forEach(this,(B,z)=>{B!=null&&B!==!1&&(i[z]=n&&hr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,i])=>n+": "+i).join(`
|
|
36
36
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...i){const B=new this(n);return i.forEach(z=>B.set(z)),B}static accessor(n){const i=(this[KN]=this[KN]={accessors:{}}).accessors,B=this.prototype;function z(c){const m=n2(c);i[m]||(Mme(B,c),i[m]=!0)}return hr.isArray(n)?n.forEach(z):z(n),this}};Yx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hr.reduceDescriptors(Yx.prototype,({value:e},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(B){this[i]=B}}}),hr.freezeMethods(Yx);const Vp=Yx;function Pk(e,n){const i=this||Mk,B=n||i,z=Vp.from(B.headers);let c=B.data;return hr.forEach(e,function(m){c=m.call(i,c,z.normalize(),n?n.status:void 0)}),z.normalize(),c}function QN(e){return!!(e&&e.__CANCEL__)}function ny(e,n,i){Yo.call(this,e??"canceled",Yo.ERR_CANCELED,n,i),this.name="CanceledError"}hr.inherits(ny,Yo,{__CANCEL__:!0});function eO(e,n,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):n(new Yo("Request failed with status code "+i.status,[Yo.ERR_BAD_REQUEST,Yo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Ime(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Pme(e,n){e=e||10;const i=new Array(e),B=new Array(e);let z=0,c=0,m;return n=n!==void 0?n:1e3,function(a){const y=Date.now(),f=B[c];m||(m=y),i[z]=a,B[z]=y;let r=c,v=0;for(;r!==z;)v+=i[r++],r=r%e;if(z=(z+1)%e,z===c&&(c=(c+1)%e),y-m<n)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function Bme(e,n){let i=0,B=1e3/n,z,c;const m=(a,y=Date.now())=>{i=y,z=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?m(a,y):(z=a,c||(c=setTimeout(()=>{c=null,m(z)},B-f)))},()=>z&&m(z)]}const Xx=(e,n,i=3)=>{let B=0;const z=Pme(50,250);return Bme(c=>{const m=c.loaded,a=c.lengthComputable?c.total:void 0,y=m-B,f=z(y),r=m<=a;B=m;const v={loaded:m,total:a,progress:a?m/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&r?(a-m)/f:void 0,event:c,lengthComputable:a!=null,[n?"download":"upload"]:!0};e(v)},i)},tO=(e,n)=>{const i=e!=null;return[B=>n[0]({lengthComputable:i,total:e,loaded:B}),n[1]]},aO=e=>(...n)=>hr.asap(()=>e(...n)),Nme=Rp.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function B(z){let c=z;return e&&(n.setAttribute("href",c),c=n.href),n.setAttribute("href",c),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=B(window.location.href),function(z){const c=hr.isString(z)?B(z):z;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),Ome=Rp.hasStandardBrowserEnv?{write(e,n,i,B,z,c){const m=[e+"="+encodeURIComponent(n)];hr.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),hr.isString(B)&&m.push("path="+B),hr.isString(z)&&m.push("domain="+z),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Dme(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lme(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function nO(e,n){return e&&!Dme(n)?Lme(e,n):n}const rO=e=>e instanceof Vp?{...e}:e;function ig(e,n){n=n||{};const i={};function B(f,r,v){return hr.isPlainObject(f)&&hr.isPlainObject(r)?hr.merge.call({caseless:v},f,r):hr.isPlainObject(r)?hr.merge({},r):hr.isArray(r)?r.slice():r}function z(f,r,v){if(hr.isUndefined(r)){if(!hr.isUndefined(f))return B(void 0,f,v)}else return B(f,r,v)}function c(f,r){if(!hr.isUndefined(r))return B(void 0,r)}function m(f,r){if(hr.isUndefined(r)){if(!hr.isUndefined(f))return B(void 0,f)}else return B(void 0,r)}function a(f,r,v){if(v in n)return B(f,r);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:a,headers:(f,r)=>z(rO(f),rO(r),!0)};return hr.forEach(Object.keys(Object.assign({},e,n)),function(f){const r=y[f]||z,v=r(e[f],n[f],f);hr.isUndefined(v)&&r!==a||(i[f]=v)}),i}const iO=e=>{const n=ig({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:z,xsrfCookieName:c,headers:m,auth:a}=n;n.headers=m=Vp.from(m),n.url=YN(nO(n.baseURL,n.url),e.params,e.paramsSerializer),a&&m.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(hr.isFormData(i)){if(Rp.hasStandardBrowserEnv||Rp.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if((y=m.getContentType())!==!1){const[f,...r]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];m.setContentType([f||"multipart/form-data",...r].join("; "))}}if(Rp.hasStandardBrowserEnv&&(B&&hr.isFunction(B)&&(B=B(n)),B||B!==!1&&Nme(n.url))){const f=z&&c&&Ome.read(c);f&&m.set(z,f)}return n},Fme=typeof XMLHttpRequest<"u",zme=Fme&&function(e){return new Promise(function(n,i){const B=iO(e);let z=B.data;const c=Vp.from(B.headers).normalize();let{responseType:m,onUploadProgress:a,onDownloadProgress:y}=B,f,r,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const u=Vp.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!m||m==="text"||m==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:u,config:e,request:o};eO(function(g){n(g),l()},function(g){i(g),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new Yo("Request aborted",Yo.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Yo("Network Error",Yo.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let u=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||ZN;B.timeoutErrorMessage&&(u=B.timeoutErrorMessage),i(new Yo(u,h.clarifyTimeoutError?Yo.ETIMEDOUT:Yo.ECONNABORTED,e,o)),o=null},z===void 0&&c.setContentType(null),"setRequestHeader"in o&&hr.forEach(c.toJSON(),function(u,h){o.setRequestHeader(h,u)}),hr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),m&&m!=="json"&&(o.responseType=B.responseType),y&&([v,p]=Xx(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([r,_]=Xx(a),o.upload.addEventListener("progress",r),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=u=>{o&&(i(!u||u.type?new ny(null,e,o):u),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const d=Ime(B.url);if(d&&Rp.protocols.indexOf(d)===-1){i(new Yo("Unsupported protocol "+d+":",Yo.ERR_BAD_REQUEST,e));return}o.send(z||null)})},Rme=(e,n)=>{let i=new AbortController,B;const z=function(y){if(!B){B=!0,m();const f=y instanceof Error?y:this.reason;i.abort(f instanceof Yo?f:new ny(f instanceof Error?f.message:f))}};let c=n&&setTimeout(()=>{z(new Yo(`timeout ${n} of ms exceeded`,Yo.ETIMEDOUT))},n);const m=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",z):y.unsubscribe(z))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",z));const{signal:a}=i;return a.unsubscribe=m,[a,()=>{c&&clearTimeout(c),c=null}]},Vme=Rme,$me=function*(e,n){let i=e.byteLength;if(!n||i<n){yield e;return}let B=0,z;for(;B<i;)z=B+n,yield e.slice(B,z),B=z},jme=async function*(e,n,i){for await(const B of e)yield*$me(ArrayBuffer.isView(B)?B:await i(String(B)),n)},oO=(e,n,i,B,z)=>{const c=jme(e,n,z);let m=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:r,value:v}=await c.next();if(r){y(),f.close();return}let _=v.byteLength;if(i){let p=m+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(r){throw y(r),r}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},Zx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sO=Zx&&typeof ReadableStream=="function",Bk=Zx&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lO=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Ume=sO&&lO(()=>{let e=!1;const n=new Request(Rp.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),cO=64*1024,Nk=sO&&lO(()=>hr.isReadableStream(new Response("").body)),Jx={stream:Nk&&(e=>e.body)};Zx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Jx[n]&&(Jx[n]=hr.isFunction(e[n])?i=>i[n]():(i,B)=>{throw new Yo(`Response type '${n}' is not supported`,Yo.ERR_NOT_SUPPORT,B)})})})(new Response);const Gme=async e=>{if(e==null)return 0;if(hr.isBlob(e))return e.size;if(hr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(hr.isArrayBufferView(e)||hr.isArrayBuffer(e))return e.byteLength;if(hr.isURLSearchParams(e)&&(e=e+""),hr.isString(e))return(await Bk(e)).byteLength},Hme=async(e,n)=>hr.toFiniteNumber(e.getContentLength())??Gme(n),Wme=Zx&&(async e=>{let{url:n,method:i,data:B,signal:z,cancelToken:c,timeout:m,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:r,withCredentials:v="same-origin",fetchOptions:_}=iO(e);f=f?(f+"").toLowerCase():"text";let[p,l]=z||c||m?Vme([z,c],m):[],o,s;const d=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let u;try{if(y&&Ume&&i!=="get"&&i!=="head"&&(u=await Hme(r,B))!==0){let w=new Request(n,{method:"POST",body:B,duplex:"half"}),x;if(hr.isFormData(B)&&(x=w.headers.get("content-type"))&&r.setContentType(x),w.body){const[T,k]=tO(u,Xx(aO(y)));B=oO(w.body,cO,T,k,Bk)}}hr.isString(v)||(v=v?"include":"omit"),s=new Request(n,{..._,signal:p,method:i.toUpperCase(),headers:r.normalize().toJSON(),body:B,duplex:"half",credentials:v});let h=await fetch(s);const g=Nk&&(f==="stream"||f==="response");if(Nk&&(a||g)){const w={};["status","statusText","headers"].forEach(S=>{w[S]=h[S]});const x=hr.toFiniteNumber(h.headers.get("content-length")),[T,k]=a&&tO(x,Xx(aO(a),!0))||[];h=new Response(oO(h.body,cO,T,()=>{k&&k(),g&&d()},Bk),w)}f=f||"text";let b=await Jx[hr.findKey(Jx,f)||"text"](h,e);return!g&&d(),l&&l(),await new Promise((w,x)=>{eO(w,x,{data:b,headers:Vp.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:s})})}catch(h){throw d(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Yo("Network Error",Yo.ERR_NETWORK,e,s),{cause:h.cause||h}):Yo.from(h,h&&h.code,e,s)}}),Ok={http:lme,xhr:zme,fetch:Wme};hr.forEach(Ok,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const uO=e=>`- ${e}`,qme=e=>hr.isFunction(e)||e===null||e===!1,dO={getAdapter:e=>{e=hr.isArray(e)?e:[e];const{length:n}=e;let i,B;const z={};for(let c=0;c<n;c++){i=e[c];let m;if(B=i,!qme(i)&&(B=Ok[(m=String(i)).toLowerCase()],B===void 0))throw new Yo(`Unknown adapter '${m}'`);if(B)break;z[m||"#"+c]=B}if(!B){const c=Object.entries(z).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=n?c.length>1?`since :
|
|
37
37
|
`+c.map(uO).join(`
|
|
@@ -7623,4 +7623,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7623
7623
|
* vuex v4.0.2
|
|
7624
7624
|
* (c) 2021 Evan You
|
|
7625
7625
|
* @license MIT
|
|
7626
|
-
*/var oha="store";function Ug(e,n){Object.keys(e).forEach(function(i){return n(e[i],i)})}function XJ(e){return e!==null&&typeof e=="object"}function sha(e){return e&&typeof e.then=="function"}function xf(e,n){if(!e)throw new Error("[vuex] "+n)}function lha(e,n){return function(){return e(n)}}function ZJ(e,n,i){return n.indexOf(e)<0&&(i&&i.prepend?n.unshift(e):n.push(e)),function(){var B=n.indexOf(e);B>-1&&n.splice(B,1)}}function JJ(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;N6(e,i,[],e._modules.root,!0),KM(e,i,n)}function KM(e,n,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var z=e._wrappedGetters,c={};Ug(z,function(m,a){c[a]=lha(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:n}),e.strict&&pha(e),B&&i&&e._withCommit(function(){B.data=null})}function N6(e,n,i,B,z){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!z){var a=QM(n,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=cha(e,m,i);B.forEachMutation(function(r,v){var _=m+v;uha(e,_,r,f)}),B.forEachAction(function(r,v){var _=r.root?v:m+v,p=r.handler||r;dha(e,_,p,f)}),B.forEachGetter(function(r,v){var _=m+v;hha(e,_,r,f)}),B.forEachChild(function(r,v){N6(e,n,i.concat(v),r,z)})}function cha(e,n,i){var B=n==="",z={dispatch:B?e.dispatch:function(c,m,a){var y=O6(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=O6(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,r)}};return Object.defineProperties(z,{getters:{get:B?function(){return e.getters}:function(){return KJ(e,n)}},state:{get:function(){return QM(e.state,i)}}}),z}function KJ(e,n){if(!e._makeLocalGettersCache[n]){var i={},B=n.length;Object.keys(e.getters).forEach(function(z){if(z.slice(0,B)===n){var c=z.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[z]},enumerable:!0})}}),e._makeLocalGettersCache[n]=i}return e._makeLocalGettersCache[n]}function uha(e,n,i,B){var z=e._mutations[n]||(e._mutations[n]=[]);z.push(function(c){i.call(e,B.state,c)})}function dha(e,n,i,B){var z=e._actions[n]||(e._actions[n]=[]);z.push(function(c){var m=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return sha(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):m})}function hha(e,n,i,B){if(e._wrappedGetters[n]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+n);return}e._wrappedGetters[n]=function(z){return i(B.state,B.getters,z.state,z.getters)}}function pha(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&xf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function QM(e,n){return n.reduce(function(i,B){return i[B]},e)}function O6(e,n,i){return XJ(e)&&e.type&&(i=n,n=e,e=e.type),process.env.NODE_ENV!=="production"&&xf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:n,options:i}}var fha="vuex bindings",QJ="vuex:mutations",eI="vuex:actions",mv="vuex",mha=0;function gha(e,n){iha({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[fha]},function(i){i.addTimelineLayer({id:QJ,label:"Vuex Mutations",color:eK}),i.addTimelineLayer({id:eI,label:"Vuex Actions",color:eK}),i.addInspector({id:mv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===mv)if(B.filter){var z=[];rK(z,n._modules.root,B.filter,""),B.rootNodes=z}else B.rootNodes=[nK(n._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===mv){var z=B.nodeId;KJ(n,z),B.state=_ha(xha(n._modules,z),z==="root"?n.getters:n._makeLocalGettersCache,z)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===mv){var z=B.nodeId,c=B.path;z!=="root"&&(c=z.split("/").filter(Boolean).concat(c)),n._withCommit(function(){B.set(n._state.data,c,B.state.value)})}}),n.subscribe(function(B,z){var c={};B.payload&&(c.payload=B.payload),c.state=z,i.notifyComponentUpdate(),i.sendInspectorTree(mv),i.sendInspectorState(mv),i.addTimelineEvent({layerId:QJ,event:{time:Date.now(),title:B.type,data:c}})}),n.subscribeAction({before:function(B,z){var c={};B.payload&&(c.payload=B.payload),B._id=mha++,B._time=Date.now(),c.state=z,i.addTimelineEvent({layerId:eI,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,z){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=z,i.addTimelineEvent({layerId:eI,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var eK=8702998,yha=6710886,vha=16777215,tK={label:"namespaced",textColor:vha,backgroundColor:yha};function aK(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function nK(e,n){return{id:n||"root",label:aK(n),tags:e.namespaced?[tK]:[],children:Object.keys(e._children).map(function(i){return nK(e._children[i],n+i+"/")})}}function rK(e,n,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:n.namespaced?[tK]:[]}),Object.keys(n._children).forEach(function(z){rK(e,n._children[z],i,B+z+"/")})}function _ha(e,n,i){n=i==="root"?n:n[i];var B=Object.keys(n),z={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=bha(n);z.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?aK(m):m,editable:!1,value:tI(function(){return c[m]})}})}return z}function bha(e){var n={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var z=n,c=B.pop();B.forEach(function(m){z[m]||(z[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),z=z[m]._custom.value}),z[c]=tI(function(){return e[i]})}else n[i]=tI(function(){return e[i]})}),n}function xha(e,n){var i=n.split("/").filter(function(B){return B});return i.reduce(function(B,z,c){var m=B[z];if(!m)throw new Error('Missing module "'+z+'" for path "'+n+'".');return c===i.length-1?m:m._children},n==="root"?e:e.root._children)}function tI(e){try{return e()}catch(n){return n}}var wf=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},iK={namespaced:{configurable:!0}};iK.namespaced.get=function(){return!!this._rawModule.namespaced},wf.prototype.addChild=function(e,n){this._children[e]=n},wf.prototype.removeChild=function(e){delete this._children[e]},wf.prototype.getChild=function(e){return this._children[e]},wf.prototype.hasChild=function(e){return e in this._children},wf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},wf.prototype.forEachChild=function(e){Ug(this._children,e)},wf.prototype.forEachGetter=function(e){this._rawModule.getters&&Ug(this._rawModule.getters,e)},wf.prototype.forEachAction=function(e){this._rawModule.actions&&Ug(this._rawModule.actions,e)},wf.prototype.forEachMutation=function(e){this._rawModule.mutations&&Ug(this._rawModule.mutations,e)},Object.defineProperties(wf.prototype,iK);var Gg=function(e){this.register([],e,!1)};Gg.prototype.get=function(e){return e.reduce(function(n,i){return n.getChild(i)},this.root)},Gg.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(i,B){return n=n.getChild(B),i+(n.namespaced?B+"/":"")},"")},Gg.prototype.update=function(e){oK([],this.root,e)},Gg.prototype.register=function(e,n,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&cK(e,n);var z=new wf(n,i);if(e.length===0)this.root=z;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],z)}n.modules&&Ug(n.modules,function(m,a){B.register(e.concat(a),m,i)})},Gg.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1],B=n.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&n.removeChild(i)},Gg.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1];return n?n.hasChild(i):!1};function oK(e,n,i){if(process.env.NODE_ENV!=="production"&&cK(e,i),n.update(i),i.modules)for(var B in i.modules){if(!n.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}oK(e.concat(B),n.getChild(B),i.modules[B])}}var sK={assert:function(e){return typeof e=="function"},expected:"function"},wha={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},lK={getters:sK,mutations:sK,actions:wha};function cK(e,n){Object.keys(lK).forEach(function(i){if(n[i]){var B=lK[i];Ug(n[i],function(z,c){xf(B.assert(z),kha(e,i,c,z,B.expected))})}})}function kha(e,n,i,B,z){var c=n+" should be "+z+' but "'+n+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var Lh=function e(n){var i=this;n===void 0&&(n={}),process.env.NODE_ENV!=="production"&&(xf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),xf(this instanceof e,"store must be called with the new operator."));var B=n.plugins;B===void 0&&(B=[]);var z=n.strict;z===void 0&&(z=!1);var c=n.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Gg(n),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(m,v,_)},this.commit=function(v,_,p){return f.call(m,v,_,p)},this.strict=z;var r=this._modules.root.state;N6(this,r,[],this._modules.root),KM(this,r),B.forEach(function(v){return v(i)})},aI={state:{configurable:!0}};Lh.prototype.install=function(e,n){e.provide(n||oha,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&gha(e,this)},aI.state.get=function(){return this._state.data},aI.state.set=function(e){process.env.NODE_ENV!=="production"&&xf(!1,"use store.replaceState() to explicit replace store state.")},Lh.prototype.commit=function(e,n,i){var B=this,z=O6(e,n,i),c=z.type,m=z.payload,a=z.options,y={type:c,payload:m},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(r){r(m)})}),this._subscribers.slice().forEach(function(r){return r(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Lh.prototype.dispatch=function(e,n){var i=this,B=O6(e,n),z=B.type,c=B.payload,m={type:z,payload:c},a=this._actions[z];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+z);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(m,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,r){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(m,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(m,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}r(v)})})},Lh.prototype.subscribe=function(e,n){return ZJ(e,this._subscribers,n)},Lh.prototype.subscribeAction=function(e,n){var i=typeof e=="function"?{before:e}:e;return ZJ(i,this._actionSubscribers,n)},Lh.prototype.watch=function(e,n,i){var B=this;return process.env.NODE_ENV!=="production"&&xf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},n,Object.assign({},i))},Lh.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})},Lh.prototype.registerModule=function(e,n,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(xf(Array.isArray(e),"module path must be a string or an Array."),xf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,n),N6(this,this.state,e,this._modules.get(e),i.preserveState),KM(this,this.state)},Lh.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=QM(n.state,e.slice(0,-1));delete i[e[e.length-1]]}),JJ(this)},Lh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Lh.prototype.hotUpdate=function(e){this._modules.update(e),JJ(this,!0)},Lh.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(Lh.prototype,aI);var Cha=Tha(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!uK(n)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Sha(n).forEach(function(B){var z=B.key,c=B.val;i[z]=function(){for(var m=[],a=arguments.length;a--;)m[a]=arguments[a];var y=this.$store.commit;if(e){var f=Eha(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(m)):y.apply(this.$store,[c].concat(m))}}),i});function Sha(e){return uK(e)?Array.isArray(e)?e.map(function(n){return{key:n,val:n}}):Object.keys(e).map(function(n){return{key:n,val:e[n]}}):[]}function uK(e){return Array.isArray(e)||XJ(e)}function Tha(e){return function(n,i){return typeof n!="string"?(i=n,n=""):n.charAt(n.length-1)!=="/"&&(n+="/"),e(n,i)}}function Eha(e,n,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+n+"(): "+i),B}const Aha="/icn-play.svg",Mha="/icn-tiros-de-esquina.svg",Iha="/icn-tiro-a-porteria.svg",Pha="/icn-cambio.svg",Bha="/icn-falta.svg",Nha="/atajada.svg",Oha="/fuera-de-lugar.svg",nI="/gol.svg",Dha="/var.png",Lha="/tiempo-agregado.svg",Fha="/jugada-peligrosa.svg",zha="/penal-marcado.svg",Rha="/penal-fallado.svg",Vha="/inicia-el-partido.svg",$ha="/fin-del-partido.svg",jha="/icn-tarjeta-amarilla.svg",Uha="/icn-tarjeta-roja.svg",Gha=[1,2,3,4,6],Hha={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],n=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return ZM.GOAL_IDS.includes(n)?(e.push("is-main-event"),e.push("goal")):ZM.YELLOW_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("yellow-card")):ZM.RED_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(n=>Jda(n))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Gha.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Cha("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,n]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(n),teamId:this.gameEvent.team_id})}}},Wha=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),qha={class:"time-line-event__details"},Yha={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Xha=["src"],Zha=Wha(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Jha={class:"time-line-event__details__info"},Kha={key:0,class:"time-line-event__details__info__header__players"},Qha={class:"time-line-event__details__info__header__players__div-img"},epa=["src"],tpa={class:"time-line-event__details__info__body"},apa={class:"time-line-event__details__info__body__comment"},npa={class:"time-line-event__minute__container"},rpa={class:"time-line-event__minute__container__text"},ipa={class:"time-line-event__minute__container__icon-container"},opa={class:"time-line-event__minute__container__icon-container__icon"},spa={key:0,src:Mha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lpa={key:1,src:Iha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cpa={key:2,src:Pha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},upa={key:3,src:Bha,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},dpa={key:4,src:Nha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hpa={key:5,src:Oha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ppa={key:6,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fpa={key:7,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mpa={key:8,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gpa={key:9,src:Dha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ypa={key:10,src:Lha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vpa={key:11,src:Fha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_pa={key:12,src:zha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bpa={key:13,src:Rha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xpa={key:14,src:Vha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wpa={key:15,src:$ha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kpa={key:16,src:jha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Cpa={key:17,src:Uha,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Spa={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Tpa(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:z.gameEventKey},[t.createElementVNode("div",qha,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:n[0]||(n[0]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",Yha,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Xha)]),Zha])):t.createCommentVNode("",!0),t.createElementVNode("div",Jha,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Kha,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Qha,[t.createElementVNode("img",{src:m,alt:""},null,8,epa)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:n[1]||(n[1]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:Aha,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",tpa,[t.createElementVNode("div",apa,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",npa,[t.createElementVNode("div",rpa,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",ipa,[t.createElementVNode("div",opa,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",spa)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",lpa)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",cpa)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",upa)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",dpa)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",hpa)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",ppa)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",fpa)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",mpa)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",gpa)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",ypa)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",vpa)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",_pa)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",bpa)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",xpa)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",wpa)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",kpa)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Cpa)):(t.openBlock(),t.createElementBlock("img",Spa))])])])],2)],6)}const Epa=Z_(Hha,[["render",Tpa],["__scopeId","data-v-9943063a"]]),Apa={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},Mpa={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let D6=null;const Ipa={name:"TimeLine",components:{Tooltip:qda,TimeLineEvent:Epa},mixins:[Xda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const n=await this.fetchGameEvents(e);n?(this.gameEvents=[...n],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(n){throw new Error(n)}},getGameEventClassAndSetIcon(e,n){return e.icon=n===0?"inicio_del_partido":Apa[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:n}}=await HJ.get(`${this.gameEventsUrl}${e}`);return n}catch(n){throw new Error(n)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)D6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),D6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,n){const i=this.$refs[`gameEventDiv${n}`][0],B=this.$refs[`gameEventLine${n}`]?this.$refs[`gameEventLine${n}`][0]:null,z=e+12;i&&(i.style.height=`${z}px`),B&&(B.style.height=`${z}px`)},sortGameEvents(){this.gameEvents.sort((e,n)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(n.match_lapse)+Number(n.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let n=0;switch(e){case 1:n=0;break;case 2:n=45;break;case 3:n=90;break;case 4:n=105;break;case 5:n=120;break}return n},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const n=this.gameEvents.findIndex(i=>i.play_id===e.play_id);n&&this.gameEvents.splice(n,1)},checkTimeLineStatus(){this.gameEvents.forEach(n=>{const i=Mpa[n.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:n})}),this.timeLineStatuses.sort((n,i)=>i.weight-n.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const n=this.gameData[e].team_id;return Zda(n)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){D6&&D6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,n]){this.channelName===e&&this.addGameEventFromChannel(n)},update_mxm([e,n]){this.channelName===e&&(this.deleteGameEventFromChannel(n),this.addGameEventFromChannel(n))},delete_mxm([e,n]){this.channelName===e&&this.deleteGameEventFromChannel(n)}}},dK=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Ppa={ref:"timeLine",class:"time-line"},Bpa={class:"time-line__header"},Npa={class:"time-line__header__dot"},Opa={class:"time-line__header__dot__home-team team-logo"},Dpa=["src"],Lpa={class:"time-line__header__dot__away-team team-logo"},Fpa=["src"],zpa={key:1,class:"start-line"},Rpa=dK(()=>t.createElementVNode("div",null,null,-1)),Vpa=dK(()=>t.createElementVNode("div",null,null,-1)),$pa=[Rpa,Vpa],jpa={key:1,class:"noEventText"},Upa={class:"tooltip-data"},Gpa=["src"];function Hpa(e,n,i,B,z,c){const m=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Ppa,[t.createElementVNode("div",Bpa,[t.createElementVNode("div",Npa,[t.createElementVNode("div",Opa,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,Dpa)]),t.createElementVNode("div",Lpa,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,Fpa)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${z.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:z.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(m,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":z.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:r=>c.updateContainerHeight(r,f),onPlayerChanged:n[0]||(n[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",zpa,$pa)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",jpa,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:z.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Upa,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:z.dataVideo.link,format:"video/mp4"},null,8,Gpa)])])]),_:1},8,["data"])],64)}const Wpa=Z_(Ipa,[["render",Hpa],["__scopeId","data-v-2574e576"]]),qpa={class:"game-time-line__options"},Ypa={class:"game-time-line__timeline"},Xpa={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){HJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const n=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const z=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),m=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),r=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){m.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",qpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(Eua,t.mergeProps(y.value<390?i.value:n.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:d=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Ypa,[t.createVNode(Wpa,{"game-data":e.game,"time-line-period":f.value,"is-mobile":r.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Zpa=Z_(Xpa,[["__scopeId","data-v-f42d0c90"]]),Swa="",Jpa={class:"game-data__header"},Kpa={class:"game-data__header__tournament-season-dropdown"},Qpa={class:"game-data__header__teams-carousel"},efa={class:"game-data__body"},tfa={class:"game-data__body__menu"},afa={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const nfa=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:wfe,GSCGameTimeLine:Zpa,GscSwitchComponent:SA,GSCLineupsMain:rke,GSCDatosGSMain:CPe,GSCVideoGame:BGe,ModalEvents:iV,GSCSummaryMain:I_t,GSCTacticaFijaMain:Sua,GSCProminentMain:KNt,GSCComparative:BFt}}),rfa=$i(Object.assign(nfa,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:n}){const i=e,B=ix();Jh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const z=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),m=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),r=12e4,v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,d=12e4,u=12e4,h=t.ref(null),g=t.ref(null),b=t.ref(null),w=t.ref([]),x=t.ref(null),T=t.ref(!0),k=t.ref(new Set([1,2])),S=t.ref({}),C=t.ref({minute:"",recent_lapse:0,score:{}}),A=t.ref(0),E=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),M=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const O=t.ref(0);let L=null;const R=t.ref(null),V=t.ref(0),j=t.ref(I.value[0]),U=t.ref([]);let Z=t.ref("");const q={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},W=t.computed(()=>{const Me=[];return m.value&&m.value.id&&(Me.push({id:m.value.id,name:m.value.name,type:m.value.type}),m.value.related_seasons&&m.value.related_seasons.forEach(we=>{Me.push({id:we.id,type:we.type})})),Me}),Q=t.computed(()=>{if(i.clientPrivilegesBySeasons){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)return Me.teamId}return 0});function X(){a.value=!1}function J(Me){const we=Me.split(",");return!(we.length<2||we[1].split(" ").length<2)}function ee(Me){h.value=Me}function le(Me){w.value.push(Me)}function oe(Me){x.value=Me}function se(Me){b.value=Me}function ce(Me){g.value=Me}function ae(Me){if(!J(Me))return"";const we=ie(Me);return`${ne(Me)}. ${we}`}function ne(Me){return Me.split(",")[1].split(" ")[1][0]}function ie(Me){const we=Me.split(",")[0].split(" ");return we[0].length<=3&&we.length>1?`${we[0]} ${we[1]}`:we[0]}async function de(Me){try{const we=$c.create({headers:{Authorization:`${z.value}`}});S.value={};const Oe=await we.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+Me.game_id);S.value[Me.home_team.team_id]=[],S.value[Me.home_team.team_id].team={name:Me.home_team.acronym,logo:Me.home_team.logo},S.value[Me.home_team.team_id].goals=[],S.value[Me.home_team.team_id].red=[],S.value[Me.home_team.team_id].yellow=[],S.value[Me.visiting_team.team_id]=[],S.value[Me.visiting_team.team_id].team={name:Me.visiting_team.acronym,logo:Me.visiting_team.logo},S.value[Me.visiting_team.team_id].goals=[],S.value[Me.visiting_team.team_id].red=[],S.value[Me.visiting_team.team_id].yellow=[],Oe.data.minute!=null&&(C.value={minute:Oe.data.minute,recent_lapse:Oe.data.recent_lapse,score:Oe.data.score});for(let ze=0;ze<Oe.data.plays.length;ze++)Oe.data.plays[ze].category_name=="Roja"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].red||(S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].red||(S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute))),Oe.data.plays[ze].category_name=="Amarilla"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].yellow||(S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].yellow||(S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute))),Oe.data.plays[ze].event_type_name=="Gol"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?Oe.data.plays[ze].category_name=="Autogol"?(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].goals||(S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].goals||(S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):Oe.data.plays[ze].category_name=="Autogol"?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].goals||(S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].goals||(S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)))}catch(we){return Promise.reject(we)}}function he(Me){a.value=!0,Me.is_live!=1&&Me.game_status!=0&&(Me.game_status==4||Object.keys(Me.minutes).length>0)?(A.value=1,S.value={plays:Me.minutes,home_team:Me.home_team,visiting_team:Me.visiting_team}):(A.value=0,de(Me))}function pe(){L=new ResizeObserver(Me=>{for(const we of Me)V.value=we.contentRect.width}),L.observe(R.value)}const me=t.computed(()=>{let Me={};return y.value&&y.value.game_id&&(Me={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),Me});t.watch(()=>me,(Me,we)=>{B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(Me.value).length>0&&(Me.value.gameId===we.value.gameId&&Me.value.is_live!==we.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:Me.value.is_live,game_status:Me.value.game_status}),O.value+=1),I.value=[],Me.value.is_live==1||Me.value.game_status==4?I.value=[...M.value]:I.value=[...N.value],!i.isWidget&&(m.value.is_tactic_available==0||Me.value.is_live==1||Me.value.game_status==0)&&I.value.pop(),i.isWidget&&Me.value.is_live==1&&Me.value.awayTeam.team_id==i.teamWidget,j.value=I.value[0],O.value+=1,de({game_id:Me.value.gameId,home_team:Me.value.homeTeam,visiting_team:Me.value.awayTeam}),Me.value.is_live==1&&setInterval(()=>{A.value=0,de({game_id:Me.value.gameId,home_team:Me.value.homeTeam,visiting_team:Me.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function be(Me){f.value=Me.is_captured,T.value=Me.is_captured!==0,c.value.id!==Me.id&&(c.value=Me,B.commit("gameGlobal/setTournamentType",Me.tournament_type))}function xe(Me){!Me.auxwidget&&Ie.value&&!Ie.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0)&&(Me.liveGameConfig={gameId:y.value.game_id}),n("openmedia",Me))}function ke(Me){n("onOpenProfile",Me)}function Ee(Me){n("openProfileTeam",Me)}function Ne(Me){n("openProfilePlayer",Me)}function $e(Me){Le(Me),Me=="Estadísticas"&&(Z.value="Comparativa")}function Te(){Z.value=""}function Ce(Me){m.value.id!==Me.id&&(m.value=Me,n("change-season-id",Me.id))}const ye=t.computed(()=>I.value.reduce((Me,we)=>(i.disabledSectionsIds.includes(we.id)||Ie.value&&!Ie.value.isVideoTabVisible&&we.id===2||i.clientPrivilegesBySeasons&&we.id===7||(T.value||we.id!==5&&we.id!==6)&&Me.push(we.name),Me),[]));function ge(Me){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const we=Me.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&we}else{const we=Se.value.filter(Oe=>Me.playingAs.has(Oe.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&we.length>0}}const Ie=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value&&y.value&&y.value.game_id){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)if(De(Me.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const we=Me.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:Me,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&we,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===Me.teamId,homeTeamDetails:{canPlayVideos:we,team:y.value.home_team},awayTeamDetails:{canPlayVideos:we,team:y.value.visiting_team},isVideoTabVisible:ge(Me)}}else{const we=y.value.home_team.team_id===Me.teamId,Oe=Se.value.filter(je=>Me.playingAs.has(je.playingAs));return{seasonAndPrivileges:Me,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&Oe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:we,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&we&&Oe.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!we&&Oe.length>0,team:y.value.visiting_team},isVideoTabVisible:ge(Me)}}De(new Set)}return q}return null}),Se=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)return U.value.filter(we=>we.game_status===1&&Me.playingAs.has(we.playingAs))}return[]}return[]});t.watch(ye,()=>{Ie.value&&!Ie.value.canPrivilegesTeamPlayVideos&&j.value.id===2&&Le("Resumen")},{deep:!0,immediate:!0});function De(Me){k.value=Me}function Le(Me){if(B.commit("nextGeneral/updateShowLiveData",!0),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let we of w.value)clearInterval(we);w.value=[]}i.isWidget?j.value=I.value.find(we=>we.name===Me)||I.value[1]:j.value=I.value.find(we=>we.name===Me)||I.value[0]}t.onMounted(()=>{pe(),t.nextTick(()=>{i.isSynchronization&&Le("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(L&&L.disconnect(),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let Me of w.value)clearInterval(Me);w.value=[]}K8()});function Re(Me){if(Me.playingAs||(Me.playingAs=Q.value?Me.home_team.team_id===Q.value?1:2:0),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let we of w.value)clearInterval(we);w.value=[]}y.value=Me,Me.is_live&&Me.game_status===4?xB():wB()}function Ue(Me){U.value=Me.map(we=>{const Oe={...we};return Q.value&&(Oe.playingAs=Oe.home_team.team_id===Q.value?1:2),Oe})}return(Me,we)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:R},[t.createElementVNode("div",Jpa,[t.withDirectives(t.createElementVNode("div",Kpa,[t.createVNode(t.unref(xI),{"current-season-id":e.currentSeasonId,onInput:be,onChangeTournaments:be,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(CI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:Ce},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Qpa,[t.createVNode(t.unref(Tre),{"plays-live":S.value,"info-live":C.value,token:E.value,is_captured:f.value,"await-for-seasons":"",seasons:W.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":Q.value,"only-games-team-id":Q.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Re,onOpenModalEvent:he,onChangeGamesByClientPrivileges:Ue},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(iV,{key:0,width:V.value,onCloseModalEventsLive:X,plays:S.value,game:y.value,type:A.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",efa,[t.createElementVNode("div",tfa,[t.createElementVNode("div",afa,[t.createVNode(t.unref(SA),{type:2,buttons:ye.value,"font-family":"Poppins-Regular","font-size":"16px",width:V.value<400||V.value<700?"max-content":V.value<840||V.value<1050?"155px":"165px","selected-option":j.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Le},null,8,["buttons","width","selected-option"])])]),me.value&&me.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(j.value.componentName),{key:O.value,game:me.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ce,onIntervalidhighlive:se,onIntervalidtops:le,onIntervalidgs:oe,subsection:t.unref(Z),seasonSelected:m.value,tournamentSelected:c.value,showLineups:T.value,socket:e.socket,"time-live-prominent-data":r,"time-live-highlights-prominent-and-video":v,"time-live-possesion":_,"time-live-video-goals":p,"time-live-video-best-plays":l,"time-live-video-this-game":o,"time-live-video-specific-plays":s,"time-live-comparative-best-players":d,"time-live-comparative-avanced":u,is_captured:f.value,"is-tactic-visible":!!m.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ie.value?Ie.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":k.value,"client-privileges-team-id":Q.value,"play-videos-privileges":Ie.value,token:E.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Te,onOpenmedia:xe,onOnOpenProfile:ke,onOpenProfileTeam:Ee,onOpenProfilePlayer:Ne,onChangeToTab:$e,onOpenMediaPlayer:xe,onIntervalid:ee},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-e285fc94"]]);async function Ud({url:e,options:n={},retries:i=3}){return await $c.get(e,n).then(B=>B).catch(B=>i>0?Ud({url:e,options:n,retries:i-1}):B)}async function hK({seasonId:e},n=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(n)return hK({seasonId:e},!1);throw new Error(i)}}async function ifa({seasonId:e}){try{return(await Ud({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}async function ofa({seasonId:e}){try{return(await Ud({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}function sfa(e,n,i,B,z,c,m=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[z.teamId]?y[z.teamId]!==c:!1,r=n===1?2:1;return(m||B.includes(y[z.gameId]))&&(!n||(f?r:n)===y[z.playingAs])&&(i.includes(y[z.matchResult])&&y[z.teamId]===c||a.includes(y[z.matchResult])&&y[z.teamId]!==c)})}function pK(e,n,i,B,z){return n.length===2&&i.length===3&&B.length===6?e:e.filter(c=>n.includes(c[z.playingAs])&&i.includes(c[z.matchResult])&&B.includes(c[z.section]))}async function fK({seasonId:e}){try{const n=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ud({url:n})).data}catch(n){return Promise.reject(n)}}async function lfa({seasonId:e,gameId:n}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${n}`,{data:B}=await Ud({url:i});return B}catch(i){return Promise.reject(i)}}async function cfa({gameId:e}){try{const n=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ud({url:n})).data.data}catch(n){return Promise.reject(n)}}async function ufa({gameId:e}){try{const n=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ud({url:n})).data.data||[]}catch(n){return Promise.reject(n)}}const dfa=["categoryId","matchLapse","section","matchResult","playingAs","total"];let rI=null;function mK(){return rI||(rI=Q1(dfa)),rI}async function hfa(e){try{const n=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ud({url:n})).data}catch(n){return Promise.reject(n)}}async function gK({seasonId:e,teamId:n}){try{return await Ud({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${n}`})}catch(i){return Promise.reject(i)}}async function pfa(e){try{const n=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ud({url:n})}catch(n){return Promise.reject(n)}}async function ffa(e){try{return await Ud({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(n){return Promise.reject(n)}}const mfa={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,n,i,B){return sfa(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],mK(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const n=e.currentSeasonGames.reduce((i,B)=>{const z={...B};return z.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),z.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(z):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[z]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[z]},i},{});for(let[i,B]of Object.entries(n))n[i]=Object.entries(B).map(([z,c])=>({date:z,games:c})),n[i].sort((z,c)=>z.date<c.date?-1:z.date>c.date?1:0);return n},matchdaysDates(e,n){let i=[];if(n.nextGamesSchedule){let B=Object.keys(n.nextGamesSchedule);for(let z of B){let c=Number(z.replace("M","")),m=n.nextGamesSchedule[z].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(m)}}return i},closestMatchDay(e,n){let i=new Date,B=0,z=-new Date(0,0,0).valueOf(),c=n.matchdaysDates,m=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<z&&(m=a,z=B);return c[m]?c[m].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,n){e.booleanIsLiveGamesModalOpen=n},setBooleanAreLiveGames(e,n){e.booleanAreLiveGames=n},updateSeasonPlays(e,n){e.seasonPlays=n},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateSelectedRound(e,n){e.selectedRound=n}},actions:{async getSeasonPlays({commit:e,rootGetters:n},i=!1){try{const B=await hK({seasonId:n["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:n}){try{const i=await fK({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:n}){try{const i=await hfa({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:n,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=n("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=n("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function gfa({filter:e}){try{const n=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Ud({url:n});return i}catch(n){return Promise.reject(n)}}const yfa=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let iI=null;function vfa(){return iI||(iI=Q1(yfa)),iI}class L6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(n){n>this.maximumLiveSection&&(this.maximumLiveSection=n)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(n,i,B){B&&(this.setMaximumLiveSection(n),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,n,i)}increaseReceivedByOne(n,i,B){B&&(this.setMaximumLiveSection(n),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,n,i)}increaseTrendLiveAccumulatedByOne(n,i,B){for(let z=i-1;z<n.accumulated.length;z++)n.accumulated[z]+=B}decreaseAccomplishedLiveByOne(n,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[n-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[n-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,i))}decreaseReceivedLiveByOne(n,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[n-1]>0&&(this.received.totalsLiveTrendLive.sections[n-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(n,i,B){for(let z=n.accumulated.length-1;z>=i-1;z--)n.accumulated[z]-=B}calculateAvg(n){n&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/n,this.received.avgPostGame=this.received.totalPostGame/n,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,n),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,n),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,n),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,n))}getAvgPostGameTrendLiveAvg(n,i){return n.map(B=>B/i)}calculateRanking(n,i,B,z,c,m,a,y){let f=[];z===3&&n&&n.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(n.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=n?[...n]:[],a&&n&&(f=n.filter(r=>B.playingAs.includes(r[i.playingAs])&&B.matchResult.includes(r[i.matchResult])&&B.sections.includes(r[i.section])))),this.setTeamRanking(f,z,i,B.teamId,m,"accomplished",y)}setTeamRanking(n,i,B,z,c,m,a){let y=null,f=null;i===3&&(y=new Map,f={},n.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const r=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=n.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=r;const v=r.findIndex(_=>_.teamId===z);i===3&&(this.accomplished.avgPreGame=r[v].points),this[m].ranking=v+1,this[m].leader=r[0]}addPassesAvgByTeam(n,i,B){n[i]?(n[i].numberGamesCount+=1,n[i].numberTotalPassesAvg+=B):n[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Ds{constructor(n,i,B,z,c,m,a,y,f,r){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new L6);Vc(this,"visitingTeam",new L6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=n||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=z,this.names["0-0"]=z||"",this.names["1-1"]=c||"",this.names["0-1"]=m||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=r||!1}addLeaguePlays(n,i,B){n.length===0||!B||this.isLeagueDataCalculated||(n.forEach(z=>{this.isAccomplishedLeaguePlay(z[i.categoryId])&&(this.leagueAccomplishedAccumulator+=z[i.total]),this.isReceivedLeaguePlay(z[i.categoryId])&&(this.leagueReceivedAccumulator+=z[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(n,i,B){let z="-";for(const[c,m]of Object.entries(this.generalCategoriesIds))n===m&&(z=`${c==="accomplished"?"0":"1"}${z}`),i===m&&(z=`${z}${c==="accomplished"?"0":"1"}`);z.length===3&&(this.mentions[z]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(n,i,B,z,c){!B||!c||n!==this.homeTeamType&&n!==this.visitingTeamType||(B.forEach(m=>{this.isAccomplishedPlay(m[z.categoryId])?this[n].increaseAccomplishedByOne(m[z.section],m[z.total]):this.isReceivedPlay(m[z.categoryId])&&this[n].increaseReceivedByOne(m[z.section],m[z.total])}),this[n].calculateAvg(c))}addLivePlay(n,i,B,z,c=!1,m=!1){(n===this.homeTeamType||n===this.visitingTeamType)&&B[z.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[n].increaseAccomplishedByOne(B[z.section],B[z.total],!0)}subtractLivePlay(n,i,B,z,c){(n===this.homeTeamType||n===this.visitingTeamType)&&(this.isAccomplishedPlay(B[z.categoryId])&&!c?this[n].decreaseAccomplishedLiveByOne(B[z.section],B[z.total]):this.isReceivedPlay(B[z.categoryId])&&c&&this[n].decreaseReceivedLiveByOne(B[z.section],B[z.total]))}isAccomplishedLeaguePlay(n){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>n===B||`${n}_r`===B)}isReceivedLeaguePlay(n){return!!this.receivedCategoryIds.find(i=>n===i)}isAccomplishedPlay(n){return this.generalCategoriesIds.accomplished===n}isReceivedPlay(n){return this.generalCategoriesIds.received===n}calcRankingLeague(n,i,B,z,c,m=!1){this[this.homeTeamType].calculateRanking(n,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.homeTeamType),this[this.visitingTeamType].calculateRanking(n,i,z,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.visitingTeamType)}resetData(){this.homeTeam=new L6,this.visitingTeam=new L6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(n){return this.generalCategoriesIds.accomplished===n||this.generalCategoriesIds.received===n}}const _fa={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Ds([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Ds([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Ds([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Ds([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Ds([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Ds([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Ds([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Ds([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Ds([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Ds([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Ds([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Ds([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Ds([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Ds([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Ds([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Ds([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Ds([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Ds([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Ds([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Ds([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Ds([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Ds([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Ds([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Ds([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Ds([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Ds([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Ds([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Ds([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Ds([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Ds([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Ds([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Ds([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Ds([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Ds([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Ds([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Ds([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Ds([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Ds([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},bfa=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],xfa=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let oI=null;function wfa(){return oI||(oI=Q1(xfa)),oI}const kfa=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let sI=null;function Cfa(){return sI||(sI=Q1(kfa)),sI}function F6(e,n,i){return[i.get(e[n.categoryId])||[],e[n.teamId],e[n.matchResult],e[n.playingAs],e[n.matchLapse],e[n.section],e[n.total]]}function yK(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function lI(e,n,i){let B=[...n];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const Sfa=bB(),Tfa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],Efa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:mK(),indexesTSP:vfa(),indexesLS:wfa(),indexesTLP:Cfa(),nextGamesDataStructure:_fa,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(n=>n.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return bfa.filter(n=>n.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return pK(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return pK(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(n=>n.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(n=>e.homeTeamFilter.playingAs.includes(n[0])).filter(n=>e.homeTeamFilter.matchResult.includes(n[1])).reduce((n,i)=>n+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(n=>e.visitingTeamFilter.playingAs.includes(n[0])).filter(n=>e.visitingTeamFilter.matchResult.includes(n[1])).reduce((n,i)=>n+i[2],0)},filledDataStructure(e,n){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,n.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,n.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,n){return Object.values(n.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,n){for(const i of Object.values(n.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,n){for(const[i,B]of Object.entries(n))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,n){e.currentTournamentName=n},setBetSubcategoriesObjects(e,n){e.betSubcategoriesObjects=n},setRegularSeasonName(e,n){e.regularSeasonName=n},setBetSubcategories(e,n){e.betSubcategories=n},setBetDescription(e,n){e.betDescription=n},setSeasonId(e,n){e.seasonId=Number(n)},setHome(e,n){e.homeTeamInfo=n},setAway(e,n){e.awayTeamInfo=n},setMenuOptionActive(e,n){e.menuOptionActive=n},setPastSeasonId(e,n){e.pastSeasonId=n},setUsePastSeasonId(e,n){e.usePastSeasonId=n,n&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,n){e.showPostMatch=n},setHomeResultGame(e,n){e.homeResultGame=n},setAwayResultGame(e,n){e.awayResultGame=n},updateIsSocketConnected(e,n){e.isSocketConnected=n,n&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&Yoe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,z)=>{if(z.game_status===1&&(z.home_team===i.team_id||z.visiting_team===i.team_id)){const c=z.score[0]-z.score[1],m=z.home_team===i.team_id;B.push({playingAs:m?1:2,matchResult:c===0?3:m?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateGameId(e,n){e.gameId=n},updateGameForAnalysis(e,n){e.gameForAnalysis=n,e.isLive=!!n.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,n){e.selectedAnalysis=n},updateShowLiveData(e,n){e.showLiveData=n},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,n){e.idAssetSelected=n},updateStats(e,n){e.currentSeasonPlays=n},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:n,needsFormat:i=!1}){if(i){if(!n||!n.local||!n.local.statistics||!n.visit||!n.visit.statistics)return;e.homeTeamFilter=EB(e.homeTeamFilter,n.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=EB(e.visitingTeamFilter,n.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==n.local.statistics.block&&(e.selectedStatisticTypeBlock=n.local.statistics.block)}else e.homeTeamFilter={...n.homeTeamFilter,statistics:0},e.visitingTeamFilter={...n.visitingTeamFilter,statistics:0}},updateFinishedGames(e,n){e.totalSeasonFinishedGames=n},updateHomeTeamPlays(e,n){e.homeTeamPlays=n},updateVisitingTeamPlays(e,n){e.visitingTeamPlays=n},addSpecialMentions(e,n){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const z of Object.values(B.subcategories))z.resetMentions()}),i.forEach(B=>{for(const z of n)for(const c of Object.values(B.subcategories))c.addSpecialMention(z[0],z[1],z[2])})},setDefaultFilter(e,n){e.defaultFilter={homeTeamFilter:{...n.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...n.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,n){if(!e.livePlays.has(n[e.indexesTLP.playId])){e.livePlays.set(n[e.indexesTLP.playId],n);const B=F6(n,e.indexesTLP,e.categoriesMap);for(const z of Object.values(e.nextGamesDataStructure))for(const c of Object.values(z.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,n){const i=!!n[e.indexesTLP.length],B=e.livePlays.get(n[e.indexesTLP.playId]);if(Use(B,n))return;let z="";const c=e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(z=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const m=F6(B,e.indexesTLP,e.categoriesMap),a=lI(B,m,e.indexesTLP),y=F6(n,e.indexesTLP,e.categoriesMap),f=lI(n,y,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const v of Object.values(r.subcategories))B&&(v.subtractLivePlay(z,m[e.indexesTSP.teamId],m,e.indexesTSP,i),a&&v.subtractLivePlay(z,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(n[e.indexesTLP.playId],n)},deleteLiveGamePlay(e,n){const i=!!n[e.indexesTLP.length],B=e.livePlays.get(n[e.indexesTLP.playId]);let z="";if(B){z=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=F6(B,e.indexesTLP,e.categoriesMap),m=lI(n,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(z,c[e.indexesTSP.teamId],c,e.indexesTSP,i),m&&y.subtractLivePlay(z,m[e.indexesTSP.teamId],m,e.indexesTSP,i)}},clearLiveTotals(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,n){e.statistics=n},updateOldSeasonId(e,n){e.oldSeasonId=n},addRankingInSubcategories(e,{getters:n,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(m=>e.homeTeamFilter.playingAs.includes(m.playingAs)&&e.homeTeamFilter.matchResult.includes(m.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(m=>e.visitingTeamFilter.playingAs.includes(m.playingAs)&&e.visitingTeamFilter.matchResult.includes(m.matchResult)).length});const B=[],z=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const m of Object.values(c.subcategories))B.push(m);n.rankingData.forEach(c=>{for(const m of B)if(m.isInGeneralCategory(c[e.indexesLS.categoryId])){z.has(m.id)?z.get(m.id).push(c):z.set(m.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,n){e.homeGames=yK(n)},setVisitingGames(e,n){e.visitingGames=yK(n)},generateCategoriesMap(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.accomplishedCategoryIds.forEach(B=>{const z=e.categoriesMap.get(B);z?z.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:n},{command:i}){i==="on"?n("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):n("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},n){try{const m=await ffa({gameId:n.gameId});if(m){var i=[],B=[],z={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(m.data).length!==0&&(i=m.data.data.filter(a=>a[1]==n.homeTeam),B=m.data.data.filter(a=>a[1]==n.awayTeam),z=m.data.games,c=m.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",z),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(m){return Promise.reject(m)}},async fillStatisticDataPostMatch({commit:e,dispatch:n},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(n("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:n,commit:i},{gameId:B,isTeamsAnalysis:z,currentSeasonId:c,isLoginChanged:m=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let r={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await n("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),r=p.find(l=>l.game_id===Number(B)),!r&&y&&(r=y),r&&i("updateGameForAnalysis",r),r.game_status!==1&&((m||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await n("checkTeamsData",{gameId:B,isFromBet:!!a}),(m||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(n("getSeasonStatistics"))),e.usePastSeasonId){const l=await n("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(m||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>r.home_team===l.team_id))&&_.push(n("getCurrentSeasonTeams")),i("setHomeResultGame",r.score[0]),i("setAwayResultGame",r.score[1]),z?r.game_status!==1?(await n("fillStatisticData",{gameId:B,gameinfo:r,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(n("fillStatisticDataPostMatch",{game:B,homeTeam:r.home_team,awayTeam:r.visiting_team,gameInfo:r})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(r){return Promise.reject(r)}},async fillStatisticData({commit:e,dispatch:n,getters:i,rootGetters:B,state:z},{gameId:c,gameinfo:m,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",m),(m.is_live||m.game_status===0)&&a.push(n("getCurrentLiveGamePlays",c)),a.push(n("getSpecialMentionsByGame",c)),a.push(n("getHomeTeamPlays")),a.push(n("getVisitingTeamPlays")),a.push(n("getCurrentSeasonPlays")),y&&a.push(gfa(y)),f=await Promise.all(a)}catch(r){throw new Error(r)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[r]=f.pop();r&&(e("setBetSubcategories",r.categories),e("setBetDescription",r.sectionDescription),e("setDefaultFilter",r.params),e("updateFilterAux"),e("updateFilters",{filters:z.defaultFilter,needsFormat:!1}),n("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:n,rootState:i,commit:B},{gameId:z,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(m){throw new Error(m)}},async getSpecialMentionsByGame({commit:e},n){try{const i=await ufa({gameId:n});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:n},i){try{const{teams:B,games:z,past_season_id:c,tournament_id:m}=await lfa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,gameId:i}),a=Tfa.find(y=>y.id===m);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),n.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",z),z&&Array.isArray(z)&&e("updateFinishedGames",z.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),z}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:n}){try{const{games:i,past_season_id:B}=await fK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});return n.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((z,c)=>(c.game_status===1&&(z+=1),z),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:n}){try{const i=await pfa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:n}){try{const i=n.usePastSeasonId?n.pastSeasonId:n.seasonId,B=await ofa({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:n,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&n("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:n}){try{const i=await gK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:n}){try{const i=await gK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:n}){try{const i=await ifa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:n},i){try{const B=await cfa({gameId:i});e.livePlays=new Map,B.forEach(z=>{e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&n("addLiveGamePlay",z)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:n},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&n("addLiveGamePlay",B)},socket_update({state:e,commit:n},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&n("updateLiveGamePlay",B)},socket_delete({state:e,commit:n},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&n("deleteLiveGamePlay",B)},exitChannel({state:e,getters:n,rootState:i,rootGetters:B,commit:z}){const c=B["loginGeneral/getPremiumAccount"];n.isLive&&c&&(z("updateShowLiveData",!1),z("clearLiveTotals"),e.livePlays.clear(),Sfa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function Afa(){try{const{data:e}=await Ud({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const Mfa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,n){e.booleanIsStatisticModalOpen=n},setTournamentType(e,n){e.tournamentType=n},setSectionRef(e,n){e.sectionRef=n},setSectionAnalytics(e,n){e.sectionAnalytics=n},setSeccionBetsGolTipster(e,n){e.seccionBetsGolTipster=n},setPreviewSectionAnalytics(e,n){e.previewSectionAnalytics=n},setVideoSrc(e,n){e.videoSrc=n},setVideoModalVisibility(e,n){e.isVideoModalVisible=n},setSelectedTournament(e,n){e.selectedTournament=n},setTournaments(e,n){e.tournaments=n.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,n){e.tournamentSelected=n}},actions:{async fetchTournaments({state:e,commit:n}){try{if(e.tournaments.length===0){const i=await Afa();n("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function Ifa({seasonId:e,localTeamId:n,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${n}/${i}`;return(await Ud({url:B})).data}catch(B){return Promise.reject(B)}}async function Pfa({seasonId:e,localTeamId:n,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${n}/${i}`;return(await Ud({url:B})).data}catch(B){return Promise.reject(B)}}const vK=(e,n)=>{let i={};return e.forEach((B,z)=>{z==3&&(n[0]==35||n[0]==54)&&(n[z]==2?n[z]=1:n[z]=2),z==2&&(n[0]==35||n[0]==54)&&(n[z]==1?n[z]=2:n[z]==2&&(n[z]=1)),i[B]=n[z]}),i},_K=(e,n)=>e.filter(B=>{const z=n.playingAs.includes(B.playing_as),c=n.matchResult.includes(B.match_result),m=n.sections.includes(B.section);return z&&c&&m}),bK=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(n,i,B){return typeof B>"u"||+B==0?Math[n](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[n](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(n,i){return e("ceil",n,i)})})();function xK(e,n){let i=n*-1;return Math.ceil10(e,i)}const Bfa={...Mfa,...mfa,...Efa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,n,i)=>{const B=e.xGLocalPlays,z="homeTeamFilter",c=i.nextGeneral[z];return _K(B,c)||[]},playsAway:(e,n,i)=>{const B=e.xGVisitingPlays,z="visitingTeamFilter",c=i.nextGeneral[z];return _K(B,c)},goalsQtyLocal:(e,n)=>{const i=bK.find(B=>B.name==="Goles");return n.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,n)=>{const i=bK.find(B=>B.name==="Goles");return n.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,n)=>n.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,n)=>n.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,n)=>{const i=new Set;let B=n.playsLocal.reduce((z,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),z+=c.xG2),z),0);return xK(B,2)},xGAway:(e,n)=>{const i=new Set;let B=n.playsAway.reduce((z,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),z+=c.xG2),z),0);return xK(B,2)}},mutations:{setTeamSelected(e,n){e.teamSelected=n},setPlays(e,n){e.xGLocalPlays=n.local_team.map(i=>vK(n.data_headers,i)),e.xGVisitingPlays=n.visiting_team.map(i=>vK(n.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:n,localTeamId:i,visitingTeamId:B,postMatch:z=!1}){try{let c={};z?c=await Pfa({seasonId:n,localTeamId:i,visitingTeamId:B}):c=await Ifa({seasonId:n,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function Nfa(e){for(const[n,i]of Object.entries(Bfa))e.hasModule(n)||e.registerModule(n,i)}const Ofa={class:"subcategory-group"},Dfa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",Ofa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ns),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":z=>B.isSelected=z,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Lfa=_l(Dfa,[["__scopeId","data-v-85bc2114"]]),Ffa={class:"filter-subcategories"},zfa=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",Ffa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Lfa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),z6=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),Rfa={class:"details__header"},Vfa=z6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$fa={class:"details__header__checkbox"},jfa={class:"details__body"},Ufa={class:"details__body__playing-as"},Gfa=["onClick"],Hfa={class:"details__header"},Wfa=z6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qfa={class:"details__header__checkbox"},Yfa={class:"details__body"},Xfa=z6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zfa={class:"details__body__game-section"},Jfa=["onClick"],Kfa={class:"details__body"},Qfa=z6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ema={class:"details__body__game-section"},tma=["onClick"],ama=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rfa,[Vfa,t.createElementVNode("div",$fa,[t.createVNode(t.unref(Ns),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",jfa,[t.createElementVNode("div",Ufa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gfa))),128))])]),t.createElementVNode("div",Hfa,[Wfa,t.createElementVNode("div",qfa,[t.createVNode(t.unref(Ns),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Yfa,[Xfa,t.createElementVNode("div",Zfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jfa))),128))])]),t.createElementVNode("div",Kfa,[Qfa,t.createElementVNode("div",ema,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tma))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),nma={class:"filter-field"},rma=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(B,z)=>z+1));function i(){}return(B,z)=>(t.openBlock(),t.createElementBlock("div",nma,[t.createVNode(t.unref(NW),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"})),ima={class:"subcategory-group"},oma={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",ima,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Os),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":z=>B.isSelected=z,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},sma=bl(oma,[["__scopeId","data-v-85bc2114"]]),lma={class:"filter-subcategories"},cma=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",lma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(sma,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),R6=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),uma={class:"details__header"},dma=R6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),hma={class:"details__header__checkbox"},pma={class:"details__body"},fma={class:"details__body__playing-as"},mma=["onClick"],gma={class:"details__header"},yma=R6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),vma={class:"details__header__checkbox"},_ma={class:"details__body"},bma=R6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),xma={class:"details__body__game-section"},wma=["onClick"],kma={class:"details__body"},Cma=R6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Sma={class:"details__body__game-section"},Tma=["onClick"],Ema=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",uma,[dma,t.createElementVNode("div",hma,[t.createVNode(t.unref(Os),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",pma,[t.createElementVNode("div",fma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,mma))),128))])]),t.createElementVNode("div",gma,[yma,t.createElementVNode("div",vma,[t.createVNode(t.unref(Os),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",_ma,[bma,t.createElementVNode("div",xma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,wma))),128))])]),t.createElementVNode("div",kma,[Cma,t.createElementVNode("div",Sma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tma))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),Ama={class:"filter-field"},Mma=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(B,z)=>z+1));function i(){}return(B,z)=>(t.openBlock(),t.createElementBlock("div",Ama,[t.createVNode(t.unref(PX),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"}));yd.GSCGameData=rfa,yd.connectSocket=xB,yd.disconnectSocket=wB,yd.getSocket=bB,yd.registerStoreModules=Nfa,Object.defineProperty(yd,Symbol.toStringTag,{value:"Module"})});
|
|
7626
|
+
*/var oha="store";function Ug(e,n){Object.keys(e).forEach(function(i){return n(e[i],i)})}function XJ(e){return e!==null&&typeof e=="object"}function sha(e){return e&&typeof e.then=="function"}function xf(e,n){if(!e)throw new Error("[vuex] "+n)}function lha(e,n){return function(){return e(n)}}function ZJ(e,n,i){return n.indexOf(e)<0&&(i&&i.prepend?n.unshift(e):n.push(e)),function(){var B=n.indexOf(e);B>-1&&n.splice(B,1)}}function JJ(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;N6(e,i,[],e._modules.root,!0),KM(e,i,n)}function KM(e,n,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var z=e._wrappedGetters,c={};Ug(z,function(m,a){c[a]=lha(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:n}),e.strict&&pha(e),B&&i&&e._withCommit(function(){B.data=null})}function N6(e,n,i,B,z){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!z){var a=QM(n,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=cha(e,m,i);B.forEachMutation(function(r,v){var _=m+v;uha(e,_,r,f)}),B.forEachAction(function(r,v){var _=r.root?v:m+v,p=r.handler||r;dha(e,_,p,f)}),B.forEachGetter(function(r,v){var _=m+v;hha(e,_,r,f)}),B.forEachChild(function(r,v){N6(e,n,i.concat(v),r,z)})}function cha(e,n,i){var B=n==="",z={dispatch:B?e.dispatch:function(c,m,a){var y=O6(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=O6(c,m,a),f=y.payload,r=y.options,v=y.type;if((!r||!r.root)&&(v=n+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,r)}};return Object.defineProperties(z,{getters:{get:B?function(){return e.getters}:function(){return KJ(e,n)}},state:{get:function(){return QM(e.state,i)}}}),z}function KJ(e,n){if(!e._makeLocalGettersCache[n]){var i={},B=n.length;Object.keys(e.getters).forEach(function(z){if(z.slice(0,B)===n){var c=z.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[z]},enumerable:!0})}}),e._makeLocalGettersCache[n]=i}return e._makeLocalGettersCache[n]}function uha(e,n,i,B){var z=e._mutations[n]||(e._mutations[n]=[]);z.push(function(c){i.call(e,B.state,c)})}function dha(e,n,i,B){var z=e._actions[n]||(e._actions[n]=[]);z.push(function(c){var m=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return sha(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):m})}function hha(e,n,i,B){if(e._wrappedGetters[n]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+n);return}e._wrappedGetters[n]=function(z){return i(B.state,B.getters,z.state,z.getters)}}function pha(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&xf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function QM(e,n){return n.reduce(function(i,B){return i[B]},e)}function O6(e,n,i){return XJ(e)&&e.type&&(i=n,n=e,e=e.type),process.env.NODE_ENV!=="production"&&xf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:n,options:i}}var fha="vuex bindings",QJ="vuex:mutations",eI="vuex:actions",mv="vuex",mha=0;function gha(e,n){iha({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[fha]},function(i){i.addTimelineLayer({id:QJ,label:"Vuex Mutations",color:eK}),i.addTimelineLayer({id:eI,label:"Vuex Actions",color:eK}),i.addInspector({id:mv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===mv)if(B.filter){var z=[];rK(z,n._modules.root,B.filter,""),B.rootNodes=z}else B.rootNodes=[nK(n._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===mv){var z=B.nodeId;KJ(n,z),B.state=_ha(xha(n._modules,z),z==="root"?n.getters:n._makeLocalGettersCache,z)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===mv){var z=B.nodeId,c=B.path;z!=="root"&&(c=z.split("/").filter(Boolean).concat(c)),n._withCommit(function(){B.set(n._state.data,c,B.state.value)})}}),n.subscribe(function(B,z){var c={};B.payload&&(c.payload=B.payload),c.state=z,i.notifyComponentUpdate(),i.sendInspectorTree(mv),i.sendInspectorState(mv),i.addTimelineEvent({layerId:QJ,event:{time:Date.now(),title:B.type,data:c}})}),n.subscribeAction({before:function(B,z){var c={};B.payload&&(c.payload=B.payload),B._id=mha++,B._time=Date.now(),c.state=z,i.addTimelineEvent({layerId:eI,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,z){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=z,i.addTimelineEvent({layerId:eI,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var eK=8702998,yha=6710886,vha=16777215,tK={label:"namespaced",textColor:vha,backgroundColor:yha};function aK(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function nK(e,n){return{id:n||"root",label:aK(n),tags:e.namespaced?[tK]:[],children:Object.keys(e._children).map(function(i){return nK(e._children[i],n+i+"/")})}}function rK(e,n,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:n.namespaced?[tK]:[]}),Object.keys(n._children).forEach(function(z){rK(e,n._children[z],i,B+z+"/")})}function _ha(e,n,i){n=i==="root"?n:n[i];var B=Object.keys(n),z={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=bha(n);z.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?aK(m):m,editable:!1,value:tI(function(){return c[m]})}})}return z}function bha(e){var n={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var z=n,c=B.pop();B.forEach(function(m){z[m]||(z[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),z=z[m]._custom.value}),z[c]=tI(function(){return e[i]})}else n[i]=tI(function(){return e[i]})}),n}function xha(e,n){var i=n.split("/").filter(function(B){return B});return i.reduce(function(B,z,c){var m=B[z];if(!m)throw new Error('Missing module "'+z+'" for path "'+n+'".');return c===i.length-1?m:m._children},n==="root"?e:e.root._children)}function tI(e){try{return e()}catch(n){return n}}var wf=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},iK={namespaced:{configurable:!0}};iK.namespaced.get=function(){return!!this._rawModule.namespaced},wf.prototype.addChild=function(e,n){this._children[e]=n},wf.prototype.removeChild=function(e){delete this._children[e]},wf.prototype.getChild=function(e){return this._children[e]},wf.prototype.hasChild=function(e){return e in this._children},wf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},wf.prototype.forEachChild=function(e){Ug(this._children,e)},wf.prototype.forEachGetter=function(e){this._rawModule.getters&&Ug(this._rawModule.getters,e)},wf.prototype.forEachAction=function(e){this._rawModule.actions&&Ug(this._rawModule.actions,e)},wf.prototype.forEachMutation=function(e){this._rawModule.mutations&&Ug(this._rawModule.mutations,e)},Object.defineProperties(wf.prototype,iK);var Gg=function(e){this.register([],e,!1)};Gg.prototype.get=function(e){return e.reduce(function(n,i){return n.getChild(i)},this.root)},Gg.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(i,B){return n=n.getChild(B),i+(n.namespaced?B+"/":"")},"")},Gg.prototype.update=function(e){oK([],this.root,e)},Gg.prototype.register=function(e,n,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&cK(e,n);var z=new wf(n,i);if(e.length===0)this.root=z;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],z)}n.modules&&Ug(n.modules,function(m,a){B.register(e.concat(a),m,i)})},Gg.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1],B=n.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&n.removeChild(i)},Gg.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1];return n?n.hasChild(i):!1};function oK(e,n,i){if(process.env.NODE_ENV!=="production"&&cK(e,i),n.update(i),i.modules)for(var B in i.modules){if(!n.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}oK(e.concat(B),n.getChild(B),i.modules[B])}}var sK={assert:function(e){return typeof e=="function"},expected:"function"},wha={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},lK={getters:sK,mutations:sK,actions:wha};function cK(e,n){Object.keys(lK).forEach(function(i){if(n[i]){var B=lK[i];Ug(n[i],function(z,c){xf(B.assert(z),kha(e,i,c,z,B.expected))})}})}function kha(e,n,i,B,z){var c=n+" should be "+z+' but "'+n+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var Lh=function e(n){var i=this;n===void 0&&(n={}),process.env.NODE_ENV!=="production"&&(xf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),xf(this instanceof e,"store must be called with the new operator."));var B=n.plugins;B===void 0&&(B=[]);var z=n.strict;z===void 0&&(z=!1);var c=n.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Gg(n),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(m,v,_)},this.commit=function(v,_,p){return f.call(m,v,_,p)},this.strict=z;var r=this._modules.root.state;N6(this,r,[],this._modules.root),KM(this,r),B.forEach(function(v){return v(i)})},aI={state:{configurable:!0}};Lh.prototype.install=function(e,n){e.provide(n||oha,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&gha(e,this)},aI.state.get=function(){return this._state.data},aI.state.set=function(e){process.env.NODE_ENV!=="production"&&xf(!1,"use store.replaceState() to explicit replace store state.")},Lh.prototype.commit=function(e,n,i){var B=this,z=O6(e,n,i),c=z.type,m=z.payload,a=z.options,y={type:c,payload:m},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(r){r(m)})}),this._subscribers.slice().forEach(function(r){return r(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Lh.prototype.dispatch=function(e,n){var i=this,B=O6(e,n),z=B.type,c=B.payload,m={type:z,payload:c},a=this._actions[z];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+z);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(m,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,r){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(m,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(m,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}r(v)})})},Lh.prototype.subscribe=function(e,n){return ZJ(e,this._subscribers,n)},Lh.prototype.subscribeAction=function(e,n){var i=typeof e=="function"?{before:e}:e;return ZJ(i,this._actionSubscribers,n)},Lh.prototype.watch=function(e,n,i){var B=this;return process.env.NODE_ENV!=="production"&&xf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},n,Object.assign({},i))},Lh.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})},Lh.prototype.registerModule=function(e,n,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(xf(Array.isArray(e),"module path must be a string or an Array."),xf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,n),N6(this,this.state,e,this._modules.get(e),i.preserveState),KM(this,this.state)},Lh.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=QM(n.state,e.slice(0,-1));delete i[e[e.length-1]]}),JJ(this)},Lh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&xf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Lh.prototype.hotUpdate=function(e){this._modules.update(e),JJ(this,!0)},Lh.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(Lh.prototype,aI);var Cha=Tha(function(e,n){var i={};return process.env.NODE_ENV!=="production"&&!uK(n)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Sha(n).forEach(function(B){var z=B.key,c=B.val;i[z]=function(){for(var m=[],a=arguments.length;a--;)m[a]=arguments[a];var y=this.$store.commit;if(e){var f=Eha(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(m)):y.apply(this.$store,[c].concat(m))}}),i});function Sha(e){return uK(e)?Array.isArray(e)?e.map(function(n){return{key:n,val:n}}):Object.keys(e).map(function(n){return{key:n,val:e[n]}}):[]}function uK(e){return Array.isArray(e)||XJ(e)}function Tha(e){return function(n,i){return typeof n!="string"?(i=n,n=""):n.charAt(n.length-1)!=="/"&&(n+="/"),e(n,i)}}function Eha(e,n,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+n+"(): "+i),B}const Aha="/icn-play.svg",Mha="/icn-tiros-de-esquina.svg",Iha="/icn-tiro-a-porteria.svg",Pha="/icn-cambio.svg",Bha="/icn-falta.svg",Nha="/atajada.svg",Oha="/fuera-de-lugar.svg",nI="/gol.svg",Dha="/var.png",Lha="/tiempo-agregado.svg",Fha="/jugada-peligrosa.svg",zha="/penal-marcado.svg",Rha="/penal-fallado.svg",Vha="/inicia-el-partido.svg",$ha="/fin-del-partido.svg",jha="/icn-tarjeta-amarilla.svg",Uha="/icn-tarjeta-roja.svg",Gha=[1,2,3,4,6],Hha={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],n=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return ZM.GOAL_IDS.includes(n)?(e.push("is-main-event"),e.push("goal")):ZM.YELLOW_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("yellow-card")):ZM.RED_CARD_IDS.includes(n)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(n=>Jda(n))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||Gha.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Cha("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,n]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(n),teamId:this.gameEvent.team_id})}}},Wha=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),qha={class:"time-line-event__details"},Yha={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Xha=["src"],Zha=Wha(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Jha={class:"time-line-event__details__info"},Kha={key:0,class:"time-line-event__details__info__header__players"},Qha={class:"time-line-event__details__info__header__players__div-img"},epa=["src"],tpa={class:"time-line-event__details__info__body"},apa={class:"time-line-event__details__info__body__comment"},npa={class:"time-line-event__minute__container"},rpa={class:"time-line-event__minute__container__text"},ipa={class:"time-line-event__minute__container__icon-container"},opa={class:"time-line-event__minute__container__icon-container__icon"},spa={key:0,src:Mha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lpa={key:1,src:Iha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cpa={key:2,src:Pha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},upa={key:3,src:Bha,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},dpa={key:4,src:Nha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hpa={key:5,src:Oha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ppa={key:6,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fpa={key:7,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mpa={key:8,src:nI,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gpa={key:9,src:Dha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ypa={key:10,src:Lha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vpa={key:11,src:Fha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_pa={key:12,src:zha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bpa={key:13,src:Rha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xpa={key:14,src:Vha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wpa={key:15,src:$ha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kpa={key:16,src:jha,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Cpa={key:17,src:Uha,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Spa={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Tpa(e,n,i,B,z,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:z.gameEventKey},[t.createElementVNode("div",qha,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:n[0]||(n[0]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",Yha,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Xha)]),Zha])):t.createCommentVNode("",!0),t.createElementVNode("div",Jha,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Kha,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Qha,[t.createElementVNode("img",{src:m,alt:""},null,8,epa)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:n[1]||(n[1]=m=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:Aha,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",tpa,[t.createElementVNode("div",apa,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",npa,[t.createElementVNode("div",rpa,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",ipa,[t.createElementVNode("div",opa,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",spa)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",lpa)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",cpa)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",upa)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",dpa)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",hpa)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",ppa)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",fpa)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",mpa)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",gpa)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",ypa)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",vpa)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",_pa)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",bpa)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",xpa)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",wpa)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",kpa)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Cpa)):(t.openBlock(),t.createElementBlock("img",Spa))])])])],2)],6)}const Epa=Z_(Hha,[["render",Tpa],["__scopeId","data-v-9943063a"]]),Apa={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},Mpa={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let D6=null;const Ipa={name:"TimeLine",components:{Tooltip:qda,TimeLineEvent:Epa},mixins:[Xda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const n=await this.fetchGameEvents(e);n?(this.gameEvents=[...n],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(n){throw new Error(n)}},getGameEventClassAndSetIcon(e,n){return e.icon=n===0?"inicio_del_partido":Apa[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:n}}=await HJ.get(`${this.gameEventsUrl}${e}`);return n}catch(n){throw new Error(n)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)D6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),D6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,n){const i=this.$refs[`gameEventDiv${n}`][0],B=this.$refs[`gameEventLine${n}`]?this.$refs[`gameEventLine${n}`][0]:null,z=e+12;i&&(i.style.height=`${z}px`),B&&(B.style.height=`${z}px`)},sortGameEvents(){this.gameEvents.sort((e,n)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(n.match_lapse)+Number(n.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let n=0;switch(e){case 1:n=0;break;case 2:n=45;break;case 3:n=90;break;case 4:n=105;break;case 5:n=120;break}return n},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const n=this.gameEvents.findIndex(i=>i.play_id===e.play_id);n&&this.gameEvents.splice(n,1)},checkTimeLineStatus(){this.gameEvents.forEach(n=>{const i=Mpa[n.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:n})}),this.timeLineStatuses.sort((n,i)=>i.weight-n.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const n=this.gameData[e].team_id;return Zda(n)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){D6&&D6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,n]){this.channelName===e&&this.addGameEventFromChannel(n)},update_mxm([e,n]){this.channelName===e&&(this.deleteGameEventFromChannel(n),this.addGameEventFromChannel(n))},delete_mxm([e,n]){this.channelName===e&&this.deleteGameEventFromChannel(n)}}},dK=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Ppa={ref:"timeLine",class:"time-line"},Bpa={class:"time-line__header"},Npa={class:"time-line__header__dot"},Opa={class:"time-line__header__dot__home-team team-logo"},Dpa=["src"],Lpa={class:"time-line__header__dot__away-team team-logo"},Fpa=["src"],zpa={key:1,class:"start-line"},Rpa=dK(()=>t.createElementVNode("div",null,null,-1)),Vpa=dK(()=>t.createElementVNode("div",null,null,-1)),$pa=[Rpa,Vpa],jpa={key:1,class:"noEventText"},Upa={class:"tooltip-data"},Gpa=["src"];function Hpa(e,n,i,B,z,c){const m=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Ppa,[t.createElementVNode("div",Bpa,[t.createElementVNode("div",Npa,[t.createElementVNode("div",Opa,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,Dpa)]),t.createElementVNode("div",Lpa,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,Fpa)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${z.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:z.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(m,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":z.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:r=>c.updateContainerHeight(r,f),onPlayerChanged:n[0]||(n[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",zpa,$pa)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",jpa,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:z.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",Upa,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:z.dataVideo.link,format:"video/mp4"},null,8,Gpa)])])]),_:1},8,["data"])],64)}const Wpa=Z_(Ipa,[["render",Hpa],["__scopeId","data-v-2574e576"]]),qpa={class:"game-time-line__options"},Ypa={class:"game-time-line__timeline"},Xpa={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){HJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const n=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const z=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),m=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),r=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){m.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",qpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(Eua,t.mergeProps(y.value<390?i.value:n.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:d=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Ypa,[t.createVNode(Wpa,{"game-data":e.game,"time-line-period":f.value,"is-mobile":r.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Zpa=Z_(Xpa,[["__scopeId","data-v-f42d0c90"]]),Swa="",Jpa={class:"game-data__header"},Kpa={class:"game-data__header__tournament-season-dropdown"},Qpa={class:"game-data__header__teams-carousel"},efa={class:"game-data__body"},tfa={class:"game-data__body__menu"},afa={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const nfa=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:wfe,GSCGameTimeLine:Zpa,GscSwitchComponent:SA,GSCLineupsMain:rke,GSCDatosGSMain:CPe,GSCVideoGame:BGe,ModalEvents:iV,GSCSummaryMain:I_t,GSCTacticaFijaMain:Sua,GSCProminentMain:KNt,GSCComparative:BFt}}),rfa=$i(Object.assign(nfa,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:n}){const i=e,B=ix();Jh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const z=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),m=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),r=12e4,v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,d=12e4,u=12e4,h=t.ref(null),g=t.ref(null),b=t.ref(null),w=t.ref([]),x=t.ref(null),T=t.ref(!0),k=t.ref(new Set([1,2])),S=t.ref({}),C=t.ref({minute:"",recent_lapse:0,score:{}}),A=t.ref(0),E=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),M=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const O=t.ref(0);let L=null;const R=t.ref(null),V=t.ref(0),j=t.ref(I.value[0]),U=t.ref([]);let Z=t.ref("");const q={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},W=t.computed(()=>{const Me=[];return m.value&&m.value.id&&(Me.push({id:m.value.id,name:m.value.name,type:m.value.type}),m.value.related_seasons&&m.value.related_seasons.forEach(we=>{Me.push({id:we.id,type:we.type})})),Me}),Q=t.computed(()=>{if(i.clientPrivilegesBySeasons){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)return Me.teamId}return 0});function X(){a.value=!1}function J(Me){const we=Me.split(",");return!(we.length<2||we[1].split(" ").length<2)}function ee(Me){h.value=Me}function le(Me){w.value.push(Me)}function oe(Me){x.value=Me}function se(Me){b.value=Me}function ce(Me){g.value=Me}function ae(Me){if(!J(Me))return"";const we=ie(Me);return`${ne(Me)}. ${we}`}function ne(Me){return Me.split(",")[1].split(" ")[1][0]}function ie(Me){const we=Me.split(",")[0].split(" ");return we[0].length<=3&&we.length>1?`${we[0]} ${we[1]}`:we[0]}async function de(Me){try{const we=$c.create({headers:{Authorization:`${z.value}`}});S.value={};const Oe=await we.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+Me.game_id);S.value[Me.home_team.team_id]=[],S.value[Me.home_team.team_id].team={name:Me.home_team.acronym,logo:Me.home_team.logo},S.value[Me.home_team.team_id].goals=[],S.value[Me.home_team.team_id].red=[],S.value[Me.home_team.team_id].yellow=[],S.value[Me.visiting_team.team_id]=[],S.value[Me.visiting_team.team_id].team={name:Me.visiting_team.acronym,logo:Me.visiting_team.logo},S.value[Me.visiting_team.team_id].goals=[],S.value[Me.visiting_team.team_id].red=[],S.value[Me.visiting_team.team_id].yellow=[],Oe.data.minute!=null&&(C.value={minute:Oe.data.minute,recent_lapse:Oe.data.recent_lapse,score:Oe.data.score});for(let ze=0;ze<Oe.data.plays.length;ze++)Oe.data.plays[ze].category_name=="Roja"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].red||(S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].red||(S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].red[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute))),Oe.data.plays[ze].category_name=="Amarilla"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].yellow||(S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].yellow||(S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].yellow[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute))),Oe.data.plays[ze].event_type_name=="Gol"&&Oe.data.plays[ze].status==1&&(Me.home_team.team_id==Oe.data.plays[ze].team_id?Oe.data.plays[ze].category_name=="Autogol"?(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].goals||(S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].goals||(S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):Oe.data.plays[ze].category_name=="Autogol"?(ae(Oe.data.plays[ze].player_name)in S.value[Me.home_team.team_id].goals||(S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.home_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)):(ae(Oe.data.plays[ze].player_name)in S.value[Me.visiting_team.team_id].goals||(S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)]={},S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event=[],S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].name=ae(Oe.data.plays[ze].player_name)),S.value[Me.visiting_team.team_id].goals[ae(Oe.data.plays[ze].player_name)].event.push(Oe.data.plays[ze].minute)))}catch(we){return Promise.reject(we)}}function he(Me){a.value=!0,Me.is_live!=1&&Me.game_status!=0&&(Me.game_status==4||Object.keys(Me.minutes).length>0)?(A.value=1,S.value={plays:Me.minutes,home_team:Me.home_team,visiting_team:Me.visiting_team}):(A.value=0,de(Me))}function pe(){L=new ResizeObserver(Me=>{for(const we of Me)V.value=we.contentRect.width}),L.observe(R.value)}const me=t.computed(()=>{let Me={};return y.value&&y.value.game_id&&(Me={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),Me});t.watch(()=>me,(Me,we)=>{B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(Me.value).length>0&&(Me.value.gameId===we.value.gameId&&Me.value.is_live!==we.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:Me.value.is_live,game_status:Me.value.game_status}),O.value+=1),I.value=[],Me.value.is_live==1||Me.value.game_status==4?I.value=[...M.value]:I.value=[...N.value],!i.isWidget&&(m.value.is_tactic_available==0||Me.value.is_live==1||Me.value.game_status==0)&&I.value.pop(),i.isWidget&&Me.value.is_live==1&&Me.value.awayTeam.team_id==i.teamWidget,j.value=I.value[0],O.value+=1,de({game_id:Me.value.gameId,home_team:Me.value.homeTeam,visiting_team:Me.value.awayTeam}),Me.value.is_live==1&&setInterval(()=>{A.value=0,de({game_id:Me.value.gameId,home_team:Me.value.homeTeam,visiting_team:Me.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function be(Me){f.value=Me.is_captured,T.value=Me.is_captured!==0,c.value.id!==Me.id&&(c.value=Me,B.commit("gameGlobal/setTournamentType",Me.tournament_type))}function xe(Me){!Me.auxwidget&&Ie.value&&!Ie.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0)&&(Me.liveGameConfig={gameId:y.value.game_id}),n("openmedia",Me))}function ke(Me){n("onOpenProfile",Me)}function Ee(Me){n("openProfileTeam",Me)}function Ne(Me){n("openProfilePlayer",Me)}function $e(Me){Le(Me),Me=="Estadísticas"&&(Z.value="Comparativa")}function Te(){Z.value=""}function Ce(Me){m.value.id!==Me.id&&(m.value=Me,n("change-season-id",Me.id))}const ye=t.computed(()=>I.value.reduce((Me,we)=>(i.disabledSectionsIds.includes(we.id)||Ie.value&&!Ie.value.isVideoTabVisible&&we.id===2||i.clientPrivilegesBySeasons&&we.id===7||(T.value||we.id!==5&&we.id!==6)&&Me.push(we.name),Me),[]));function ge(Me){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const we=Me.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&we}else{const we=Se.value.filter(Oe=>Me.playingAs.has(Oe.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&we.length>0}}const Ie=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value&&y.value&&y.value.game_id){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)if(De(Me.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const we=Me.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:Me,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&we,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===Me.teamId,homeTeamDetails:{canPlayVideos:we,team:y.value.home_team},awayTeamDetails:{canPlayVideos:we,team:y.value.visiting_team},isVideoTabVisible:ge(Me)}}else{const we=y.value.home_team.team_id===Me.teamId,Oe=Se.value.filter(je=>Me.playingAs.has(je.playingAs));return{seasonAndPrivileges:Me,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&Oe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:we,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&we&&Oe.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!we&&Oe.length>0,team:y.value.visiting_team},isVideoTabVisible:ge(Me)}}De(new Set)}return q}return null}),Se=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(m.value){const Me=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(m.value.id);if(Me)return U.value.filter(we=>we.game_status===1&&Me.playingAs.has(we.playingAs))}return[]}return[]});t.watch(ye,()=>{Ie.value&&!Ie.value.canPrivilegesTeamPlayVideos&&j.value.id===2&&Le("Resumen")},{deep:!0,immediate:!0});function De(Me){k.value=Me}function Le(Me){if(B.commit("nextGeneral/updateShowLiveData",!0),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let we of w.value)clearInterval(we);w.value=[]}i.isWidget?j.value=I.value.find(we=>we.name===Me)||I.value[1]:j.value=I.value.find(we=>we.name===Me)||I.value[0]}t.onMounted(()=>{pe(),t.nextTick(()=>{i.isSynchronization&&Le("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(L&&L.disconnect(),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let Me of w.value)clearInterval(Me);w.value=[]}K8()});function Re(Me){if(Me.playingAs||(Me.playingAs=Q.value?Me.home_team.team_id===Q.value?1:2:0),h.value!=null&&(clearInterval(h.value),h.value=null),g.value!=null&&(clearInterval(g.value),g.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),x.value!=null&&(clearInterval(x.value),x.value=null),w.value.length>0){for(let we of w.value)clearInterval(we);w.value=[]}y.value=Me,Me.is_live&&Me.game_status===4?xB():wB()}function Ue(Me){U.value=Me.map(we=>{const Oe={...we};return Q.value&&(Oe.playingAs=Oe.home_team.team_id===Q.value?1:2),Oe})}return(Me,we)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:R},[t.createElementVNode("div",Jpa,[t.withDirectives(t.createElementVNode("div",Kpa,[t.createVNode(t.unref(xI),{"current-season-id":e.currentSeasonId,onInput:be,onChangeTournaments:be,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(CI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:Ce},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Qpa,[t.createVNode(t.unref(Tre),{"plays-live":S.value,"info-live":C.value,token:E.value,is_captured:f.value,"await-for-seasons":"",seasons:W.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":Q.value,"only-games-team-id":Q.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Re,onOpenModalEvent:he,onChangeGamesByClientPrivileges:Ue},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(iV,{key:0,width:V.value,onCloseModalEventsLive:X,plays:S.value,game:y.value,type:A.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",efa,[t.createElementVNode("div",tfa,[t.createElementVNode("div",afa,[t.createVNode(t.unref(SA),{type:2,buttons:ye.value,"font-family":"Poppins-Regular","font-size":"16px",width:V.value<400||V.value<700?"max-content":V.value<840||V.value<1050?"155px":"165px","selected-option":j.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Le},null,8,["buttons","width","selected-option"])])]),me.value&&me.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(j.value.componentName),{key:O.value,game:me.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ce,onIntervalidhighlive:se,onIntervalidtops:le,onIntervalidgs:oe,subsection:t.unref(Z),seasonSelected:m.value,tournamentSelected:c.value,showLineups:T.value,socket:e.socket,"time-live-prominent-data":r,"time-live-highlights-prominent-and-video":v,"time-live-possesion":_,"time-live-video-goals":p,"time-live-video-best-plays":l,"time-live-video-this-game":o,"time-live-video-specific-plays":s,"time-live-comparative-best-players":d,"time-live-comparative-avanced":u,is_captured:f.value,"is-tactic-visible":!!m.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ie.value?Ie.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":k.value,"client-privileges-team-id":Q.value,"play-videos-privileges":Ie.value,token:E.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Te,onOpenmedia:xe,onOnOpenProfile:ke,onOpenProfileTeam:Ee,onOpenProfilePlayer:Ne,onChangeToTab:$e,onOpenMediaPlayer:xe,onIntervalid:ee},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-e285fc94"]]);async function Ud({url:e,options:n={},retries:i=3}){return await $c.get(e,n).then(B=>B).catch(B=>i>0?Ud({url:e,options:n,retries:i-1}):B)}async function hK({seasonId:e},n=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(n)return hK({seasonId:e},!1);throw new Error(i)}}async function ifa({seasonId:e}){try{return(await Ud({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}async function ofa({seasonId:e}){try{return(await Ud({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(n){return Promise.reject(n)}}function sfa(e,n,i,B,z,c,m=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[z.teamId]?y[z.teamId]!==c:!1,r=n===1?2:1;return(m||B.includes(y[z.gameId]))&&(!n||(f?r:n)===y[z.playingAs])&&(i.includes(y[z.matchResult])&&y[z.teamId]===c||a.includes(y[z.matchResult])&&y[z.teamId]!==c)})}function pK(e,n,i,B,z){return n.length===2&&i.length===3&&B.length===6?e:e.filter(c=>n.includes(c[z.playingAs])&&i.includes(c[z.matchResult])&&B.includes(c[z.section]))}async function fK({seasonId:e}){try{const n=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ud({url:n})).data}catch(n){return Promise.reject(n)}}async function lfa({seasonId:e,gameId:n}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${n}`,{data:B}=await Ud({url:i});return B}catch(i){return Promise.reject(i)}}async function cfa({gameId:e}){try{const n=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ud({url:n})).data.data}catch(n){return Promise.reject(n)}}async function ufa({gameId:e}){try{const n=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ud({url:n})).data.data||[]}catch(n){return Promise.reject(n)}}const dfa=["categoryId","matchLapse","section","matchResult","playingAs","total"];let rI=null;function mK(){return rI||(rI=Q1(dfa)),rI}async function hfa(e){try{const n=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ud({url:n})).data}catch(n){return Promise.reject(n)}}async function gK({seasonId:e,teamId:n}){try{return await Ud({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${n}`})}catch(i){return Promise.reject(i)}}async function pfa(e){try{const n=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ud({url:n})}catch(n){return Promise.reject(n)}}async function ffa(e){try{return await Ud({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(n){return Promise.reject(n)}}const mfa={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,n,i,B){return sfa(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],mK(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const n=e.currentSeasonGames.reduce((i,B)=>{const z={...B};return z.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),z.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(z):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[z]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[z]},i},{});for(let[i,B]of Object.entries(n))n[i]=Object.entries(B).map(([z,c])=>({date:z,games:c})),n[i].sort((z,c)=>z.date<c.date?-1:z.date>c.date?1:0);return n},matchdaysDates(e,n){let i=[];if(n.nextGamesSchedule){let B=Object.keys(n.nextGamesSchedule);for(let z of B){let c=Number(z.replace("M","")),m=n.nextGamesSchedule[z].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(m)}}return i},closestMatchDay(e,n){let i=new Date,B=0,z=-new Date(0,0,0).valueOf(),c=n.matchdaysDates,m=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<z&&(m=a,z=B);return c[m]?c[m].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,n){e.booleanIsLiveGamesModalOpen=n},setBooleanAreLiveGames(e,n){e.booleanAreLiveGames=n},updateSeasonPlays(e,n){e.seasonPlays=n},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateSelectedRound(e,n){e.selectedRound=n}},actions:{async getSeasonPlays({commit:e,rootGetters:n},i=!1){try{const B=await hK({seasonId:n["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:n}){try{const i=await fK({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:n}){try{const i=await hfa({seasonId:n["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:n,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=n("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=n("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function gfa({filter:e}){try{const n=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Ud({url:n});return i}catch(n){return Promise.reject(n)}}const yfa=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let iI=null;function vfa(){return iI||(iI=Q1(yfa)),iI}class L6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(n){n>this.maximumLiveSection&&(this.maximumLiveSection=n)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(n,i,B){B&&(this.setMaximumLiveSection(n),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,n,i)}increaseReceivedByOne(n,i,B){B&&(this.setMaximumLiveSection(n),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[n-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,n,i)}increaseTrendLiveAccumulatedByOne(n,i,B){for(let z=i-1;z<n.accumulated.length;z++)n.accumulated[z]+=B}decreaseAccomplishedLiveByOne(n,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[n-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[n-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,n,i))}decreaseReceivedLiveByOne(n,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[n-1]>0&&(this.received.totalsLiveTrendLive.sections[n-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,n,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(n,i,B){for(let z=n.accumulated.length-1;z>=i-1;z--)n.accumulated[z]-=B}calculateAvg(n){n&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/n,this.received.avgPostGame=this.received.totalPostGame/n,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,n),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,n),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,n),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,n))}getAvgPostGameTrendLiveAvg(n,i){return n.map(B=>B/i)}calculateRanking(n,i,B,z,c,m,a,y){let f=[];z===3&&n&&n.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(n.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=n?[...n]:[],a&&n&&(f=n.filter(r=>B.playingAs.includes(r[i.playingAs])&&B.matchResult.includes(r[i.matchResult])&&B.sections.includes(r[i.section])))),this.setTeamRanking(f,z,i,B.teamId,m,"accomplished",y)}setTeamRanking(n,i,B,z,c,m,a){let y=null,f=null;i===3&&(y=new Map,f={},n.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const r=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=n.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=r;const v=r.findIndex(_=>_.teamId===z);i===3&&(this.accomplished.avgPreGame=r[v].points),this[m].ranking=v+1,this[m].leader=r[0]}addPassesAvgByTeam(n,i,B){n[i]?(n[i].numberGamesCount+=1,n[i].numberTotalPassesAvg+=B):n[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Ds{constructor(n,i,B,z,c,m,a,y,f,r){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new L6);Vc(this,"visitingTeam",new L6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=n||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=z,this.names["0-0"]=z||"",this.names["1-1"]=c||"",this.names["0-1"]=m||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=r||!1}addLeaguePlays(n,i,B){n.length===0||!B||this.isLeagueDataCalculated||(n.forEach(z=>{this.isAccomplishedLeaguePlay(z[i.categoryId])&&(this.leagueAccomplishedAccumulator+=z[i.total]),this.isReceivedLeaguePlay(z[i.categoryId])&&(this.leagueReceivedAccumulator+=z[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(n,i,B){let z="-";for(const[c,m]of Object.entries(this.generalCategoriesIds))n===m&&(z=`${c==="accomplished"?"0":"1"}${z}`),i===m&&(z=`${z}${c==="accomplished"?"0":"1"}`);z.length===3&&(this.mentions[z]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(n,i,B,z,c){!B||!c||n!==this.homeTeamType&&n!==this.visitingTeamType||(B.forEach(m=>{this.isAccomplishedPlay(m[z.categoryId])?this[n].increaseAccomplishedByOne(m[z.section],m[z.total]):this.isReceivedPlay(m[z.categoryId])&&this[n].increaseReceivedByOne(m[z.section],m[z.total])}),this[n].calculateAvg(c))}addLivePlay(n,i,B,z,c=!1,m=!1){(n===this.homeTeamType||n===this.visitingTeamType)&&B[z.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[n].increaseAccomplishedByOne(B[z.section],B[z.total],!0)}subtractLivePlay(n,i,B,z,c){(n===this.homeTeamType||n===this.visitingTeamType)&&(this.isAccomplishedPlay(B[z.categoryId])&&!c?this[n].decreaseAccomplishedLiveByOne(B[z.section],B[z.total]):this.isReceivedPlay(B[z.categoryId])&&c&&this[n].decreaseReceivedLiveByOne(B[z.section],B[z.total]))}isAccomplishedLeaguePlay(n){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>n===B||`${n}_r`===B)}isReceivedLeaguePlay(n){return!!this.receivedCategoryIds.find(i=>n===i)}isAccomplishedPlay(n){return this.generalCategoriesIds.accomplished===n}isReceivedPlay(n){return this.generalCategoriesIds.received===n}calcRankingLeague(n,i,B,z,c,m=!1){this[this.homeTeamType].calculateRanking(n,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.homeTeamType),this[this.visitingTeamType].calculateRanking(n,i,z,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,m,this.visitingTeamType)}resetData(){this.homeTeam=new L6,this.visitingTeam=new L6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(n){return this.generalCategoriesIds.accomplished===n||this.generalCategoriesIds.received===n}}const _fa={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Ds([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Ds([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Ds([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Ds([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Ds([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Ds([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Ds([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Ds([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Ds([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Ds([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Ds([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Ds([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Ds([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Ds([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Ds([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Ds([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Ds([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Ds([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Ds([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Ds([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Ds([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Ds([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Ds([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Ds([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Ds([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Ds([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Ds([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Ds([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Ds([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Ds([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Ds([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Ds([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Ds([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Ds([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Ds([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Ds([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Ds([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Ds([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},bfa=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],xfa=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let oI=null;function wfa(){return oI||(oI=Q1(xfa)),oI}const kfa=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let sI=null;function Cfa(){return sI||(sI=Q1(kfa)),sI}function F6(e,n,i){return[i.get(e[n.categoryId])||[],e[n.teamId],e[n.matchResult],e[n.playingAs],e[n.matchLapse],e[n.section],e[n.total]]}function yK(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function lI(e,n,i){let B=[...n];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const Sfa=bB(),Tfa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],Efa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:mK(),indexesTSP:vfa(),indexesLS:wfa(),indexesTLP:Cfa(),nextGamesDataStructure:_fa,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(n=>n.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return bfa.filter(n=>n.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return pK(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return pK(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(n=>n.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(n=>e.homeTeamFilter.playingAs.includes(n[0])).filter(n=>e.homeTeamFilter.matchResult.includes(n[1])).reduce((n,i)=>n+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(n=>e.visitingTeamFilter.playingAs.includes(n[0])).filter(n=>e.visitingTeamFilter.matchResult.includes(n[1])).reduce((n,i)=>n+i[2],0)},filledDataStructure(e,n){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,n.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,n.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:n.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,n){return Object.values(n.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,n){for(const i of Object.values(n.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,n){for(const[i,B]of Object.entries(n))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,n){e.currentTournamentName=n},setBetSubcategoriesObjects(e,n){e.betSubcategoriesObjects=n},setRegularSeasonName(e,n){e.regularSeasonName=n},setBetSubcategories(e,n){e.betSubcategories=n},setBetDescription(e,n){e.betDescription=n},setSeasonId(e,n){e.seasonId=Number(n)},setHome(e,n){e.homeTeamInfo=n},setAway(e,n){e.awayTeamInfo=n},setMenuOptionActive(e,n){e.menuOptionActive=n},setPastSeasonId(e,n){e.pastSeasonId=n},setUsePastSeasonId(e,n){e.usePastSeasonId=n,n&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,n){e.showPostMatch=n},setHomeResultGame(e,n){e.homeResultGame=n},setAwayResultGame(e,n){e.awayResultGame=n},updateIsSocketConnected(e,n){e.isSocketConnected=n,n&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&Yoe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,n){e.currentSeasonTeams=n,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,z)=>{if(z.game_status===1&&(z.home_team===i.team_id||z.visiting_team===i.team_id)){const c=z.score[0]-z.score[1],m=z.home_team===i.team_id;B.push({playingAs:m?1:2,matchResult:c===0?3:m?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,n){e.currentSeasonGames=n},updateGameId(e,n){e.gameId=n},updateGameForAnalysis(e,n){e.gameForAnalysis=n,e.isLive=!!n.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,n){e.selectedAnalysis=n},updateShowLiveData(e,n){e.showLiveData=n},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,n){e.idAssetSelected=n},updateStats(e,n){e.currentSeasonPlays=n},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:n,needsFormat:i=!1}){if(i){if(!n||!n.local||!n.local.statistics||!n.visit||!n.visit.statistics)return;e.homeTeamFilter=EB(e.homeTeamFilter,n.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=EB(e.visitingTeamFilter,n.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==n.local.statistics.block&&(e.selectedStatisticTypeBlock=n.local.statistics.block)}else e.homeTeamFilter={...n.homeTeamFilter,statistics:0},e.visitingTeamFilter={...n.visitingTeamFilter,statistics:0}},updateFinishedGames(e,n){e.totalSeasonFinishedGames=n},updateHomeTeamPlays(e,n){e.homeTeamPlays=n},updateVisitingTeamPlays(e,n){e.visitingTeamPlays=n},addSpecialMentions(e,n){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const z of Object.values(B.subcategories))z.resetMentions()}),i.forEach(B=>{for(const z of n)for(const c of Object.values(B.subcategories))c.addSpecialMention(z[0],z[1],z[2])})},setDefaultFilter(e,n){e.defaultFilter={homeTeamFilter:{...n.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...n.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,n){if(!e.livePlays.has(n[e.indexesTLP.playId])){e.livePlays.set(n[e.indexesTLP.playId],n);const B=F6(n,e.indexesTLP,e.categoriesMap);for(const z of Object.values(e.nextGamesDataStructure))for(const c of Object.values(z.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,n){const i=!!n[e.indexesTLP.length],B=e.livePlays.get(n[e.indexesTLP.playId]);if(Use(B,n))return;let z="";const c=e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(z=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const m=F6(B,e.indexesTLP,e.categoriesMap),a=lI(B,m,e.indexesTLP),y=F6(n,e.indexesTLP,e.categoriesMap),f=lI(n,y,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const v of Object.values(r.subcategories))B&&(v.subtractLivePlay(z,m[e.indexesTSP.teamId],m,e.indexesTSP,i),a&&v.subtractLivePlay(z,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(n[e.indexesTLP.playId],n)},deleteLiveGamePlay(e,n){const i=!!n[e.indexesTLP.length],B=e.livePlays.get(n[e.indexesTLP.playId]);let z="";if(B){z=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=F6(B,e.indexesTLP,e.categoriesMap),m=lI(n,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(z,c[e.indexesTSP.teamId],c,e.indexesTSP,i),m&&y.subtractLivePlay(z,m[e.indexesTSP.teamId],m,e.indexesTSP,i)}},clearLiveTotals(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,n){e.statistics=n},updateOldSeasonId(e,n){e.oldSeasonId=n},addRankingInSubcategories(e,{getters:n,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(m=>e.homeTeamFilter.playingAs.includes(m.playingAs)&&e.homeTeamFilter.matchResult.includes(m.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(m=>e.visitingTeamFilter.playingAs.includes(m.playingAs)&&e.visitingTeamFilter.matchResult.includes(m.matchResult)).length});const B=[],z=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const m of Object.values(c.subcategories))B.push(m);n.rankingData.forEach(c=>{for(const m of B)if(m.isInGeneralCategory(c[e.indexesLS.categoryId])){z.has(m.id)?z.get(m.id).push(c):z.set(m.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,n){e.homeGames=yK(n)},setVisitingGames(e,n){e.visitingGames=yK(n)},generateCategoriesMap(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.accomplishedCategoryIds.forEach(B=>{const z=e.categoriesMap.get(B);z?z.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:n},{command:i}){i==="on"?n("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):n("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},n){try{const m=await ffa({gameId:n.gameId});if(m){var i=[],B=[],z={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(m.data).length!==0&&(i=m.data.data.filter(a=>a[1]==n.homeTeam),B=m.data.data.filter(a=>a[1]==n.awayTeam),z=m.data.games,c=m.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",z),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(m){return Promise.reject(m)}},async fillStatisticDataPostMatch({commit:e,dispatch:n},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(n("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:n,commit:i},{gameId:B,isTeamsAnalysis:z,currentSeasonId:c,isLoginChanged:m=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let r={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await n("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),r=p.find(l=>l.game_id===Number(B)),!r&&y&&(r=y),r&&i("updateGameForAnalysis",r),r.game_status!==1&&((m||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await n("checkTeamsData",{gameId:B,isFromBet:!!a}),(m||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(n("getSeasonStatistics"))),e.usePastSeasonId){const l=await n("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(m||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>r.home_team===l.team_id))&&_.push(n("getCurrentSeasonTeams")),i("setHomeResultGame",r.score[0]),i("setAwayResultGame",r.score[1]),z?r.game_status!==1?(await n("fillStatisticData",{gameId:B,gameinfo:r,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(n("fillStatisticDataPostMatch",{game:B,homeTeam:r.home_team,awayTeam:r.visiting_team,gameInfo:r})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(r){return Promise.reject(r)}},async fillStatisticData({commit:e,dispatch:n,getters:i,rootGetters:B,state:z},{gameId:c,gameinfo:m,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",m),(m.is_live||m.game_status===0)&&a.push(n("getCurrentLiveGamePlays",c)),a.push(n("getSpecialMentionsByGame",c)),a.push(n("getHomeTeamPlays")),a.push(n("getVisitingTeamPlays")),a.push(n("getCurrentSeasonPlays")),y&&a.push(gfa(y)),f=await Promise.all(a)}catch(r){throw new Error(r)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[r]=f.pop();r&&(e("setBetSubcategories",r.categories),e("setBetDescription",r.sectionDescription),e("setDefaultFilter",r.params),e("updateFilterAux"),e("updateFilters",{filters:z.defaultFilter,needsFormat:!1}),n("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:n,rootState:i,commit:B},{gameId:z,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(m){throw new Error(m)}},async getSpecialMentionsByGame({commit:e},n){try{const i=await ufa({gameId:n});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:n},i){try{const{teams:B,games:z,past_season_id:c,tournament_id:m}=await lfa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,gameId:i}),a=Tfa.find(y=>y.id===m);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),n.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",z),z&&Array.isArray(z)&&e("updateFinishedGames",z.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),z}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:n}){try{const{games:i,past_season_id:B}=await fK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});return n.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((z,c)=>(c.game_status===1&&(z+=1),z),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:n}){try{const i=await pfa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:n}){try{const i=n.usePastSeasonId?n.pastSeasonId:n.seasonId,B=await ofa({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:n,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&n("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:n}){try{const i=await gK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:n}){try{const i=await gK({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId,teamId:n.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:n}){try{const i=await ifa({seasonId:n.usePastSeasonId?n.pastSeasonId:n.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:n},i){try{const B=await cfa({gameId:i});e.livePlays=new Map,B.forEach(z=>{e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&n("addLiveGamePlay",z)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:n},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&n("addLiveGamePlay",B)},socket_update({state:e,commit:n},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&n("updateLiveGamePlay",B)},socket_delete({state:e,commit:n},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&n("deleteLiveGamePlay",B)},exitChannel({state:e,getters:n,rootState:i,rootGetters:B,commit:z}){const c=B["loginGeneral/getPremiumAccount"];n.isLive&&c&&(z("updateShowLiveData",!0),z("clearLiveTotals"),e.livePlays.clear(),Sfa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function Afa(){try{const{data:e}=await Ud({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const Mfa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,n){e.booleanIsStatisticModalOpen=n},setTournamentType(e,n){e.tournamentType=n},setSectionRef(e,n){e.sectionRef=n},setSectionAnalytics(e,n){e.sectionAnalytics=n},setSeccionBetsGolTipster(e,n){e.seccionBetsGolTipster=n},setPreviewSectionAnalytics(e,n){e.previewSectionAnalytics=n},setVideoSrc(e,n){e.videoSrc=n},setVideoModalVisibility(e,n){e.isVideoModalVisible=n},setSelectedTournament(e,n){e.selectedTournament=n},setTournaments(e,n){e.tournaments=n.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,n){e.tournamentSelected=n}},actions:{async fetchTournaments({state:e,commit:n}){try{if(e.tournaments.length===0){const i=await Afa();n("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function Ifa({seasonId:e,localTeamId:n,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${n}/${i}`;return(await Ud({url:B})).data}catch(B){return Promise.reject(B)}}async function Pfa({seasonId:e,localTeamId:n,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${n}/${i}`;return(await Ud({url:B})).data}catch(B){return Promise.reject(B)}}const vK=(e,n)=>{let i={};return e.forEach((B,z)=>{z==3&&(n[0]==35||n[0]==54)&&(n[z]==2?n[z]=1:n[z]=2),z==2&&(n[0]==35||n[0]==54)&&(n[z]==1?n[z]=2:n[z]==2&&(n[z]=1)),i[B]=n[z]}),i},_K=(e,n)=>e.filter(B=>{const z=n.playingAs.includes(B.playing_as),c=n.matchResult.includes(B.match_result),m=n.sections.includes(B.section);return z&&c&&m}),bK=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(n,i,B){return typeof B>"u"||+B==0?Math[n](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[n](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(n,i){return e("ceil",n,i)})})();function xK(e,n){let i=n*-1;return Math.ceil10(e,i)}const Bfa={...Mfa,...mfa,...Efa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,n,i)=>{const B=e.xGLocalPlays,z="homeTeamFilter",c=i.nextGeneral[z];return _K(B,c)||[]},playsAway:(e,n,i)=>{const B=e.xGVisitingPlays,z="visitingTeamFilter",c=i.nextGeneral[z];return _K(B,c)},goalsQtyLocal:(e,n)=>{const i=bK.find(B=>B.name==="Goles");return n.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,n)=>{const i=bK.find(B=>B.name==="Goles");return n.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,n)=>n.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,n)=>n.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,n)=>{const i=new Set;let B=n.playsLocal.reduce((z,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),z+=c.xG2),z),0);return xK(B,2)},xGAway:(e,n)=>{const i=new Set;let B=n.playsAway.reduce((z,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),z+=c.xG2),z),0);return xK(B,2)}},mutations:{setTeamSelected(e,n){e.teamSelected=n},setPlays(e,n){e.xGLocalPlays=n.local_team.map(i=>vK(n.data_headers,i)),e.xGVisitingPlays=n.visiting_team.map(i=>vK(n.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:n,localTeamId:i,visitingTeamId:B,postMatch:z=!1}){try{let c={};z?c=await Pfa({seasonId:n,localTeamId:i,visitingTeamId:B}):c=await Ifa({seasonId:n,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function Nfa(e){for(const[n,i]of Object.entries(Bfa))e.hasModule(n)||e.registerModule(n,i)}const Ofa={class:"subcategory-group"},Dfa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",Ofa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ns),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":z=>B.isSelected=z,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Lfa=_l(Dfa,[["__scopeId","data-v-85bc2114"]]),Ffa={class:"filter-subcategories"},zfa=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",Ffa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Lfa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),z6=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),Rfa={class:"details__header"},Vfa=z6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$fa={class:"details__header__checkbox"},jfa={class:"details__body"},Ufa={class:"details__body__playing-as"},Gfa=["onClick"],Hfa={class:"details__header"},Wfa=z6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qfa={class:"details__header__checkbox"},Yfa={class:"details__body"},Xfa=z6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zfa={class:"details__body__game-section"},Jfa=["onClick"],Kfa={class:"details__body"},Qfa=z6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ema={class:"details__body__game-section"},tma=["onClick"],ama=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rfa,[Vfa,t.createElementVNode("div",$fa,[t.createVNode(t.unref(Ns),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",jfa,[t.createElementVNode("div",Ufa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gfa))),128))])]),t.createElementVNode("div",Hfa,[Wfa,t.createElementVNode("div",qfa,[t.createVNode(t.unref(Ns),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Yfa,[Xfa,t.createElementVNode("div",Zfa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jfa))),128))])]),t.createElementVNode("div",Kfa,[Qfa,t.createElementVNode("div",ema,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tma))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),nma={class:"filter-field"},rma=Object.freeze(Object.defineProperty({__proto__:null,default:_l({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(B,z)=>z+1));function i(){}return(B,z)=>(t.openBlock(),t.createElementBlock("div",nma,[t.createVNode(t.unref(NW),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"})),ima={class:"subcategory-group"},oma={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",ima,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Os),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":z=>B.isSelected=z,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},sma=bl(oma,[["__scopeId","data-v-85bc2114"]]),lma={class:"filter-subcategories"},cma=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(n,i)=>(t.openBlock(),t.createElementBlock("div",lma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(sma,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),R6=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),uma={class:"details__header"},dma=R6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),hma={class:"details__header__checkbox"},pma={class:"details__body"},fma={class:"details__body__playing-as"},mma=["onClick"],gma={class:"details__header"},yma=R6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),vma={class:"details__header__checkbox"},_ma={class:"details__body"},bma=R6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),xma={class:"details__body__game-section"},wma=["onClick"],kma={class:"details__body"},Cma=R6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Sma={class:"details__body__game-section"},Tma=["onClick"],Ema=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const n=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const i=t.computed(()=>n.playingAs.every(r=>r.isSelected)),B=t.computed(()=>n.gameSections.every(r=>r.isSelected)),z=t.computed(()=>n.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${n.buttonsBorderRadius} 0 0 ${n.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${n.buttonsBorderRadius} ${n.buttonsBorderRadius} 0`}));function m(r){r?n.playingAs.forEach(v=>{v.isSelected=!0}):n.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(r){n.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function y(r){n.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function f(r){r?n.gameSections.forEach(v=>{v.isSelected=!0}):n.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",uma,[dma,t.createElementVNode("div",hma,[t.createVNode(t.unref(Os),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",pma,[t.createElementVNode("div",fma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,mma))),128))])]),t.createElementVNode("div",gma,[yma,t.createElementVNode("div",vma,[t.createVNode(t.unref(Os),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",_ma,[bma,t.createElementVNode("div",xma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,wma))),128))])]),t.createElementVNode("div",kma,[Cma,t.createElementVNode("div",Sma,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tma))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),Ama={class:"filter-field"},Mma=Object.freeze(Object.defineProperty({__proto__:null,default:bl({__name:"FilterField",setup(e){const n=t.ref(Array.from({length:16},(B,z)=>z+1));function i(){}return(B,z)=>(t.openBlock(),t.createElementBlock("div",Ama,[t.createVNode(t.unref(PX),{width:"100%","background-color":"#2E3B46",value:n.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"}));yd.GSCGameData=rfa,yd.connectSocket=xB,yd.disconnectSocket=wB,yd.getSocket=bB,yd.registerStoreModules=Nfa,Object.defineProperty(yd,Symbol.toStringTag,{value:"Module"})});
|